/* ==========================================================================
   Badminton Herwijnen — Clean Court design system
   White-forward, green as accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f6f9f5;
  --bg-tint: #eef5ee;

  --ink: #0f2a1c;
  --green-800: #12492e;
  --green-700: #17603b;
  --green-600: #1f7a4d;
  --green-500: #2f9160;
  --green-100: #e6f2ea;
  --green-border: #d9e9de;

  --text: #37453e;
  --text-soft: #728178;

  --shadow-sm: 0 1px 2px rgba(15, 42, 28, 0.05);
  --shadow-md: 0 14px 34px rgba(15, 42, 28, 0.08);
  --shadow-lg: 0 30px 70px rgba(15, 42, 28, 0.14);

  --radius: 18px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

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

h1, h2, h3, h4 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; color: var(--text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--green-700);
  display: inline-block;
}

/* ---------------------------------------------------------------------- *
 * Decorative backdrop — soft, not gritty
 * ---------------------------------------------------------------------- */
.grain { display: none; }

.court-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 320px at 88% -6%, rgba(31, 122, 77, 0.10), transparent 70%),
    radial-gradient(460px 280px at 4% 108%, rgba(31, 122, 77, 0.08), transparent 70%);
}

/* ---------------------------------------------------------------------- *
 * Header
 * ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--green-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.logo .mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.logo .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}
.logo small {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--green-600);
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--text);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.main-nav a:hover { color: var(--ink); background: var(--bg-tint); }
.main-nav a.active { color: var(--bg); background: var(--green-600); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px !important;
  background: var(--green-600) !important;
  color: var(--bg) !important;
  font-weight: 800 !important;
}
.nav-cta:hover { background: var(--green-700) !important; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-tint);
  border: 1px solid var(--green-border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------- *
 * Buttons
 * ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--green-600); color: var(--bg); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { border-color: var(--green-border); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-600); }

/* ---------------------------------------------------------------------- *
 * Hero
 * ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 800px;
  text-align: left;
}

.hero h1 {
  font-size: clamp(48px, 7.6vw, 92px);
  color: var(--ink);
}
.hero h1 .accent { color: var(--green-700); }

.hero .lede {
  margin-top: 26px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text);
  max-width: 540px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 40% 100%, 0 40%);
}

/* ---------------------------------------------------------------------- *
 * Section scaffolding
 * ---------------------------------------------------------------------- */
section { position: relative; }
.section { padding: 108px 0; }
.section-tight { padding: 72px 0; }
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4.4vw, 50px);
  color: var(--ink);
}
.section-head p { margin-top: 18px; font-size: 16.5px; }

.bg-panel { background: var(--bg-tint); }

/* ---------------------------------------------------------------------- *
 * About / intro split
 * ---------------------------------------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-copy p + p { margin-top: 18px; }
.about-copy .lead-line {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 22px;
}
.about-copy .lead-line em {
  font-style: normal;
  color: var(--green-600);
}

.value-pins {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.value-pin {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.value-pin svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; }

.about-card {
  position: relative;
  background: var(--green-100);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 40px;
  overflow: hidden;
}
.about-card .quote-mark {
  font-family: 'Anton', sans-serif;
  font-size: 90px;
  color: var(--green-600);
  line-height: 0.6;
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}
.about-card blockquote {
  position: relative;
  margin: 0;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(22px, 2.3vw, 27px);
  line-height: 1.3;
  color: var(--ink);
}
.about-card cite {
  position: relative;
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
}

/* ---------------------------------------------------------------------- *
 * Photo gallery
 * ---------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow-sm);
  height: clamp(260px, 32vw, 420px);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ---------------------------------------------------------------------- *
 * Schedule / scoreboard
 * ---------------------------------------------------------------------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.score-card {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.score-card:hover {
  transform: translateY(-6px);
  border-color: var(--green-600);
  box-shadow: var(--shadow-md);
}
.score-card .day {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}
.score-card .time {
  margin-top: 14px;
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.score-card .who {
  margin-top: 14px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.schedule-note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 14px;
}
.schedule-note svg { width: 18px; height: 18px; color: var(--green-600); flex-shrink: 0; }

/* ---------------------------------------------------------------------- *
 * Location / map
 * ---------------------------------------------------------------------- */
.location-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
.location-info {
  background: var(--bg-tint);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-info h3 {
  font-size: 26px;
  color: var(--ink);
}
.location-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.location-row svg {
  width: 22px;
  height: 22px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.location-row .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.location-row .value { margin-top: 3px; color: var(--ink); font-weight: 600; }
.location-row a.value:hover { color: var(--green-600); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--green-border);
  min-height: 340px;
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------------------------------------------------------------------- *
 * CTA band — the one deliberately dark-green moment
 * ---------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
  padding: 84px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--bg);
}
.cta-band h2 .accent { color: #a9e6c4; }
.cta-band p {
  margin: 20px auto 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.78);
}
.cta-band .hero-actions { justify-content: center; margin-top: 36px; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--bg); background: transparent; }
.cta-band .btn-ghost:hover { border-color: var(--bg); color: var(--bg); background: rgba(255,255,255,0.08); }
.cta-band .btn-primary { background: var(--bg); color: var(--green-800); }
.cta-band .btn-primary:hover { background: var(--green-100); }

/* ---------------------------------------------------------------------- *
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer {
  background: var(--green-800);
  color: var(--bg);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
.footer-about .logo { color: var(--bg); }
.footer-about .logo .mark { border-color: rgba(255, 255, 255, 0.25); }
.footer-about .logo small { color: #a9e6c4; }
.footer-about p { margin-top: 16px; max-width: 320px; font-size: 14.5px; color: rgba(255,255,255,0.66); }
.footer-col h4 {
  font-family: 'Figtree', sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #a9e6c4;
}
.footer-col ul { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span {
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
  font-weight: 600;
}
.footer-col a:hover { color: var(--bg); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------------------------------------------------------------------- *
 * Page hero (secondary pages)
 * ---------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: 76px 0 100px;
  background: var(--bg-soft);
  overflow: hidden;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  color: var(--ink);
  max-width: 780px;
}
.page-hero .lede {
  margin-top: 22px;
  max-width: 560px;
  font-size: 17px;
}

/* ---------------------------------------------------------------------- *
 * Contact page
 * ---------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--bg-tint);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-card h3 { font-size: 24px; color: var(--ink); }
.contact-card .location-row { margin-top: 24px; }
.contact-card .location-row:first-of-type { margin-top: 28px; }

.contact-map {
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

.form-panel {
  background: var(--bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}
.form-panel h3 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }
.form-panel > p { margin-top: 10px; }

.form-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input,
.field textarea {
  background: var(--bg-soft);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-soft); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--green-100);
}
.field textarea { resize: vertical; min-height: 140px; }

/* honeypot — hidden from sighted users & keyboard flow, visible to bots that fill every field */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.form-submit {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  display: none;
}
.form-status.is-visible { display: inline-block; }
.form-status.is-success { background: var(--green-100); color: var(--green-700); }
.form-status.is-error { background: #fdecea; color: #c0392b; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------------------------------------------------------------------- *
 * Scroll reveal
 * ---------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------- *
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 980px) {
  .about-split,
  .location-split,
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .main-nav {
    display: block;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--green-border);
    padding: 12px 24px 24px;
  }
  .site-header.is-open .main-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .site-header.is-open .main-nav a { display: block; text-align: center; padding: 14px; }
  .hero { padding: 64px 0 110px; }
  .section { padding: 76px 0; }
  .schedule-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
