/* Theme and design tokens */
:root {
  --bg: #f8faf9;
  --ink: #0f2a2c;
  --muted: #4c6567;
  --deep: #0d3b3f;
  --gold: #c42a5c;
  --mist: #e4efec;
  --line: #cadad6;
  --on: #f8faf9;
  --goldtxt: #f0c56e;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08181a;
    --ink: #e7f2f1;
    --muted: #9db8b9;
    --deep: #0f3a3f;
    --gold: #f27aa0;
    --mist: #0e2427;
    --line: #1e4348;
    --on: #f4faf9;
    --goldtxt: #f0c56e;
  }
}

:root[data-theme="dark"] {
  --bg: #08181a;
  --ink: #e7f2f1;
  --muted: #9db8b9;
  --deep: #0f3a3f;
  --gold: #f27aa0;
  --mist: #0e2427;
  --line: #1e4348;
  --on: #f4faf9;
  --goldtxt: #f0c56e;
}

/* Global reset and typography */
*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Figtree, system-ui, sans-serif;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

/* Layout helpers */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.page[hidden] {
  display: none;
}

/* Header and navigation */
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 52px;
  height: auto;
}

nav a {
  margin-left: 1.4rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

nav a:hover {
  color: var(--ink);
}

nav a.on {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.menu-btn {
  display: none;
  font: 700 1rem Figtree, sans-serif;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}

/* Buttons and action links */
.btn,
.btn:visited {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--deep);
  background: var(--deep);
  color: var(--on);
  font: 700 1rem inherit;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.15);
}

.btn.alt {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.big {
  display: block;
  padding: 1.1rem 1.4rem;
  font-size: 1.1rem;
  text-align: center;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 4rem;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.rings {
  position: absolute;
  right: -160px;
  top: 50%;
  width: 680px;
  height: 680px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.rings circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0.28;
  transform-origin: center;
  animation: ripple 6s ease-out 1;
}

.rings circle:nth-child(2) { animation-delay: 0.4s; }
.rings circle:nth-child(3) { animation-delay: 0.8s; }
.rings circle:nth-child(4) { animation-delay: 1.2s; }
.rings circle:nth-child(5) { animation-delay: 1.6s; }

@keyframes ripple {
  from {
    transform: scale(0.15);
    opacity: 0;
  }
  30% {
    opacity: 0.45;
  }
  to {
    transform: scale(1);
    opacity: 0.28;
  }
}

h1 {
  font-size: clamp(2.3rem, 6.5vw, 3.9rem);
  letter-spacing: -0.01em;
}

.lede {
  margin: 1.2rem 0 1.8rem;
  max-width: 30em;
  font-size: 1.18rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.7rem 1.3rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: 700 1rem Figtree, sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.home-actions {
  margin-top: 1.4rem;
}

.photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 220px 220px 22px 22px;
}

.split .photo {
  border-radius: 22px;
}

/* Generic sections */
h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.sub {
  max-width: 34em;
  margin-bottom: 2rem;
  color: var(--muted);
}

.page-label,
.who {
  color: var(--gold);
  font-weight: 700;
}

.path {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.path:first-of-type {
  border-top: 1px solid var(--line);
}

.path h3 {
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.path p {
  color: var(--muted);
}

.buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.alt-link {
  font-size: 0.95rem;
  color: var(--muted);
}

.list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.list strong {
  display: block;
}

.list span {
  color: var(--muted);
  font-size: 0.98rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
}

.steps li::before {
  content: counter(s);
  display: block;
  color: var(--gold);
  font: 2rem "Young Serif", Georgia, serif;
}

.steps strong {
  display: block;
  margin: 0.2rem 0;
}

.steps span {
  color: var(--muted);
}

.steps.s4 {
  grid-template-columns: repeat(4, 1fr);
}

.steps.s4 li::before {
  content: counter(s, decimal-leading-zero);
}

.split {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 3rem;
  align-items: center;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.q-main {
  margin-bottom: 2.2rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.4;
}

.q-main footer,
blockquote footer {
  margin-top: 0.8rem;
  color: var(--muted);
  font: 400 0.95rem Figtree, sans-serif;
}

blockquote {
  margin: 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--gold);
}

blockquote footer {
  padding: 0;
}

.reviews-link {
  margin-top: 2rem;
}

details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold);
}

details[open] summary::after {
  content: "\2212";
}

details p {
  max-width: 40em;
  margin-top: 0.7rem;
  color: var(--muted);
}

.note,
.note-plain {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  opacity: 0.8;
}

.note-plain {
  color: var(--muted);
  opacity: 1;
}

.band {
  background: var(--deep);
  color: var(--on);
  border-top: none;
}

.band h2,
.band .sub {
  color: var(--on);
}

.band .sub {
  opacity: 0.88;
}

.band .btn {
  background: var(--on);
  color: var(--deep);
  border-color: var(--on);
}

.band .btn.alt {
  background: transparent;
  color: var(--on);
  border-color: var(--on);
}

/* Page headers and standard CTA blocks */
.phead {
  padding: 3rem 0 1.5rem;
}

.phead .lede {
  margin-bottom: 1.5rem;
}

.page section:first-of-type {
  border-top: 0;
}

.cta3 {
  display: grid;
  gap: 0.8rem;
  max-width: 520px;
}

.social,
.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.social a,
.social-list a {
  color: var(--muted);
}

.facility-email,
.contact-call,
.booking-note,
.training-note {
  margin-top: 1.5rem;
}

/* Gallery */
.gallery {
  display: grid;
  gap: 0.6rem;
  margin-top: 2rem;
}

.gallery img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery .wide {
  aspect-ratio: 16 / 9;
  object-position: 50% 70%;
}

.gal3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.gal3 img {
  aspect-ratio: 1 / 1;
}

/* WhatsApp floating action */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  background: #0e7a42;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-float.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

footer.site {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .steps.s4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .quotes.q3 {
    grid-template-columns: 1fr;
  }

  .hero .photo {
    aspect-ratio: 1 / 1;
    object-position: 50% 30%;
    border-radius: 160px 160px 22px 22px;
  }
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .menu-btn {
    display: inline-flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--deep);
    padding: 0.8rem 1.5rem 1.2rem;
    flex-direction: column;
    border-radius: 0 0 18px 18px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    margin: 0;
    padding: 0.7rem 0;
    color: var(--on);
    font: 1.3rem "Young Serif", Georgia, serif;
  }

  .path {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .path .btn {
    justify-self: start;
    margin-top: 0.4rem;
  }

  .buy {
    justify-self: start;
    margin-top: 0.4rem;
  }

  .list,
  .steps,
  .steps.s4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .quotes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .steps.s4 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rings circle {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
