/* ---------- Design tokens ---------- */
:root {
  --navy: #1B2A4A;
  --navy-dark: #121d34;
  --navy-light: #2c4270;
  --gold: #E0A138;
  --gold-light: #f3c877;
  --cream: #FAF6EF;
  --cream-dark: #f0e9db;
  --ink: #232323;
  --muted: #6b7280;
  --line: #e7e1d3;
  --green: #3f7d5c;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 42, 74, 0.16);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-dark); box-shadow: 0 6px 16px rgba(224, 161, 56, 0.35); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-invert { background: var(--navy-dark); color: #fff; }
.btn-invert:hover { background: var(--navy); }
.btn-sm { padding: 0.6em 1.2em; font-size: 0.85rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; }
.brand-text.light strong { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--navy); position: relative; padding: 0.3em 0; }
.main-nav a.active, .main-nav a:hover { color: var(--gold); }
.main-nav a.nav-cta {
  background: var(--navy); color: #fff; padding: 0.55em 1.3em; border-radius: 999px;
}
.main-nav a.nav-cta:hover { background: var(--navy-light); color: #fff; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-pattern { position: absolute; inset: 0; opacity: 0.5; z-index: 1; pointer-events: none; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  color: var(--gold-light); font-weight: 600; margin-bottom: 1em;
}
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.page-header {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.page-header h1 { color: #fff; }
.hero-sub-dark { color: rgba(255,255,255,0.8); max-width: 620px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream-dark); }
.section-head { max-width: 640px; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--ink); max-width: 720px; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.prose p { color: #3a3a3a; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,42,74,0.05);
}
.highlight-card { background: linear-gradient(135deg, #fff, var(--cream-dark)); border: 1px solid var(--line); }
.highlight-card.wide { text-align: center; padding: 3rem; }

.facilities-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.facility-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); text-align: left;
}
.facility-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--navy);
}
.facility-icon .icon { margin: 0; width: 22px; height: 22px; }

.club-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.club-list li { display: flex; align-items: center; gap: 0.6em; padding: 0.5em 0; border-bottom: 1px dashed var(--line); }
.club-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.link-arrow { font-weight: 600; color: var(--navy); }
.link-arrow:hover { color: var(--gold); }

.cta-band { background: var(--cream-dark); }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }

/* ---------- Schedule / agenda ---------- */
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.schedule-card { position: relative; }
.badge {
  display: inline-block; background: var(--navy); color: #fff; font-size: 0.75rem;
  font-weight: 600; padding: 0.3em 0.9em; border-radius: 999px; margin-bottom: 0.8em;
}
.badge-gold { background: var(--gold); color: var(--navy-dark); }
.time-list { list-style: none; padding: 0; margin: 0.8em 0; }
.time-list li { display: flex; align-items: center; padding: 0.3em 0; color: #3a3a3a; font-size: 0.95rem; }
.card-contact { border-top: 1px solid var(--line); margin-top: 1em; padding-top: 1em; font-size: 0.9rem; }
.card-contact p { display: flex; align-items: center; margin: 0.3em 0; color: var(--muted); }

/* ---------- Tabs (cursussen) ---------- */
.tabs { display: flex; gap: 0.6rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn {
  background: #fff; border: 1px solid var(--line); padding: 0.7em 1.6em; border-radius: 999px;
  font-weight: 600; cursor: pointer; color: var(--navy); font-size: 0.95rem;
}
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.course-card dl { margin: 1em 0; }
.course-card dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.7em; }
.course-card dd { margin: 0.15em 0 0; }
.price { font-weight: 700; color: var(--green); font-size: 1.05rem; }
.info-box { background: var(--cream-dark); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.contact-line { margin: 0; }
.resource-list { padding-left: 1.2em; }

/* ---------- Location ---------- */
.address-card h3 { display: flex; align-items: center; }
.address { font-size: 1.05rem; font-weight: 600; }
.note { font-style: italic; color: var(--muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Results ---------- */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.result-card {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; color: var(--navy); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.result-card.disabled { color: var(--muted); cursor: default; }
.result-card .arrow { color: var(--gold); font-size: 1.2rem; }
.result-card .soon { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding: 0.8em 0; border-bottom: 1px dashed var(--line); }
.contact-list a { color: var(--navy); font-size: 0.9rem; }
.form-card h2 { margin-bottom: 1rem; }
.stacked-form { display: flex; flex-direction: column; gap: 1.1rem; }
.stacked-form label { display: flex; flex-direction: column; gap: 0.4em; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.stacked-form input, .stacked-form textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.7em 0.9em;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream);
}
.stacked-form input:focus, .stacked-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.alert { padding: 1em 1.2em; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500; }
.alert-success { background: #e4f3ea; color: var(--green); border: 1px solid #bfe3cd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8em; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer p { margin: 0.3em 0; font-size: 0.92rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}
.admin-link { opacity: 0.6; }
.admin-link:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line);
    display: none; gap: 0.2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7em 0; }
  .main-nav a.nav-cta { text-align: center; margin-top: 0.5em; }
  .facilities-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 4rem; }
}

/* ---------- Photos ---------- */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-photo.is-active { opacity: 0.3; }
@media (prefers-reduced-motion: reduce) {
  .hero-photo { transition: none; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(18,29,52,0.94) 0%, rgba(18,29,52,0.72) 55%, rgba(18,29,52,0.45) 100%);
  pointer-events: none;
}
.hero-pattern { z-index: 2; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.photo-item { margin: 0; }
.photo-item-wide { grid-column: span 2; }
.photo-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-open img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item-wide .photo-open img { aspect-ratio: 8 / 3; }
.photo-open:hover img,
.photo-open:focus-visible img { transform: scale(1.04); }
.photo-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.photo-tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: rgba(18, 29, 52, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 999px;
}
.photo-item figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: left;
}

/* A single photo used as a page illustration */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-frame figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.7rem 1rem;
  background: var(--white);
}

/* ---------- Lightbox ---------- */
body.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 16, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 50%;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }

.lightbox-nav {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { margin-right: 1rem; }
.lightbox-next { margin-left: 1rem; }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lightbox-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .lightbox { padding: 1rem 0.5rem; }
  .lightbox-nav {
    position: absolute;
    bottom: 1.25rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.16);
  }
  .lightbox-prev { left: 1.25rem; }
  .lightbox-next { right: 1.25rem; }
  .lightbox-figure figcaption { padding: 0 3.5rem; }
}

@media (max-width: 860px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item-wide { grid-column: span 1; }
  .photo-item-wide .photo-open img { aspect-ratio: 4 / 3; }
}

.photo-more { margin-top: 1.75rem; }
.photo-more .link-arrow { font-weight: 600; }

/* ---------- Week grid & calendar ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.spaced { margin-top: 3rem; }
.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.room-grid, .cal-grid {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.room-grid th, .cal-grid th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 0.6rem;
  text-align: left;
}
.room-grid td, .cal-grid td {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 0.7rem 0.6rem;
  vertical-align: top;
}
.room-grid th[scope="row"] {
  background: var(--cream-dark);
  color: var(--navy);
  width: 6.5rem;
  border-top: 1px solid var(--line);
  border-left: none;
}
.room-grid td.empty { background: repeating-linear-gradient(135deg, transparent, transparent 7px, rgba(27,42,74,0.035) 7px, rgba(27,42,74,0.035) 14px); }
.room-entry {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.25rem 0;
}
.room-entry + .room-entry { border-top: 1px dashed var(--line); }

.cal-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cal-grid td { height: 6.5rem; width: 14.28%; }
.cal-grid td.outside { background: var(--cream); color: var(--muted); }
.cal-grid td.today { background: rgba(224, 161, 56, 0.12); }
.cal-grid td.today .cal-daynum { background: var(--gold); color: var(--navy); border-radius: 999px; padding: 0 0.45em; }
.cal-daynum { display: inline-block; font-weight: 700; font-size: 0.85rem; color: var(--navy); margin-bottom: 0.35rem; }
.cal-event {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  background: var(--cream-dark);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-time { font-weight: 700; color: var(--navy); margin-right: 0.3em; }

.cal-upcoming { list-style: none; padding: 0; margin: 1rem 0 0; }
.cal-upcoming li {
  display: grid;
  grid-template-columns: 3.5rem 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.cal-up-date { font-weight: 700; color: var(--navy); }
.cal-up-time { color: var(--muted); }
.cal-up-title { font-weight: 500; }
.cal-up-loc { color: var(--muted); font-size: 0.85rem; text-align: right; }

@media (max-width: 640px) {
  .cal-upcoming li { grid-template-columns: 3.2rem 3.2rem 1fr; }
  .cal-up-loc { grid-column: 1 / -1; text-align: left; }
}

/* ---------- News ---------- */
.container.narrow { max-width: 760px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-thumb { display: block; }
.news-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.news-date {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; margin: 0;
}
.news-body h3 { margin: 0 0 0.25rem; }
.news-body h3 a { color: var(--navy); }
.news-body h3 a:hover { color: var(--gold); }
.news-body p { margin: 0 0 0.5rem; color: #3a3a3a; }
.news-body .link-arrow { margin-top: auto; }

/* Compact list used on the homepage */
.news-latest { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.news-latest article { border-left: 3px solid var(--gold); padding-left: 1rem; }
.news-latest h3 { font-size: 1.05rem; margin: 0.2rem 0 0.4rem; }
.news-latest h3 a { color: var(--navy); }
.news-latest h3 a:hover { color: var(--gold); }
.news-latest p { font-size: 0.95rem; color: #3a3a3a; }
