/* =============================================
   SOPHON ADTECH — style.css (v5)
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:          #c01020;
  --red-hover:    #e8182e;
  --red-dark:     #8a0b19;
  --navy:         #1a2340;
  --text-dark:    #1a1a2e;
  --text-body:    #444;
  --text-muted:   #666;
  --bg-white:     #ffffff;
  --bg-light:     #e8eaee;      /* one shade darker than before for alternating cards */
  --bg-dark:      #0f1117;
  --border:       #e0e4ea;
  --font:         'Roboto', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --nav-h:        72px;
  --radius:       6px;
  --radius-lg:    32px;         /* rounder pillars */
  --t:            0.25s ease;
  --fs-body:      17px;
  --fs-small:     15px;
  --fs-xsmall:    13px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-white);
  color: var(--text-body);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--t), box-shadow var(--t), transform var(--t);
}
.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 16px rgba(232,24,46,0.35);
  transform: translateY(-1px);
}
.btn-full { width: 100%; text-align: center; display: block; }

/* =============================================
   SECTION TITLES
   Base headings (About Us, How We Can Help, Contact): Poppins 800
   Meta Ads / Content headings: 3pt larger, set separately below
   ============================================= */
.section-title,
.section-title-center,
.contact-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.625rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 10px;
}
/* Meta Ads + Content headings: significantly larger than all other headings */
.deep-dive-text .section-title {
  font-size: clamp(3.375rem, 6vw, 4.0rem);
}
.contact-headline {
  color: #000 !important;
  text-align: center;
}
.section-title-center {
  text-align: center;
  margin-bottom: 12px;
}
.section-rule {
  width: 100%;
  height: 2px;
  background: var(--red);
  margin-bottom: 24px;
}
/* How We Can Help rule — same width as contact rule */
.section-rule-center {
  width: 420px;
  max-width: 90%;
  height: 3px;
  background: var(--red);
  margin: 0 auto 48px;
  border-radius: 2px;
}

/* =============================================
   NAV — transparent + white logo over hero
        sticky white bg + black logo when scrolled past hero
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.nav-sticky {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}
/* Hide nav entirely when mid-scroll (between hero bottom and sticky trigger) — not needed now */
/* Nav always visible: white logo on hero, black logo when sticky */

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  transition: color var(--t);
}
.nav.nav-sticky .nav-links a { color: var(--text-dark); }
.nav-links a:hover { color: rgba(255,255,255,0.75); }
.nav.nav-sticky .nav-links a:hover { color: var(--red); }

/* Hamburger: white over hero, dark when sticky */
.nav.nav-sticky .hamburger span { background: var(--text-dark); }

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem !important;
}
.nav-cta:hover { background: var(--red-hover) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--t);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-link {
  padding: 14px 24px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: color var(--t), background var(--t);
}
.mobile-link:hover { color: var(--red); background: #fff5f5; }
.mobile-cta { color: var(--red) !important; font-weight: 700 !important; }
.mobile-menu.open { display: flex; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('hero-bg.jpg') center center / cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,15,30,0.85) 0%,
    rgba(10,15,30,0.70) 55%,
    rgba(10,15,30,0.40) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-text {
  max-width: 560px;
  padding-top: 30px;
}
.hero-eyebrow {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-body {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* =============================================
   ABOUT US
   ============================================= */
.about {
  padding: 90px 0;
  background: var(--bg-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text .section-title {
  font-family: var(--font-heading);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 24px;
}
.about-text .section-rule { display: none; }
.about-lead {
  font-size: var(--fs-body);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 18px;
}
.about-text p {
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 14px;
}
.market-card {
  background: var(--navy);
  border-radius: 15px;
  padding: 40px 36px;
  color: #fff;
}
.market-title {
  font-family: var(--font-heading);
  font-size: 1.525rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}
.market-title span { color: #6ec1e4; display: block; }
.market-intro {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.6;
}
.market-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
/* Base stat item reset — individual colors below */
.stat-item {
  padding: 18px 16px;
  border-radius: var(--radius);
  border: none;
}
/* Box 1: deep teal — $164B+ */
.stat-item:nth-child(1) {
  background: linear-gradient(135deg, #0e4d4d 0%, #0a3535 100%);
  border-left: 3px solid #2dd4bf;
}
.stat-item:nth-child(1) .stat-number { color: #2dd4bf; }

/* Box 2: rich indigo — ~17% CAGR */
.stat-item:nth-child(2) {
  background: linear-gradient(135deg, #2d1b69 0%, #1e1148 100%);
  border-left: 3px solid #a78bfa;
}
.stat-item:nth-child(2) .stat-number { color: #a78bfa; }

/* Box 3: deep amber/gold — 450M+ */
.stat-item:nth-child(3) {
  background: linear-gradient(135deg, #4a2c00 0%, #2f1c00 100%);
  border-left: 3px solid #f59e0b;
}
.stat-item:nth-child(3) .stat-number { color: #f59e0b; }

/* Box 4: deep rose/crimson — 20%+ */
.stat-item:nth-child(4) {
  background: linear-gradient(135deg, #4a0d1a 0%, #320810 100%);
  border-left: 3px solid #f87171;
}
.stat-item:nth-child(4) .stat-number { color: #f87171; }

.stat-number {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1;
}
.stat-label {
  font-size: var(--fs-xsmall);
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.market-close {
  font-size: var(--fs-body);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* =============================================
   META ADS & CONTENT — 40/60 split
   ============================================= */
.deep-dive {
  padding: 80px 0;
  background: var(--bg-white);
}
.deep-dive + .deep-dive {
  background: var(--bg-white);
}
.deep-dive-inner {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 48px;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.deep-dive-text { padding: 20px 0; }
.deep-dive-flip .deep-dive-inner {
  grid-template-columns: 60fr 40fr;
}
.deep-dive-flip .deep-dive-text { padding: 20px 0; }

.deep-dive-text .section-rule { color: var(--navy); }
.deep-dive-text p {
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 14px;
}
.deep-dive-text strong { color: var(--navy); font-weight: 700; }

/* =============================================
   PILLAR PANELS — layered backgrounds
   Layer order (bottom to top):
     1. CSS gradient (background property)
     2. ::before — image overlay
     3. ::after  — dark scrim for legibility
     4. .pillar-card content (z-index: 3)
   ============================================= */
.deep-dive-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  /* Fallback base */
  background: #0d1a33;
}

/* META ADS — bright blue top-left → deep navy bottom-right */
.deep-dive:not(.deep-dive-flip) .deep-dive-pillars {
  background: linear-gradient(135deg, #1a6fd4 0%, #1050a8 20%, #0a3470 45%, #061d42 70%, #020e20 100%);
}
.deep-dive:not(.deep-dive-flip) .deep-dive-pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('metaBG.png') center center / cover no-repeat;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}
.deep-dive:not(.deep-dive-flip) .deep-dive-pillars::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 20, 0.30);
  z-index: 2;
  pointer-events: none;
}

/* CONTENT — #AF4C3C (terracotta-red) top-left → dark blue bottom-right */
.deep-dive-flip .deep-dive-pillars {
  background: linear-gradient(135deg, #AF4C3C 0%, #7a2e20 25%, #4a1a3a 55%, #1a1060 80%, #080525 100%);
}
.deep-dive-flip .deep-dive-pillars::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('contentBG.png') center center / cover no-repeat;
  opacity: 0.55;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}
.deep-dive-flip .deep-dive-pillars::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 24, 0.20);
  z-index: 2;
  pointer-events: none;
}

/* Pillar cards sit above all overlays */
.pillar-card {
  position: relative;
  z-index: 3;
  padding: 28px 44px 28px 44px;
}
.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
  max-width: 200px;
}
.pillar-card p {
  font-size: var(--fs-body);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.6;
}

/* =============================================
   HOW WE CAN HELP
   ============================================= */
.services {
  padding: 90px 0;
  background: var(--bg-white);
}
/* section title on white background — navy */
.services .section-title-center { color: var(--navy); }
.services .section-eyebrow { color: var(--red); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Odd = white, even = darker off-white */
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: background var(--t), box-shadow var(--t), transform var(--t), border-color var(--t);
  cursor: pointer;
}
.service-card:nth-child(even) {
  background: var(--bg-light);
  border-color: transparent;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.service-card:not(:nth-child(even)):hover {
  background: var(--bg-light);
  border-color: transparent;
}
.service-card:nth-child(even):hover {
  background: var(--bg-white);
  border-color: var(--border);
}
.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
}
.service-icon img { width: 52px; height: 52px; object-fit: contain; }
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.525rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
/* Body text in service cards = same as site body text */
.service-card p {
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.65;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 90px 0;
  background: var(--bg-light);
}
.contact-headline-wrap {
  text-align: center;
  margin-bottom: 14px;
}
/* Underline same width as .section-rule-center (420px) */
.contact-headline-wrap::after {
  content: '';
  display: block;
  width: 420px;
  max-width: 90%;
  height: 3px;
  background: var(--red);
  margin: 8px auto 0;
  border-radius: 2px;
}
.contact-subhead {
  text-align: center;
  color: var(--text-body);
  font-size: var(--fs-body);
  max-width: 640px;
  margin: 0 auto 52px;
  line-height: 1.6;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form-wrap h3,
.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text-dark);
  font-family: var(--font);
  font-size: var(--fs-small);
  outline: none;
  resize: vertical;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,16,32,0.1);
}
.form-group select option[value=""][disabled] { color: #aaa; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,16,32,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.form-success {
  display: none;
  color: #1a8a4a;
  font-size: var(--fs-small);
  margin-top: 10px;
  text-align: center;
}
.contact-info-sub {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t);
}
.contact-detail:hover { border-color: var(--red); }
.contact-icon { font-size: 1rem; color: var(--red); flex-shrink: 0; }
.contact-detail a {
  color: var(--text-body);
  font-size: var(--fs-body);
  transition: color var(--t);
}
.contact-detail a:hover { color: var(--red); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark);
  padding: 50px 0 24px;
}
.footer-top { margin-bottom: 40px; }
.footer-brand img { margin-bottom: 18px; }
.footer-brand p {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 560px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.35);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   EYEBROW LABELS
   ============================================= */
.section-eyebrow {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.eyebrow-center { text-align: center; display: block; }
.eyebrow-light { color: rgba(110,193,228,0.9); }

/* =============================================
   HERO ANCHOR — right-side stat panel
   ============================================= */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-anchor {
  flex-shrink: 0;
  width: 260px;
}
.hero-anchor-inner {
  background: rgba(10, 15, 30, 0.72);
  border: 1px solid rgba(110,193,228,0.25);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-anchor-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-anchor-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}
.hero-anchor-divider {
  height: 1px;
  background: rgba(110,193,228,0.2);
  margin: 4px 0;
}
.hero-anchor-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-anchor-sub-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #6ec1e4;
  line-height: 1;
}
.hero-anchor-sub-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.hero-anchor-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ec1e4;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color var(--t);
}
.hero-anchor-cta:hover { color: #fff; }

/* =============================================
   SECTION DIAGONAL DIVIDERS
   Zero-height elements that paint a clipped shape
   ============================================= */
.divider-down-white,
.divider-up-white,
.divider-down-light {
  height: 60px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  line-height: 0;
}
/* Hero (dark) → About (white): white wedge pointing down */
.divider-down-white {
  background: var(--bg-white);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
/* Services (white) → Contact (light): light wedge pointing up */
.divider-up-white {
  background: var(--bg-light);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  position: relative;
  z-index: 2;
}
/* After services → contact */
.divider-down-light {
  background: var(--bg-light);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  position: relative;
  z-index: 2;
}

/* SERVICE CARD ICONS — restored original SVG files */
.service-icon svg { display: none; }
.service-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

/* =============================================
   FOOTER — with nav + secondary CTA
   ============================================= */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 40px;
  padding-bottom: 40px;
}
.footer-brand { max-width: 420px; }
.footer-cta {
  margin-top: 24px;
  display: inline-block;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.footer-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.footer-nav a {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  transition: color var(--t);
}
.footer-nav a:hover { color: #fff; }

/* =============================================
   WHAT HAPPENS NEXT — contact info steps
   ============================================= */
.what-next {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.what-next h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.next-step {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.next-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1.2;
  min-width: 28px;
}
.next-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.next-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}



/* =============================================
   RESPONSIVE — TABLET (≤960px)
   ============================================= */
@media (max-width: 960px) {

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero anchor — hide on tablet */
  .hero-anchor { display: none; }
  .hero-content { flex-direction: column; align-items: flex-start; }

  /* Footer top stacks */
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 16px 28px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .market-stats { grid-template-columns: 1fr 1fr; }

  /* Deep-dive sections — stack vertically, text first */
  .deep-dive-inner {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding: 0 20px;
  }
  .deep-dive-text { padding: 32px 0 0 !important; order: 1; }
  .deep-dive-pillars {
    order: 2;
    border-radius: 16px !important;
    min-height: 0;
    /* Pillar inner grid stays 2-col at tablet — wide enough */
    grid-template-columns: 1fr 1fr;
  }
  /* Flip section: pillars were first in DOM — keep text above on mobile */
  .deep-dive-flip .deep-dive-text { order: 1; }
  .deep-dive-flip .deep-dive-pillars { order: 2; }

  /* Reduce pillar card padding at tablet */
  .pillar-card { padding: 28px 32px; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤600px)
   ============================================= */
@media (max-width: 600px) {

  /* Base sizing */
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .hero-content { padding: 0 16px; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-text { padding-top: var(--nav-h); padding-bottom: 48px; max-width: 100%; }
  .hero-eyebrow { font-size: 1rem; }
  .hero-headline { font-size: 2.2rem; }
  .hero-body { font-size: var(--fs-small); }

  /* Section headings */
  .section-title,
  .section-title-center,
  .contact-headline { font-size: 2rem; }
  .deep-dive-text .section-title { font-size: 2.2rem; }

  /* About */
  .about { padding: 60px 0; }
  .about-grid { gap: 32px; }
  .market-card { padding: 28px 20px; }
  .market-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 14px 10px; }
  .stat-number { font-size: 1.25rem; }

  /* Deep-dive — collapse pillar inner grid to 1 col */
  .deep-dive { padding: 56px 0; }
  .deep-dive-inner { padding: 0 16px; gap: 24px; }
  .deep-dive-text { padding: 24px 0 0 !important; }
  .deep-dive-pillars {
    grid-template-columns: 1fr !important;
    border-radius: 16px !important;
  }
  /* Remove max-width constraint on pillar headings at mobile */
  .pillar-card { padding: 24px 20px; }
  .pillar-card h3 {
    max-width: none;
    font-size: 1.5rem;
  }
  .pillar-card p { font-size: var(--fs-small); }

  /* How We Can Help */
  .services { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .section-rule-center { width: 90%; }

  /* Contact */
  .contact { padding: 60px 0; }
  .contact-headline-wrap::after { width: 90%; }
  .contact-subhead { font-size: var(--fs-small); }
  .contact-grid { gap: 32px; }

  /* Footer */
  .footer { padding: 40px 0 20px; }
  .footer-brand p { max-width: 100%; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤380px)
   ============================================= */
@media (max-width: 380px) {
  .hero-headline { font-size: 1.9rem; }
  .section-title,
  .section-title-center { font-size: 1.75rem; }
  .deep-dive-text .section-title { font-size: 1.9rem; }
  .market-stats { grid-template-columns: 1fr; }
  .stat-item { padding: 12px 10px; }
  .about-text .section-title { font-size: 1.75rem; }
  .pillar-card h3 { font-size: 1.3rem; }
  .services-grid { gap: 14px; }
}
