/* ==========================================================================
   PureForm Pilates — landing page styles
   ========================================================================== */

:root {
  /* M-Studio brand palette (Brand Guidelines, p.4) */
  --anthracite: #393e41;
  --cream: #f0ebe1;
  --orange: #f58345;

  /* Tints derived from the brand palette */
  --anthracite-deep: #2b2f31;
  --cream-deep: #e6dfd2;
  --card: #f8f5ef;
  --ink: var(--anthracite);
  --muted: #62676a;
  --line: #d6cec0;

  /* Typography from the original design */
  --serif: "Libre Caslon Text", "Georgia", serif;
  --display: "Libre Caslon Display", "Libre Caslon Text", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --shadow: 0 6px 24px rgba(57, 62, 65, 0.08);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--anthracite);
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

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

.section { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid var(--anthracite);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

.btn--solid { background: var(--anthracite); color: var(--cream); }
.btn--solid:hover { background: var(--orange); border-color: var(--orange); color: var(--anthracite); }

.btn--outline { background: transparent; color: var(--anthracite); }
.btn--outline:hover { background: var(--anthracite); color: var(--cream); }

.btn--accent { background: var(--orange); border-color: var(--orange); color: var(--anthracite); }
.btn--accent:hover { background: var(--cream); border-color: var(--cream); color: var(--anthracite); }

.btn--sm { padding: 9px 20px; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--anthracite);
}
.link-arrow svg { color: var(--orange); }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Brand ---------- */

.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.brand img { width: auto; height: 132px; }
.brand__sub {
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  margin-top: 2px;
  margin-right: -0.32em;
  color: var(--anthracite);
}
.site-footer .brand img { height: 100px; }
.site-footer .brand__sub { color: var(--cream); }

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

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 14px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a {
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav a:hover::after { transform: scaleX(1); }

.site-header .nav {
  padding: 8px 26px;
  border-radius: 999px;
  background: rgba(240, 235, 225, 0.72);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--anthracite);
}
.nav-toggle svg { width: 26px; height: 26px; }

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

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, #f8f5ef 0%, var(--cream) 60%, var(--cream-deep) 100%);
}
.hero__media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 170px;
  padding-bottom: 72px;
  max-width: 560px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--ink);
  margin: 22px 0 18px;
}
.hero__tagline::after {
  content: "";
  display: block;
  width: 180px;
  height: 3px;
  margin-top: 14px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--orange) 15%, var(--orange) 85%, transparent);
}
.hero__lede {
  font-size: 1.15rem;
  max-width: 340px;
  color: var(--ink);
  margin-bottom: 32px;
}

/* ---------- Benefits ---------- */

.benefits { padding: 44px 0; border-bottom: 1px solid transparent; }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.benefit {
  text-align: center;
  padding: 12px 16px;
  position: relative;
}
.benefit + .benefit::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.benefit svg {
  width: 36px; height: 36px;
  color: var(--orange);
  margin: 0 auto 12px;
}
.benefit p { font-size: 1rem; line-height: 1.35; }

/* ---------- Split (image + copy) sections ---------- */

.split {
  position: relative;
  overflow: hidden;
}
.split__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__copy { position: relative; z-index: 1; }
.split__copy h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 20px; }
.split__copy p { font-size: 1.1rem; color: var(--muted); max-width: 420px; margin-bottom: 30px; }

.botanical {
  position: absolute;
  color: var(--orange);
  opacity: 0.4;
  pointer-events: none;
}
.split .botanical { right: -40px; top: 50%; transform: translateY(-40%); width: 220px; }

/* ---------- Section heading with rules ---------- */

.rule-heading {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 44px;
}
.rule-heading::before,
.rule-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.rule-heading h2 { position: relative; padding-bottom: 12px; }
.rule-heading h2::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%; bottom: 0;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--orange) 15%, var(--orange) 85%, transparent);
}
.rule-heading h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); text-align: center; }
.rule-heading--narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.rule-heading--narrow h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }

/* ---------- Classes ---------- */

.classes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.class-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.class-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(57, 62, 65, 0.14); }
.class-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.class-card__body { padding: 26px 22px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.class-card h3 { font-size: 1.45rem; }
.class-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.class-card .link-arrow { margin-top: auto; align-self: center; }

/* ---------- First class steps ---------- */

.first-class__panel {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.first-class__panel .botanical { left: -30px; top: 50%; transform: translateY(-50%) scaleX(-1); width: 150px; }
.first-class__intro { position: relative; z-index: 1; padding-left: clamp(0px, 6vw, 80px); }
.first-class__intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.first-class__intro p { color: var(--muted); margin-bottom: 24px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(0px, 4vw, 48px);
  border-left: 1px solid rgba(57, 62, 65, 0.22);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.step {
  text-align: center;
  padding: 8px 12px;
  position: relative;
}
.step + .step::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: rgba(57, 62, 65, 0.22);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--anthracite);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.step svg { width: 36px; height: 36px; display: block; margin: 0 auto 12px; color: var(--anthracite); }
.step p { font-size: 0.92rem; line-height: 1.35; color: var(--ink); }

/* ---------- Studio ---------- */

.studio .split__grid { grid-template-columns: 1.15fr 1fr; }
.studio .split__media img { aspect-ratio: 19 / 10; }

/* ---------- Testimonials ---------- */

.testimonials { padding-top: 24px; }
.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.testimonial-track { position: relative; min-height: 140px; }
.testimonial {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 36px;
  align-items: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}
.testimonial.is-active { position: relative; opacity: 1; visibility: visible; }
.testimonial__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--anthracite);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--cream);
}
.testimonial blockquote {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
}
.testimonial cite { font-style: normal; font-size: 0.9rem; font-weight: 500; display: block; }
.stars { display: flex; gap: 3px; margin-top: 4px; color: var(--orange); }
.stars svg { width: 14px; height: 14px; }

.slider-controls { display: flex; gap: 10px; }
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--cream-deep);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.slider-btn:hover { background: var(--anthracite); color: var(--cream); }
.slider-btn svg { width: 16px; height: 16px; }

/* ---------- Offer ---------- */

.offer__panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: var(--anthracite);
  color: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
}
.offer__copy {
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.offer__copy .offer__label { font-size: 1.15rem; margin-bottom: 6px; }
.offer__copy .offer__label { color: var(--orange); letter-spacing: 0.08em; }
.offer__copy h2 { color: var(--cream); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 12px; text-wrap: balance; }
.offer__copy p { font-size: 1.15rem; color: rgba(240, 235, 225, 0.8); margin-bottom: 30px; }
.offer__copy .btn { align-self: flex-start; }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }

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

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--anthracite);
  color: var(--cream);
  padding: 64px 0 56px;
  margin-top: clamp(56px, 8vw, 96px);
}
.site-footer .botanical { opacity: 0.25; color: var(--orange); width: 180px; }
.site-footer .nav a { color: var(--cream); }
.site-footer .botanical--left { left: -50px; bottom: -30px; transform: scaleX(-1); }
.site-footer .botanical--right { right: -50px; bottom: -30px; }

.footer__inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 26px;
}
.footer__top .nav a { font-size: 0.92rem; }
.social { display: flex; gap: 12px; }
.social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--cream);
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: background 0.2s, color 0.2s;
}
.social a:hover { background: var(--orange); border-color: var(--orange); color: var(--anthracite); }
.social svg { width: 16px; height: 16px; }

.footer__bottom {
  border-top: 1px solid rgba(240, 235, 225, 0.2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.contact-list { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; padding: 0; margin: 0; }
.contact-list li + li::before { content: "|"; margin: 0 14px; opacity: 0.6; }
.legal { display: flex; gap: 10px; }
.legal a:hover, .contact-list a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .testimonial { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .first-class__panel { grid-template-columns: 1fr; }
  .first-class__intro { padding-left: 0; }
  .steps { border-left: 0; border-top: 1px solid rgba(57, 62, 65, 0.22); padding: 28px 0 0; }
  .footer__top { flex-direction: column; text-align: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .contact-list { justify-content: center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-header .nav {
    position: absolute;
    top: 100%;
    left: var(--gutter); right: var(--gutter);
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 20px;
    display: none;
  }
  .site-header .nav.is-open { display: flex; }
  .site-header .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header .nav a:last-child { border-bottom: 0; }
  .site-header .btn { display: none; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { position: relative; width: 100%; height: 340px; order: 2; }
  .hero__media img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 25%);
  }
  .hero__content { padding-top: 170px; padding-bottom: 32px; }

  .benefits__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .benefit:nth-child(odd)::before { display: none; }
  .benefit:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .split__grid,
  .studio .split__grid { grid-template-columns: 1fr; }
  .split .botanical { width: 150px; top: auto; bottom: -20px; transform: none; }

  .classes__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }

  .offer__panel { grid-template-columns: 1fr; }
  .offer__media { height: 220px; order: -1; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .step + .step::before { display: none; }

  .testimonial-slider { grid-template-columns: 1fr; justify-items: center; }
  .testimonial { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
  .stars { justify-content: center; }

  .footer__top .nav { flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
  .contact-list { flex-direction: column; align-items: center; }
  .contact-list li + li::before { display: none; }

  .rule-heading { gap: 16px; }
}
