/* ==========================================================================
   Growth Senate LLP — Core Stylesheet (v2: light theme, dark hero bookend)
   ========================================================================== */

:root {
  /* Brand colours extracted directly from the Growth Senate logo file */
  --brand-navy-deep: #1D2E4F;
  --brand-navy-blue: #1A427A;
  --brand-bronze: #875429;
  --brand-gold: #B37820;

  /* Dark surfaces: hero, nav, footer, product mockups, ticker */
  --ink: #131F38;
  --ink-soft: #182A4A;
  --hairline-dark: #2B3E60;

  /* Light surfaces: everything else */
  --page-bg: #FFFFFF;
  --alt-bg: #F6F7FA;
  --surface: #FFFFFF;
  --surface-raised: #FAFBFC;
  --hairline: #E4E7EE;

  /* Accent + text */
  --gold: #B37820;
  --gold-bright: #C98A2E;
  --gold-dim: rgba(179, 120, 32, 0.10);
  --text-heading: #16213D;
  --text-body: #4A5568;
  --text-dim: #8992A3;
  --white: #F7F8FA;
  --slate: #4A5568;
  --slate-dim: #8992A3;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Courier New', monospace;

  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  background-color: var(--page-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.font-mono { font-family: var(--font-mono); letter-spacing: 0; }

.text-gold { color: var(--gold); }
.text-slate { color: var(--text-body); }
.text-slate-dim { color: var(--text-dim); }
.text-ink { color: var(--text-heading); }

/* Dark-context utilities (hero / nav / footer / mockups) */
.bg-ink { background-color: var(--ink); }
.bg-ink-soft { background-color: var(--ink-soft); }
.dark-zone, .dark-zone h1, .dark-zone h2, .dark-zone h3 { color: var(--white); }
.dark-zone .text-slate { color: #A9B4C9; }
.dark-zone .text-slate-dim { color: #7C879C; }

.bg-surface { background-color: var(--surface); }
.bg-alt { background-color: var(--alt-bg); }

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

/* ---- Focus visibility (accessibility) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Nav (always dark navy — brand bookend) ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(19, 31, 56, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--hairline-dark);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.35);
}
.nav-link {
  color: #A9B4C9;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
}

.btn-gold {
  background: var(--gold);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 3px;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-outline {
  border: 1px solid var(--hairline-dark);
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(179,120,32,0.12); }

/* Outline button variant for use on light backgrounds */
.btn-outline-dark {
  border: 1px solid var(--hairline);
  color: var(--text-heading);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 3px;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-dark:hover { border-color: var(--gold); background: var(--gold-dim); }

/* ---- Hero (dark navy, full bleed) ---- */
.hero-section {
  background: radial-gradient(ellipse 90% 70% at 50% -10%, var(--ink-soft) 0%, var(--ink) 55%);
  position: relative;
}
.hero-grid-bg { position: relative; }
.hero-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
}
.hero-grid-bg > * { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

/* ---- Reconciliation ticker (signature element, dark) ---- */
.ticker-rail {
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-rail::before, .ticker-rail::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-rail::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.ticker-rail::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 38s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #A9B4C9;
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--hairline-dark);
}
.ticker-track span .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
}
.ticker-track span.warn .dot { background: var(--gold); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Dashboard mockup (dark, sits on hero or light section) ---- */
.mock-window {
  background: var(--ink);
  border: 1px solid var(--hairline-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(19,31,56,0.35), 0 0 0 1px rgba(179,120,32,0.06);
}
.mock-bar {
  background: var(--ink-soft);
  border-bottom: 1px solid var(--hairline-dark);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline-dark); }

/* ---- Cards (white, light theme) ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(19,31,56,0.04);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: rgba(179,120,32,0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(19,31,56,0.16);
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 18px;
}

/* Editorial numbered index — replaces icon-chip pattern on report-style grids */
.card-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.card-index::after {
  content: attr(data-total);
  color: var(--text-dim);
  font-size: 11px;
}

/* Dark card variant (used inside hero/dark zones) */
.card-dark {
  background: var(--ink-soft);
  border: 1px solid var(--hairline-dark);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card-dark:hover { border-color: rgba(179,120,32,0.45); transform: translateY(-3px); }

/* ---- Section labels ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dark-zone .section-label { color: #7C879C; }

/* ---- Comparison table ---- */
.compare-row { border-bottom: 1px solid var(--hairline); }
.compare-row:last-child { border-bottom: none; }

/* ---- Stat ---- */
.stat-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-heading);
}
.dark-zone .stat-num { color: var(--white); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-heading);
}
.faq-q i { transition: transform 0.25s ease; color: var(--gold); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }

/* ---- Form ---- */
.field label {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 12px 14px;
  color: var(--text-heading);
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }

/* ---- Footer (dark navy — brand bookend) ---- */
.footer-link {
  color: #A9B4C9;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--gold); }

/* ---- Photo panels ---- */
.photo-panel {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,31,56,0) 40%, rgba(19,31,56,0.55) 100%);
  pointer-events: none;
}
.photo-caption {
  position: absolute;
  left: 20px; bottom: 18px;
  right: 20px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  z-index: 2;
}

/* ---- Utility fade-in fallback if AOS not loaded ---- */
.fade-fallback { opacity: 1; }

html, body { max-width: 100%; }

/* ---- Glass badge (used on dark hero) ---- */
.glass-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Mega menu ---- */
.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(680px, 90vw);
  background: var(--ink);
  border: 1px solid var(--hairline-dark);
  border-radius: 10px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.45);
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 200px;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7C879C;
  margin-bottom: 12px;
}
.mega-menu-link {
  display: block;
  font-size: 14.5px;
  color: #C3CBDA;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.mega-menu-link:hover { color: var(--gold); }
.mega-menu-featured {
  background: var(--ink-soft);
  border: 1px solid var(--hairline-dark);
  border-radius: 8px;
  padding: 16px;
  display: block;
  transition: border-color 0.2s ease;
}
.mega-menu-featured:hover { border-color: rgba(179,120,32,0.5); }
.nav-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.chevron-rotate { transition: transform 0.2s ease; }
.nav-link-btn[aria-expanded="true"] .chevron-rotate { transform: rotate(180deg); }

/* ---- Floating action buttons ---- */
.fab-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease, visibility 0.25s;
  cursor: pointer;
  border: none;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -6px rgba(0,0,0,0.4); }

.fab-whatsapp {
  background: #25D366;
  position: relative;
}
.fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: fab-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp::before { animation: none; }
}

.fab-top {
  background: var(--ink);
  border: 1px solid var(--hairline-dark);
  color: var(--gold);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.fab-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .fab-stack { right: 14px; bottom: 14px; }
  .fab { width: 46px; height: 46px; font-size: 18px; }
}

/* ---- Mobile menu ---- */
#mobileMenu { transition: max-height 0.3s ease, opacity 0.3s ease; }

/* Mouse-glow hover (cards only, disabled on touch devices) */
@media (hover: hover) and (pointer: fine) {
  .card { position: relative; overflow: hidden; }
  .card::before {
    content: '';
    position: absolute;
    top: var(--my, 50%);
    left: var(--mx, 50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(179,120,32,0.10) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
  }
  .card:hover::before { opacity: 1; }
  .card > * { position: relative; z-index: 1; }
}



/* scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--page-bg); }
::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
