/* ==========================================================================
   Bellavolley — Design System
   Kleuren: diep navy + warm oranje/geel (volleybalthema)
   ========================================================================== */

:root {
  --navy: #14213d;
  --navy-2: #1b2a4a;
  --navy-3: #23365f;
  --orange: #fca311;
  --orange-dark: #e68a00;
  --yellow: #ffd166;
  --cream: #f7f8fa;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #e5e9f0;
  --success: #16a34a;
  --danger: #dc2626;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 33, 61, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 800; }

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.5rem;
}

.lead { color: var(--muted); font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Knoppen
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}
/* shine-sweep over de knop bij hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}
.btn-primary:hover { background: var(--yellow); transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(252, 163, 17, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); transform: translateY(-3px) scale(1.05); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-3); transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(20, 33, 61, 0.35); }

/* --------------------------------------------------------------------------
   Header / navigatie
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 33, 61, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}
.brand .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--orange) 45%, var(--orange-dark));
  box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.3);
}
.brand-logo {
  height: 40px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.brand--footer .brand-logo { height: 60px; }
.brand em { color: var(--orange); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--white); }

.nav-links .btn { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(252, 163, 17, 0.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--orange) 45%, var(--orange-dark));
  opacity: 0.9;
  box-shadow: 0 0 80px rgba(252, 163, 17, 0.4);
  animation: ballFloat 7s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 { color: var(--white); }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .lead { color: rgba(255, 255, 255, 0.82); margin: 1.2rem 0 2rem; max-width: 46ch; }

.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.05rem; }
.hero-card ul { list-style: none; display: grid; gap: 0.7rem; }
.hero-card li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-card .check {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.stat {
  background: var(--white);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.stat strong { display: block; font-size: 2rem; color: var(--navy); font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Secties
   -------------------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Over ons */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  aspect-ratio: 4 / 3;
  position: relative;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-visual .ball {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fff, var(--orange) 48%, var(--orange-dark));
  box-shadow: 0 20px 50px rgba(252, 163, 17, 0.4);
}

.feature-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.feature-list .num {
  flex: 0 0 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  display: grid; place-items: center;
  font-size: 0.9rem;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Trainingstijden
   -------------------------------------------------------------------------- */
.train-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.train-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.train-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.train-card .tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(252, 163, 17, 0.16);
  color: var(--orange-dark);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.train-card h3 { margin-bottom: 0.5rem; }
.train-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.train-meta { display: grid; gap: 0.4rem; font-size: 0.92rem; }
.train-meta span { display: flex; align-items: center; gap: 0.5rem; color: var(--navy); font-weight: 600; }

/* --------------------------------------------------------------------------
   Teams
   -------------------------------------------------------------------------- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--line);
}
.team-card .team-img {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
}
.team-card .team-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .team-body { padding: 1.4rem; }
.team-card h3 { margin-bottom: 0.4rem; }
.team-card p { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   CTA-band
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: var(--navy);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta h2 { color: var(--navy); }
.cta p { margin-top: 0.4rem; font-weight: 500; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Aanmeldformulier
   -------------------------------------------------------------------------- */
.form-page { padding: 3rem 0 5rem; }
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.form-side h2 { margin-bottom: 1rem; }
.form-side .lead { margin-bottom: 1.5rem; }
.form-side ul { list-style: none; display: grid; gap: 0.7rem; }
.form-side li { display: flex; gap: 0.6rem; align-items: flex-start; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.22);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.field.error input,
.field.error select,
.field.error textarea { border-color: var(--danger); }
.field .error-msg { color: var(--danger); font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.field.error .error-msg { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checkbox {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }
.checkbox span { font-size: 0.9rem; color: var(--muted); }
.checkbox a { color: var(--orange-dark); font-weight: 600; text-decoration: underline; }

.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }

.form-success {
  display: none;
  background: rgba(22, 163, 74, 0.1);
  border: 1.5px solid var(--success);
  color: var(--success);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .train-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-2);
    padding: 1rem 5%;
    gap: 0.4rem;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; }
  .nav-toggle { display: flex; }
  .train-grid, .teams-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta { padding: 2rem 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Proeftraining (highlight)
   -------------------------------------------------------------------------- */
.proef {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border-radius: var(--radius);
  padding: 3rem;
  color: var(--navy);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.proef h2 { color: var(--navy); }
.proef .proef-facts { list-style: none; display: grid; gap: 0.6rem; margin-top: 1rem; }
.proef .proef-facts li { display: flex; gap: 0.6rem; align-items: flex-start; }
.proef-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 33, 61, 0.15);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--navy);
}
.proef-box h3 { margin-bottom: 0.6rem; }
.proef-box p { margin-bottom: 0.3rem; }
.proef-box a { color: var(--orange-dark); font-weight: 700; }

/* Trainers */
.trainers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 0.5rem; }
.trainer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.trainer h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.2rem; }
.trainer .role { color: var(--orange-dark); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; }
.trainer p { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }

@media (max-width: 620px) {
  .proef { grid-template-columns: 1fr; padding: 1.8rem 1.4rem; }
}

/* --------------------------------------------------------------------------
   Premium micro-interacties & animaties
   -------------------------------------------------------------------------- */
/* Zwevende + langzaam groeiende/krimpende bal */
@keyframes ballFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.06); }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Nav-link onderstreep animatie */
.nav-links a { position: relative; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* Kaart hover-lift + afbeelding inzoomen */
.team-card { transition: transform 0.28s ease, box-shadow 0.28s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card .team-img img { transition: transform 0.6s ease; }
.team-card:hover .team-img img { transform: scale(1.07); }
.trainer { transition: transform 0.28s ease, box-shadow 0.28s ease; }
.trainer:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* Respecteer reduce-motion voorkeur */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::after { animation: none; }
  .btn::after { display: none; }
  .btn, .team-card, .trainer { transition: none; }
}
