/* ---------------------------------------------------------------------------
   Pilate by Shauny
   Brand tokens extracted from the live pilatebyshauny.be (redesign, preserve):
     espresso #3E2F2B   = her existing body/heading colour
     cream silk         = her existing hero background material
     coral              = the actual spring colour on her reformer, and her own
                          caption language ("colorful springs")
   Radius rule for the whole page: buttons are full pill, media is 2px,
   nothing else has a radius.
--------------------------------------------------------------------------- */

@import url("fonts.css");

:root {
  --paper:      #FBF9F5;
  --paper-warm: #F2EBE0;
  --sand:       #E7DECF;
  --line:       #DCD1BF;
  --espresso:   #3E2F2B;
  --ink:        #2A211E;
  --muted:      #6E5C55;
  --coral:      #D97C63;
  --coral-deep: #B85F48;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script:  "Sacramento", "Cormorant Garamond", cursive;
  --body:    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --stack:  clamp(5rem, 11vw, 10.5rem);
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #221B19;
    --paper-warm: #2C2320;
    --sand:       #352A26;
    --line:       #4A3B36;
    --espresso:   #F1E8DC;
    --ink:        #FBF6EE;
    --muted:      #B7A498;
    --coral:      #E89075;
    --coral-deep: #F0A88F;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--espresso);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; border-radius: 2px; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.15rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

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

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 1.4rem;
}

/* --- wordmark -------------------------------------------------------------- */

.mark { display: inline-block; line-height: 1; text-decoration: none; }
.mark__main {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--ink);
}
.mark__sub {
  display: block;
  font-family: var(--script);
  color: var(--ink);
  text-align: right;
  margin-top: -0.24em;
  padding-right: 0.1em;
}
.mark--sm .mark__main { font-size: 1.16rem; }
.mark--sm .mark__sub  { font-size: 0.95rem; }
.mark--lg .mark__main { font-size: clamp(2rem, 4.4vw, 3rem); }
.mark--lg .mark__sub  { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }

/* --- nav ------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav[data-stuck="true"] { border-bottom-color: var(--line); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}
.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
/* :not(.btn) matters: `.nav__links a` outranks `.btn--solid`, so without it the
   nav CTA rendered muted-on-espresso (contrast 1.75) instead of paper-on-espresso. */
.nav__links a:not(.btn) {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .nav__links .nav__hide { display: none; } }

/* --- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  white-space: nowrap;
  padding: 0.82rem 1.65rem;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--espresso); color: var(--paper); }
.btn--solid:hover { background: var(--coral-deep); }
.btn--ghost { border-color: var(--line); color: var(--espresso); background: transparent; }
.btn--ghost:hover { border-color: var(--espresso); }
.btn--sm { padding: 0.62rem 1.25rem; font-size: 0.78rem; }

/* --- hero ------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100dvh - 72px);
  align-items: center;
}
@media (min-width: 940px) {
  .hero { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 5rem); }
}
.hero__copy { padding: clamp(3rem, 6vw, 5.5rem) var(--gutter) clamp(3rem, 6vw, 4rem); }
@media (min-width: 940px) {
  .hero__copy { padding-right: 0; padding-left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); }
}
.hero__title {
  font-size: clamp(2.3rem, 4.4vw, 3.45rem);
  line-height: 1.1;
  margin: 2.4rem 0 1.4rem;
  max-width: 21ch;
}
.hero__lede { color: var(--muted); max-width: 40ch; margin-bottom: 2.3rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Past 1700px the copy column loses width to the centring padding, which pushed
   the headline to a third line. Step the display size down instead of breaking
   the alignment with the 1320px container the rest of the page uses. */
@media (min-width: 1700px) {
  .hero__title { font-size: 3rem; }
}

.hero__media { position: relative; align-self: stretch; min-height: 46vh; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
@media (min-width: 940px) {
  .hero__media { min-height: calc(100dvh - 72px); }
  .hero__media img { border-radius: 2px 0 0 2px; }
}

/* --- generic section ------------------------------------------------------- */

.section { padding-block: var(--stack); }
.section--tint { background: var(--paper-warm); }
.section__title { font-size: clamp(2rem, 4vw, 3.05rem); line-height: 1.12; margin-bottom: 1.4rem; }
.lede { color: var(--muted); font-size: 1.06em; }

/* --- offer ----------------------------------------------------------------- */

.offer { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .offer { grid-template-columns: 1.05fr 0.95fr; } }
.offer__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.facts { display: grid; gap: 0; margin-top: 2.6rem; border-top: 1px solid var(--line); }
@media (min-width: 620px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { padding: 1.5rem 0; }
@media (max-width: 619px) { .fact + .fact { border-top: 1px solid var(--line); } }
@media (min-width: 620px) { .fact + .fact { border-left: 1px solid var(--line); padding-left: 1.6rem; } }
.fact__value {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  line-height: 1;
  color: var(--ink);
  display: block;
}
.fact__label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.03em; margin-top: 0.6rem; display: block; }

/* --- approach (staggered rows) --------------------------------------------- */

.steps { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(2.2rem, 4vw, 3.4rem); }
.step { display: grid; gap: 0.7rem 2rem; align-items: baseline; }
@media (min-width: 780px) {
  .step { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .step:nth-child(2) { margin-left: clamp(0rem, 6vw, 5rem); }
  .step:nth-child(3) { margin-left: clamp(0rem, 12vw, 10rem); }
}
.step__name { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--coral-deep); line-height: 1.15; }
.step__body { color: var(--muted); max-width: 46ch; }

/* --- manifesto (full bleed) ------------------------------------------------- */

.manifesto {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: clamp(24rem, 62vh, 38rem);
  padding: var(--stack) var(--gutter);
  isolation: isolate;
  overflow: hidden;
}
.manifesto img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.manifesto::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(251,249,245,.30), rgba(251,249,245,.68));
}
@media (prefers-color-scheme: dark) {
  .manifesto::after { background: linear-gradient(180deg, rgba(34,27,25,.58), rgba(34,27,25,.84)); }
}
.manifesto__line {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.1;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 1.4rem;
  padding-bottom: 0.12em;
}
.manifesto p { color: var(--muted); margin-inline: auto; max-width: 34ch; }

/* --- about ------------------------------------------------------------------ */

.about { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 0.92fr 1.08fr; } }
.about__media { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.about__media img { width: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.about__media img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.credentials { margin-top: 2.4rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.credential {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.credential strong { font-weight: 400; color: var(--ink); }

/* --- practical -------------------------------------------------------------- */

.practical { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 860px) { .practical { grid-template-columns: 1fr 1fr; } }
.info { display: grid; gap: 1.6rem; }
.info__row { display: grid; gap: 0.3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.info__row:last-child { border-bottom: 0; padding-bottom: 0; }
.info__k { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.info__v { font-family: var(--display); font-size: 1.5rem; line-height: 1.35; color: var(--ink); }
.info__v a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .25s var(--ease); }
.info__v a:hover { border-color: var(--coral); }
.info__note { font-size: 0.9rem; color: var(--muted); }

/* --- faq -------------------------------------------------------------------- */

.faq { max-width: 46rem; margin-top: clamp(2.2rem, 4vw, 3rem); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--ink);
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--coral-deep); }
.faq summary::after {
  content: ""; position: absolute; right: 0.35rem; top: 50%;
  width: 10px; height: 10px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq__a { padding: 0 0 1.5rem; color: var(--muted); }

/* --- closing ---------------------------------------------------------------- */

.closing { text-align: center; padding-block: var(--stack); background: var(--paper-warm); }
.closing__title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 1.2rem; }
.closing p { margin-inline: auto; color: var(--muted); margin-bottom: 2.2rem; max-width: 38ch; }

/* --- footer ----------------------------------------------------------------- */

.footer { padding-block: 3rem; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.6rem 2.5rem; align-items: center; justify-content: space-between; }
.footer__meta { font-size: 0.84rem; color: var(--muted); display: grid; gap: 0.25rem; }
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--ink); }
.footer__social { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--muted); text-decoration: none; transition: color .25s var(--ease); }
.footer__social:hover { color: var(--ink); }

/* --- scroll reveal ---------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --- a11y ------------------------------------------------------------------- */

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--espresso); color: var(--paper); padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }
