/* ============================================================
   AMARA PILATES — stylesheet
   Design direction: grounded, quiet-earth palette (moss / clay /
   stone), asymmetric layout, Fraunces + Work Sans type pairing.
   Replace "Amara" throughout with the real studio name — see
   CLAUDE.md for the full find/replace list.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340..600;1,9..144,400..500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  /* ---- color tokens -------------------------------------- */
  --stone:        #EAE3D3;   /* page background */
  --stone-deep:   #DCD0B4;   /* alt section background */
  --card:         #F5F0E4;   /* card / panel background */
  --ink:          #2A251E;   /* primary text, warm near-black */
  --ink-soft:     #5B5448;   /* secondary text */
  --moss:         #48522F;   /* primary accent — deep moss */
  --moss-light:   #6B7A45;   /* hover / lighter moss */
  --clay:         #9C5A34;   /* secondary accent — muted burnt clay */
  --ochre:        #A9812F;   /* tertiary accent — used sparingly */
  --line:         rgba(42, 37, 30, 0.14);
  --line-soft:    rgba(42, 37, 30, 0.08);

  /* ---- type ------------------------------------------------ */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.8rem + 1.8vw, 3.2rem);
  --step-4: clamp(2.8rem, 2.1rem + 3.2vw, 4.6rem);

  --maxw: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--stone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

/* ---- buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--moss); color: var(--stone); }
.btn-primary:hover { background: var(--moss-light); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--stone); }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }

/* ---- header --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--stone);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.logo img { height: 56px; width: auto; display: block; }
.logo-text { margin-left: 0.7rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.main-nav ul {
  display: flex;
  gap: clamp(1.1rem, 2vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.4em 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.header-cta { display: flex; align-items: center; gap: 1.4rem; flex-shrink: 0; }
.header-cta .phone { font-size: 0.88rem; color: var(--ink-soft); display: none; }

/* ---- hero ------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 780px);
  overflow: hidden;
  color: var(--stone);
  scroll-margin-top: 84px;
}
.hero-bg {
  position: absolute;
  top: -12%;
  left: 0;
  right: 0;
  height: 124%;
  background: var(--stone-deep);
  will-change: transform;
}
.hero-bg .img-slot { position: absolute; inset: 0; }
.hero-bg .img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: hero-zoom 16s ease-out forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 10, 0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 5vw, 4rem);
  background: rgba(15, 13, 10, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 4px;
  text-align: center;
  margin: 0 auto;
  max-width: 760px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero-eyebrow {
  display: block;
  font-size: 0.85rem;
  color: var(--stone);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.1em;
}
.hero-logo { height: 225px; width: auto; margin: 0 auto 1.5rem; }
.hero-content h1 {
  font-size: var(--step-4);
  font-weight: 400;
  max-width: 16ch;
  margin: 0 auto;
  color: var(--stone);
}
.hero-content h1 em {
  font-style: italic;
  color: var(--ochre);
}
.hero-content p {
  font-size: var(--step-1);
  max-width: 44ch;
  margin: 0.8em auto 1.8em;
  color: rgba(234, 227, 211, 0.92);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn-on-dark { color: var(--stone); border-color: var(--stone); }
.btn-on-dark:hover { background: var(--stone); color: var(--ink); }

/* hero entrance — fade + rise, staggered */
.hero-eyebrow, .hero-content h1, .hero-content p, .hero-actions {
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero-content h1 { animation-delay: 0.25s; }
.hero-content p { animation-delay: 0.45s; }
.hero-actions { animation-delay: 0.65s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* generic placeholder used until real photography is dropped in */
.img-slot {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background:
    linear-gradient(135deg, var(--stone-deep) 25%, transparent 25%) 0 0/28px 28px,
    linear-gradient(315deg, var(--stone-deep) 25%, var(--card) 25%) 0 0/28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
  min-height: 100%;
}
.img-slot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.5em 0.9em;
  background: rgba(245, 240, 228, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-sizing: border-box;
  text-align: center;
}
.img-slot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.img-slot:has(img)::after { display: none; }

/* ---- section scaffolding --------------------------------------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--stone-deep); }
.section-dark { background: var(--ink); color: var(--stone); border-top: 1px solid rgba(234, 227, 211, 0.08); }
.section-dark h2, .section-dark h3 { color: var(--stone); }
.section-dark p { color: rgba(234, 227, 211, 0.75); }

.section-head { max-width: 640px; margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 0.9em;
}
.section-head h2 { font-size: var(--step-3); font-weight: 400; }

/* ---- pillars (breath / body / balance) ------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 1.75rem clamp(0.5rem, 3vw, 2rem) 1.75rem 0;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--clay);
  display: block;
  margin-bottom: 1.2em;
}
.pillar h3 { font-size: var(--step-1); font-weight: 500; margin-bottom: 0.4em; }

/* ---- philosophy split (image + text) ---------------------------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-media { order: 2; }
.split-media, .split-body { min-width: 0; }
.split-media .img-slot { aspect-ratio: 4/5; }
.split-body .eyebrow { display: block; }
.split-body h2 { font-size: var(--step-2); font-weight: 400; }

/* ---- classes list (asymmetric rows, not a card grid) ------------ */
.class-rows { border-top: 1px solid var(--line); }
.class-row {
  display: grid;
  grid-template-columns: 90px 1.4fr 1.6fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line);
}
.class-row .idx { font-family: var(--font-display); color: var(--clay); font-size: 1.1rem; }
.class-row h3 { font-size: var(--step-1); font-weight: 500; margin: 0; }
.class-row p { margin: 0.3em 0 0; font-size: 0.92rem; }
.class-row .meta { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; text-align: right; }
.class-row .meta strong { display: block; color: var(--ink); font-weight: 600; }

/* ---- schedule teaser --------------------------------------------- */
.schedule-list { display: flex; flex-direction: column; }
.schedule-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.schedule-item time { font-weight: 600; color: var(--moss); }
.schedule-item .who { font-size: 0.88rem; color: var(--ink-soft); }

/* ---- trainers ------------------------------------------------------ */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.trainer-card { min-width: 0; }
.trainer-card .img-slot { aspect-ratio: 3/4; margin-bottom: 1.1rem; }
.trainer-card .img-slot img,
#about .split-media .img-slot img { object-position: 50% 20%; }
.trainer-card h3 { font-size: var(--step-1); margin-bottom: 0.15em; }
.trainer-card .role { font-size: 0.85rem; color: var(--clay); font-weight: 600; margin-bottom: 0.6em; }

/* ---- testimonial band ----------------------------------------------- */
.quote-band { max-width: 780px; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-2);
  font-weight: 400;
  margin: 0 0 1.3rem;
  color: var(--stone);
}
.quote-band cite { font-style: normal; font-size: 0.88rem; color: rgba(234, 227, 211, 0.7); }

/* ---- CTA banner -------------------------------------------------------- */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--moss);
  color: var(--stone);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius);
}
.cta-banner h2 { color: var(--stone); font-size: var(--step-2); font-weight: 400; margin: 0; max-width: 16ch; }
.cta-banner .btn-primary { background: var(--stone); color: var(--ink); }
.cta-banner .btn-primary:hover { background: var(--card); }

/* ---- location strip ---------------------------------------------------- */
.location-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.location-strip h4 { font-size: 0.85rem; text-transform: none; color: var(--ink-soft); font-weight: 600; margin-bottom: 0.5em; }
.location-strip p { margin: 0; font-size: 0.95rem; }

/* ---- footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(234, 227, 211, 0.8); padding: clamp(2rem, 4vw, 3rem) 0 1.5rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(234, 227, 211, 0.15);
}
.footer-top .logo { color: var(--stone); }
.footer-about .logo { width: 100%; justify-content: center; margin-bottom: 0.5rem; }
.footer-about .logo img { height: 150px; }
.footer-about p { color: rgba(234, 227, 211, 0.65); font-size: 0.9rem; margin-top: 1rem; }
.footer-col h4 { color: var(--stone); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.9rem; color: rgba(234, 227, 211, 0.65); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--stone); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(234, 227, 211, 0.5);
}

/* ---- page header (subpages) ----------------------------------------------- */
.page-header { padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(1rem, 2vw, 1.25rem); scroll-margin-top: 84px; }
.page-header .eyebrow { display: block; }
.page-header h1 { font-size: var(--step-3); font-weight: 400; max-width: 16ch; }
.page-header p { font-size: var(--step-1); max-width: 50ch; }

/* ---- simple form (contact page) -------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5em; }
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--moss); }

/* ---- month calendar (schedule section) ---------------------------------------- */
.calendar-month { width: 100%; }
.calendar-head { text-align: center; margin-bottom: 1.5rem; }
.calendar-head h3 { font-size: var(--step-1); font-weight: 500; margin: 0; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 0.6rem;
}
.cal-cell {
  position: relative;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--card);
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.cal-cell.cal-empty { background: transparent; }
.cal-cell.has-class { background: var(--stone-deep); color: var(--ink); font-weight: 600; }
.cal-cell.is-today { outline: 2px solid var(--moss); outline-offset: -2px; }
.cal-dot {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

.calendar-legend { max-width: 640px; margin: 2.5rem auto 0; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.calendar-legend h4 { font-size: 0.85rem; text-transform: none; color: var(--ink-soft); font-weight: 600; margin-bottom: 1rem; }
.calendar-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.calendar-legend li { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-soft); }
.calendar-legend .dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); transform: translateY(-1px); }
.calendar-legend strong { color: var(--ink); font-weight: 600; }

/* ---- responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .main-nav, .header-cta .phone { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
  }
  .main-nav.open ul { flex-direction: column; gap: 0; padding: 0 clamp(1.25rem, 4vw, 3rem); }
  .main-nav.open a { display: block; padding: 0.85em 0; border-bottom: 1px solid var(--line-soft); }

  .hero { min-height: min(80vh, 560px); }
  .section { padding: 2rem 0; }

  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: 2rem 0; }
  .pillar:last-child { border-bottom: none; }

  .class-row { grid-template-columns: 1fr; text-align: left; }
  .class-row .meta { text-align: left; }
  .class-row .idx { display: none; }

  .trainers-grid { grid-template-columns: repeat(2, 1fr); }
  .location-strip { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .trainers-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }

  .schedule-item { grid-template-columns: 1fr; gap: 0.4rem; text-align: left; }
  .schedule-item .btn { justify-self: start; }
  .location-strip { padding-top: 2rem; }
}

/* ---- back to top --------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--moss);
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  box-shadow: 0 6px 18px rgba(42, 37, 30, 0.25);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--moss-light); }
.back-to-top svg { width: 20px; height: 20px; }
