/* ============================================================
   Mindful Motion
   Colours and fonts are set once here; change them in :root.
   ============================================================ */

:root {
  --blue: #005483;       /* logo blue */
  --blue-dark: #00466e;
  --tide: #0b3049;       /* deep water, dark sections */
  --mist: #edf3f6;       /* soft background bands */
  --seaglass: #b9ddd4;   /* accent on dark backgrounds */
  --ink: #1d2a31;        /* body text */
  --muted: #53646d;
  --line: #d5e1e7;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

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

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--tide);
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}

h2 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--tide);
  margin: 0 0 0.75rem;
}

p { margin: 0 0 1em; }

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.button:hover { background: var(--blue-dark); color: var(--white); }

.button-quiet {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.button-quiet:hover { background: var(--blue); }

.button-small { min-height: 2.5rem; padding: 0.45rem 1.25rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.25rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.brand-mark { height: 2.4rem; width: auto; }
.brand-text { height: 1.35rem; width: auto; }

.nav { display: flex; gap: 1.75rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--blue); }

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 85% 40%, var(--mist), transparent 70%),
    var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: min(44rem, calc(100svh - 4.25rem));
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  max-width: 17ch;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-art {
  justify-self: center;
  width: min(100%, 30rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-art img { width: 100%; height: auto; opacity: 0.9; }

.spin { animation: turn 140s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Intro ---------- */

.intro {
  background: var(--tide);
  color: var(--white);
  padding: var(--section) 0;
}
.intro p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 46rem;
  margin: 0 auto;
}

/* ---------- Treatments ---------- */

.treatments { padding: var(--section) 0; }

.treatment-layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.treatment-tabs { display: none; }

.has-tabs .treatment-tabs {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  align-self: start;
  position: sticky;
  top: 6rem;
}

.treatment-tabs button {
  appearance: none;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-weight: 500;
  color: var(--muted);
  padding: 0.85rem 1.25rem;
  margin-left: -1px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.treatment-tabs button:hover { color: var(--blue); }
.treatment-tabs button[aria-selected="true"] {
  color: var(--tide);
  font-weight: 600;
  border-left-color: var(--blue);
}

/* Without JavaScript the layout collapses to one column and every treatment shows */
html:not(.has-tabs) .treatment-layout { grid-template-columns: 1fr; }
html:not(.has-tabs) .treatment + .treatment {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.treatment > p { font-size: 1.15rem; max-width: 40rem; }

.treatment-details {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  margin-top: 2.25rem;
}

.treatment ul, .fees-grid ul { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.treatment li, .fees-grid li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
  border-bottom: 1px solid var(--line);
}
.treatment li::before, .fees-grid li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--seaglass);
  box-shadow: 0 0 0 2px var(--blue) inset;
}

.benefits {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.benefits li { padding: 0 0 1.1rem; border: 0; }
.benefits li:last-child { padding-bottom: 0; }
.benefits li::before { display: none; }
.benefits strong { display: block; font-weight: 600; color: var(--blue); }
.treatment h4 { font-size: 1.05rem; }

/* ---------- About ---------- */

.about {
  background: var(--mist);
  padding: var(--section) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.about-photo {
  margin: 0;
  position: sticky;
  top: 6rem;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--blue);
  z-index: 0;
}
.about-photo img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  width: 100%;
}

.about-text { max-width: 38rem; }
.about-text h2 { margin-bottom: 0.1em; }
.about-text h2 + p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1.75rem;
}

.about blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--blue);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--tide);
}
.about blockquote p { margin: 0; }

/* ---------- Sessions & fees ---------- */

.fees { padding: var(--section) 0; }

.fees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
}
.fees-grid > div { border-top: 3px solid var(--blue); padding-top: 1.5rem; }
.fees h3 { font-size: 1.75rem; }
.fees-grid ul + p, .fees-grid p + p { font-size: 0.925rem; color: var(--muted); }

.plain { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.plain li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.fees-grid .plain li { padding-left: 0; }
.fees-grid .plain li::before { display: none; }
.plain li span:last-child { font-weight: 600; color: var(--tide); white-space: nowrap; }

/* ---------- Booking ---------- */

.book {
  background: var(--tide);
  color: var(--white);
  padding: var(--section) 0;
}
.book h2 { color: var(--white); }
.book a { color: var(--seaglass); }
.book a:hover { color: var(--white); }

.book-head { max-width: 40rem; margin-bottom: 2.5rem; }
.book-head p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; }

.book-frame {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.book-frame iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

.book-alt { margin: 1.25rem 0 0; font-size: 0.95rem; }

/* ---------- Visit ---------- */

.visit { padding: var(--section) 0; }

.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.visit address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--tide);
  margin: 1.25rem 0 1.75rem;
}

.drive { max-width: 22rem; margin-bottom: 2rem; }

.visit-map figure { margin: 0; }
.visit-map img { border-radius: var(--radius); width: 100%; }
.visit-map figcaption { margin-top: 0.85rem; font-size: 0.925rem; color: var(--muted); }

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

.site-footer {
  background: var(--mist);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.footer-logo { height: 1.1rem; width: auto; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }

/* ---------- Tablet ---------- */

@media (max-width: 960px) {
  .nav { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }
  .hero-text { position: relative; z-index: 1; }
  .hero-art {
    position: absolute;
    top: 50%;
    right: -9rem;
    width: 24rem;
    transform: translateY(-50%);
    opacity: 0.16;
  }

  .treatment-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .has-tabs .treatment-tabs {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-left: 0;
  }
  .treatment-tabs button {
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: var(--mist);
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
  }
  .treatment-tabs button[aria-selected="true"] { background: var(--blue); color: var(--white); }

  .about-inner, .visit-inner { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; max-width: 22rem; }

  .fees-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand-mark { height: 2rem; }
  .brand-text { height: 0.95rem; }

  .hero-art { right: -11rem; width: 20rem; }
  .hero-actions .button { width: 100%; }

  .treatment-details { grid-template-columns: 1fr; gap: 1.75rem; }
  .benefits { padding: 1.35rem; }

  .about-photo { max-width: calc(100% - 1.5rem); }

  .book-frame iframe { height: 760px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
