/* ============================================================
   Scale Up Local — styles.css (v1)
   ============================================================ */

:root {
  /* Core navy scale */
  --navy-900: #0A1B33;
  --navy-800: #0F2647;
  --navy-700: #16345F;
  --navy-600: #1E4780;

  /* Primary brand blue */
  --blue-500: #2E6FE0;
  --blue-400: #4F8BF0;

  /* CTA accent (the one pop colour) */
  --cta:        #FF7A29;
  --cta-hover:  #FF9147;
  --cta-press:  #E8641A;

  /* Neutrals */
  --white:   #FFFFFF;
  --paper:   #F6F8FC;
  --ink-900: #0C1524;
  --ink-700: #33415A;
  --ink-500: #6B7A93;
  --line:    #E2E8F2;

  /* Text on dark */
  --on-dark-strong: #FFFFFF;
  --on-dark-soft:   #C4D2E8;
  --on-dark-muted:  #8CA0C0;

  --tick: #34C77B;

  /* Type scale */
  --fs-hero:    clamp(2.5rem, 5.2vw, 4rem);
  --fs-h2:      clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-h3:      clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-lead:    clamp(1.05rem, 1.4vw, 1.3rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Layout */
  --container: 1160px;
  --pad-x: clamp(1.25rem, 5vw, 2rem);
  --pad-y: clamp(4rem, 9vw, 7rem);
  --radius-card: 16px;
  --radius-btn: 10px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
section { padding-block: var(--pad-y); }
:where(#hero, #how, #services, #results, #faq) { scroll-margin-top: 80px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cta);
  color: var(--ink-900);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrows & section heads ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}
.eyebrow-dark { color: var(--blue-400); }
.eyebrow-light { color: var(--blue-500); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; line-height: 1.1; }
.section-lead { margin-top: 1rem; }
.lead { font-size: var(--fs-lead); font-weight: 400; }

/* Dark-section heads get light text */
.how .section-head h2, .results .section-head h2 { color: var(--on-dark-strong); }
.how .section-lead, .results .section-lead { color: var(--on-dark-soft); }
/* Light-section heads get ink text */
.services .section-head h2, .faq .section-head h2 { color: var(--ink-900); }
.services .section-lead, .faq .section-lead { color: var(--ink-700); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  min-height: 48px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-compact { padding: 0.6rem 1.1rem; min-height: 40px; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--cta);
  color: var(--ink-900);
  box-shadow: 0 6px 18px rgba(255,122,41,0.28);
}
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,122,41,0.34); }
.btn-primary:active { background: var(--cta-press); transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* Ghost on light backgrounds */
.services .btn-ghost, .faq .btn-ghost { border-color: var(--ink-500); color: var(--ink-900); }
.services .btn-ghost:hover, .faq .btn-ghost:hover { background: rgba(12,21,36,0.05); }

.btn:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--navy-900);
  border-bottom-color: var(--navy-600);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 70px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-right: auto;
}
.wordmark-arrow { color: var(--blue-400); }
.wordmark-accent { color: var(--blue-400); }
.wordmark-logo { height: 34px; width: auto; }
.footer-logo { height: 40px; width: auto; }

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  color: var(--on-dark-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  background: var(--navy-800);
  border-top: 1px solid var(--navy-600);
  border-bottom: 1px solid var(--navy-600);
  padding: 1.25rem var(--pad-x) 1.5rem;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.mobile-menu nav a {
  color: var(--on-dark-soft);
  font-weight: 500;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu nav a:hover { color: var(--white); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-900);
  padding-top: clamp(7rem, 14vh, 10rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  max-width: 130%;
  background: radial-gradient(ellipse at 50% 0%, rgba(46,111,224,0.25), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
}
.pill {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-dark-soft);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero .lead {
  color: var(--on-dark-soft);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.trust-strip {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}
.trust-strip li { display: inline-flex; align-items: center; gap: 0.4rem; }
.tick {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--tick);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================================
   How it works
   ============================================================ */
.how { background: var(--navy-800); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.step-card {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--blue-400);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.step-icon svg {
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--blue-400);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: var(--fs-h3); color: var(--white); margin-bottom: 0.6rem; }
.step-card p { color: var(--on-dark-soft); font-size: 0.975rem; }

/* Connector chevrons (desktop only) */
.steps > .step-card:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -1.05rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--navy-600);
  z-index: 2;
}

/* ============================================================
   Services grid
   ============================================================ */
.services { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: 0 6px 24px rgba(12,21,36,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(12,21,36,0.10); }
.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(46,111,224,0.08);
  margin-bottom: 1.1rem;
}
.svc-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: var(--fs-h3); color: var(--ink-900); margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-700); font-size: 0.95rem; }

.services-cta, .faq-cta {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: var(--fs-lead);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ============================================================
   Stats band
   ============================================================ */
.results { background: var(--navy-800); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat { padding: 1rem 0.5rem; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.stat-unit { color: var(--blue-400); }
.stat-label { color: var(--on-dark-muted); font-size: var(--fs-small); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--white); }
.faq-inner { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--blue-400); outline-offset: -3px; }
.chev {
  width: 12px; height: 12px;
  border-right: 2px solid var(--ink-500);
  border-bottom: 2px solid var(--ink-500);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}
.faq details[open] .chev { transform: rotate(225deg); margin-top: 2px; }
.faq-body { padding: 0 1.35rem 1.25rem; }
.faq-body p { color: var(--ink-700); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-900); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--navy-600);
}
.footer-brand .wordmark { margin-bottom: 1rem; }
.footer-tag { color: var(--on-dark-soft); margin-bottom: 0.4rem; }
.footer-trust { color: var(--on-dark-muted); font-size: var(--fs-small); }
.footer-col h4, .footer-cta-card h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--on-dark-soft); font-size: 0.95rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-cta-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}
.footer-mail { display: inline-block; margin-top: 0.9rem; color: var(--blue-400); font-size: 0.9rem; }
.footer-mail:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}
.footer-legal a { color: var(--on-dark-muted); }
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   Sticky mobile CTA bar
   ============================================================ */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0.75rem var(--pad-x);
  background: var(--navy-900);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(120%);
  transition: transform .25s ease;
}
.mobile-cta-bar.visible { transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .steps > .step-card:not(:last-child)::after { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta-card { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Leave room for sticky CTA bar when visible */
  body.cta-bar-active { padding-bottom: 76px; }
}

@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
  .mobile-cta-bar { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn-primary:hover { transform: none; }
  .service-card:hover { transform: none; }
}
