/* Stratagon.ai — Design System (Redesigned)
   Aesthetic: Light base with bold color section breaks
   Fonts: Inter (body) + Lora (headings) — Professional B2B consulting aesthetic
   Colors: White/light gray base + deep navy, forest green, rich colors for sections
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap');

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

:root {
  --bg:        #ffffff;
  --bg2:       #f8f9fc;
  --bg3:       #f2f4f8;
  --surface:   #ffffff;
  --surface2:  #f2f4f8;
  --border:    rgba(0,0,0,0.08);
  --border2:   rgba(0,0,0,0.12);
  --gold:      #d4a843;
  --gold-lt:   #e8c06a;
  --gold-dim:  rgba(212,168,67,0.1);
  /* Bold section colors */
  --navy:      #1a3b5c;
  --navy-dark: #0f1f2e;
  --forest:    #1a4d2e;
  --charcoal:  #2b2b2b;
  --text:      #1a1a1a;
  --text-2:    #4a4a4a;
  --text-3:    #7a7a7a;
  --text-light: #ffffff;
  --white:     #ffffff;
  --radius:    6px;
  --radius-lg: 12px;
  --nav-h:     72px;
  --max-w:     1180px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle background texture for light mode */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.01'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

/* ───── TYPOGRAPHY ───── */
h1, h2, h3, h4 {
  font-family: 'Lora', -apple-system, 'Georgia', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text-2); }

a { color: inherit; text-decoration: none; }

strong { color: var(--text); font-weight: 600; }

/* ───── NAV ───── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* SVG logo sizing */
.stratagon-logo-svg {
  height: 36px;
  width: auto;
  display: block;
}

/* Slightly smaller in footer context */
.nav-logo-footer .stratagon-logo-svg {
  height: 32px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gold-lt) !important;
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

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

/* ───── SECTION SPACING ───── */
section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ───── LABEL / EYEBROW ───── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--gold);
}

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text-3);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 67, 0.05);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ───── CARDS ───── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card-gold {
  border-color: rgba(212, 168, 67, 0.25);
}

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

/* ───── STAT/NUMBER ───── */
.stat-number {
  font-family: 'Lora', -apple-system, 'Georgia', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

/* ───── DIVIDERS ───── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ───── GRID ───── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ───── HERO ───── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f0f4f9 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ───── PAGE HERO (inner pages) ───── */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

/* ───── BOLD COLOR SECTIONS ─────
   Override CSS custom properties so ALL child elements — including those
   with inline styles like color: var(--text-3) — resolve to light values
   that pass WCAG AA contrast on dark backgrounds.                       */
.section-navy,
.section-forest,
.cta-band {
  --text:   #ffffff;
  --text-2: rgba(255,255,255,0.85);
  --text-3: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.15);
  --border2: rgba(255,255,255,0.2);
  color: var(--text-light);
}

.section-navy {
  background: linear-gradient(135deg, var(--navy) 0%, #254a75 100%) !important;
}

.section-forest {
  background: linear-gradient(135deg, var(--forest) 0%, #2d6a42 100%) !important;
}

/* Headings: white on dark backgrounds */
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4,
.section-forest h1, .section-forest h2, .section-forest h3, .section-forest h4,
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4 {
  color: #ffffff;
}

/* Body text: high-contrast white */
.section-navy p,
.section-forest p,
.cta-band p {
  color: rgba(255,255,255,0.85);
}

/* Strong tags inside dark sections */
.section-navy strong,
.section-forest strong,
.cta-band strong {
  color: #ffffff;
}

/* Eyebrow labels keep gold on dark sections */
.section-navy .eyebrow,
.section-forest .eyebrow,
.cta-band .eyebrow {
  color: var(--gold);
}

/* Feature list items: readable on dark backgrounds */
.section-navy .feature-list li,
.section-forest .feature-list li {
  color: rgba(255,255,255,0.85);
}

/* Cards on dark backgrounds */
.section-navy .card,
.section-forest .card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.section-navy .card:hover,
.section-forest .card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
}

/* Card headings on dark backgrounds (Satoshi h4s) */
.section-navy .card h4,
.section-forest .card h4 {
  color: #ffffff;
}

/* Highlight boxes on dark backgrounds */
.section-navy .highlight-box,
.section-forest .highlight-box {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

/* Outline buttons on dark backgrounds — white border + text */
.section-navy .btn-outline,
.section-forest .btn-outline,
.cta-band .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

.section-navy .btn-outline:hover,
.section-forest .btn-outline:hover,
.cta-band .btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212,168,67,0.12);
  color: #ffffff;
}

/* Step numbers keep gold on dark backgrounds */
.section-navy .step-num,
.section-forest .step-num {
  color: var(--gold);
  border-color: rgba(212,168,67,0.4);
}

/* Process step timeline on dark backgrounds */
.section-navy .process-step:not(:last-child)::after,
.section-forest .process-step:not(:last-child)::after {
  background: linear-gradient(to bottom, rgba(212,168,67,0.3), transparent);
}

/* Testimonials inside dark sections — opaque white background, restore dark text */
.section-navy .testimonial,
.section-forest .testimonial {
  --text:   #1a1a1a;
  --text-2: #4a4a4a;
  --text-3: #7a7a7a;
  --border: rgba(0,0,0,0.08);
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

.section-navy .testimonial .testimonial-text,
.section-forest .testimonial .testimonial-text {
  color: #1a1a1a;
}

.section-navy .testimonial .testimonial-name,
.section-forest .testimonial .testimonial-name {
  color: #1a1a1a;
}

.section-navy .testimonial .testimonial-role,
.section-forest .testimonial .testimonial-role {
  color: #7a7a7a;
}

/* ───── BADGE ───── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,168,67,0.12);
  color: #c49020;
  border: 1px solid rgba(212,168,67,0.25);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ───── ICON BOX ───── */
.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ───── FEATURE LIST ───── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%23d4a843' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ───── CTA BAND ───── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #254a75 100%);
  border-top: none;
  border-bottom: none;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--text-light);
}

.cta-band h2 {
  color: var(--text-light);
}

.cta-band p {
  color: rgba(255,255,255,0.85);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

.cta-band > * { position: relative; z-index: 1; }

/* ───── FOOTER ───── */
footer {
  background: linear-gradient(135deg, var(--charcoal) 0%, #3a3a3a 100%);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 64px 0 32px;
  color: var(--text-light);
}

footer .nav-logo {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  margin-top: 12px;
  color: rgba(255,255,255,0.7);
}

.footer-col h5 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.5);
}

/* ───── UTILITIES ───── */
.text-gold { color: var(--gold); }
.text-2 { color: var(--text-2); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.gap-8 { gap: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* ───── PRICING TABLE ───── */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pricing-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffbf5 0%, #fffaf2 100%);
  box-shadow: 0 8px 24px rgba(212,168,67,0.15);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

.price-amount {
  font-family: 'Lora', -apple-system, 'Georgia', serif;
  font-size: 2.8rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.price-meta {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 28px;
}

/* ───── TESTIMONIAL ───── */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.testimonial:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.testimonial::before {
  content: '\201C';
  font-family: 'Lora', -apple-system, 'Georgia', serif;
  font-size: 5rem;
  color: rgba(212,168,67,0.2);
  opacity: 1;
  position: absolute;
  top: 16px;
  left: 28px;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
  padding-top: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ───── FORM ───── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

input, textarea, select {
  background: #fafbfc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder {
  color: var(--text-3);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  background: rgba(212,168,67,0.06);
}

select {
  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='%2362657a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

select option {
  background: var(--bg2);
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ───── COMING SOON TEASER ───── */
.coming-soon {
  background: rgba(212,168,67,0.05);
  border: 1px dashed rgba(212,168,67,0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  opacity: 0.9;
}

.coming-soon .badge {
  margin-bottom: 12px;
}

/* ───── SCROLL ANIMATION ───── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───── RESPONSIVE: TABLET (≤1024px) ───── */
@media (max-width: 1024px) {
  :root { --max-w: 900px; }

  /* Reduce large gaps on tablet */
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* All inline 2-col grids: reduce gap */
  section .container > div[style*="grid-template-columns"],
  section .container div[style*="grid-template-columns"] {
    gap: 32px !important;
  }

  section { padding: 72px 0 !important; }
  .section-sm { padding: 48px 0 !important; }

  /* Services pricing grid (services.html) */
  .pricing-card { padding: 28px !important; }

  /* Footer: 2-col on tablet */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}

/* ───── RESPONSIVE: MOBILE (≤768px) ───── */
@media (max-width: 768px) {

  /* ── NAV ── */
  .nav-links { display: none; }
  /* backdrop-filter on <nav> creates a containing block for fixed descendants,
     so position: fixed here resolves relative to the 72px nav, not the viewport.
     Use position: absolute + top: 100% to drop below the nav correctly. */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
    z-index: 99;
    overflow-y: auto;
  }
  .nav-links.open a {
    font-size: 1rem;
    padding: 8px 0;
  }
  .nav-mobile-toggle { display: flex; }
  /* Show CTA in mobile menu */
  .nav-links.open .nav-cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    margin-top: 8px;
    font-size: 0.95rem !important;
  }
  /* Only hide CTA when menu is closed */
  .nav-links:not(.open) .nav-cta { display: none; }

  /* ── TYPOGRAPHY ── */
  h1 { font-size: 1.9rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.5rem !important; line-height: 1.2 !important; }
  h3 { font-size: 1.2rem !important; }
  h4 { font-size: 1.05rem !important; }
  p { font-size: 0.95rem; }

  /* ── SECTION SPACING ── */
  section { padding: 48px 0 !important; }
  .section-sm { padding: 32px 0 !important; }
  .container { padding: 0 16px !important; }

  /* ── HERO ── */
  .hero {
    min-height: auto !important;
    padding-top: calc(var(--nav-h) + 32px) !important;
    padding-bottom: 48px !important;
  }

  .hero .container > div[style*="max-width"] {
    max-width: 100% !important;
  }

  .hero p[style*="font-size: 1.2rem"] {
    font-size: 1rem !important;
  }

  /* Hide decorative background circles that cause overflow */
  .hero > div[style*="position: absolute"] {
    display: none !important;
  }

  /* ── PAGE HERO (inner pages) ── */
  .page-hero {
    padding: calc(var(--nav-h) + 32px) 0 32px !important;
  }
  .page-hero h1 { font-size: 1.8rem !important; }
  .page-hero p { font-size: 0.95rem !important; }

  /* ── ALL GRID OVERRIDES (beats inline styles) ── */
  /* Universal catch-all: ANY element with inline grid-template-columns
     collapses to single column on mobile. Prevents overflow from fixed-width
     columns (220px, 240px, etc.) that don't fit a 375px viewport. */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Grid utility classes also go single column */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Reduce large inline gaps */
  [style*="gap: 80px"],
  [style*="gap: 64px"],
  [style*="gap: 48px"] {
    gap: 24px !important;
  }
  [style*="gap: 32px"] {
    gap: 16px !important;
  }

  /* ── FOOTER ── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .footer-brand { text-align: center; }
  .footer-brand p { max-width: 100% !important; margin: 12px auto 0; }
  .footer-brand .nav-logo { justify-content: center; }
  .footer-col { text-align: center; }
  .footer-col ul { align-items: center; }
  footer { padding: 40px 0 24px !important; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* ── CARDS ── */
  .card { padding: 24px !important; }
  .card[style*="padding: 40px"] { padding: 24px !important; }
  .pricing-card { padding: 24px !important; }

  /* ── BUTTONS: full-width on mobile ── */
  .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 16px 24px !important;
    font-size: 0.95rem;
  }
  .btn { min-height: 44px; }
  /* Button groups: stack vertically */
  .flex.gap-4[style*="flex-wrap"],
  .flex.gap-4.justify-center {
    flex-direction: column !important;
    width: 100%;
  }
  .flex.gap-4[style*="flex-wrap"] .btn,
  .flex.gap-4.justify-center .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── CTA BAND ── */
  .cta-band { padding: 48px 0 !important; }
  .cta-band h2 {
    font-size: 1.5rem !important;
    max-width: 100% !important;
  }
  .cta-band p {
    max-width: 100% !important;
    font-size: 0.95rem !important;
  }

  /* ── HIGHLIGHT BOX ── */
  .highlight-box {
    padding: 20px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .highlight-box[style*="padding: 48px"] { padding: 24px !important; }
  .highlight-box[style*="padding: 36px"] { padding: 20px !important; }
  .highlight-box[style*="padding: 40px"] { padding: 20px !important; }

  /* ── STAT NUMBERS: scale down ── */
  .stat-number { font-size: 2rem !important; }

  /* ── TESTIMONIALS ── */
  .testimonial { padding: 24px !important; }
  .testimonial::before { font-size: 3.5rem; top: 10px; left: 18px; }
  .testimonial-text { font-size: 0.95rem !important; }

  /* ── MARGIN UTILITIES: scale down ── */
  .mt-16 { margin-top: 40px !important; }
  .mt-12 { margin-top: 32px !important; }
  .mb-12 { margin-bottom: 32px !important; }
  .mb-8 { margin-bottom: 24px !important; }

  /* ── BADGE: center ── */
  .badge { font-size: 0.72rem; }

  /* ── ICON BOX: slightly smaller ── */
  .icon-box { width: 42px; height: 42px; font-size: 1.2rem !important; }

  /* ── EYEBROW ── */
  .eyebrow { font-size: 0.7rem; }

  /* ── SERVICES PAGE: retainer card layout fix ── */
  .card.card-gold [style*="min-width: 180px"] {
    min-width: auto !important;
    text-align: left !important;
  }

  /* ── PROCESS STEPS ── */
  .process-step { gap: 14px; padding-bottom: 28px; }

  /* ── IMAGES/SVG: constrain to viewport ── */
  img, svg:not(.stratagon-logo-svg) { max-width: 100%; height: auto; }

  /* Logo SVG: explicit height (prevents zero-height collapse in mobile WebKit)
     plus max-width cap to prevent horizontal overflow from #1493149 */
  .stratagon-logo-svg {
    height: 28px !important;
    width: auto !important;
    max-width: 60vw !important;
  }

  /* ── PREVENT HORIZONTAL SCROLL + TEXT OVERFLOW ── */
  html, body {
    overflow-x: hidden !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  /* Force all grid children to respect container bounds */
  [style*="display: grid"] > *,
  .grid-2 > *, .grid-3 > *, .grid-4 > * {
    min-width: 0 !important;
  }

  /* ── NAV: tighter padding on mobile ── */
  .nav-inner { padding: 0 16px !important; }

  /* ── COMING SOON BOX ── */
  .coming-soon { padding: 24px !important; }

  /* ── FEATURE LIST ── */
  .feature-list li { font-size: 0.9rem; }

  /* Trust bar on homepage */
  .flex.gap-8[style*="opacity: 0.6"] {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }
  /* Hide the dot separators on mobile */
  .flex.gap-8[style*="opacity: 0.6"] > span[style*="color: var(--text-3)"] {
    display: none;
  }

  /* ── CONTACT FORM ── */
  .contact-form-wrap { padding: 20px !important; }
  input, textarea, select {
    padding: 14px 16px !important;
    font-size: 1rem !important;
    min-height: 48px;
  }
  textarea { min-height: 100px !important; }
  button[type="submit"] {
    min-height: 52px !important;
    font-size: 1rem !important;
  }
}

/* ───── RESPONSIVE: SMALL MOBILE (≤480px) ───── */
@media (max-width: 480px) {
  h1 { font-size: 1.65rem !important; }
  h2 { font-size: 1.35rem !important; }
  h3 { font-size: 1.1rem !important; }

  .container { padding: 0 14px !important; }

  .hero {
    padding-top: calc(var(--nav-h) + 20px) !important;
    padding-bottom: 36px !important;
  }

  section { padding: 36px 0 !important; }

  .card { padding: 18px !important; }
  .pricing-card { padding: 18px !important; }

  .footer-grid { gap: 20px !important; }

  .stat-number { font-size: 1.7rem !important; }

  .stratagon-logo-svg { height: 24px !important; width: auto !important; max-width: 50vw !important; }

  /* Tighter nav padding */
  .nav-inner { padding: 0 12px !important; }

  /* Tighter CTA band */
  .cta-band { padding: 36px 0 !important; }
  .cta-band h2 { font-size: 1.3rem !important; }
}

/* ───── ANIMATIONS ───── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, var(--gold) 25%, var(--gold-lt) 50%, var(--gold) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ───── HORIZONTAL LINE DECORATION ───── */
.line-dec {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}

.line-dec-center {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 24px;
}

/* ───── NUMBERED STEP ───── */
.step-num {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(212,168,67,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

/* ───── PROCESS TIMELINE ───── */
.process-step {
  display: flex;
  gap: 20px;
  padding-bottom: 36px;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 44px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, rgba(212,168,67,0.3), transparent);
}

/* ───── HIGHLIGHT BOX ───── */
.highlight-box {
  background: linear-gradient(135deg, rgba(212,168,67,0.08) 0%, rgba(212,168,67,0.04) 100%);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ───── FAQ SECTION (services page, green section) ───── */
.section-forest > .container > div[style*="gap: 2px"] {
  gap: 8px !important;
}

.section-forest .card[style*="border-radius"] {
  border-radius: var(--radius-lg) !important;
}
