/* Financially Fit World — shared styles (mobile-first) */

:root {
  --green-900: #12301f;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-100: #e6f0ea;
  --navy-900: #0f1e36;
  --navy-800: #14274e;
  --navy-600: #2b4170;
  --gold-500: #c9a227;
  --gold-400: #d9b84a;
  --gold-100: #faf3dc;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 30, 54, 0.08);
  --max: 1140px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); }
a:hover { color: var(--green-800); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold-500); color: var(--navy-900);
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 700; font-size: 1.15rem;
  color: var(--green-800); text-decoration: none;
  letter-spacing: -0.01em; line-height: 1.1;
}
.wordmark span { color: var(--gold-500); }
.wordmark:hover { color: var(--green-900); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.5rem 0.75rem; font: inherit; font-weight: 600;
  color: var(--navy-900); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 18px; height: 2px; background: var(--navy-900);
  position: relative; content: "";
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem; }
.site-nav a {
  display: block; padding: 0.7rem 0;
  color: var(--navy-900); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--green-700); font-weight: 700; }
.site-nav .nav-cta { margin-top: 0.5rem; text-align: center; color: #fff; border-bottom: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static; box-shadow: none; border: 0; background: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 1.5rem; padding: 0; }
  .site-nav a { border: 0; padding: 0.4rem 0; font-size: 0.95rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-500); }
  .site-nav .nav-cta { margin-top: 0; padding: 0.55rem 1.1rem; box-shadow: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2;
}
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn-outline { border-color: currentColor; color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-green { background: var(--green-800); color: #e9f2ec; }
.section-green h2, .section-green h3 { color: #fff; }
.section-navy { background: var(--navy-900); color: #dfe5f0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-500); margin-bottom: 0.75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); }
.section-green .lead, .section-navy .lead { color: #cfdcd4; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(201,162,39,0.18), transparent 45%),
    linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 55%, var(--navy-800) 100%);
  color: #e9f2ec; padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #d3e3d9; max-width: 60ch; }
.hero .btn-row { margin-top: 1.75rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,162,39,0.15); border: 1px solid rgba(201,162,39,0.5);
  color: var(--gold-400); border-radius: 999px; padding: 0.35rem 0.9rem;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem;
}
.page-hero { padding: 3.5rem 0 3rem; }
.page-hero h1 { max-width: 22ch; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-accent { border-top: 4px solid var(--gold-500); }
.card-green { border-top: 4px solid var(--green-700); }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--green-100); color: var(--green-800); margin-bottom: 0.9rem;
}
.tag.gold { background: var(--gold-100); color: #7a5f0e; }
.icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-800); margin-bottom: 1rem;
  font-weight: 700; font-family: var(--font-serif);
}

.path-card { display: flex; flex-direction: column; }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card ul { margin-bottom: 1.5rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: 0.55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 1rem; height: 0.55rem;
  border-left: 3px solid var(--green-700); border-bottom: 3px solid var(--green-700);
  transform: rotate(-45deg);
}
.section-green .checklist li::before, .section-navy .checklist li::before { border-color: var(--gold-400); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy-900); color: #dfe5f0; padding: 1.5rem 0; }
.trust-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.9rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .trust-strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .trust-strip ul { grid-template-columns: repeat(4, 1fr); } }
.trust-strip li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.trust-strip strong { color: #fff; display: block; }
.trust-dot { flex: 0 0 10px; height: 10px; margin-top: 0.5em; border-radius: 50%; background: var(--gold-500); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 4.25rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.4rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--green-800); color: #fff;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Callout ---------- */
.callout {
  border-radius: var(--radius); padding: 1.75rem;
  background: var(--gold-100); border: 1px solid #ecd98f; border-left: 6px solid var(--gold-500);
}
.callout h2, .callout h3 { color: var(--navy-900); }
.callout p:last-child { margin-bottom: 0; }
.callout-big { text-align: center; padding: 2.5rem 1.75rem; border-left-width: 1px; border-top: 6px solid var(--gold-500); }
.callout-big p { max-width: 62ch; margin-left: auto; margin-right: auto; }

.note {
  font-size: 0.9rem; color: var(--muted);
  border-left: 3px solid var(--line); padding-left: 1rem;
}

/* ---------- Split ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; } }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 1.25rem;
}
.stat strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold-400); line-height: 1.2; }
.stat span { font-size: 0.9rem; color: #cfdcd4; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-800); color: #fff; font-weight: 600; font-size: 0.95rem; }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 600;
  color: var(--navy-900); list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--green-700);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy-900); font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--ink);
  border: 1px solid #c9d0da; border-radius: 8px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-700); outline: 2px solid rgba(45,106,79,0.25); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.checkbox input { margin-top: 0.3rem; }
.form-status {
  padding: 1rem; border-radius: 8px; background: var(--green-100); color: var(--green-900);
  border: 1px solid #b9d3c3;
}
.placeholder-banner {
  background: var(--gold-100); border: 1px dashed var(--gold-500); color: #5e4a0c;
  border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.92rem; margin-bottom: 1.5rem;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; color: var(--navy-900); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c3d6; padding: 3.5rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #dfe5f0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .wordmark { color: #fff; font-size: 1.2rem; display: inline-block; margin-bottom: 0.75rem; }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-pledge { color: #fff; font-weight: 600; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mb-3 { margin-bottom: 2.5rem; }
.align-start { align-items: start; }
.card-title { font-size: 1.2rem; }
.hero .hero-pledge strong { color: #fff; }
.path-card .tag { align-self: flex-start; }

/* =========================================================
   Photo-led, human redesign (Oct 2026)
   ========================================================= */
:root {
  --cream: #fbf7f0;
  --cream-200: #f3ece0;
  --radius-lg: 22px;
  --shadow-warm: 0 18px 40px rgba(60, 40, 10, 0.12);
}
body { background: var(--cream); }
.section-soft { background: var(--cream-200); }
.card { border-color: #ece4d6; border-radius: 16px; box-shadow: 0 4px 18px rgba(60, 40, 10, 0.06); }
.steps li { border-color: #ece4d6; border-radius: 16px; }
.site-header { background: rgba(251, 247, 240, 0.95); border-bottom-color: #ece4d6; }
@media (max-width: 899px) { .site-nav { background: var(--cream); } }

/* Home hero: split layout, text + portrait photo */
.hero-home {
  background:
    radial-gradient(circle at 10% 0%, rgba(201,162,39,0.20), transparent 40%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 60%, #234b3a 100%);
  padding: 3rem 0 3.5rem; overflow: hidden;
}
.hero-home .hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero-home { padding: 4.5rem 0; }
  .hero-home .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}
.hero-photo { position: relative; margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid rgba(201,162,39,0.55); border-radius: var(--radius-lg); z-index: -1;
}
.hero-photo { z-index: 0; }
.hero-photo figcaption {
  position: absolute; left: -0.75rem; bottom: 1.5rem; max-width: 80%;
  background: #fff; color: var(--navy-900); border-radius: 14px;
  padding: 0.75rem 1rem; font-size: 0.9rem; line-height: 1.4; box-shadow: var(--shadow-warm);
}
.hero-photo figcaption strong { display: block; color: var(--green-800); }

/* Inner-page heroes with a photo behind a warm overlay */
.page-hero.has-photo { position: relative; overflow: hidden; isolation: isolate; padding: 5rem 0 4.5rem; }
@media (min-width: 900px) { .page-hero.has-photo { padding: 7rem 0 6rem; } }
.page-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.page-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,48,31,0.94) 0%, rgba(18,48,31,0.80) 45%, rgba(15,30,54,0.35) 100%);
}
@media (max-width: 899px) {
  .page-hero.has-photo::before { background: linear-gradient(180deg, rgba(18,48,31,0.80), rgba(18,48,31,0.92)); }
}
.page-hero.has-photo .lead { color: #e4eee8; }

/* Image cards */
.card-media {
  width: calc(100% + 3.2rem); max-width: none; margin: -1.6rem -1.6rem 1.4rem;
  aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.path-card { overflow: hidden; padding-top: 1.6rem; }
.path-card.card-green, .path-card.card-accent { border-top-width: 0; }
.path-card.card-green .card-media { border-bottom: 4px solid var(--green-700); }
.path-card.card-accent .card-media { border-bottom: 4px solid var(--gold-500); }

/* Human-moment photos */
.photo-figure { margin: 0; }
.photo-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-warm);
}
.photo-figure.portrait img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.photo-figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; padding-left: 0.9rem; border-left: 3px solid var(--gold-500); }
.section-navy .photo-figure figcaption, .section-green .photo-figure figcaption { color: #cfdcd4; }
.photo-figure + .card, .photo-figure + .callout { margin-top: 1.5rem; }
.photo-row { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 760px) { .photo-row { grid-template-columns: 1.4fr 1fr; } }
.photo-row .photo-figure img { height: 100%; }
.photo-row .photo-figure { display: flex; flex-direction: column; }
.photo-row .photo-figure img { flex: 1; aspect-ratio: auto; min-height: 260px; max-height: 420px; }
.stack { display: grid; gap: 1.5rem; }
/* Desktop page heroes: photo on the right, copy on a solid green panel */
@media (min-width: 900px) {
  .page-hero-img { left: auto; width: 48%; }
  .page-hero.has-photo::before {
    background: linear-gradient(90deg, var(--green-900) 0%, var(--green-900) 50%, rgba(18,48,31,0.55) 54%, rgba(18,48,31,0) 72%);
  }
  .page-hero.has-photo .container > * { max-width: 50%; }
  .page-hero.has-photo .container > h1 { max-width: min(50%, 22ch); }
}
