/* ---------- Tokens ---------- */
:root {
  --cream: #fbf8f3;
  --cream-deep: #f3ede3;
  --ink: #3b3a36;
  --ink-soft: #6b675f;
  --sage: #8a9a7b;
  --sage-deep: #6f8062;
  --blush: #e9d5cc;
  --gold: #c9a96a;
  --lavender: #d9d2e3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(59, 58, 54, 0.08);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

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

a { color: var(--sage-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; font-weight: 300; }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.center { text-align: center; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 0.8em;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--sage-deep);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section:nth-of-type(even) {
  background-color: var(--cream-deep);
  background-image: linear-gradient(rgba(243, 237, 227, 0.55), rgba(243, 237, 227, 0.55)), url("../images/background-texture.jpg");
  background-size: cover;
  background-position: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--sage);
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); text-decoration: none; transform: translateY(-1px); }
.btn-small { padding: 10px 22px; font-size: 0.92rem; }
.btn-outline { background: transparent; color: var(--sage-deep); }
.btn-outline:hover { background: var(--sage); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 58, 54, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); font-size: 0.95rem; }
.site-nav a.btn { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .ph { width: 100%; height: 100%; border-radius: 0; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251,248,243,0.92) 0%, rgba(251,248,243,0.75) 45%, rgba(251,248,243,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 96px 24px;
  margin-left: max(24px, calc((100vw - var(--max)) / 2));
}
.hero-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sage-deep);
  margin-bottom: 1.8em;
}

/* ---------- Layouts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 1.2fr 1fr; }

.grid-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 48px 0;
}
.grid-4 > .card { flex: 0 1 calc((100% - 56px) / 3); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 18px; }
.card p { margin-bottom: 0; font-size: 0.98rem; }

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card .ph { border-radius: 0; }
.price-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.price-body p { font-size: 0.98rem; }
.price-body .btn { align-self: flex-start; margin-top: auto; }
.price-body .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-variant-numeric: lining-nums;
  color: var(--sage-deep);
  margin: -0.3em 0 0.5em;
}
.closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
}

/* ---------- Booking ---------- */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.book-info .ph { margin-bottom: 24px; }
.book-info .ph img { object-position: left center; }
.book-list {
  list-style: none;
  margin: 0;
  padding: 8px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.book-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(59, 58, 54, 0.08);
}
.book-list li:last-child { border-bottom: 0; }
.book-list h3 { font-size: 1.3rem; margin: 0 0 0.2em; }
.book-list p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.book-list .btn { flex-shrink: 0; }

/* ---------- Training page ---------- */
.page-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.container.narrow { max-width: 760px; }
.note-box {
  background: var(--white);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}
.note-box h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.note-box .btn { margin-top: 8px; }
.levels .price-card { min-height: 0; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.price-unit { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.price-body .price-total { font-size: 0.9rem; font-weight: 600; color: var(--sage-deep); margin: -0.2em 0 1em; }
.site-nav a[aria-current="page"] { color: var(--sage-deep); font-weight: 600; }
.site-footer a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(251,248,243,0.4); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 64px 0 40px;
}
.site-footer p { margin: 0 0 0.5em; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-tagline { font-style: italic; font-family: var(--font-display); font-size: 1.15rem; }
.footer-services { font-size: 0.9rem; opacity: 0.8; }
.footer-copy { font-size: 0.85rem; opacity: 0.6; margin-top: 24px; }

/* ---------- Image placeholders ----------
   Each .ph wraps an <img>. If the image loads, it fills the box.
   If it 404s, main.js adds .missing and a soft gradient + filename label show instead. */
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream-deep) 50%, var(--lavender) 100%);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 12px;
}
.ph.missing img { display: none; }
.ph.missing .ph-label { display: flex; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-landscape { aspect-ratio: 3 / 2; }
.ph-portrait { aspect-ratio: 4 / 5; }
.ph-hero { aspect-ratio: auto; }
.ph-hero .ph-label { inset: auto 24px 24px auto; padding: 6px 10px; background: rgba(255,255,255,0.6); border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 > .card { flex-basis: calc((100% - 28px) / 2); }
  .grid-3 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse .expect-text { order: 1; }
  .book-layout { grid-template-columns: 1fr; }
  .note-box { padding: 28px 24px; }
  .book-list li { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px 28px;
    background: var(--cream);
    border-bottom: 1px solid rgba(59, 58, 54, 0.08);
  }
  .site-nav.open { display: flex; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .grid-4 > .card { flex-basis: 100%; max-width: 420px; }
  .hero { min-height: auto; }
  .hero-content { padding: 72px 24px; margin-left: 0; }
  .hero-media::after { background: rgba(251,248,243,0.82); }
  .hero-media img { object-position: 85% center; }
}
