/* ==========================================================================
   LeeFO — Fractional CFO & Capital Advisory
   Design system per LeeFO_Brand_Spec.pdf
   ========================================================================== */

:root {
  /* Brand palette */
  --evergreen: #0C4A3E;   /* primary */
  --signal:    #16A06A;   /* accent — CTAs only */
  --navy:      #0E2A43;   /* secondary */
  --steel:     #34708F;   /* support */
  --ink:       #0E1A16;   /* text */
  --mist:      #F4F8F6;   /* surface */
  --white:     #FFFFFF;
  --signal-dark: #108355; /* CTA hover */
  --evergreen-tint: #E3EFEA;
  --border: #DCE7E2;

  /* Type */
  --font-sans: 'Red Hat Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Spectral', Georgia, serif; /* pull quotes only */

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 8px rgba(14, 26, 22, .06);
  --shadow-lg: 0 12px 40px rgba(14, 26, 22, .14);
  --container: 1160px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--evergreen); text-decoration: none; }
a:hover { color: var(--signal-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--evergreen); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { margin-top: 14px; font-size: 1.1rem; color: #3D544C; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  text-align: center;
}
.btn-primary { background: var(--signal); color: var(--white); }
.btn-primary:hover { background: var(--signal-dark); color: var(--white); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--evergreen); border-color: var(--evergreen); }
.btn-secondary:hover { background: var(--evergreen); color: var(--white); }
.btn-light { background: var(--white); color: var(--evergreen); }
.btn-light:hover { background: var(--mist); color: var(--evergreen); }
.btn-sm { padding: 11px 22px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.logo img { height: 34px; width: auto; align-self: flex-start; }
.logo-tagline {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--evergreen);
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav a, .nav-toggle-btn {
  display: block;
  white-space: nowrap;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 8px;
}
.main-nav a:hover, .nav-toggle-btn:hover { color: var(--evergreen); background: var(--mist); }
.nav-toggle-btn::after { content: ' ▾'; font-size: .7em; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 560px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  grid-template-columns: 1fr 1.2fr;
  gap: 4px 24px;
}
/* invisible bridge so the dropdown stays open while the mouse crosses the gap */
.dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.main-nav li.open .dropdown { display: grid; }
.dropdown-group-label {
  grid-column: span 1;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 6px 14px 2px;
}
.dropdown a { font-weight: 600; white-space: nowrap; line-height: 1.3; padding: 9px 14px; }
.dropdown a small {
  display: block;
  font-size: .74rem;
  font-weight: 500;
  color: #5A6E66;
  margin-top: 1px;
}
.dropdown a:hover small { color: var(--evergreen); }

.header-cta { flex-shrink: 0; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  position: relative;
}
.mobile-menu-btn span, .mobile-menu-btn span::before, .mobile-menu-btn span::after {
  content: '';
  position: absolute;
  left: 10px;
  width: 24px; height: 2.5px;
  background: var(--evergreen);
  border-radius: 2px;
  transition: transform .2s;
}
.mobile-menu-btn span { top: 21px; }
.mobile-menu-btn span::before { top: -8px; left: 0; }
.mobile-menu-btn span::after { top: 8px; left: 0; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(22, 160, 106, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--evergreen) 78%);
  color: var(--white);
  padding: 30px 0 52px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: #5CD6A4; }
.hero-sub { margin: 22px 0 34px; font-size: 1.18rem; line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .65); }

/* Hero calculator card — compact so it fits above the fold on a laptop */
.hero-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
}
.hero-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.hero-card .hero-card-sub { font-size: .88rem; color: #5A6E66; margin-bottom: 8px; }
.hero-card .btn { width: 100%; margin-top: 12px; padding: 13px 26px; }
.hero-card #miniCalc label { margin: 8px 0 3px; font-size: .84rem; }
.hero-card .calc-results { padding: 14px 18px; margin-top: 14px !important; }
.hero-card .calc-big { font-size: 1.8rem; }
.hero-card .calc-multiples { margin-top: 12px; gap: 10px; }
.hero-card .calc-multiple { padding: 9px; }
.hero-card .calc-note { margin-top: 8px; font-size: .74rem; }
.hero-card .input-affix input { padding: 8px 6px; }

/* ---------- Credibility bar ---------- */
.cred-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 40px 0 34px; }
.cred-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.cred-stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--evergreen); letter-spacing: -0.02em; }
.cred-stat span { font-size: .84rem; font-weight: 600; color: #5A6E66; }
.cred-trust { margin-top: 26px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--steel); }

/* Real result callout — hits you in the face */
.real-result {
  max-width: 940px;
  margin: 30px auto 0;
  background: linear-gradient(135deg, var(--evergreen), var(--navy));
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  text-align: center;
}
.real-result-badge {
  display: inline-block;
  background: var(--signal);
  color: var(--white);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.real-result p {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--white);
}
.real-result p b { color: #5CD6A4; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card p { font-size: .96rem; color: #3D544C; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--evergreen-tint);
  color: var(--evergreen);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.bg-mist { background: var(--mist); }

/* ---------- Monthly rhythm ---------- */
.rhythm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.rhythm-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.rhythm-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--evergreen);
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 14px;
}
.rhythm-step h3 { font-size: 1rem; margin-bottom: 8px; }
.rhythm-step p { font-size: .88rem; color: #3D544C; }
.rhythm-footnote {
  margin-top: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--evergreen);
}

/* ---------- Founder band ---------- */
.founder-band { background: var(--evergreen); color: var(--white); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.founder-band h2, .founder-band h3 { color: var(--white); }
.founder-band p { color: rgba(255, 255, 255, .85); }
.founder-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--white);
  border-left: 3px solid var(--signal);
  padding-left: 24px;
  margin: 26px 0;
}
.founder-photo {
  width: min(320px, 80%);
  border-radius: var(--radius-lg);
  margin: 0 auto 26px;
  box-shadow: var(--shadow-lg);
}
.founder-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.founder-stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 22px;
}
.founder-stat b { display: block; font-size: 1.5rem; font-weight: 800; color: #5CD6A4; }
.founder-stat span { font-size: .86rem; color: rgba(255, 255, 255, .8); }

/* ---------- Results ---------- */
.result-tile b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--evergreen); margin-bottom: 6px; }
.result-tile .result-label { font-weight: 700; display: block; margin-bottom: 8px; }

/* ---------- Pricing philosophy ---------- */
.pricing-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow);
}
.pricing-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 30px; }
.pricing-points li {
  background: var(--evergreen-tint);
  color: var(--evergreen);
  font-weight: 700;
  font-size: .9rem;
  padding: 8px 18px;
  border-radius: 999px;
}

/* ---------- Calculator ---------- */
.calc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 880px;
  margin: 0 auto;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.calc label, #miniCalc label { display: block; font-weight: 700; font-size: .88rem; margin: 16px 0 6px; }
.calc label:first-child, #miniCalc label:first-child { margin-top: 0; }
.calc input[type="number"], .calc select, .lead-form input, .lead-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--mist);
}
.calc input:focus, .lead-form input:focus, .lead-form select:focus {
  outline: 2px solid var(--signal);
  border-color: var(--signal);
  background: var(--white);
}
.calc-results { background: var(--mist); border-radius: var(--radius); padding: 26px; }
.calc-headline { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.calc-big { font-size: 2.1rem; font-weight: 800; color: var(--evergreen); letter-spacing: -0.02em; }
.calc-multiples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.calc-multiple { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.calc-multiple b { display: block; font-size: 1.15rem; color: var(--evergreen); }
.calc-multiple span { font-size: .78rem; font-weight: 700; color: var(--steel); }
.calc-note { margin-top: 16px; font-size: .8rem; color: #5A6E66; }

/* Inputs with $ / % affixes */
.input-affix {
  display: flex;
  align-items: center;
  background: var(--mist);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
}
.input-affix:focus-within {
  outline: 2px solid var(--signal);
  border-color: var(--signal);
  background: var(--white);
}
.input-affix span { font-weight: 700; color: #5A6E66; font-size: 1rem; }
.input-affix input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 6px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
}
.input-affix input[type="number"]::-webkit-outer-spin-button,
.input-affix input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-affix input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.testimonial img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 22px;
}
.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
}
.testimonial cite { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--steel); }
.placeholder-flag {
  display: inline-block;
  background: #FFF3D6;
  color: #8A6100;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ---------- Final CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--evergreen), var(--navy));
  color: var(--white);
  text-align: center;
  padding: 96px 0;
}
.cta-band h2 { color: var(--white); max-width: 720px; margin: 0 auto 18px; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto 34px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 64px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; margin-bottom: 44px; }
.site-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .75); }
.site-footer a:hover { color: var(--white); }
.site-footer li { margin-bottom: 9px; }
.footer-logo img { height: 34px; margin-bottom: 8px; filter: brightness(0) invert(1); }
.footer-logo .logo-tagline { display: block; color: rgba(255, 255, 255, .65); margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }
.social-links { display: flex; gap: 12px; margin-top: 18px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}
.footer-legal nav { display: flex; gap: 18px; }
.footer-disclaimer { margin-top: 14px; font-size: .78rem; color: rgba(255, 255, 255, .45); }

/* ---------- Lead popup ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 22, .55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-overlay.visible { display: flex; }
.popup {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.popup h3 { font-size: 1.4rem; margin-bottom: 8px; }
.popup .popup-sub { font-size: .95rem; color: #3D544C; margin-bottom: 22px; }
.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--mist);
  font-size: 1.1rem;
  color: var(--ink);
}
.lead-form label { display: block; font-weight: 700; font-size: .84rem; margin: 14px 0 5px; }
.lead-form label:first-of-type { margin-top: 0; }
.lead-form .btn { width: 100%; margin-top: 22px; }
.form-privacy { margin-top: 12px; font-size: .76rem; color: #5A6E66; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 64px 0; }
  .hero { padding: 36px 0 52px; }
  .hero-grid, .founder-grid, .calc-grid { grid-template-columns: 1fr; gap: 40px; }
  .cols-3, .cols-4, .rhythm-steps { grid-template-columns: repeat(2, 1fr); }
  .cred-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .real-result { padding: 24px 22px; }

  .main-nav {
    /* absolute (not fixed): header's backdrop-filter makes it the containing block */
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100vh - 76px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 2px;
    display: none;
    overflow-y: auto;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a, .nav-toggle-btn { width: 100%; text-align: left; font-size: 1.05rem; padding: 14px; }
  .dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin-left: 14px;
    padding: 4px 0;
    grid-template-columns: 1fr;
  }
  .dropdown a { white-space: normal; }
  .mobile-menu-btn { display: block; }
  .header-cta .btn { padding: 11px 18px; font-size: .88rem; }
}

@media (max-width: 600px) {
  .cols-2, .cols-3, .cols-4, .rhythm-steps, .founder-stats, .calc-multiples { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-block { padding: 36px 24px; }
  .calc { padding: 26px 20px; }
  .hero-ctas .btn { width: 100%; }
  .logo-tagline { font-size: .52rem; }
}
