:root{
  --blue: #062A3D;
  --blue2:#041E2C;
  --yellow:#FFD400;
  --white:#FFFFFF;

  --muted: rgba(255,255,255,0.82);
  --line: rgba(255,255,255,0.20);

  --radius: 16px;
  --shadow: 0 14px 40px rgba(0,0,0,0.35);
  --max: 1200px;
}

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

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--blue);
  color: var(--white);
}

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

.container{
  width:min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section{ padding: 72px 0; }
.section.alt{ background: var(--blue2); }

.section-head{ margin-bottom: 22px; }
.section-head h2{ margin:0 0 10px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.muted{ color: var(--muted); }
.small{ font-size: 0.92rem; }
.center{ justify-content:center; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue2);
  border-bottom: 2px solid var(--yellow);
}

.header-inner{
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

.brand-text{ display:grid; gap: 2px; }
.brand-name{ font-weight: 900; letter-spacing: 0.2px; }
.brand-tag{ font-size: 0.92rem; color: rgba(255,255,255,0.72); }

.nav{
  margin-left:auto;
  display:flex;
  gap: 14px;
  align-items:center;
}

.nav a{
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,0.80);
  border: 1px solid transparent;
}
.nav a:hover{
  color: var(--white);
  border-color: var(--line);
}

.header-actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

@media (max-width: 820px){
  .nav{ display:none; }
  .brand-tag{ display:none; }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid var(--line);
  background: transparent;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.btn--primary{
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue2);
}
.btn--primary:hover{
  transform: translateY(-1px);
  background: #ffe04a;
  border-color: #ffe04a;
}

.btn--outline{
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn--outline:hover{
  transform: translateY(-1px);
  background: rgba(255,212,0,0.10);
}

.btn--sm{ padding: 9px 12px; font-size: 0.95rem; }
.btn--lg{ padding: 14px 20px; font-size: 1.05rem; }
.btn--block{ width: 100%; }

/* Hero */
.hero{
  padding: 64px 0 36px;
}
.hero-grid{
  display:grid;
  gap: 26px;
  align-items:center;
}
@media (min-width: 960px){
  .hero-grid{ grid-template-columns: 1.15fr 0.85fr; }
}

.hero-copy h1{
  margin: 0 0 12px;
  font-size: clamp(2.0rem, 4vw, 3.2rem);
  line-height: 1.05;
}
.lead{
  margin: 0 0 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  font-size: 1.05rem;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-stats{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px){
  .hero-stats{ grid-template-columns: 1fr; }
}
.stat{
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255,255,255,0.04);
}
.stat-title{ font-weight: 900; }
.stat-text{ color: rgba(255,255,255,0.80); }

/* Slideshow (homepage) */
.slideshow{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow:hidden;
  border-radius: var(--radius);
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.03);
}

.slideshow img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  animation: fade 16s infinite;
}

.slideshow img:nth-child(1){ animation-delay:0s; }
.slideshow img:nth-child(2){ animation-delay:4s; }
.slideshow img:nth-child(3){ animation-delay:8s; }
.slideshow img:nth-child(4){ animation-delay:12s; }

/* FIX: gelijkmatige timing + eerste slide meteen zichtbaar */
@keyframes fade{
  0%{ opacity:1; }
  22%{ opacity:1; }
  25%{ opacity:0; }
  100%{ opacity:0; }
}

/* Grid cards */
.grid{
  display:grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card-link{ display:block; }
.card{
  height: 100%;
  border-radius: var(--radius);
  border: 2px solid var(--yellow);
  padding: 18px;
  background: rgba(255,255,255,0.04);
  transition: transform .16s ease, background .16s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
}
.card h3{ margin:0 0 10px; }
.card p{ margin:0 0 12px; color: rgba(255,255,255,0.85); line-height: 1.55; }
.card-cta{
  display:inline-block;
  font-weight: 900;
  color: var(--yellow);
}

/* Coaching packages */
.packages{
  display:grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .packages{ grid-template-columns: 1fr; }
}
.package{
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: rgba(255,255,255,0.04);
  padding: 18px;
}
.package.featured{
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,212,0,0.10);
}
.package-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.package h3{ margin:0; }
.tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  border: 2px solid var(--yellow);
  color: var(--yellow);
}
.package ul{ margin: 10px 0 0; padding-left: 18px; }
.package li{ margin: 8px 0; color: rgba(255,255,255,0.85); }

/* CTA block */
.cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  border-radius: var(--radius);
  border: 2px solid var(--yellow);
  background: rgba(255,255,255,0.04);
  padding: 18px;
}
@media (max-width: 740px){
  .cta{ flex-direction:column; text-align:center; align-items:stretch; }
}

/* Detail page */
.page-hero{
  padding: 52px 0 26px;
  background: var(--blue2);
  border-bottom: 2px solid var(--yellow);
}
.page-hero-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
}
@media (max-width: 860px){
  .page-hero-inner{ flex-direction:column; align-items:flex-start; }
}
.page-hero h1{ margin:0 0 8px; font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.page-hero-actions{ display:flex; gap: 12px; flex-wrap:wrap; }

.detail-grid{
  display:grid;
  gap: 18px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items:start;
}
@media (max-width: 980px){
  .detail-grid{ grid-template-columns: 1fr; }
}

.detail-card{
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: rgba(255,255,255,0.04);
  padding: 18px;
}

.info-box{
  display:grid;
  gap: 6px;
  border-radius: var(--radius);
  border: 2px solid var(--yellow);
  background: rgba(255,255,255,0.04);
  padding: 14px;
  margin: 14px 0;
}

.bullets{ margin: 12px 0 0; padding-left: 18px; }
.bullets li{ margin: 8px 0; color: rgba(255,255,255,0.86); }

.detail-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.divider{
  height: 2px;
  background: var(--line);
  margin: 14px 0;
}

/* Contact layout */
.contact{
  display:grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px){
  .contact{ grid-template-columns: 1fr; }
}

/* Footer */
.footer{
  background: var(--blue2);
  border-top: 2px solid var(--yellow);
  padding: 26px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

/* Instagram knop: icon en tekst netjes */
.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.instagram-btn svg {
  display: block;
}

/* ===== Responsive optimalisatie (PC + GSM) ===== */

/* Header compacter en buttons beter op gsm */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Hero: op mobiel onder elkaar + betere typografie */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1; /* afbeelding eerst */
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }
}

/* CTA knoppen in hero full-width op gsm */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Aanbod cards onder elkaar op mobiel */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 1.2rem;
  }
}

/* Coaching pakketten: onder elkaar op mobiel */
@media (max-width: 980px) {
  .packages {
    grid-template-columns: 1fr;
  }

  .package.featured {
    box-shadow: none;
    border-width: 3px;
  }
}

/* Detailpagina: 1 kolom op mobiel (sidebar bovenaan) */
@media (max-width: 980px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    order: -1;
  }
}

/* Footer netjes centreren op gsm */
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Fix header overlap op GSM ===== */
@media (max-width: 520px) {
  /* Laat header in 2 rijen lopen */
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  /* Brand (logo + tekst) altijd volledige rij */
  .brand {
    width: 100%;
    min-width: 0;
  }

  /* Naam mag afgekapt worden i.p.v. te overlappen */
  .brand-name {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Onderste rij met knoppen */
  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 knoppen naast elkaar */
    gap: 10px;
  }

  /* Knoppen compacter */
  .header-actions .btn {
    width: 100%;
    padding: 10px 10px;
    font-size: 0.92rem;
    border-width: 2px;
    justify-content: center;
  }

  /* Icoon iets kleiner */
  .instagram-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Rechterkolom bij detailpagina (FAQ + slideshow onder elkaar) */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Slideshow card onder FAQ */
.slideshow-card {
  padding: 12px;
}

/* Automatische slideshow (aanbod detail) */
.auto-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.auto-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.auto-slideshow img.active {
  opacity: 1;
}

/* Eén foto in dezelfde layout als slideshow-card */
.single-media {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.single-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
