/* Katie Farbs Fitness
   Brand palette from Instagram (blush, cream) anchored by rosewood and an obsidian gym tone.
   Display: Cormorant Garamond. Text: Hanken Grotesk.
   One signature element: the twelve week journey card in the hero. Everything else stays quiet. */

:root {
  --blush: #F2D3D6;
  --blush-deep: #E9C0C5;
  --cream: #FBF4F1;
  --ink: #2E1F22;
  --rose: #8A4552;
  --rose-deep: #6E3341;
  --stone: #E6D3CE;
  --obsidian: #1C1517;
  --muted: #65555A;
  --on-dark: #E9DCDD;
  --on-dark-muted: #BFAEB1;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --body: 1.125rem;          /* 18px: research sweet spot for mobile reading */
  --lede: clamp(1.1875rem, 1.6vw, 1.375rem);
  --h3: clamp(1.5rem, 2.4vw, 1.875rem);
  --h2: clamp(2.25rem, 4.6vw, 3.5rem);
  --h1: clamp(3.1rem, 7.4vw, 6.25rem);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 74rem;
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: .6rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.012em; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: var(--h1); line-height: .98; }
h2 { font-size: var(--h2); line-height: 1.04; }
h3 { font-size: var(--h3); line-height: 1.15; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons: one action across the page, always the same words */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem;
  padding: 0 1.9rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--cream);
  font: 600 1.0625rem/1 var(--text);
  letter-spacing: .005em;
  text-decoration: none;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--rose-deep); }
.btn--small { min-height: 2.75rem; padding: 0 1.25rem; font-size: .9375rem; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.reassure { font-size: .9375rem; color: var(--muted); margin: .9rem 0 0; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.wordmark { font-family: var(--display); font-size: 1.65rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; }

/* Hero */
.hero { background: var(--blush); padding: 7.5rem 0 4.5rem; }
.hero__grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 5rem; }
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 5rem; }
}
.hero h1 { max-width: 9.5ch; margin-bottom: 1.6rem; }
.hero__lede { font-size: var(--lede); line-height: 1.5; max-width: 31rem; margin-bottom: 2.1rem; }

/* The signature: twelve weeks, no restarts */
.plan {
  background: var(--cream);
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 27rem;
  width: 100%;
  justify-self: center;
  box-shadow: 0 30px 60px -40px rgba(110, 51, 65, .45);
}
.plan__title { font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.1; margin: 0 0 .35rem; }
.plan__sub { font-size: .9375rem; color: var(--muted); margin: 0 0 1.4rem; }
.track { display: flex; gap: 4px; margin-bottom: 1.6rem; }
.track span { flex: 1; }
.track span:nth-child(4), .track span:nth-child(8) { margin-right: 8px; }
.track span {
  height: 10px; border-radius: 99px; background: var(--stone);
  transform-origin: left center; transform: scaleX(.15); opacity: .6;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease, background-color .45s ease;
  transition-delay: calc(var(--i) * 70ms + 300ms);
}
.track.is-filled span { transform: scaleX(1); opacity: 1; }
.track.is-filled span.p1 { background: var(--blush-deep); }
.track.is-filled span.p2 { background: #C08591; }
.track.is-filled span.p3 { background: var(--rose); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.phases li { display: grid; grid-template-columns: .9rem 1fr; gap: 0 .9rem; }
.phases i { width: .7rem; height: .7rem; border-radius: 50%; margin-top: .55rem; }
.phases .weeks { display: block; font-size: .8125rem; color: var(--muted); }
.phases strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.phases p { margin: .2rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .track span { transition: none; transform: none; opacity: 1; } }

/* Sections */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--muted); font-size: var(--lede); line-height: 1.5; margin: 1rem 0 0; }

/* Who it's for */
.fit { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); max-width: 52rem; }
.fit li {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.7vw, 2.125rem);
  font-weight: 500;
  line-height: 1.22;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--stone);
}

/* What you get */
.get { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 4rem; }
@media (min-width: 820px) { .get { grid-template-columns: 1fr 1fr; } }
.get li { padding: 1.5rem 0; border-top: 1px solid var(--stone); }
.get h3 { margin-bottom: .4rem; }
.get p { color: var(--muted); margin: 0; max-width: 28rem; }

/* Meet Katie: blush section, cutout portrait sits on the section floor */
.katie { background: var(--blush); padding-bottom: 0; overflow: hidden; }
.katie__grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 900px) { .katie__grid { grid-template-columns: 1fr 1.05fr; gap: 5rem; } }
.katie__copy { padding-bottom: clamp(1rem, 4vw, 6rem); }
@media (max-width: 899px) { .katie__copy { order: -1; padding-bottom: 0; } }
.katie__photo { max-width: 34rem; width: 100%; justify-self: center; }
.katie__photo img { width: 100%; height: auto; }
.katie h2 { margin-bottom: 1.6rem; max-width: 14ch; }
.katie p { font-size: var(--lede); line-height: 1.6; max-width: 34rem; }
.katie__punch { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important; font-weight: 600; line-height: 1.2 !important; margin-top: 1.6rem; }
.katie__creds { font-size: .9375rem !important; color: var(--muted); border-top: 1px solid var(--blush-deep); padding-top: 1.2rem; margin-top: 2rem; }

/* How it works: a real sequence, so it is numbered */
.steps { background: var(--obsidian); color: var(--on-dark); }
.steps h2, .steps h3 { color: var(--cream); }
.steps li::before { color: var(--blush) !important; }
.steps .steps__note { margin: 3.5rem 0 0; max-width: none; color: var(--on-dark-muted); font-size: 1.0625rem; border-top: 1px solid #3A2D30; padding-top: 1.5rem; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 2.75rem; }
@media (min-width: 900px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-size: 4.75rem; line-height: .9; color: var(--rose); margin-bottom: 1rem; }
.steps h3 { margin-bottom: .6rem; }
.steps p { max-width: 22rem; margin: 0; }

/* FAQ */
.faq { max-width: 48rem; border-top: 1px solid var(--stone); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.25;
  padding: 1.35rem 3rem 1.35rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--rose), var(--rose)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--rose), var(--rose)) center / 1.5px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 1.4rem; margin: 0; max-width: 42rem; }

/* Booking */
.book { background: var(--blush); }
.book__head { text-align: center; max-width: 38rem; margin: 0 auto 2.5rem; }
.book__head h2 { font-size: var(--h1); line-height: .98; margin-bottom: 1.1rem; }
.book__head p { font-size: var(--lede); margin: 0; }
.book__embed { max-width: 60rem; margin: 0 auto; display: flex; justify-content: center; }
.book__embed.has-calendar { background: var(--cream); border-radius: 28px; min-height: 640px; overflow: hidden; display: block; padding: .5rem; }
.book__fallback { text-align: center; font-size: .9375rem; color: var(--muted); margin: 1rem 0 0; }
.book__fallback a { color: var(--ink); text-underline-offset: 4px; }
.book__alt { text-align: center; margin: 1.75rem auto 0; max-width: 34rem; font-size: 1rem; color: var(--muted); }
.book__alt a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--obsidian); color: var(--on-dark-muted); padding: 3.5rem 0 7rem; font-size: .9375rem; }
@media (min-width: 760px) { .site-footer { padding-bottom: 2.5rem; } }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .wordmark { color: var(--cream); display: inline-block; margin-bottom: .5rem; }
.site-footer p { margin: 0; max-width: 22rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.site-footer small { grid-column: 1 / -1; color: #8E7D80; border-top: 1px solid #33282B; padding-top: 1.5rem; font-size: .8125rem; line-height: 1.5; }

/* Mobile sticky booking bar: appears after the hero, hides at the booking section */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(251, 244, 241, .96);
  border-top: 1px solid var(--stone);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 760px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* Simple pages */
.page { padding: 8.5rem 0 5rem; min-height: 72vh; }
.page h1 { font-size: clamp(2.8rem, 6vw, 4.75rem); margin-bottom: 1.5rem; max-width: 14ch; }
.page .prose { max-width: 40rem; }
.page .prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 2.5rem 0 .75rem; }
.page--blush { background: var(--blush); }

@media (max-width: 600px) {
  .plan { padding: 1.4rem 1.35rem; border-radius: 22px; }
  .hero__grid { gap: 2.75rem; }
}

@media (max-width: 520px) {
  .wordmark { font-size: 1.4rem; }
  .site-header .btn { display: none; }
}

.cal-loading { text-align: center; color: var(--muted); padding: 4rem 1rem; margin: 0; }
