/* ==========================================================================
   The Pathfinder Project — styles.css
   Mobile-first. No frameworks, no external requests (system fonts only).

   Palette (logo option #4) — all pairings checked against WCAG 2.2 AA:
   - white text on --rust      ≈ 6.0:1  ✓
   - --slate body on --cream   ≈ 11:1   ✓
   - --cream text on --navy    ≈ 13:1   ✓
   - --gold accents on --navy  ≈ 5.9:1  ✓
   - --gold is NEVER used as text on light backgrounds (would fail AA)
   ========================================================================== */

:root {
  /* Color palette */
  --navy:       #1C2B4A;   /* deep navy */
  --navy-deep:  #15203A;   /* darker band (final CTA, footer) */
  --navy-card:  #25365A;   /* raised card on navy */
  --rust:       #A8441F;   /* warm rust/orange — primary action */
  --rust-deep:  #8A3414;   /* rust hover */
  --rust-tint:  #F4E3D8;   /* pale rust wash */
  --cream:      #FAF6EE;   /* warm white page background */
  --paper:      #FFFFFF;   /* card / alternating section background */
  --gold:       #C9A227;   /* muted gold accent (dark backgrounds + decoration only) */
  --gold-bright:#D9B43A;   /* gold hover */
  --slate:      #2E3645;   /* dark slate body text */
  --slate-soft: #5A6373;   /* secondary text (≈5.6:1 on cream) */
  --line:       #E7DECB;   /* warm hairline borders */

  /* Type */
  --font-head: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --section-pad: clamp(3.5rem, 9vw, 6.5rem);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(28, 43, 74, 0.10);
  --shadow-soft: 0 4px 14px rgba(28, 43, 74, 0.07);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.4rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; }

a { color: var(--rust); }

/* Visible, high-contrast focus for keyboard users (WCAG 2.2).
   Dark sections override --focus-ring to gold for contrast. */
:focus-visible {
  outline: 3px solid var(--focus-ring, var(--navy));
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--cream);
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.container.narrow { max-width: 780px; }

section { padding-block: var(--section-pad); }

/* Anchored sections clear the sticky header */
#sprint, #how-it-works, #about, #faq { scroll-margin-top: 5.5rem; }

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9em;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.7em;
}

.section-lead {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--slate-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;                 /* comfortable touch target */
  padding: 0.7em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background-color: var(--rust);
  color: #FFFFFF;
}
.btn-primary:hover { background-color: var(--rust-deep); }

.btn-ghost {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background-color: var(--navy); color: var(--cream); }

/* Gold button lives only on dark navy bands (navy text ≈ 5.9:1 on gold) */
.btn-gold {
  background-color: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background-color: var(--gold-bright); }

.btn-lg { font-size: 1.05rem; padding: 0.8em 1.7em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header.scrolled { box-shadow: var(--shadow-soft); }

.header-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark { flex: none; }

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.2;
}

.brand-tagline {
  display: none;            /* shown from 640px up */
  font-size: 0.78rem;
  color: var(--slate-soft);
}

.btn-header { min-height: 44px; padding: 0.45em 1.2em; font-size: 0.95rem; }

/* Nav — works with no JS (simple wrap row); JS upgrades it to a toggle panel on mobile */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.6em 0.85em;     /* ≥44px touch target */
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}

.site-nav a:hover { background-color: var(--rust-tint); color: var(--rust-deep); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.4em 0.9em;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

/* Mobile behavior once JS is active: nav becomes a slide-down panel */
@media (max-width: 899px) {
  html.js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem clamp(1.25rem, 5vw, 2rem) 1rem;
  }
  html.js .site-nav.open { display: block; }
  html.js .site-nav ul { flex-direction: column; gap: 0; }
  html.js .site-nav a { display: block; padding: 0.8em 0.5em; font-size: 1.05rem; }
}

@media (max-width: 899px) {
  /* Without JS the nav simply wraps below the brand — fully usable */
  .site-nav { width: 100%; order: 10; }
  html.js .site-nav { width: auto; order: 0; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none !important; }
  .brand-tagline { display: block; }
  .site-nav { margin-left: auto; }
  .brand { margin-right: 0; }
  .header-bar { flex-wrap: nowrap; }
}

@media (min-width: 640px) {
  .brand-tagline { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero-compass {
  position: absolute;
  top: -60px;
  right: -80px;
  width: clamp(280px, 38vw, 460px);
  color: var(--navy);
  opacity: 0.06;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}

.hero h1 em {
  font-style: italic;
  color: var(--rust);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--slate-soft);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block: 1.6rem 1.2rem;
}

.hero-cred {
  font-size: 0.9rem;
  color: var(--slate-soft);
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
  max-width: 48ch;
}

.hero-cred strong { color: var(--navy); }

/* Hero visual card: five paths funnel into the plan */
.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
}

.hero-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.path-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
}

.path-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.4em 0.85em;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

/* Gold compass-point bullet on each chip */
.path-chips li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
}

.path-connector { display: block; margin: 0.9rem auto; }

.plan-doc {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  text-align: left;
}

.plan-doc-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.7rem;
}

.plan-doc-lines { list-style: none; }

.plan-doc-lines li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.42rem;
  border-bottom: 1px dashed rgba(250, 246, 238, 0.22);
  color: var(--cream);
  font-size: 0.92rem;
}

.plan-doc-lines li:last-child { border-bottom: none; }

.plan-doc-lines li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

/* ---------- Problem ---------- */

.problem { background: var(--paper); }

.problem-points {
  display: grid;
  gap: 1rem;
  margin-block: 1.8rem;
}

@media (min-width: 640px) {
  .problem-points { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.problem-point {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--rust);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.6rem;
}

.problem-point h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.problem-point p { font-size: 0.95rem; color: var(--slate-soft); }

.reframe {
  background: var(--navy);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.reframe p { margin: 0; color: var(--cream); font-size: 1.08rem; }
.reframe strong { color: #FFFFFF; }

/* ---------- Sprint (navy band) ---------- */

.sprint {
  background: var(--navy);
  --focus-ring: var(--gold);
}

.sprint .kicker { color: var(--gold); }
.sprint h2, .sprint h3 { color: var(--cream); }
.sprint .section-lead { color: rgba(250, 246, 238, 0.85); }

.weeks {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin-block: 2rem;
  counter-reset: week;
}

@media (min-width: 640px) { .weeks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .weeks { grid-template-columns: repeat(4, 1fr); } }

.week-card {
  background: var(--navy-card);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
}

.week-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5em;
}

.week-card h3 { font-size: 1.1rem; }
.week-card p { font-size: 0.93rem; color: rgba(250, 246, 238, 0.82); margin: 0; }

/* The tangible artifact: one-page plan panel */
.plan-output {
  display: grid;
  gap: 1.5rem;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

@media (min-width: 760px) {
  .plan-output { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}

.plan-output h3 { color: var(--navy); font-size: 1.3rem; }
.plan-output p { color: var(--slate); margin: 0; }

.plan-output-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.plan-output-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
}

.plan-output-list li::before {
  content: "✓";
  flex: none;
  color: var(--rust);
  font-weight: 700;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 1.75rem;
  list-style: none;
  margin-block: 2rem 1.5rem;
  counter-reset: step;
}

@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.step { position: relative; padding-top: 0.25rem; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* Dashed trail connecting the steps on wide screens */
@media (min-width: 760px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 23px;
    left: 60px;
    right: -1.25rem;
    border-top: 2px dashed var(--gold);
    opacity: 0.55;
  }
}

.step h3 { font-size: 1.12rem; }
.step p { font-size: 0.95rem; color: var(--slate-soft); margin: 0; }

.how-cta { text-align: center; margin-top: 1rem; }

/* ---------- Outcomes ---------- */

.outcomes { background: var(--paper); }

.outcome-grid {
  display: grid;
  gap: 1.1rem;
  list-style: none;
  margin-top: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.outcome-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 0.8rem;
  position: relative;
}

.outcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.3rem;
  width: 2.2rem;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--gold);
}

.outcome-card h3 { font-size: 1.06rem; margin-top: 0.35rem; }
.outcome-card p { font-size: 0.94rem; color: var(--slate-soft); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 0.75fr 1.25fr; gap: 3.5rem; }
}

.about-photo {
  display: inline-block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

/* Sizing for the real headshot once teague.jpg replaces the monogram */
img.about-photo {
  width: min(100%, 300px);
  aspect-ratio: 1;
  object-fit: cover;
}

.cred-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin-top: 1.1rem;
  max-width: 320px;
}

.cred-chips li {
  padding: 0.32em 0.8em;
  background: var(--navy);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-copy p { max-width: 58ch; }

.about-location {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rust);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.4rem;
}

.about-location svg { flex: none; margin-top: 0.2em; }

/* ---------- Fit / not a fit ---------- */

.fit { background: var(--paper); }

.fit-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.8rem;
}

@media (min-width: 760px) { .fit-grid { grid-template-columns: 1fr 1fr; } }

.fit-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.2rem;
}

.fit-yes { background: var(--cream); border: 1px solid var(--line); }
.fit-no  { background: var(--rust-tint); border: 1px solid #E8CDBC; }

.fit-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  margin-bottom: 0.9em;
}

.fit-card ul { list-style: none; }

.fit-card li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.7rem;
  font-size: 0.97rem;
}

.fit-yes li::before {
  content: "✓";
  position: absolute;
  left: 0.2rem;
  color: var(--navy);
  font-weight: 700;
}

.fit-no li::before {
  content: "✕";
  position: absolute;
  left: 0.2rem;
  color: var(--rust-deep);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.8rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;     /* ≥44px touch target */
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  border-radius: 14px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--rust);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  content: "–";
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.faq-item summary:hover { background: var(--cream); }

.faq-body { padding: 0 1.25rem 1.1rem; }
.faq-body p { margin: 0; color: var(--slate); font-size: 0.98rem; max-width: 65ch; }

/* ---------- Final CTA (navy band) ---------- */

.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  text-align: center;
  --focus-ring: var(--gold);
}

.cta-compass {
  position: absolute;
  bottom: -90px;
  left: -70px;
  width: clamp(260px, 30vw, 400px);
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
}

.final-cta h2 {
  color: var(--cream);
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: 1.4em;
}

.final-cta h2 em { color: var(--gold); font-style: italic; }

.cta-support {
  margin-top: 1.4rem;
  color: rgba(250, 246, 238, 0.85);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding-block: 2.5rem;
  --focus-ring: var(--gold);
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}

.footer-brand strong { font-family: var(--font-head); font-size: 1.05rem; }

.footer-note,
.footer-legal {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(250, 246, 238, 0.75);
}

/* ---------- Motion preferences ---------- */

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