/* ═══════════════════════════════════════════════════════
   TAYLA MADE PT — styles.css
   Palette (brand sheet):
     Baby beige  #FFF7EF   backgrounds
     Baby black  #171717   text + dark sections
     Baby blue   #CCE3E3   soft supporting sections
     Baby brown  #936518   accent
   Type: League Gothic (display) · Instrument Serif (emotional)
         IBM Plex Sans (body)
   Signature device: the "capsule arch" — tall rounded image
   frames echoing the oval TM monogram.
═══════════════════════════════════════════════════════ */

:root {
  --beige: #FFF7EF;
  --ink: #171717;
  --blue: #CCE3E3;
  --brown: #936518;
  --brown-dark: #7a5313;
  --ink-soft: rgba(23, 23, 23, 0.72);
  --line: rgba(23, 23, 23, 0.14);

  --font-display: "League Gothic", "Arial Narrow", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --section-gap: clamp(4rem, 9vw, 8rem);
  --arch: clamp(90px, 16vw, 220px);   /* capsule-arch radius */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.04; }
p { margin: 0 0 1em; }

a { color: inherit; }

::selection { background: var(--blue); color: var(--ink); }

/* ── Type roles ─────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(3.4rem, 11vw, 7.5rem); }
h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-size: 0.92em;
  letter-spacing: 0;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.serif-head, .serif-line {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.serif-head { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; }
.serif-line { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brown);
  margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--blue); }

.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }

/* ── Accessibility helpers ──────────────────────────── */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--ink); color: var(--beige);
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

.hidden-field { position: absolute !important; left: -9999px; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad-x);
  max-width: 1400px;
  margin: 0 auto;
}
.brand { text-decoration: none; line-height: 1; white-space: nowrap; }
.brand-tayla {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.02em;
}
.brand-made {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin-left: 0.18em;
}

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); }
.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.site-nav a:hover { border-bottom-color: var(--brown); }
.nav-cta {
  background: var(--ink);
  color: var(--beige);
  padding: 0.6rem 1.4rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--brown); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}
.menu-bar {
  display: block;
  width: 16px; height: 2px;
  background: var(--ink);
}
.menu-bar + .menu-bar { margin-top: -0.15rem; }
.menu-toggle .menu-bar:first-child { margin-top: 0; }

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .menu-toggle .menu-bar { width: 14px; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--beige);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad-x) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-radius: 999px;
  }
}

/* ── Layout primitives ──────────────────────────────── */
.section {
  padding: var(--section-gap) var(--pad-x);
  max-width: 1400px;
  margin: 0 auto;
}
.section-head { max-width: 46em; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad-x) var(--section-gap);
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 42% 1fr; }
}
.hero-copy h1 { margin-bottom: 0.35em; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.6rem 0 1.2rem; }
.hero-location {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-media img {
  width: 100%;
  border-radius: var(--arch) var(--arch) 14px 14px;   /* capsule arch */
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
@media (max-width: 899px) {
  .hero-media img { aspect-ratio: 4 / 3.4; object-position: 62% center; }
}

/* ── Buttons ────────────────────────────────────────── */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.button-solid { background: var(--ink); color: var(--beige); }
.button-solid:hover { background: var(--brown); border-color: var(--brown); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--beige); }
.button-light {
  background: var(--beige);
  color: var(--ink);
  border-color: var(--beige);
}
.button-light:hover { background: var(--blue); border-color: var(--blue); }

.text-link {
  display: inline-block;
  font-weight: 600;
  color: var(--brown-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--brown);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link::after { content: " →"; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* ── Statement ──────────────────────────────────────── */
.statement {
  background: var(--ink);
  color: var(--beige);
  padding: var(--section-gap) var(--pad-x);
  text-align: center;
}
.statement-inner { max-width: 52rem; margin: 0 auto; }
.statement-line {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: 0.5em;
}
.statement-em {
  color: var(--blue);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  margin-bottom: 0;
}

/* ── Stage tabs ─────────────────────────────────────── */
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}
.stage-tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.stage-tab:hover { background: rgba(23,23,23,0.06); }
.stage-tab.is-active {
  background: var(--ink);
  color: var(--beige);
}
.stage-panels {
  background: var(--blue);
  border-radius: 22px;
  padding: clamp(1.75rem, 4vw, 3rem);
  max-width: 56rem;
}
.stage-panel p { max-width: 38em; }
.stage-panel .text-link { margin-top: 0.25rem; }

/* ── Difference ─────────────────────────────────────── */
.difference {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .difference { grid-template-columns: 1.1fr 1fr; }
}
.difference-media img {
  width: 100%;
  border-radius: 14px 14px var(--arch) 14px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (max-width: 899px) {
  .difference-media img { object-position: center 30%; }
}
.difference-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.difference-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.difference-list li:last-child { border-bottom: none; }
.difference-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 18px; height: 12px;
  border: 1.5px solid var(--brown);
  border-radius: 999px;               /* tiny oval echo of the monogram */
}

/* ── Ways to train ──────────────────────────────────── */
.train-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 820px) {
  .train-grid { grid-template-columns: repeat(3, 1fr); }
}
.train-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  object-position: center 22%;
}
.card-body {
  padding: 1.6rem 1.6rem 1.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body p { color: var(--ink-soft); }
.card-price {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ink) !important;
  margin: 0.25rem 0 1.25rem;
}
.card-price span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.card-body .button { margin-top: auto; }

/* ── Postpartum ─────────────────────────────────────── */
.postpartum {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  background: var(--blue);
  max-width: none;
}
.postpartum > * {
  max-width: 640px;
}
@media (min-width: 900px) {
  .postpartum {
    grid-template-columns: 1.15fr 1fr;
    padding-left: max(var(--pad-x), calc((100vw - 1400px) / 2 + 4rem));
    padding-right: max(var(--pad-x), calc((100vw - 1400px) / 2 + 4rem));
  }
}
.postpartum-media img {
  width: 100%;
  border-radius: var(--arch) var(--arch) 14px 14px;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
}
.scope-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--brown);
  padding-left: 1rem;
  margin-top: 1.75rem;
  max-width: 36em;
}

/* ── Online (dark) ──────────────────────────────────── */
.online {
  background: var(--ink);
  color: var(--beige);
  padding: var(--section-gap) var(--pad-x);
}
.online-inner { max-width: 1400px; margin: 0 auto; }
.online-copy { max-width: 46rem; }
.online-copy > p { color: rgba(255,247,239,0.82); max-width: 40em; }
.online-steps {
  list-style: none;
  margin: 2.25rem 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 820px) {
  .online-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.online-steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 36px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;               /* oval step markers */
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--blue);
}
.online-steps h3 { color: var(--beige); margin-bottom: 0.3em; font-size: 1.05rem; }
.online-steps p { color: rgba(255,247,239,0.72); font-size: 0.95rem; margin: 0; }

/* ── About ──────────────────────────────────────────── */
.about {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1.15fr; }
}
.about-media img {
  width: 100%;
  border-radius: var(--arch) var(--arch) 14px 14px;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
}
.about-copy p { max-width: 36em; }
.credentials {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
.credentials h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brown); }
.credentials ul { margin: 0; padding-left: 1.2rem; }

/* ── Community ──────────────────────────────────────── */
.community {
  display: grid;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  padding: var(--section-gap) var(--pad-x);
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .community { grid-template-columns: 1fr 1fr; }
}
.community-media img {
  width: 100%;
  border-radius: 14px 14px 14px var(--arch);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
}
.community-copy p { max-width: 32em; color: var(--ink-soft); font-size: 1.1rem; }

/* ── Enquiry form ───────────────────────────────────── */
.start { padding-bottom: calc(var(--section-gap) + 1rem); }
.start-head { max-width: 44em; margin-bottom: clamp(2rem, 5vw, 3rem); }

.enquiry-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 56rem;
}
.form-grid {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--beige);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brown);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171717' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  margin-top: 0.2rem;
  width: 1.15rem; height: 1.15rem;
  accent-color: var(--brown);
  flex: 0 0 auto;
}
.consent a { color: var(--brown-dark); }
.button-submit {
  margin-top: 1.75rem;
  width: 100%;
  font-size: 1.05rem;
  padding: 1rem 2rem;
}
@media (min-width: 700px) {
  .button-submit { width: auto; }
}
.form-note { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.form-note a { color: var(--brown-dark); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--beige);
  padding: var(--section-gap) var(--pad-x) 2rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
}
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1fr 1.3fr; align-items: start; }
}
.footer-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px; height: 58px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.footer-wordmark { font-size: 1.9rem; margin-bottom: 0.4rem; }
.footer-wordmark .brand-tayla { font-size: 1em; }
.footer-wordmark .brand-made { font-size: 0.9em; }
.footer-tag { color: rgba(255,247,239,0.7); max-width: 24em; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}
.footer-col h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.footer-col p { margin-bottom: 0.5rem; color: rgba(255,247,239,0.85); font-size: 0.95rem; }
.footer-col a { color: inherit; text-decoration-color: rgba(255,247,239,0.4); }
.footer-col a:hover { color: var(--blue); }
.footer-legal {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,247,239,0.18);
  font-size: 0.85rem;
  color: rgba(255,247,239,0.55);
}

/* ── Reveal on scroll ───────────────────────────────────
   Gated behind html.js (added by script.js) so content is
   always visible if JavaScript fails or is disabled. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* Inline enquiry confirmation */
.form-success { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid currentColor; border-radius: 14px; background: rgba(255,255,255,.45); }
.form-success h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.form-success p, .form-error { margin: 0; }
.form-error { margin-top: 1rem; font-weight: 600; }
.button-submit:disabled { opacity: .65; cursor: wait; }
