:root {
  --bg-deep: #0c1118;
  --bg-card: #141c27;
  --bg-elevated: #1a2433;
  --text-primary: #f4f1ea;
  --text-secondary: #d5dce6;
  --text-muted: #b8c5d4;
  --accent: #c9a962;
  --accent-hover: #dfc07a;
  --accent-dark: #8a7340;
  --border: rgba(201, 169, 98, 0.22);
  --danger: #e06b6b;
  --success: #6bc98a;
  --focus: #7eb8ff;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 169, 98, 0.08), transparent),
    linear-gradient(180deg, #0c1118 0%, #0a0e14 100%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

address { font-style: normal; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 9999;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--focus); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 17, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--text-primary); }

.nav-list a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-deep) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; color: var(--bg-deep) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg-deep); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-text {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 0.75rem;
}
.btn-text:hover { color: var(--accent); }

/* Layout */
main { display: block; }

.section {
  padding: 4rem 1.25rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-dark { background: var(--bg-card); }
.section-accent {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.12), rgba(20, 28, 39, 0.9));
  border-block: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 42rem;
}

.page-hero .lead,
.hero .lead {
  color: #e6ebf2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 17, 24, 0.97) 42%, rgba(12, 17, 24, 0.72) 100%),
    linear-gradient(180deg, rgba(12, 17, 24, 0.55) 0%, rgba(12, 17, 24, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero-content .eyebrow {
  text-shadow: none;
}

.split-text p,
.card-body p,
.team-card p,
.contact-details-box p,
.pricing-note p {
  color: var(--text-secondary);
}

.feature-list li {
  color: var(--text-secondary);
}

.hero-stat span {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.figure-block {
  margin: 0;
}

.figure-block img {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.figure-caption {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.content-measure {
  max-width: 68ch;
}

.section-intro {
  max-width: 68ch;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 36rem;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}

.hero-stat span {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Hero shell */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

.card-body { padding: 1.35rem 1.5rem 1.5rem; }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Feature rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse .split-media { order: 2; }
.split-reverse .split-text { order: 1; }

.split-media img {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 50%;
}

/* Page header */
.page-hero {
  padding: 4.5rem 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table th {
  color: var(--accent);
  font-weight: 600;
  background: rgba(201, 169, 98, 0.06);
}

.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Instructors */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.team-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.team-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-required { color: var(--accent); font-weight: 500; font-size: 0.85rem; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.25);
}

.form-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.form-notice-success {
  background: rgba(107, 201, 138, 0.12);
  border: 1px solid rgba(107, 201, 138, 0.35);
  color: var(--text-primary);
}

/* Map */
.map-section { margin-top: 2.5rem; }

.map-heading { font-size: 1.5rem; }

.map-intro { color: var(--text-muted); max-width: 48rem; margin-bottom: 1rem; }

.map-frame {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.map-placeholder {
  padding: 2.5rem;
  text-align: center;
}

.map-iframe {
  display: block;
  border: 0;
  width: 100%;
}

/* Legal */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
}

.legal-content h2,
.legal-content h3 {
  color: var(--text-primary);
}

.legal-content h2 {
  margin-top: 2.25rem;
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

/* Pricing note */
.pricing-note {
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.form-fine-print {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.cta-panel {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 1.25rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.footer-tagline { color: var(--text-muted); margin-bottom: 1rem; }

.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.9;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
  padding: 1.25rem;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-eyebrow {
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cookie-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cookie-panel[hidden] { display: none; }

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cookie-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: 0.2s;
}
.switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.2s;
}
.switch input:checked + .switch-slider { background: var(--accent-dark); border-color: var(--accent); }
.switch input:checked + .switch-slider::before { transform: translateX(22px); background: var(--text-primary); }
.switch input:focus-visible + .switch-slider { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Responsive */
@media (max-width: 900px) {
  .split, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media, .split-reverse .split-text { order: unset; }
  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { display: block; padding: 0.6rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
