/* ================================================================
   STRETCH — STYLE SYSTEM
   Mobile-first. Orange leads. White base. Warm neutrals.
   Fonts: Fraunces (headings) + Plus Jakarta Sans (body)
   WCAG 2.1 AA compliant — all contrast ratios verified
   ================================================================ */

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 400; font-size: 14px; line-height: 1.7; color: #5A4A3E; background: #FFFFFF; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; border: none; background: none; }
button { cursor: pointer; }

/* --- TOKENS --- */
:root {
  --orange: #C4621A;
  --orange-accessible: #A8521A;
  --amber: #E8A23A;
  --red: #C23B22;
  --white: #FFFFFF;
  --warm-white: #F7F3EE;
  --warm-border: #E8E0D6;
  --near-black: #1A1410;
  --warm-mid: #5A4A3E;
  --warm-muted: #6B5043;
  --font-heading: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* --- ACCESSIBILITY --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--orange);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Focus visibility — keyboard users only */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--font-heading); color: var(--near-black); font-weight: 700; line-height: 1.2; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-muted);
  margin-bottom: 16px;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--surface {
  background: var(--warm-white);
}

.section--white {
  background: var(--white);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--warm-border);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav__logo svg {
  width: 100px;
  height: auto;
}

.nav__links {
  display: none;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--warm-mid);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--near-black);
}

.nav__link--active {
  color: var(--near-black);
  font-weight: 600;
}

.nav__pill {
  display: none;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  transition: background 0.2s ease;
}

.nav__pill:hover {
  background: var(--amber);
}

/* Mobile hamburger */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--near-black);
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav__overlay.open {
  display: flex;
}

.nav__overlay a {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--near-black);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__overlay .nav__pill {
  display: inline-flex;
  font-size: 18px;
  padding: 14px 32px;
}

/* Body offset for fixed nav */
body { padding-top: 64px; }

/* --- CTAs --- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  transition: gap 0.2s ease;
}

.cta:hover { gap: 10px; }

.cta--primary {
  color: var(--orange-accessible);
}

.cta--secondary {
  color: var(--warm-mid);
}

.cta__arrow {
  transition: transform 0.2s ease;
}

.cta:hover .cta__arrow {
  transform: translateX(4px);
}

/* --- CARDS --- */
.card {
  background: var(--warm-white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 32px 24px;
}

.card--bordered-left {
  border-left: 3px solid var(--orange);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 12px;
}

.card__body {
  font-size: 14px;
  line-height: 1.6;
  color: #4A3B30;
}

/* --- GRIDS --- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

/* --- FIT GRID --- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

.fit-list li {
  padding: 12px 0;
  border-bottom: 0.5px solid var(--warm-border);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fit-list li::before {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}

.fit-list--good li::before { content: "✓"; color: var(--orange); font-weight: 700; }
.fit-list--bad li::before { content: "—"; color: var(--warm-muted); }

.fit-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-muted);
  margin-bottom: 16px;
}

/* --- TRANSITION LINE --- */
.transition-line {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--near-black);
  font-style: italic;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 0.5px solid var(--warm-border);
}

/* --- CREDIBILITY BAR --- */
.credibility-bar {
  font-size: 13px;
  color: var(--warm-muted);
  padding: 16px 0;
  border-bottom: 0.5px solid var(--warm-border);
  text-align: center;
}

.credibility-bar__orgs {
  font-weight: 600;
  color: var(--warm-mid);
  margin-top: 4px;
}

/* --- HERO --- */
.hero {
  padding: 80px 0 60px;
}

.hero__eyebrow { margin-bottom: 20px; }

.hero__headline {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--warm-mid);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* --- SECTION HEADER --- */
.section__header {
  margin-bottom: 40px;
}

.section__headline {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 16px;
}

.section__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--warm-mid);
  max-width: 640px;
}

/* --- ENGAGEMENT FLOW --- */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.flow__step {
  padding: 24px;
  border-left: 3px solid var(--orange);
  background: var(--warm-white);
  border-radius: 0 12px 12px 0;
}

.flow__label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-accessible);
  margin-bottom: 8px;
  font-weight: 600;
}

.flow__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 8px;
}

.flow__body {
  font-size: 14px;
  line-height: 1.6;
  color: #4A3B30;
}

/* --- TRACK RECORD --- */
.track-record {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.track-record__item {
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--warm-border);
}

.track-record__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.track-record__org {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 4px;
}

.track-record__role {
  font-size: 13px;
  color: var(--warm-muted);
  margin-bottom: 8px;
}

.track-record__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--warm-mid);
}

/* --- QUIZ --- */
.quiz {
  max-width: 640px;
  margin: 0 auto;
}

.quiz fieldset {
  border: none;
  padding: 0;
  margin: 0 0 32px;
}

.quiz fieldset legend {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 16px;
  line-height: 1.4;
  width: 100%;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Visually hidden radio inputs — remain keyboard focusable */
.quiz__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.quiz__label {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--warm-mid);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 44px;
  text-align: left;
  width: 100%;
}

.quiz__label:hover {
  border-color: var(--orange);
  background: var(--warm-white);
}

.quiz__radio:checked + .quiz__label {
  border-color: var(--orange);
  background: var(--warm-white);
  color: var(--near-black);
  font-weight: 600;
}

.quiz__radio:focus-visible + .quiz__label {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.quiz__result {
  display: none;
  margin-top: 40px;
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid var(--warm-border);
}

.quiz__result.visible {
  display: block;
}

.quiz__result--fit {
  border-left: 3px solid var(--orange);
}

.quiz__result--partial {
  border-left: 3px solid var(--warm-muted);
}

.quiz__result-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--near-black);
  margin-bottom: 24px;
}

/* Calendly embed */
.calendly-embed {
  display: none;
  margin-top: 24px;
  min-height: 630px;
  width: 100%;
  min-width: 320px;
}

.calendly-embed.visible {
  display: block;
}

/* --- INSIGHTS CARDS --- */
.insight-card {
  background: var(--warm-white);
  border: 1px solid var(--warm-border);
  border-radius: 12px;
  padding: 24px;
}

.insight-card__meta {
  font-size: 11px;
  color: var(--warm-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.insight-card__meta span {
  display: inline-flex;
  align-items: center;
}

.insight-card__meta span::after {
  content: "·";
  margin-left: 8px;
}

.insight-card__meta span:last-child::after {
  content: "";
}

.insight-card__quote {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.3;
  margin-bottom: 16px;
  font-style: italic;
}

.insight-card__excerpt {
  font-size: 14px;
  color: #4A3B30;
  line-height: 1.6;
  margin-bottom: 16px;
}

.insight-card__frame {
  font-size: 14px;
  color: var(--near-black);
  line-height: 1.6;
  padding: 16px;
  background: rgba(232, 162, 58, 0.08);
  border-radius: 8px;
  margin-bottom: 16px;
}

.insight-card__frame-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.insight-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-accessible);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.insight-card__link:hover {
  gap: 10px;
}

/* --- SIGNAL MODULE --- */
.signal {
  background: var(--warm-white);
  border: 1px solid var(--warm-border);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: 32px 24px;
}

.signal__headline {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 8px;
}

.signal__body {
  font-size: 14px;
  color: var(--warm-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}

.signal__features {
  list-style: none;
  margin-bottom: 24px;
}

.signal__features li {
  font-size: 14px;
  color: #4A3B30;
  padding: 8px 0;
  padding-left: 16px;
  position: relative;
}

.signal__features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.signal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signal__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--warm-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--near-black);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.signal__input::placeholder {
  color: var(--warm-muted);
}

.signal__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-accessible);
  padding: 12px 0;
  cursor: pointer;
  transition: gap 0.2s ease;
  min-height: 44px;
  background: none;
  border: none;
}

.signal__submit:hover { gap: 10px; }

.signal__note {
  font-size: 11px;
  color: var(--warm-muted);
  margin-top: 4px;
}

/* --- FOOTER --- */
.footer {
  padding: 40px 0;
  border-top: 0.5px solid var(--warm-border);
  text-align: center;
}

.footer__copy {
  font-size: 12px;
  color: var(--warm-muted);
  margin-bottom: 8px;
}

.footer__links {
  font-size: 12px;
  color: var(--warm-muted);
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer__links a:hover {
  color: var(--near-black);
}

/* --- FOOTER CTA BLOCK --- */
.footer-cta {
  padding: 80px 0;
  text-align: center;
  border-top: 0.5px solid var(--warm-border);
}

.footer-cta__headline {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* --- COOKIE NOTICE --- */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--warm-white);
  border-top: 1px solid var(--warm-border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 1001;
  font-size: 13px;
  color: var(--warm-mid);
}

.cookie-notice button {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-accessible);
  cursor: pointer;
  min-height: 44px;
  padding: 8px 16px;
}

/* --- 404 --- */
.page-404 {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.page-404 h1 {
  font-size: 28px;
  margin-bottom: 24px;
}

/* --- DESKTOP --- */
@media (min-width: 768px) {
  body { font-size: 15px; }

  .container { padding: 0 40px; }

  .section { padding: 120px 0; }

  h1, .hero__headline { font-size: 48px; }
  h2, .section__headline { font-size: 36px; }
  h3 { font-size: 28px; }

  .nav__links { display: flex; }
  .nav__pill { display: inline-flex; }
  .nav__burger { display: none; }

  .hero { padding: 120px 0 80px; }
  .hero__ctas { flex-direction: row; gap: 24px; }

  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr 1fr; }

  .fit-grid { grid-template-columns: 1fr 1fr; }

  .flow { grid-template-columns: 1fr 1fr; }

  .footer-cta__actions { flex-direction: row; justify-content: center; gap: 32px; }

  .signal__form { flex-direction: row; }
  .signal__input { flex: 1; }

  .quiz__options { flex-direction: row; }
  .quiz__label { flex: 1; }
}

@media (min-width: 1024px) {
  h1, .hero__headline { font-size: 56px; }

  .hero__body { font-size: 16px; }

  .flow { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

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