/* ─────────────────────────────────────────────────────────────
   RAYWISE CONSULTING — CSS
   Tokens → Reset → Base → Layout → Components → Sections
────────────────────────────────────────────────────────────── */

/* TOKENS */
:root {
  --bg:       #0a0f1e;
  --bg-2:     #0e1529;
  --bg-3:     #111827;
  --surface:  #151e35;
  --surface-2:#1a2540;
  --border:   rgba(255,255,255,0.07);
  --border-hi:rgba(37,99,235,0.4);

  --blue:     #2563eb;
  --blue-hi:  #3b82f6;
  --blue-dim: rgba(37,99,235,0.12);

  --white:    #f8fafc;
  --muted:    #94a3b8;
  --muted-2:  #64748b;

  --serif:    'Instrument Serif', Georgia, serif;
  --sans:     'Geist', 'Inter', system-ui, sans-serif;
  --mono:     'JetBrains Mono', 'Courier New', monospace;

  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;

  --nav-h:  72px;
  --max-w:  1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
ul, ol { list-style: none; }
input, select, textarea, button { font: inherit; }

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-sm);
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* CONTAINER */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* SECTION BASE */
.section { padding: 100px 0; }

/* ─────── BUTTONS ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  border: 2px solid transparent;
}
.btn--primary:hover { background: var(--blue-hi); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn--full { width: 100%; justify-content: center; }

/* ─────── TYPOGRAPHY ─────── */
h1,h2,h3,h4 { line-height: 1.1; text-wrap: pretty; }
em { font-style: italic; font-family: var(--serif); }
p { color: var(--muted); line-height: 1.7; text-wrap: pretty; }
strong { color: var(--white); font-weight: 600; }

/* SECTION KICKER */
.section__kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 1.25rem;
}
.section__kicker span {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  text-align: center;
  line-height: 20px;
  font-size: 0.7rem;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section__lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
}
.section__head {
  margin-bottom: 4rem;
}

/* ─────── GEOMETRIC BG ─────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 70%, transparent 100%);
}

/* ─────── NAV ─────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  flex-shrink: 0;
}
.logo__img {
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}
.logo--footer .logo__img {
  border-radius: 7px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--muted);
}
.nav__links a:hover { color: var(--white); }
.nav__cta { margin-left: 1.5rem; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,15,30,0.97);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a { color: var(--muted); }
.nav__mobile a:hover { color: var(--white); }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ─────── HERO ─────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.18) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(37,99,235,0.07) 0%, transparent 50%);
}
.hero__glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
  padding-bottom: 6rem;
  max-width: 800px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__title {
  font-size: clamp(3.25rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--white);
  margin-bottom: 1.75rem;
}
.hero__title em {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  background: linear-gradient(135deg, var(--blue-hi), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.trustbar li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
}
.trustbar__pin { color: var(--blue-hi); }
.trustbar li + li::before {
  content: '·';
  color: var(--border);
  font-size: 1rem;
}

/* ─────── STATS ─────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: clamp(2rem, 4vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: 0.875rem;
  color: var(--muted-2);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─────── SERVICES ─────── */
.services { background: var(--bg); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.svc-card {
  background: var(--bg-2);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.25s;
  overflow: hidden;
}
.svc-card::after {
  pointer-events: none;
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-card:hover { background: var(--surface); }
.svc-card:hover::after { opacity: 1; }
.svc-card__icon {
  width: 48px; height: 48px;
  background: var(--blue-dim);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-hi);
}
.svc-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.svc-card__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-hi);
  margin-top: 0.5rem;
  transition: gap 0.2s;
}
.svc-card__link:hover { gap: 0.6rem; }

/* ─────── WHY ─────── */
.why {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.why-card {
  padding: 3rem;
  background: var(--bg-2);
  position: relative;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.why-card:hover::before { opacity: 1; }
.why-card__num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--blue-dim);
  line-height: 1;
  margin-bottom: 1.25rem;
  transition: color 0.3s;
}
.why-card:hover .why-card__num { color: rgba(37,99,235,0.25); }
.why-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

/* ─────── ABOUT ─────── */
.about { background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}
.about__photo {
  aspect-ratio: 3/4;
  max-height: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.about__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, transparent 60%);
}
.about__photo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
.about__initials {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--border-hi);
  font-family: var(--sans);
}
.about__caption {
  font-size: 0.8125rem;
  color: var(--muted-2);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.about__badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.about__badge strong {
  font-size: 1rem;
  color: var(--white);
}
.about__body { display: flex; flex-direction: column; gap: 1.25rem; }
.about__body p { font-size: 1.0625rem; }
.about__creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.about__creds li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.about__creds li span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue-hi);
  background: var(--blue-dim);
  border: 1px solid var(--border-hi);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.blog-loading {
  display: contents;
}
.blog-skeleton {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  height: 340px;
  position: relative;
  overflow: hidden;
}
.blog-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.blog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.875rem;
}
.blog-card__img--dynamic {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface);
}

/* ─────── BLOG ─────── */
.blog { background: var(--bg-2); border-top: 1px solid var(--border); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.blog-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.blog-card:hover { border-color: var(--border-hi); transform: translateY(-4px); }
.blog-card__img-wrap { display: block; overflow: hidden; }
.blog-card__img {
  height: 180px;
  transition: transform 0.4s var(--ease-out);
}
.blog-card:hover .blog-card__img { transform: scale(1.04); }
.blog-card__img--1 {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a2040 50%, rgba(37,99,235,0.2) 100%);
  position: relative;
}
.blog-card__img--1::after {
  content: '{ GEO }';
  font-family: var(--mono);
  font-size: 1.5rem;
  color: rgba(59,130,246,0.3);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__img--2 {
  background: linear-gradient(135deg, #1a0f2e 0%, #21103d 50%, rgba(139,92,246,0.15) 100%);
  position: relative;
}
.blog-card__img--2::after {
  content: '↗';
  font-size: 4rem;
  color: rgba(139,92,246,0.25);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__img--3 {
  background: linear-gradient(135deg, #0f2318 0%, #102a1e 50%, rgba(34,197,94,0.12) 100%);
  position: relative;
}
.blog-card__img--3::after {
  content: '◎ AI';
  font-family: var(--mono);
  font-size: 1.5rem;
  color: rgba(34,197,94,0.25);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.1em;
}
.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.blog-card__meta time {
  font-size: 0.8125rem;
  color: var(--muted-2);
  font-family: var(--mono);
}
.blog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--mono);
}
.blog-tag--geo  { background: rgba(37,99,235,0.15); color: #60a5fa; border: 1px solid rgba(37,99,235,0.3); }
.blog-tag--media{ background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.blog-tag--ai   { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.blog-tag--seo  { background: rgba(251,191,36,0.12); color: #fcd34d; border: 1px solid rgba(251,191,36,0.25); }
.blog-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: -0.01em;
}
.blog-card h3 a:hover { color: var(--blue-hi); }
.blog-card p { font-size: 0.9375rem; }
.blog-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-hi);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.blog-card__cta:hover { gap: 0.55rem; }
.blog-cta-row {
  text-align: center;
}

/* ─────── FAQ ─────── */
.faq { background: var(--bg); border-top: 1px solid var(--border); }
.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 6rem;
  align-items: start;
}
.faq__left p { font-size: 1.0625rem; margin-top: 0.75rem; }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  transition: color 0.2s;
}
.faq-item__q:hover { color: var(--blue-hi); }
.faq-item__icon {
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-item__icon::before { width: 10px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 10px; transition: transform 0.25s, opacity 0.25s; }
.faq-item__q[aria-expanded="true"] .faq-item__icon {
  border-color: var(--blue-hi);
  background: var(--blue-dim);
  color: var(--blue-hi);
}
.faq-item__q[aria-expanded="true"] .faq-item__icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item__a {
  padding-bottom: 1.25rem;
}
.faq-item__a p { font-size: 0.9375rem; }

/* ─────── CONTACT ─────── */
.contact {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact__body { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}
.contact-details a:hover { color: var(--white); }
.contact-details svg { color: var(--blue-hi); flex-shrink: 0; }
.contact__reassure {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--muted);
}
.contact__reassure span { display: block; }
/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.form-field label span { color: var(--blue-hi); }
.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.875rem 1rem;
  color: var(--white);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted-2); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.select-wrap {
  position: relative;
}
.select-wrap select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  color: var(--white);
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.field-error {
  font-size: 0.8125rem;
  color: #f87171;
  min-height: 1.1em;
  display: block;
}
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: #f87171; }
.form-legal {
  font-size: 0.8125rem;
  color: var(--muted-2);
  text-align: center;
}
/* Success */
.form-success {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
}
.form-success:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.form-success__icon {
  width: 64px; height: 64px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #86efac;
}
.form-success h3 { font-size: 1.5rem; color: var(--white); }
.form-success p { max-width: 360px; }

/* ─────── FOOTER ─────── */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer__inner { display: flex; flex-direction: column; gap: 3rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
/* footer logo img handled above */
.footer__tagline {
  font-size: 0.9375rem;
  color: var(--muted-2);
  line-height: 1.6;
  max-width: 300px;
}
.footer__tel {
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer__tel:hover { color: var(--white); }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__nav-col strong {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-family: var(--mono);
  margin-bottom: 0.25rem;
}
.footer__nav-col a {
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__nav-col a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted-2);
  font-family: var(--mono);
}

/* ─────── RESPONSIVE ─────── */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__photo { max-height: 320px; aspect-ratio: unset; }
  .faq__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .container { padding: 0 1.25rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero__title { font-size: clamp(2.75rem, 10vw, 4rem); }
  .trustbar { gap: 0.75rem; }
  .trustbar li + li::before { display: none; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .about__creds { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr; }
}

/* ─────── HERO ANIMATIONS (CSS keyframes — always in viewport) ─────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-anim {
  animation: heroFadeUp 0.7s var(--ease-out) both;
}
.hero-anim--0 { animation-delay: 0.1s; }
.hero-anim--1 { animation-delay: 0.25s; }
.hero-anim--2 { animation-delay: 0.45s; }
.hero-anim--3 { animation-delay: 0.65s; }
.hero-anim--4 { animation-delay: 0.85s; }

/* ─────── ANIMATIONS ─────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── Button color hardening — survives any theme CSS leakage ── */
a.btn--primary,
button.btn--primary,
.btn--primary {
  background-color: var(--blue) !important;
  color: #fff !important;
  border-color: transparent !important;
}
a.btn--primary:hover,
button.btn--primary:hover,
.btn--primary:hover {
  background-color: var(--blue-hi) !important;
  color: #fff !important;
}
a.btn--ghost,
button.btn--ghost,
.btn--ghost {
  background: transparent !important;
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.2) !important;
}
a.btn--ghost:hover,
button.btn--ghost:hover,
.btn--ghost:hover {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

/* Ensure hidden attribute works even when element has display:flex in CSS */
[hidden] { display: none !important; }

/* LinkedIn button icon via CSS — SVG gets stripped by WP kses on page save */
a.btn[href*="linkedin"]::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23f8fafc'%3E%3Cpath d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14ZM8.34 18.34V9.67H5.67v8.67h2.67Zm-1.34-9.84a1.55 1.55 0 1 0 0-3.1 1.55 1.55 0 0 0 0 3.1Zm11.34 9.84v-4.74c0-2.54-1.36-3.72-3.17-3.72a2.74 2.74 0 0 0-2.49 1.37h-.04V9.67h-2.56v8.67h2.67v-4.29c0-1.13.21-2.22 1.61-2.22s1.4 1.29 1.4 2.29v4.22h2.58Z'%3E%3C%2Fpath%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

/* Mobile: prevent contact form column from overflowing grid cell */
.contact__form-wrap { min-width: 0; }
