/* ============================================================
   ATRBA Shared Stylesheet — v2.0  |  Mobile-First Redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1B2A4A;
  --navy-dark:  #0C1425;
  --navy-mid:   #253a61;
  --navy-glass: rgba(12,20,37,0.82);
  --gold:       #C9933A;
  --gold-light: #e8b96a;
  --gold-pale:  #FAF3E7;
  --gold-glow:  rgba(201,147,58,.18);
  --charcoal:   #2C2C2C;
  --slate:      #6B6B6B;
  --cream:      #FAF7F2;
  --white:      #fff;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;
  --ease-out:   cubic-bezier(0.19, 1, 0.22, 1);

  --nav-h:      68px;
  --radius:     8px;
  --radius-lg:  14px;
  --section-px: clamp(1.25rem, 5vw, 2rem);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; color: var(--navy); }
p  { color: var(--slate); line-height: 1.75; }
a  { text-decoration: none; color: inherit; }

/* ── Navigation — Mobile-First ────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--section-px);
  background: rgba(12,20,37,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,147,58,0.25);
  transition: background .3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

/* Logo — supports both image and text fallback */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* Text fallback shown when no image */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-main {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .04em;
  line-height: 1.2;
}

.nav-logo-sub {
  font-family: var(--font-sans);
  color: var(--gold);
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255,255,255,.72);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: .5rem 1.1rem !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  transition: all .2s !important;
  white-space: nowrap;
  font-size: .72rem !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-glow);
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
  padding: 0;
}

.nav-hamburger:hover { background: rgba(201,147,58,.15); }

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: all .3s var(--ease-out);
  transform-origin: center;
}

/* Hamburger open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu drawer */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,17,32,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,147,58,.2);
  padding: 1.5rem var(--section-px) 2rem;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
  pointer-events: none;
}

.nav-mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-bottom: 1.25rem;
}

.nav-mobile-links a {
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .75rem .25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile-links a::after { content: '→'; color: rgba(201,147,58,.4); font-size: .85rem; }
.nav-mobile-links a:hover { color: var(--gold); }
.nav-mobile-links a:hover::after { color: var(--gold); }

.nav-mobile-ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Page Body Offset ─────────────────────────────────────── */
body { padding-top: var(--nav-h); }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: clamp(3rem, 8vw, 5.5rem) var(--section-px); }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-header { margin-bottom: 2.5rem; }

.section-header p {
  max-width: 560px;
  font-size: .97rem;
  margin-top: .9rem;
  line-height: 1.8;
}

.section-header.centered { text-align: center; }
.section-header.centered .section-eyebrow { justify-content: center; }
.section-header.centered .section-eyebrow::before { display: none; }
.section-header.centered p { margin: 1rem auto 0; }

.gold-line {
  display: block;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1.1rem 0;
  border-radius: 2px;
}

.gold-line.centered { margin: 1.1rem auto; }

/* ── Color Themes ─────────────────────────────────────────── */
.bg-navy { background: var(--navy-dark); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,.6); }
.bg-navy .section-eyebrow { color: var(--gold); }
.bg-cream { background: var(--cream); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .02em;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,147,58,.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255,255,255,.25);
  transition: all .25s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy {
  background: var(--navy);
  color: #fff;
  padding: .875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,42,74,.3);
}

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, #b87d25 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--section-px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230C1425' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-band h2 {
  color: var(--navy);
  margin-bottom: .75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  position: relative;
}

.cta-band p {
  color: rgba(27,42,74,.72);
  margin-bottom: 2rem;
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: clamp(2.5rem, 6vw, 4rem) var(--section-px) clamp(2rem, 5vw, 3rem);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-header-inner { max-width: 1200px; margin: 0 auto; }

.breadcrumb {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,.4); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.page-header h1 { color: #fff; margin-bottom: .75rem; }
.page-header p { color: rgba(255,255,255,.62); max-width: 580px; font-size: 1rem; }

/* ── Service Cards ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(27,42,74,.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(27,42,74,.12); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.service-tier {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .5rem;
}

.service-card h4 {
  color: var(--navy);
  margin-bottom: .7rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.service-card p { font-size: .875rem; line-height: 1.72; margin-bottom: 1.25rem; }

.service-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(27,42,74,.08);
  flex-wrap: wrap;
}

.service-meta-item { font-size: .7rem; color: var(--slate); }
.service-meta-item strong { display: block; color: var(--navy); font-weight: 700; font-size: .78rem; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid rgba(27,42,74,.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow .3s;
}

.testimonial-card:hover { box-shadow: 0 8px 32px rgba(27,42,74,.08); }

.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--gold);
  line-height: .4;
  margin-bottom: 1.1rem;
  opacity: .35;
}

.testimonial-card p {
  font-size: .875rem;
  line-height: 1.82;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author { font-size: .8rem; font-weight: 700; color: var(--navy); }
.testimonial-title { font-size: .73rem; color: var(--slate); margin-top: .2rem; }

.sample-badge {
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(107,107,107,.55);
  border: 1px solid rgba(107,107,107,.18);
  padding: .15rem .5rem;
  border-radius: 3px;
  display: inline-block;
  margin-top: .5rem;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: clamp(2rem, 5vw, 3rem) var(--section-px);
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,147,58,.06) 0%, transparent 60%);
  pointer-events: none;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  background: var(--navy);
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

.stat-val {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .5rem;
  display: block;
  line-height: 1.4;
}

/* ── EDGE Framework ───────────────────────────────────────── */
.edge-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}

.edge-nav {
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.15);
}

.edge-nav-item {
  padding: .9rem .875rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: .4rem;
  border-left: 3px solid transparent;
}

.edge-nav-item.active {
  background: rgba(201,147,58,.1);
  border-left-color: var(--gold);
}

.edge-letter {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: rgba(201,147,58,.3);
  line-height: 1;
  min-width: 36px;
  transition: color .2s;
}

.edge-nav-item.active .edge-letter { color: var(--gold); }

.edge-word {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.edge-content { padding: 2.25rem; display: none; }
.edge-content.active { display: block; }
.edge-content h3 { color: #fff; margin-bottom: .9rem; }

.edge-content .lead {
  color: rgba(255,255,255,.62);
  line-height: 1.82;
  margin-bottom: 1.5rem;
  font-size: .93rem;
}

.edge-details { list-style: none; display: grid; gap: .55rem; }

.edge-details li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
}

.edge-details li::before { content: '→'; color: var(--gold); flex-shrink: 0; margin-top: .05em; }

.edge-diagram {
  margin-top: 1.5rem;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 1.1rem;
}

.edge-diagram-label {
  font-size: .65rem;
  color: var(--gold);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  font-weight: 600;
}

.edge-flow { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.edge-flow-step {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: .3rem .65rem;
  font-size: .72rem;
  color: rgba(255,255,255,.5);
}

.edge-flow-step.highlight {
  background: rgba(201,147,58,.14);
  border-color: rgba(201,147,58,.35);
  color: var(--gold);
}

.edge-arrow { color: rgba(255,255,255,.2); font-size: .75rem; }

/* Mobile EDGE tabs */
.edge-mobile-tabs {
  display: none;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.edge-tab-btn {
  flex: 1;
  min-width: 60px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: .6rem .5rem;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
}

.edge-tab-btn.active {
  background: rgba(201,147,58,.15);
  border-color: var(--gold);
}

.edge-tab-letter {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: rgba(201,147,58,.4);
  line-height: 1;
  display: block;
}

.edge-tab-btn.active .edge-tab-letter { color: var(--gold); }

.edge-tab-word {
  font-size: .58rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-top: 2px;
  display: block;
}

/* ── Reveal Animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── WhatsApp Float ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  cursor: pointer;
  transition: all .25s;
  font-size: 1.3rem;
  text-decoration: none;
}

.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding: clamp(3rem, 6vw, 4.5rem) var(--section-px) 1.75rem;
  border-top: 1px solid rgba(201,147,58,.2);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: .25rem;
}

.footer-brand p {
  font-size: .8rem;
  line-height: 1.72;
  margin-top: .75rem;
  max-width: 260px;
}

.footer-tagline {
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
  font-weight: 600;
}

.footer-col h5 {
  font-size: .63rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: .8rem;
  margin-bottom: .55rem;
  color: rgba(255,255,255,.48);
  transition: color .2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .7rem;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.32); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── Hero Video ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Prevent white flash */
  background: var(--navy-dark);
}

/* Overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12,20,37,.82) 0%,
    rgba(12,20,37,.55) 60%,
    rgba(12,20,37,.75) 100%
  );
  z-index: 1;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* ── Tablet: 768–1024px ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 960px) {
  .services-grid     { grid-template-columns: 1fr 1fr; }
  .testimonial-grid  { grid-template-columns: 1fr 1fr; }
  .stats-inner       { grid-template-columns: repeat(2, 1fr); }
  .nav-links         { gap: 1rem; }

  .edge-container    { grid-template-columns: 1fr; }
  .edge-nav          { display: none; }
  .edge-mobile-tabs  { display: flex; }
  .edge-content      { padding: 1.5rem; }
}

/* ── Mobile: ≤ 640px ──────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  section { padding: 2.75rem var(--section-px); }

  /* Nav: hide desktop links, show hamburger */
  .nav-links .hide-mobile { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: block; }

  /* Shrink logo image on mobile */
  .nav-logo-img { height: 34px; }
  .nav-logo-main { font-size: .95rem; }

  /* Grids → single column */
  .services-grid,
  .testimonial-grid { grid-template-columns: 1fr; }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .stat-item { padding: 1.25rem 1rem; }

  /* Footer stacks */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { max-width: 100%; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* CTA buttons stack */
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { justify-content: center; text-align: center; }

  /* EDGE content */
  .edge-content { padding: 1.25rem; }
  .edge-flow { gap: .35rem; }
  .edge-flow-step { font-size: .68rem; }

  /* Page header */
  .page-header { padding: 2rem var(--section-px) 1.5rem; }

  .whatsapp-float { width: 46px; height: 46px; font-size: 1.1rem; bottom: 1rem; right: 1rem; }
}

/* ── Extra small: ≤ 380px ─────────────────────────────────── */
@media (max-width: 380px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .nav-logo-main { font-size: .85rem; }
  .nav-logo-sub  { font-size: .48rem; }
}
