/* ==========================================================================
   Coaching page styles
   --------------------------------------------------------------------------
   The coaching page is deliberately a different world from the therapy side
   of the site: warmer, darker, more direct. Therapy pages use Cormorant
   Garamond on cream; this one uses Fraunces on blush cream with a marigold
   accent, and reads as a landing page rather than a brochure page.

   Everything here is scoped to body.coaching (or prefixed .k-) so loading
   this file cannot affect any other page. It is loaded only by coaching.html,
   after styles.css, so it can override the shared header and footer.
   ========================================================================== */

.coaching {
  /* Palette. Blush cream, near-black, and a marigold accent.
     Yellow is a hard colour to set text in, so it has two values: --k-gold
     is a fill (and reads at 9.3:1 on ink), while --k-gold-deep is the one
     that may carry text on cream, where it holds 4.5:1 or better on
     both the page ground and the deeper band. Never set --k-gold
     as text on a light ground. */
  --k-ink:       #121212;  /* near-black, used for full-bleed bands */
  --k-ink-2:     #1E1C1A;
  --k-ochre:     #B3993E;  /* testimonial card fill; near-black text on it holds 6.7:1 */
  --k-paper:     #FDF1E5;  /* warm blush cream, the page ground */
  --k-shell:     #F6E3D0;  /* alternate band, a shade deeper */
  --k-cream-hi:  #FFF8EF;  /* type and fills on ink */
  --k-gold:      #F5A623;  /* marigold: fills, and text on ink */
  --k-gold-2:    #DB8F0F;  /* hover for gold fills */
  --k-gold-deep: #866104;  /* the only gold that may carry text on cream */
  --k-body:      #3B3733;
  --k-muted:     #6E665D;
  --k-on-ink:    #EDE4D8;
  --k-on-ink-2:  #A69C90;
  --k-line:      rgba(18, 18, 18, 0.16);
  --k-line-ink:  rgba(237, 228, 216, 0.2);

  /* Type */
  --k-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --k-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --k-d1: clamp(38px, 6.6vw, 76px);
  --k-d2: clamp(30px, 4.4vw, 50px);
  --k-d3: clamp(24px, 3.1vw, 34px);
  --k-d4: clamp(20px, 2.2vw, 25px);

  --k-gut: 84px;

  background: var(--k-paper);
  color: var(--k-body);
  font-family: var(--k-sans);
  font-size: 17px;
  line-height: 1.6;
}

.coaching :focus-visible { outline: 2px solid var(--k-gold-deep); outline-offset: 3px; }
.coaching .skip-link { background: var(--k-ink); color: var(--k-paper); }

/* --- Shared type ------------------------------------------------------- */

.k-display {
  font-family: var(--k-serif);
  font-weight: 500;
  font-variation-settings: 'opsz' 96;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--k-ink);
  margin: 0;
  text-wrap: balance;
}
.k-d1 { font-size: var(--k-d1); }
.k-d2 { font-size: var(--k-d2); line-height: 1.12; }
.k-d3 { font-size: var(--k-d3); line-height: 1.2; }
.k-d4 { font-size: var(--k-d4); line-height: 1.3; letter-spacing: -0.01em; }

/* The second half of a headline, set in gold italic. Carries the emphasis
   that bold would carry in a sans-serif design. */
.k-accent {
  font-style: italic;
  color: var(--k-gold-deep);
  font-variation-settings: 'opsz' 96;
}
.k-on-ink .k-accent { color: var(--k-gold); }

.k-eyebrow {
  font-family: var(--k-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--k-muted);
  margin: 0;
}
.k-eyebrow--gold { color: var(--k-gold-deep); }
.k-on-ink .k-eyebrow { color: var(--k-on-ink-2); }
.k-on-ink .k-eyebrow--gold { color: var(--k-gold); }

.k-link {
  color: var(--k-gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(134, 97, 4, 0.45);
}
.k-link:hover { color: var(--k-gold-2); text-decoration-color: currentColor; }

.k-lede { font-size: 19px; line-height: 1.62; color: var(--k-body); margin: 0; text-wrap: pretty; }
.k-body { font-size: 17px; line-height: 1.7; color: var(--k-body); margin: 0; text-wrap: pretty; }
.k-small { font-size: 14px; line-height: 1.6; color: var(--k-muted); margin: 0; text-wrap: pretty; }

.k-on-ink .k-display { color: var(--k-cream-hi); }
.k-on-ink .k-lede,
.k-on-ink .k-body { color: var(--k-on-ink); }
.k-on-ink .k-small { color: var(--k-on-ink-2); }

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

.k-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--k-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.k-btn:hover { transform: translateY(-1px); }

.k-btn--gold { background: var(--k-gold); color: var(--k-ink); }
.k-btn--gold:hover { background: var(--k-gold-2); color: var(--k-ink); }

.k-btn--ghost { border-color: var(--k-line); color: var(--k-ink); background: none; }
.k-btn--ghost:hover { border-color: var(--k-ink); color: var(--k-ink); background: rgba(18, 18, 18, 0.05); }

.k-btn--ghost-ink { border-color: var(--k-line-ink); color: var(--k-on-ink); background: none; }
.k-btn--ghost-ink:hover { border-color: var(--k-on-ink); color: var(--k-cream-hi); background: rgba(255, 248, 239, 0.07); }

.k-btn--light { background: var(--k-cream-hi); color: var(--k-ink); }
.k-btn--light:hover { background: var(--k-gold); color: var(--k-ink); }

.k-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header / footer overrides ----------------------------------------- */

/* The header sits on the same cream as the hero below it, so the two read as
   one opening rather than a bar stuck on top. The wordmark and nav are left
   to styles.css so they match every other page. */
.coaching .site-header {
  background: var(--k-paper);
  border-bottom: none;
}

.coaching .site-footer--slim {
  background: var(--k-ink);
  padding: 34px var(--k-gut);
}
.coaching .site-footer--slim .wordmark { font-size: 20px; }
.coaching .site-footer--slim .license-line { color: var(--k-on-ink-2); }
.coaching .site-footer--slim a { color: var(--k-on-ink-2); font-size: 15px; }
.coaching .site-footer--slim a:hover { color: var(--k-cream-hi); }

/* --- Section scaffolding ----------------------------------------------- */

.k-section { padding: 104px var(--k-gut); }
.k-section--tight { padding: 76px var(--k-gut); }
.k-wrap { max-width: 1180px; margin: 0 auto; }
.k-narrow { max-width: 780px; margin: 0 auto; }

.k-on-ink { background: var(--k-ink); }
.k-on-shell { background: var(--k-shell); }

.k-stack { display: flex; flex-direction: column; }
.k-gap-14 { gap: 14px; }
.k-gap-20 { gap: 20px; }
.k-gap-28 { gap: 28px; }

.k-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

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

.k-hero {
  background: var(--k-paper);
  padding: 76px max(var(--k-gut), calc((100% - 1180px) / 2)) 96px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
}
.k-hero__copy { display: flex; flex-direction: column; gap: 26px; }
.k-hero__title { max-width: 12ch; }
.k-hero__lede { max-width: 46ch; }

/* Photo sits inside an offset gold rule. On cream the bright marigold is
   too faint to read as a deliberate line, so the rule takes the deep value. */
.k-hero__figure { position: relative; margin: 0; }
.k-hero__figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--k-gold-deep);
  opacity: 0.7;
  pointer-events: none;
}
/* height:auto is load-bearing: the img carries width/height attributes,
   which map to presentational hints that would otherwise beat aspect-ratio
   and render the photo at full native height. The source is landscape, so
   the crop is weighted left to keep the shoes and the shadow. */
.k-hero__figure img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 30% 50%;
}

/* --- Gold band --------------------------------------------------------- */

.k-band {
  background: var(--k-gold);
  height: 22px;
}

/* --- Signal list ("this is probably you") ------------------------------ */

.k-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.k-signals li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--k-line);
  font-size: 17px;
  line-height: 1.55;
  color: var(--k-ink);
  text-wrap: pretty;
}
.k-signals li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border: 1px solid var(--k-gold-deep);
  border-radius: 50%;
  background: var(--k-gold);
}

/* --- Statement band ---------------------------------------------------- */

.k-statement { max-width: 820px; margin: 0 auto; }
.k-quote {
  font-family: var(--k-serif);
  font-variation-settings: 'opsz' 96;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.22;
  color: var(--k-ink);
  margin: 0;
  text-wrap: pretty;
}
.k-quote__mark { color: var(--k-gold-deep); }

/* --- Numbered steps ---------------------------------------------------- */

.k-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: k-step;
}
.k-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 26px;
  border-top: 2px solid var(--k-gold);
}
.k-step__n {
  font-family: var(--k-serif);
  font-variation-settings: 'opsz' 144;
  font-size: 46px;
  line-height: 1;
  color: var(--k-gold-deep);
}

/* --- Pillar cards ------------------------------------------------------ */

.k-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.k-card {
  background: var(--k-paper);
  border: 1px solid var(--k-line);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.k-card__title { color: var(--k-ink); }

/* --- Testimonials (carousel) -------------------------------------------- */

/* One quote at a time, on a scroll-snapping track. The track is a real
   horizontal scroller, so it swipes on touch and still works with the
   JavaScript disabled; coaching.js adds the dots, arrows and auto-advance on
   top of it. Slides are flex items of equal height, so the card never jumps
   as the quotes change length. */
.k-carousel { display: flex; flex-direction: column; gap: 26px; }

.k-carousel__track {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.k-carousel__track::-webkit-scrollbar { display: none; }

.k-carousel__slide {
  flex: 0 0 100%;
  display: flex;
  scroll-snap-align: center;
}

.k-quote-card {
  width: 100%;
  background: var(--k-ochre);
  border: 1px solid var(--k-ochre);
  padding: 54px 44px 46px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.k-quote-card p {
  font-family: var(--k-serif);
  font-variation-settings: 'opsz' 72;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.36;
  color: var(--k-ink);
  margin: 0;
  max-width: 26em;
  text-wrap: pretty;
}
.k-quote-card footer {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--k-ink);
}

/* Controls do nothing without JavaScript, so they stay hidden until
   coaching.js marks the carousel ready. */
.k-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.k-carousel:not(.is-ready) .k-carousel__controls { display: none; }

.k-carousel__arrow {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--k-line);
  background: none;
  color: var(--k-ink);
  font-family: var(--k-sans);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.k-carousel__arrow:hover {
  background: var(--k-ink);
  border-color: var(--k-ink);
  color: var(--k-cream-hi);
}

.k-carousel__dots { display: flex; gap: 4px; }

/* The visible dot is small, so the button around it carries a real tap
   target rather than the 9px circle. */
.k-carousel__dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.k-carousel__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--k-gold-deep);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.k-carousel__dot[aria-current="true"]::before {
  background: var(--k-gold-deep);
  transform: scale(1.3);
}

/* --- Comparison -------------------------------------------------------- */

.k-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.k-compare__col {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--k-paper);
  border: 1px solid var(--k-line);
}
/* Both columns take the page ground now that the band around them is the
   deeper one; the therapy column is marked by a rule rather than a fill. */
.k-compare__col--accent { border-top: 3px solid var(--k-gold); }
.k-compare__tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--k-gold-deep);
}

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

.k-faq { display: flex; flex-direction: column; }
.k-faq details {
  border-bottom: 1px solid var(--k-line);
}
.k-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--k-serif);
  font-variation-settings: 'opsz' 60;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  color: var(--k-ink);
  text-wrap: pretty;
}
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 22px;
  font-family: var(--k-sans);
  font-size: 24px;
  line-height: 1;
  color: var(--k-gold-deep);
  transition: transform 0.18s ease;
}
.k-faq details[open] summary::after { content: "\2013"; }
.k-faq details p { padding: 0 44px 26px 0; margin: 0; }

/* --- Closing band ------------------------------------------------------ */

.k-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.k-close .k-lede { max-width: 56ch; }
.k-close a.k-link { color: var(--k-on-ink-2); font-size: 15px; }
.k-close a.k-link:hover { color: var(--k-cream-hi); }

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 1180px) {
  .coaching { --k-gut: 48px; }
  .k-hero { gap: 48px; }
  .k-signals { gap: 4px 36px; }
  .k-steps { gap: 28px; }
}

@media (max-width: 900px) {
  .coaching { --k-gut: 24px; font-size: 16px; }

  .k-section { padding: 68px var(--k-gut); }
  .k-section--tight { padding: 52px var(--k-gut); }

  .k-hero {
    grid-template-columns: 1fr;
    padding: 52px var(--k-gut) 68px;
    gap: 40px;
  }
  .k-hero__title { max-width: none; }
  .k-hero__figure { order: -1; }
  .k-hero__figure::before { inset: 12px -12px -12px 12px; }
  .k-hero__figure img { aspect-ratio: 4 / 3; object-position: 50% 50%; }

  .k-signals,
  .k-steps,
  .k-cards,
  .k-compare { grid-template-columns: 1fr; }
  .k-lede { font-size: 17px; }

  /* The shared mobile nav panel drops out of the cream header, so it
     matches it. */
  .coaching .site-nav { background: var(--k-paper); }

  .k-card,
  .k-compare__col { padding: 28px 24px; }
  .k-btn { width: 100%; }
  .k-ctas { width: 100%; }
}

@media (max-width: 560px) {
  .k-quote-card { padding: 34px 22px 30px; }
  .k-faq summary { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .k-btn:hover { transform: none; }
  .k-carousel__dot[aria-current="true"]::before { transform: none; }
}
