@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,550;9..144,650&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  --bg: #e8e4de;
  --bg-deep: #d9d3ca;
  --paper: #f4f1ec;
  --ink: #1f2421;
  --muted: #5c635e;
  --line: #c8c2b8;
  --accent: #3d6b5e;
  --accent-soft: #a8c4b8;
  --clay: #8b6f5c;
  --max: 1120px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(168,196,184,0.35), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(139,111,92,0.12), transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, #ebe7e1 50%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,241,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.55rem; font-weight: 550; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }
.menu-toggle {
  display: none; background: var(--ink); color: var(--paper); border: 0;
  padding: 0.55rem 0.9rem; font-family: var(--sans); font-size: 0.85rem; cursor: pointer;
}
.nav-main { display: flex; gap: 1.35rem; flex-wrap: wrap; }
.nav-main a { font-size: 0.92rem; font-weight: 400; }
.nav-main a[aria-current="page"] { color: var(--accent); font-weight: 500; }

.hero {
  min-height: min(88vh, 720px);
  background-size: cover; background-position: center;
  position: relative; display: grid; align-items: end;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,36,33,0.15) 0%, rgba(31,36,33,0.62) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 3.5rem;
  animation: rise 0.9s ease both;
}
.hero h1 {
  font-family: var(--display); font-weight: 550;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; margin: 0 0 0.8rem;
}
.hero p { max-width: 36ch; font-size: 1.05rem; margin: 0 0 1.4rem; opacity: 0.95; }
.btn {
  display: inline-block; padding: 0.85rem 1.4rem;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); background: #2f564b; color: #fff; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: inherit; }

.announce {
  background: var(--ink); color: var(--paper); text-align: center;
  padding: 0.65rem 1rem; font-size: 0.88rem;
}
.announce a { text-decoration: underline; color: var(--accent-soft); }

.section { padding: 4.5rem 0; }
.section-title {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 550; letter-spacing: -0.02em; margin: 0 0 0.5rem;
}
.section-lead { color: var(--muted); max-width: 52ch; margin: 0 0 2rem; }

.course-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.course-card {
  background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,36,33,0.08); }
.course-card img { width: 100%; height: 220px; object-fit: cover; }
.course-card .body { padding: 1.25rem 1.3rem 1.5rem; }
.course-card h3 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 0.4rem; font-weight: 550; }
.course-card .price { font-weight: 500; color: var(--accent); margin: 0.6rem 0 0; }

.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.split img { width: 100%; height: 420px; object-fit: cover; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 0.6rem; font-weight: 500;
}

.feature-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem;
}
.feature {
  padding: 1.4rem; background: rgba(244,241,236,0.7); border-left: 3px solid var(--accent);
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 500; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.page-hero {
  padding: 3.5rem 0 1.5rem; text-align: left;
}
.page-hero h1 {
  font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.page-hero p { color: var(--muted); max-width: 52ch; margin: 0; }

.hours-panel {
  background: var(--paper); border: 1px solid var(--line); padding: 1.25rem 1.4rem;
}
.hours-panel h3 { margin: 0 0 0.8rem; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hours-panel ul { list-style: none; margin: 0; padding: 0; }
.hours-panel li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.hours-panel li:last-child { border-bottom: 0; }

.contact-bits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.contact-bits h4 { margin: 0 0 0.3rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-bits p { margin: 0; }

.contact-band {
  background: var(--ink); color: var(--paper); padding: 3.5rem 0; margin-top: 2rem;
}
.contact-band h2 { font-family: var(--display); margin: 0 0 0.4rem; }
.contact-band .sub { color: rgba(244,241,236,0.7); margin: 0 0 1.5rem; }
.contact-form { display: grid; gap: 0.75rem; max-width: 520px; }
.contact-form label { font-size: 0.85rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.75rem 0.85rem; border: 1px solid #3a403c;
  background: #2a302d; color: #fff; font-family: var(--sans); font-size: 1rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-success {
  display: none; margin-top: 1rem; padding: 0.9rem 1rem;
  background: rgba(168,196,184,0.2); border: 1px solid var(--accent-soft);
}
.form-success.show { display: block; animation: rise 0.4s ease both; }

.legal { padding: 3rem 0 4rem; max-width: 760px; }
.legal h1 { font-family: var(--display); }
.legal h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal ul { padding-left: 1.2rem; }

.site-footer {
  border-top: 1px solid var(--line); padding: 2.5rem 0; margin-top: 2rem;
  background: rgba(244,241,236,0.65);
}
.foot-grid {
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }

.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 100;
  max-width: 520px; background: var(--paper); border: 1px solid var(--line);
  padding: 1.1rem 1.2rem; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: none;
}
.cookie-banner.show { display: block; animation: rise 0.45s ease both; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions button {
  border: 1px solid var(--line); background: #fff; padding: 0.55rem 0.9rem;
  font-family: var(--sans); cursor: pointer; font-size: 0.85rem;
}
.cookie-actions .accept { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-settings-panel { display: none; margin-top: 0.9rem; }
.cookie-settings-panel.open { display: grid; gap: 0.45rem; }
.cookie-settings-panel label { font-size: 0.9rem; }

.gallery {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0.75rem;
}
.gallery img { width: 100%; height: 240px; object-fit: cover; }
.gallery img:first-child { height: 100%; min-height: 240px; grid-row: span 2; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .course-grid, .feature-row, .split, .contact-bits, .gallery { grid-template-columns: 1fr; }
  .gallery img:first-child { grid-row: auto; height: 240px; }
  .menu-toggle { display: inline-block; }
  .nav-main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--line); gap: 0.85rem;
  }
  .nav-main.open { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
