/* ==========================================================================
   DNA COMMERCIAL BROKERAGE — DESIGN SYSTEM
   Light, premium, editorial corporate theme.
   Content lives in js/content.js — this file is styling only.
   ========================================================================== */

/* Native cross-document view transitions between pages (progressive
   enhancement — browsers without support just navigate normally). */
@view-transition{
  navigation: auto;
}
::view-transition-old(root){
  animation: vt-fade-out .4s cubic-bezier(.22,.61,.36,1) both;
}
::view-transition-new(root){
  animation: vt-fade-in .5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes vt-fade-out{
  to{ opacity:0; transform:translateY(-10px) scale(.99); }
}
@keyframes vt-fade-in{
  from{ opacity:0; transform:translateY(12px) scale(1.004); }
}

:root{
  /* Palette */
  --navy-950:#0b1a2e;
  --navy-900:#0e2038;
  --navy-800:#152c4a;
  --navy-700:#1f3a5f;
  --navy-600:#2c4d78;
  --navy-500:#3f6293;
  --gold-700:#9c7a2e;
  --gold-600:#b6913c;
  --gold-500:#c9a24b;
  --gold-400:#dcbd72;
  --gold-100:#f4e9d2;
  --off-white:#faf7f1;
  --off-white-2:#f3efe6;
  --white:#ffffff;
  --ink-muted:#4b5768;
  --ink-soft:#6b7686;
  --line:#e6e0d3;
  --line-soft:#ece7db;
  --shadow-color: 15, 30, 55;

  /* Type */
  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing (tight, intentional rhythm) */
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 2.75rem;
  --space-xl: 4.25rem;
  --space-2xl: 6rem;

  --section-pad: clamp(3.25rem, 6vw, 5.5rem);
  --container-w: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--navy-900);
  background:var(--off-white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{
  font-family:var(--font-serif);
  color:var(--navy-950);
  margin:0;
  line-height:1.15;
  font-weight:600;
  letter-spacing:-.01em;
}
p{ margin:0; }

.container{
  width:100%;
  max-width:var(--container-w);
  margin-inline:auto;
  padding-inline:clamp(1.25rem, 4vw, 2.5rem);
}

section{ position:relative; }

/* ---------- Utility type scale ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-family:var(--font-sans);
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold-700);
  margin-bottom:var(--space-sm);
}
.eyebrow::before{
  content:'';
  width:22px; height:1px;
  background:var(--gold-500);
}
h1.display{ font-size:clamp(2.3rem, 4.4vw, 3.6rem); }
h2.section-title{ font-size:clamp(1.85rem, 3.2vw, 2.5rem); }
h3.card-title{ font-size:1.2rem; }
.lede{ font-size:1.1rem; color:var(--ink-muted); max-width:640px; }
.section-head{
  max-width:680px;
  margin-bottom:var(--space-lg);
}
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.9rem 1.7rem;
  border-radius:999px;
  font-size:.92rem;
  font-weight:600;
  letter-spacing:.01em;
  border:1px solid transparent;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease, border-color .3s ease;
  white-space:nowrap;
}
.btn-gold{
  background:linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color:var(--navy-950);
  box-shadow:0 8px 20px -8px rgba(201,162,75,.55);
}
.btn-gold:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -10px rgba(201,162,75,.65); }

/* Soft pulsing glow on the always-visible header CTA */
@keyframes btn-glow-pulse{
  0%, 100%{ box-shadow:0 8px 20px -8px rgba(201,162,75,.55), 0 0 0 0 rgba(201,162,75,.45); }
  50%{ box-shadow:0 8px 20px -8px rgba(201,162,75,.55), 0 0 20px 5px rgba(201,162,75,.55); }
}
.header-actions .btn-gold,
.mobile-nav .btn-gold{
  animation:btn-glow-pulse 2.6s ease-in-out infinite;
}
.header-actions .btn-gold:hover,
.mobile-nav .btn-gold:hover{
  animation-play-state:paused;
}
.btn-outline{
  background:transparent;
  border-color:rgba(11,26,46,.22);
  color:var(--navy-900);
}
.btn-outline:hover{ border-color:var(--navy-900); background:rgba(11,26,46,.04); transform:translateY(-2px); }
.btn-outline-light{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.55);
  color:var(--white);
  backdrop-filter:blur(6px);
}
.btn-outline-light:hover{ background:rgba(255,255,255,.16); transform:translateY(-2px); }
.btn-sm{ padding:.65rem 1.25rem; font-size:.82rem; }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:500;
  background:rgba(250,247,241,.75);
  backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled{
  border-color:var(--line);
  box-shadow:0 8px 30px -18px rgba(15,30,55,.25);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-block:1.05rem;
  gap:1.5rem;
}
.brand{ display:flex; align-items:center; }
.brand-logo{
  height:40px; width:auto;
  transition:transform .35s var(--ease);
}
.brand:hover .brand-logo{ transform:scale(1.045); }
.main-nav{ position:relative; display:flex; align-items:center; gap:2.1rem; }
.main-nav a{
  font-size:.92rem; font-weight:500; color:var(--navy-800);
  position:relative; padding-block:.3rem;
}
.main-nav a.active{ color:var(--navy-950); font-weight:600; }
.nav-indicator{
  position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--gold-500); opacity:0;
  transition:left .35s var(--ease), width .35s var(--ease), opacity .3s ease;
  pointer-events:none;
}
.header-actions{ display:flex; align-items:center; gap:1rem; }
.nav-toggle{
  display:none; background:none; border:none; width:38px; height:38px;
  position:relative; z-index:600;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:''; display:block; width:22px; height:2px; background:var(--navy-950);
  position:absolute; left:8px; top:18px; transition:transform .3s var(--ease), opacity .3s ease, top .3s ease;
}
.nav-toggle span::before{ top:-7px; }
.nav-toggle span::after{ top:7px; }
.nav-toggle.open span{ background:transparent; }
.nav-toggle.open span::before{ top:0; transform:rotate(45deg); }
.nav-toggle.open span::after{ top:0; transform:rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:min(86vh, 720px);
  display:flex; align-items:center;
  overflow:hidden;
  background:var(--navy-950);
  color:var(--white);
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; transform:scale(1.08); }
.hero-media::after{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(9,20,38,.72) 0%, rgba(9,20,38,.6) 45%, rgba(9,20,38,.88) 100%);
}
.hero-content{ position:relative; z-index:2; padding-block:var(--space-2xl); max-width:760px; }
.hero .eyebrow{ color:var(--gold-400); }
.hero .eyebrow::before{ background:var(--gold-400); }
.hero h1{ color:var(--white); }
.hero .lede{ color:rgba(255,255,255,.82); max-width:600px; margin-top:var(--space-sm); font-size:1.12rem; }
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:var(--space-lg); }

.hero-sm{ min-height:auto; padding-block: calc(var(--space-2xl) + 1rem) var(--space-2xl); }
.hero-sm .hero-content{ max-width:820px; }

/* Stats strip inside/after hero */
.stats-strip{
  position:relative; z-index:2;
  background:var(--white);
  border-top:1px solid var(--line);
}
.stats-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
  padding-block:var(--space-lg);
}
.stat{ text-align:center; }
.stat-num{
  font-family:var(--font-serif); font-size:clamp(1.8rem,3vw,2.5rem);
  color:var(--navy-950); font-weight:600; display:flex; justify-content:center; align-items:baseline; gap:.15rem;
}
.stat-num .suffix{ color:var(--gold-600); }
.stat-label{ font-size:.85rem; color:var(--ink-soft); margin-top:.35rem; letter-spacing:.02em; }

/* ---------- Sections ---------- */
.section{ padding-block:var(--section-pad); }
.section.alt{ background:var(--off-white-2); }
.section.navy{ background:var(--navy-950); color:var(--white); }
.section.navy h2, .section.navy h3{ color:var(--white); }
.section.navy .lede{ color:rgba(255,255,255,.75); }
.section.tight{ padding-block: calc(var(--section-pad) * .62); }
.section.no-top{ padding-top:0; }

/* ---------- Grids & Cards ---------- */
.grid{ display:grid; gap:1.6rem; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:var(--white);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-md);
  padding:2rem 1.75rem;
  box-shadow:0 1px 2px rgba(var(--shadow-color),.04);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 40px -22px rgba(var(--shadow-color),.28);
  border-color:var(--gold-400);
}
.card-icon{
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--gold-100), var(--off-white-2));
  color:var(--gold-700);
  margin-bottom:1.1rem;
}
.card-icon svg{ width:24px; height:24px; }
.card p{ color:var(--ink-muted); margin-top:.6rem; font-size:.95rem; }

/* Service card w/ link */
.service-card{ display:flex; flex-direction:column; height:100%; }
.service-card .more{
  margin-top:auto; padding-top:1.25rem;
  display:flex; align-items:center; gap:.4rem;
  font-size:.86rem; font-weight:600; color:var(--navy-900);
}
.service-card .more svg{ width:16px; height:16px; transition:transform .3s var(--ease); }
.service-card:hover .more svg{ transform:translateX(4px); }

/* Partner service cards (home page "Get Connected" grid) */
.partner-service-logo{
  width:64px; height:64px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:var(--white);
  border:1px solid var(--line-soft);
  padding:.6rem;
  margin-bottom:1.1rem;
}
.partner-service-logo img{ width:100%; height:100%; object-fit:contain; }

/* Image with frame */
.media-frame{
  border-radius:var(--radius-lg);
  overflow:hidden;
  position:relative;
  box-shadow:0 30px 60px -30px rgba(var(--shadow-color),.35);
}
.media-frame img{
  width:100%; aspect-ratio:4/3; object-fit:cover; object-position:center 60%;
  transition:transform .8s var(--ease);
}
.media-frame:hover img{ transform:scale(1.05); }

/* Gold ambient glow + inner vignette — a museum-lit framing for a standout
   image (e.g. the DNA/dollar-sign artwork), rather than a plain flat crop. */
.media-frame.glow{
  box-shadow:
    0 0 0 1px rgba(201,162,75,.28),
    0 30px 70px -18px rgba(201,162,75,.4),
    0 44px 80px -35px rgba(var(--shadow-color),.55);
}
.media-frame.glow img{
  object-position:center 48%;
  filter:saturate(1.14) contrast(1.06) brightness(1.02);
}
.media-frame.glow::after{
  content:'';
  position:absolute; inset:0;
  box-shadow:inset 0 0 70px 6px rgba(7,15,29,.6);
  pointer-events:none;
  border-radius:inherit;
}

/* ---------- Timeline (How We Work) ---------- */
.timeline{
  display:grid; grid-template-columns:repeat(6,1fr); gap:1.25rem;
  counter-reset:step;
}
.timeline-step{
  position:relative;
  padding-top:2.75rem;
}
.timeline-step::before{
  counter-increment:step;
  content:counter(step,decimal-leading-zero);
  font-family:var(--font-serif);
  font-size:1.3rem;
  color:var(--gold-600);
  display:block;
  margin-bottom:.6rem;
}
.timeline-step::after{
  content:'';
  position:absolute; top:0; left:0; right:0; height:2px;
  background:var(--line);
}
.timeline-step:first-child::after{ background:linear-gradient(90deg, var(--gold-500), var(--line)); }
.timeline-step h3{ font-size:1rem; margin-bottom:.4rem; }
.timeline-step p{ font-size:.88rem; color:var(--ink-muted); }

/* ---------- Partner logos ---------- */
.partner-strip{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-track{
  display:flex; align-items:center; gap:1.5rem;
  width:max-content;
  animation:scroll-x 32s linear infinite;
}
.partner-strip:hover .partner-track{ animation-play-state:paused; }
.partner-logo{
  flex-shrink:0;
  height:76px; width:168px;
  display:flex; align-items:center; justify-content:center;
  background:var(--white);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-md);
  padding:.9rem 1.4rem;
  box-shadow:0 1px 2px rgba(var(--shadow-color),.04);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.partner-logo img{
  max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain;
  filter:grayscale(1); opacity:.72;
  transition:filter .5s var(--ease), opacity .5s var(--ease), transform .5s var(--ease);
}
.partner-logo:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 34px -20px rgba(var(--shadow-color),.28);
  border-color:var(--gold-400);
}
.partner-logo:hover img{
  filter:grayscale(0); opacity:1; transform:scale(1.05);
}
@keyframes scroll-x{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* ---------- Final CTA banner ---------- */
.cta-banner{
  background:linear-gradient(120deg, var(--navy-950), var(--navy-800));
  border-radius:var(--radius-lg);
  padding:var(--space-xl) clamp(1.5rem,5vw,4rem);
  color:var(--white);
  display:flex; align-items:center; justify-content:space-between;
  gap:2rem; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-banner::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(600px 300px at 85% 0%, rgba(201,162,75,.28), transparent 70%);
}
.cta-banner > *{ position:relative; z-index:1; }
.cta-banner h2{ color:var(--white); max-width:460px; }
.cta-actions{ display:flex; gap:1rem; flex-wrap:wrap; }
.cta-banner.light{ background:linear-gradient(120deg, var(--off-white-2), var(--white)); border:1px solid var(--line); }
.cta-banner.light::before{ background:radial-gradient(600px 300px at 85% 0%, rgba(201,162,75,.16), transparent 70%); }
.cta-banner.light h2{ color:var(--navy-950); }
.cta-banner.light .lede{ color:var(--ink-muted); }
.cta-banner.light .eyebrow{ color:var(--gold-700); }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-950);
  color:rgba(255,255,255,.72);
  padding-top:var(--space-2xl);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.3fr;
  gap:2.5rem;
  padding-bottom:var(--space-xl);
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-logo{ height:46px; width:auto; }
.footer-about{ margin-top:1rem; font-size:.9rem; max-width:280px; color:rgba(255,255,255,.62); }
.footer-social{ display:flex; gap:.7rem; margin-top:1.4rem; }
.footer-social a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center;
  transition:background .3s ease, border-color .3s ease, transform .3s ease;
}
.footer-social a:hover{ background:var(--gold-500); border-color:var(--gold-500); color:var(--navy-950); transform:translateY(-3px); }
.footer-social svg{ width:16px; height:16px; }
.footer-col h4{
  font-family:var(--font-sans); color:var(--white); font-size:.82rem;
  letter-spacing:.1em; text-transform:uppercase; font-weight:600; margin-bottom:1.1rem;
}
.footer-col li{ margin-bottom:.65rem; font-size:.9rem; }
.footer-col a:hover{ color:var(--gold-400); }
.footer-contact li{ display:flex; gap:.6rem; align-items:flex-start; }
.footer-contact svg{ width:16px; height:16px; flex-shrink:0; margin-top:.2rem; color:var(--gold-400); }
.newsletter-form{ display:flex; gap:.5rem; margin-top:.75rem; }
.newsletter-form input{
  flex:1; min-width:0;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  padding:.7rem 1rem;
  color:var(--white); font-size:.85rem;
}
.newsletter-form input::placeholder{ color:rgba(255,255,255,.45); }
.newsletter-form button{
  background:var(--gold-500); border:none; border-radius:999px;
  width:42px; height:42px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color:var(--navy-950); transition:transform .3s var(--ease);
}
.newsletter-form button:hover{ transform:scale(1.08); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-block:1.5rem; font-size:.8rem; color:rgba(255,255,255,.5);
  flex-wrap:wrap; gap:.75rem;
}
.footer-bottom a:hover{ color:var(--gold-400); }
.footer-legal{ display:flex; gap:1.25rem; }

/* ---------- Breadcrumb / page intro ---------- */
.breadcrumb{
  display:flex; align-items:center; gap:.5rem;
  font-size:.82rem; color:rgba(255,255,255,.6);
  margin-bottom:1.1rem;
}
.breadcrumb a:hover{ color:var(--gold-400); }

/* ---------- FAQ Accordion ---------- */
.faq-item{
  border-bottom:1px solid var(--line);
  padding-block:1.35rem;
}
.faq-q{
  display:flex; justify-content:space-between; align-items:center;
  gap:1rem; cursor:pointer; background:none; border:none; width:100%;
  text-align:left; font-family:var(--font-serif); font-size:1.05rem; color:var(--navy-950);
}
.faq-q .plus{
  width:24px; height:24px; flex-shrink:0; position:relative;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:''; position:absolute; background:var(--navy-900); transition:transform .3s var(--ease), opacity .3s ease;
}
.faq-q .plus::before{ left:0; top:50%; width:100%; height:1.5px; transform:translateY(-50%); }
.faq-q .plus::after{ top:0; left:50%; height:100%; width:1.5px; transform:translateX(-50%); }
.faq-item.open .plus::after{ transform:translateX(-50%) rotate(90deg); opacity:0; }
.faq-a{
  max-height:0; overflow:hidden; transition:max-height .4s var(--ease), padding .4s var(--ease);
  font-size:.94rem; color:var(--ink-muted);
}
.faq-item.open .faq-a{ padding-top:.9rem; }

/* ---------- Forms (Contact) ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.field{ display:flex; flex-direction:column; gap:.4rem; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:.82rem; font-weight:600; color:var(--navy-800); }
.field input, .field select, .field textarea{
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:.85rem 1rem;
  font-family:inherit; font-size:.94rem;
  background:var(--white);
  color:var(--navy-950);
  transition:border-color .3s ease, box-shadow .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--gold-500); box-shadow:0 0 0 3px rgba(201,162,75,.18);
}
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:.8rem; color:var(--ink-soft); margin-top:.75rem; }
.form-success{
  display:none; align-items:center; gap:.6rem;
  background:var(--gold-100); color:var(--gold-700);
  border-radius:var(--radius-sm); padding:1rem 1.15rem; font-size:.9rem; font-weight:600;
  margin-top:1rem;
}
.form-success.show{ display:flex; }

/* Contact info cards */
.contact-info-list{ display:flex; flex-direction:column; gap:1.1rem; }
.contact-info-item{
  display:flex; gap:1rem; align-items:flex-start;
  background:var(--white); border:1px solid var(--line-soft);
  border-radius:var(--radius-md); padding:1.25rem 1.4rem;
}
.contact-info-item .card-icon{ margin-bottom:0; flex-shrink:0; }
.contact-info-item h4{ font-family:var(--font-sans); font-size:.85rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); margin-bottom:.25rem; }
.contact-info-item p, .contact-info-item a{ font-size:1rem; color:var(--navy-950); font-weight:500; }
.map-frame{
  border-radius:var(--radius-lg); overflow:hidden; height:260px;
  border:1px solid var(--line-soft);
  background:
    linear-gradient(160deg, var(--off-white-2), var(--off-white)) ;
  position:relative;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity:0; transform:translateY(28px);
  transition-property:opacity, transform;
  transition-duration:.8s;
  transition-timing-function:var(--ease);
  transition-delay:calc(var(--i,0) * 70ms);
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- Page enter / leave (classic multi-page navigation) ----------
   Opacity-only on purpose: a transform here (even via animation, even at
   0) would make <body> a new containing block for every position:fixed
   descendant (nav drawer, progress bar), breaking them site-wide. */
@keyframes page-enter{
  from{ opacity:0; }
  to{ opacity:1; }
}
body{ animation:page-enter .45s ease both; }
body.leaving{
  opacity:0;
  transition:opacity .25s ease;
}

/* Staggered hero entrance — plays on every page load */
.hero-content > *, .page-hero .container > *{
  animation:hero-rise .8s var(--ease) both;
}
.hero-content > *:nth-child(1), .page-hero .container > *:nth-child(1){ animation-delay:.05s; }
.hero-content > *:nth-child(2), .page-hero .container > *:nth-child(2){ animation-delay:.16s; }
.hero-content > *:nth-child(3), .page-hero .container > *:nth-child(3){ animation-delay:.3s; }
.hero-content > *:nth-child(4), .page-hero .container > *:nth-child(4){ animation-delay:.42s; }
@keyframes hero-rise{
  from{ opacity:0; transform:translateY(22px); }
  to{ opacity:1; transform:translateY(0); }
}

/* Top progress cue shown briefly while a link navigates to the next page */
.page-progress{
  position:fixed; top:0; left:0; height:3px; width:0%;
  background:linear-gradient(90deg, var(--gold-400), var(--gold-600));
  z-index:9999; transition:width .3s ease, opacity .3s ease;
  pointer-events:none;
  box-shadow:0 0 10px rgba(201,162,75,.6);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* ---------- Page hero variants (About/Services/Qatar/Contact) ---------- */
.page-hero{
  background:var(--navy-950); color:var(--white);
  padding-block:calc(var(--space-2xl) + .5rem) var(--space-xl);
  position:relative; overflow:hidden;
}
.page-hero .container{ position:relative; z-index:1; }
.page-hero::after{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(700px 380px at 90% -10%, rgba(201,162,75,.22), transparent 65%),
    radial-gradient(500px 300px at 5% 110%, rgba(63,98,147,.35), transparent 65%);
}
.page-hero h1{ color:var(--white); max-width:760px; }
.page-hero .lede{ color:rgba(255,255,255,.78); max-width:620px; margin-top:.9rem; }

/* Decorative animated badge, floated in a page-hero (e.g. Qatar Business
   Network's connectivity icon) — absolutely positioned so it never
   disturbs the text stagger-entrance of the hero's direct children. */
.hero-badge-float{
  position:absolute; z-index:1;
  top:50%; right:clamp(1.5rem, 7vw, 6rem); transform:translateY(-50%);
  width:140px; height:140px;
  display:flex; align-items:center; justify-content:center;
  padding:1.15rem;
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:0 26px 50px -18px rgba(0,0,0,.5);
  animation:hero-rise .9s var(--ease) both; animation-delay:.5s;
}
.hero-badge-float img{ width:100%; height:100%; object-fit:contain; }
@media (max-width:900px){ .hero-badge-float{ display:none; } }

/* Value/list rows */
.check-list{ display:flex; flex-direction:column; gap:.85rem; margin-top:1.25rem; }
.check-list li{ display:flex; gap:.7rem; align-items:flex-start; font-size:.96rem; color:var(--ink-muted); }
.check-list svg{ width:19px; height:19px; flex-shrink:0; color:var(--gold-600); margin-top:.15rem; }

/* Two-col split */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,4.5rem); align-items:center; }
.split.reverse{ direction:rtl; }
.split.reverse > *{ direction:ltr; }

/* Numbered process list (service pages) */
.process-list{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }
.process-item{ position:relative; padding-left:0; }
.process-num{
  font-family:var(--font-serif); font-size:2rem; color:var(--gold-500);
  display:block; margin-bottom:.5rem;
}

/* Vendor/category chips */
.chip-grid{ display:flex; flex-wrap:wrap; gap:.75rem; }
.chip{
  padding:.6rem 1.1rem; border-radius:999px; font-size:.86rem; font-weight:500;
  background:var(--white); border:1px solid var(--line-soft); color:var(--navy-800);
  transition:border-color .3s ease, background .3s ease, transform .3s ease;
}
.chip:hover{ border-color:var(--gold-500); background:var(--gold-100); transform:translateY(-2px); }

/* Value pillars (About) */
.value-row{
  display:flex; justify-content:space-between; align-items:center;
  padding-block:1.4rem; border-bottom:1px solid var(--line);
}
.value-row .num{ font-family:var(--font-serif); color:var(--gold-500); font-size:1.1rem; width:50px; flex-shrink:0; }
.value-row h3{ font-size:1.1rem; flex:1; }
.value-row p{ flex:2; color:var(--ink-muted); font-size:.92rem; margin:0; }

/* Related services (bottom of service page) */
.related-strip{ display:flex; gap:1rem; overflow-x:auto; padding-bottom:.5rem; }
.related-card{
  flex:0 0 260px; background:var(--white); border:1px solid var(--line-soft);
  border-radius:var(--radius-md); padding:1.5rem;
}

/* Service page hero small icon badge */
.service-badge{
  width:64px; height:64px; border-radius:18px;
  background:rgba(201,162,75,.14); border:1px solid rgba(201,162,75,.35);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.4rem; color:var(--gold-400);
}
.service-badge svg{ width:30px; height:30px; }

/* Qatar page stat pillars */
.pillar-list{ display:flex; flex-direction:column; }
.pillar{ display:grid; grid-template-columns:70px 1fr; gap:1.1rem; padding-block:1.6rem; border-top:1px solid var(--line); }
.pillar:last-child{ border-bottom:1px solid var(--line); }
.pillar .idx{ font-family:var(--font-serif); font-size:1.4rem; color:var(--gold-500); }
.pillar h3{ margin-bottom:.4rem; }
.pillar p{ color:var(--ink-muted); font-size:.94rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .timeline{ grid-template-columns:repeat(3,1fr); }
  .process-list{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .split{ grid-template-columns:1fr; }
  .split.reverse{ direction:ltr; }
  .split .media-frame{ order:-1; }
}
/* Mobile off-canvas drawer — a separate element appended directly to <body>,
   so its fixed positioning is never affected by the sticky header's
   containing block, and it never interferes with the desktop inline nav. */
.mobile-nav{
  display:none;
  position:fixed; inset:0 0 0 auto; top:0; height:100vh; width:min(78vw,340px);
  background:var(--off-white); flex-direction:column; justify-content:center;
  align-items:flex-start; gap:1.6rem; padding:2rem 2.25rem;
  transform:translateX(100%); transition:transform .45s var(--ease);
  z-index:550; box-shadow:-20px 0 60px -30px rgba(0,0,0,.3);
}
.mobile-nav a{
  font-size:1.15rem; font-weight:500; color:var(--navy-800);
}
.mobile-nav a.active{ color:var(--navy-950); font-weight:600; }
@media (max-width: 860px){
  .main-nav{ display:none; }
  .mobile-nav{ display:flex; }
  .mobile-nav.open{ transform:translateX(0); }
  .header-actions .btn-gold{ display:none; }
  .mobile-nav .btn-gold{ margin-top:1rem; }
  .nav-toggle{ display:block; }
}
@media (max-width: 720px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .timeline{ grid-template-columns:repeat(2,1fr); }
  .process-list{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .cta-banner{ flex-direction:column; align-items:flex-start; text-align:left; }
  .value-row{ flex-direction:column; align-items:flex-start; gap:.5rem; }
  .pillar{ grid-template-columns:1fr; }
}
