/* ReformX Pilates Penrith — brand tokens from the brand board */
@font-face {
  /* Walkway Bold: drop Walkway-Bold.woff2 into assets/fonts/ to use the real brand header font */
  font-family: "Walkway";
  src: local("Walkway Bold"), local("Walkway-Bold"), url("assets/fonts/Walkway-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --sand: #DED0C3;
  --sand-deep: #CDBBAA;
  --ink: #000000;
  --mist: #E5E5E5;
  --white: #ffffff;

  --font-head: "Walkway", "Syncopate", "Montserrat", sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 11vw, 160px);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 400; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1.04; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.9rem); line-height: 1.12; letter-spacing: 0.01em; }
h3 { font-size: 1.15rem; line-height: 1.2; letter-spacing: 0.02em; }
p { margin: 0; max-width: 54ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--sand); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; min-height: 48px;
  font: 500 0.95rem/1 var(--font-body); letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid var(--ink); border-radius: 0;
  transition: background-color .2s, color .2s;
}
.btn--solid { background: var(--ink); color: var(--sand); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--sand); }
.btn--sand { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.btn--sand:hover { background: transparent; color: var(--sand); }
.btn--sandline { background: transparent; color: var(--sand); border-color: var(--sand); }
.btn--sandline:hover { background: var(--sand); color: var(--ink); }

.link { font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  height: var(--nav-h); padding: 0 var(--gutter);
  background: var(--sand);
}
.nav__logo img { height: 40px; width: auto; mix-blend-mode: multiply; }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav__links a:hover { border-bottom-color: currentColor; }
.nav__cta { padding: 12px 22px; min-height: 44px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: min(calc(100svh - var(--nav-h)), 820px);
  padding: clamp(32px, 5vw, 64px) var(--gutter);
}
.hero__copy { display: grid; gap: 28px; justify-items: start; }
.hero__copy h1 { max-width: 9ch; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 300; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__photo { position: relative; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.hero__x {
  position: absolute; z-index: 2; inset: -14% -42%; width: 184%; height: 128%;
  overflow: visible; pointer-events: none;
}
.hero__x line {
  stroke: var(--ink); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 3000; stroke-dashoffset: 3000;
  animation: draw 1.6s cubic-bezier(.65, 0, .25, 1) .25s forwards;
}
.hero__x line:nth-child(2) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Classes */
.classes { background: var(--ink); color: var(--sand); padding: var(--section) var(--gutter); }
.classes__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.classes__head p { font-weight: 300; }
.classes__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
.class { display: grid; gap: 16px; justify-items: start; }
.class img { width: 100%; object-fit: cover; }
.class p { font-weight: 300; }
.class--a img { aspect-ratio: 4 / 5; }
.class--b { margin-top: clamp(32px, 8vw, 120px); }
.class--b img { aspect-ratio: 3 / 4; }
.class--c { margin-top: clamp(16px, 4vw, 56px); }
.class--c img { aspect-ratio: 4 / 5; object-position: 60% 50%; }
.classes .link { color: var(--sand); }

/* Studio */
.studio { background: var(--ink); color: var(--sand); }
.studio__bg { width: 100%; height: min(78vh, 760px); object-fit: cover; object-position: 50% 45%; }
.studio__copy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: start; padding: clamp(40px, 6vw, 80px) var(--gutter) var(--section); }
.studio__copy p { font-weight: 300; }

/* First class */
.first { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 112px); align-items: center; padding: var(--section) var(--gutter); }
.first__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 40% 50%; }
.first__copy { display: grid; gap: clamp(32px, 4vw, 48px); justify-items: start; }
.steps { list-style: none; margin: 0; padding: 0; width: 100%; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--ink); }
.steps li:last-child { border-bottom: 1px solid var(--ink); }
.steps__n { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-weight: 400; max-width: 46ch; }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 7vw, 112px); align-items: center; background: var(--ink); color: var(--sand); padding: var(--section) var(--gutter); }
.visit__copy { display: grid; gap: 28px; justify-items: start; }
.visit__copy > p { font-weight: 300; }
.visit__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.details { margin: 0; width: 100%; max-width: 520px; }
.details div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid color-mix(in srgb, var(--sand) 35%, transparent); }
.details div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--sand) 35%, transparent); }
.details dt { font-weight: 300; }
.details dd { margin: 0; font-weight: 500; }

/* Footer */
.foot { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: var(--sand); padding: 56px var(--gutter) 40px; border-top: 1px solid color-mix(in srgb, var(--sand) 25%, transparent); }
.foot__logo { position: relative; z-index: 1; height: 44px; width: auto; filter: invert(1); mix-blend-mode: screen; opacity: .9; }
.foot p { position: relative; z-index: 1; font-size: .9rem; font-weight: 300; }

/* Responsive */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 72px; }
  .hero__art { width: min(78%, 380px); justify-self: start; margin-left: 8%; }
  .classes__head, .first, .visit, .studio__copy { grid-template-columns: 1fr; }
  .classes__row { grid-template-columns: 1fr; gap: 56px; }
  .class--b, .class--c { margin-top: 0; }
  .class img { aspect-ratio: 4 / 5; }
  .first__photo img { aspect-ratio: 4 / 5; max-height: 560px; }
  .visit__photo { order: -1; }
  .visit__photo img { aspect-ratio: 4 / 3; max-height: 420px; }
  }
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .details div { grid-template-columns: 1fr; gap: 4px; }
  .steps li { grid-template-columns: 40px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__x line { animation: none; stroke-dashoffset: 0; }
}

/* Offer page */
.offer-art { width: min(100%, 440px); }
.ticket {
  position: absolute; z-index: 2; left: -22%; bottom: 8%;
  display: grid; gap: 2px; justify-items: start;
  background: var(--ink); color: var(--sand);
  padding: 22px 28px 20px;
}
.ticket__top { font-weight: 500; font-size: .95rem; }
.ticket__price { font-family: var(--font-head); font-size: clamp(3rem, 6vw, 4.75rem); line-height: 1; }
.ticket__sub { font-weight: 300; font-size: .9rem; }

.terms { padding: var(--section) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: start; }
.terms__list { margin: 0; padding: 0; list-style: none; }
.terms__list li { padding: 16px 0; border-top: 1px solid var(--ink); max-width: 60ch; }
.terms__list li:last-child { border-bottom: 1px solid var(--ink); }

@media (max-width: 960px) {
  .offer-art { width: min(78%, 380px); }
  .ticket { left: -6%; bottom: 6%; padding: 16px 20px; }
  .terms { grid-template-columns: 1fr; }
}

/* Offer page: ad landing tweaks */
.step__btn { margin-top: 14px; }
.steps li > div { display: grid; justify-items: start; }
@media (max-width: 520px) {
  .nav--offer .nav__cta { padding: 10px 14px; font-size: .85rem; }
  .step__btn { width: 100%; }
}
.nav--offer .nav__cta { margin-left: auto; }
@media (max-width: 960px) { .offer-steps .first__photo { display: none; } }

/* Reviews */
.reviews { padding: var(--section) 0; overflow: hidden; }
.reviews[hidden] { display: none; }
.reviews__head { display: grid; gap: 16px; padding: 0 var(--gutter); margin-bottom: clamp(32px, 5vw, 56px); }
.reviews__rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.reviews__row { width: 100%; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews__track { display: flex; width: max-content; animation: reviews-scroll 70s linear infinite; }
.reviews__row--rev .reviews__track { animation-direction: reverse; }
.reviews__row:hover .reviews__track { animation-play-state: paused; }
.reviews__set { display: flex; gap: 24px; padding-right: 24px; }
@keyframes reviews-scroll { to { transform: translateX(-50%); } }
.review { margin: 0; flex: 0 0 min(84vw, 380px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; background: var(--white); }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.6; }
.review figcaption { display: flex; align-items: center; gap: 14px; }
.review figcaption span:last-child { display: grid; line-height: 1.3; }
.review small { font-weight: 300; font-size: .85rem; }
.review__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--sand); font-family: var(--font-head); }
@media (prefers-reduced-motion: reduce) {
  .reviews__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reviews__track { animation: none; }
  .reviews__set[aria-hidden="true"] { display: none; }
}

/* FAQ: chat-style accordion */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 112px); padding: var(--section) var(--gutter); background: var(--white); }
.faq__head { display: grid; gap: 20px; align-content: start; }
.faq__head a { font-weight: 500; text-underline-offset: 4px; }
.faq__list { display: grid; gap: 12px; }
.faq__item summary { list-style: none; display: flex; align-items: center; gap: 16px; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { padding: 14px 20px; background: var(--sand); border-radius: 22px 22px 22px 4px; font-weight: 500; line-height: 1.4; transition: background-color .2s, color .2s; }
.faq__item summary:hover .faq__q { background: var(--sand-deep); }
.faq__item[open] .faq__q { background: var(--ink); color: var(--sand); }
.faq__icon { position: relative; flex: 0 0 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 2px; right: 2px; top: 9px; height: 2px; background: currentColor; transition: transform .25s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { margin: 8px 0 8px clamp(16px, 5vw, 56px); animation: faq-in .3s ease-out; }
.faq__a p { max-width: 46ch; padding: 14px 20px; background: var(--ink); color: var(--sand); border-radius: 22px 22px 4px 22px; font-weight: 300; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq__a { animation: none; } }

/* Timetable (Momence widget) */
.timetable { padding: var(--section) var(--gutter); display: grid; gap: clamp(32px, 5vw, 56px); }
.timetable__head { display: grid; gap: 20px; justify-items: start; }
.timetable__widget { max-width: 1100px; width: 100%; margin: 0 auto; background: var(--white); min-height: 320px; }
.timetable__note { font-weight: 500; }

/* Momence widget: recolour to the ReformX sand palette */
.timetable__widget { --mx-sand: #DED0C3; --mx-sand-deep: #CDBBAA; --mx-text: #000000; background: transparent; padding: 0; }
.timetable__widget .momence-host-schedule-layout, .timetable__widget .momence-host-schedule-layout * { font-family: var(--font-body) !important; }
.timetable__widget .momence-host_schedule-session-list-item-wrapper a {
  background: var(--mx-sand) !important; color: var(--mx-text) !important; border: 1px solid var(--mx-sand) !important; border-radius: 999px !important; font-weight: 500 !important; box-shadow: none !important;
}
.timetable__widget .momence-host_schedule-session-list-item-wrapper a:hover { background: var(--ink) !important; color: var(--mx-sand) !important; border-color: var(--ink) !important; }
.timetable__widget .momence-host_schedule-session_list-expand-button,
.timetable__widget .momence-event_type_select-button { color: #8b7561 !important; }
.timetable__widget .momence-event_type_select-button > div { background: var(--mx-sand-deep) !important; }
.timetable__widget .momence-view-toggle, .timetable__widget .momence-view-toggle button { border-color: var(--mx-sand) !important; }
.timetable__widget .momence-view-toggle button[aria-pressed="true"],
.timetable__widget .momence-view-toggle button[aria-selected="true"] { color: var(--mx-text) !important; }
.timetable__widget .momence-day_selection-item[data-is-selected="true"] .momence-day_selection-item_highlight,
.timetable__widget .momence-day_selection-item[data-is-today="true"] .momence-day_selection-item_highlight { color: var(--mx-text) !important; background-color: var(--mx-sand) !important; border-radius: 50% !important; }
.timetable__widget .momence-day_selection-item [aria-hidden="true"] { background: var(--mx-sand-deep) !important; }
.timetable__widget .momence-quick_filters button:hover, .timetable__widget .momence-select-button:hover,
.timetable__widget .momence-arrow-button:hover { border-color: var(--mx-sand-deep) !important; background: #f3ece5 !important; }
.timetable__widget .momence-view-toggle button { color: var(--mx-text) !important; }
.timetable__widget .momence-view-toggle button svg path { stroke: var(--mx-text) !important; }
.timetable__widget .momence-view-toggle button svg path[fill]:not([fill="none"]) { fill: var(--mx-text) !important; }
.timetable__widget .momence-day_selection-item_day { color: var(--mx-text) !important; }
.timetable__widget a:not([class*="momence-host_schedule-powered"]):not(.x) { text-decoration-color: currentColor; }

@media (max-width: 960px) {
  /* Safari can drop very wide masked elements, so skip the edge fade on phones and tablets */
  .reviews__row { -webkit-mask-image: none; mask-image: none; }
}

/* Footer social icons */
.foot__social { position: relative; z-index: 1; display: flex; gap: 24px; }
.foot__social a { display: grid; place-items: center; color: var(--sand); transition: opacity .2s; }
.foot__social a:hover { opacity: .65; }
