/* ============================================================
   FYSIO HENK SCHOLING – COMPLETE STIJL
   Versie: 2025-10-28
   ============================================================ */

/* -------------------- BASIS VARIABELEN -------------------- */
:root {
  --mint: #6BB5A3;
  --mint-2: #9AD0C4;
  --ink: #222;
  --ink-2: #444;
  --bg: #fff;
  --muted: #f6f7f8;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* -------------------- RESET & BODY -------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* -------------------- CONTAINERS -------------------- */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.section { padding: clamp(48px,6vw,88px) 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative; /* 🔹 niet meer fixed */
  height: 64px;
  z-index: 10;
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.site-header.scrolled { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.site-header .container { display: flex; align-items: center; gap: 16px; }
.brand img { display: block; }

.main-nav { margin-left: auto; display: none; gap: 18px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: .2px;
  padding: .4rem .2rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--mint); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--mint); }

.btn {
  display: inline-block;
  border: 2px solid transparent;
  padding: .7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, filter .2s ease;
}
.btn-primary { background: var(--mint); color: #fff; border-color: var(--mint); }
.btn-primary:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.1); }

@media (min-width: 1100px) { .main-nav { display: flex; } }

/* HERO ALGEMEEN */
.hero {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* hele foto zichtbaar */
  background-color: #000; /* voor transparante randen */
}

/* Tekst en knop */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  padding: 0 1rem;
  max-width: 90%;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 1rem;
}

/* Knop "Lees meer" */
.hero-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid #fff;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(0,0,0,0.25);
  transition: background 0.3s, transform 0.2s;
}

.hero-btn:hover {
  background: rgba(0,0,0,0.5);
  transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
}
/* ===== HERO FIXED (indexpagina) ===== */
.hero-fixed {
  position: relative;
  height: 100vh;                 /* vult schermhoogte */
  overflow: hidden;
}

.hero-fixed .hero-img {
  position: fixed;               /* 🔹 hero blijft staan */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;                   /* onder de content */
}

.hero-fixed .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 1;
}

/* ===== TILES OVER HERO ===== */
.tiles-section {
  position: relative;
  z-index: 2;                /* boven hero */
  background: #fff;
  margin-top: -100vh;        /* schuif omhoog over hero */
  padding-top: calc(100vh + 40px); /* ruimte zodat tegels beginnen bij onderkant hero */
}

/* Optioneel zachte overgang */
.tiles-section::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), transparent);
  z-index: 1;
}
/* ============================================================
   HERO – parallax + hoofd altijd zichtbaar + scroll fade
   ============================================================ 
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55)),
    url('../images/hero/spieren_bg4.jpg') top center / cover no-repeat fixed;
  background-attachment: fixed;
  background-position: top center;
  background-size: cover;
  margin-top: 64px;
  overflow: hidden;
  transition: background 0.3s ease;
}

/* Hero overlay voor extra donkere fade bij scroll 
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  transition: background 0.4s ease;
  z-index: 1;
}

/* Tekstinhoud 
.hero-content {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  text-shadow: 0 4px 10px rgba(0,0,0,0.45);
  margin: 0;
}

.hero-content p {
  font-size: 1.1rem;
  color: #eaf6f3;
  max-width: 720px;
  margin: 16px auto 0;
}

/* Responsieve hoogte en vaste toppositie 
@media (max-width: 820px) {
  .hero {
    min-height: 60vh;
    background-attachment: scroll;
    background-position: top center;
  }
  .hero-content h1 { font-size: clamp(26px, 5vw, 38px); }
  .hero-content p { font-size: 1rem; padding: 0 1rem; }
}

/* Fade-in/out effect bij scroll (klasse wordt via JS toegevoegd) 
.hero.scrolled::after {
  background: rgba(0,0,0,0.45); /* iets donkerder 
}
.hero.scrolled .hero-content {
  opacity: 0.3;
  transform: translateY(-25px);
}
*/
/* ============================================================
   TEGELS – RESPONSIVE + HOVER EFFECT
   ============================================================ */
.tiles-container {
  width: min(1200px, 94vw);
  margin: 100px auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0 1rem;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16/10;
  background: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* Achtergrondafbeelding */
.tile-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: none;
  transition: filter 0.4s ease, transform 0.4s ease;
}
.tile:hover .tile-img {
  filter: grayscale(100%) brightness(0.9);
  transform: scale(1.08);
}

/* Tekstoverlay */
.tile-text {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  z-index: 2;
  transition: transform 0.3s ease;
}
.tile:hover .tile-text {
  transform: translateY(-4px);
}

/* Tablet */
@media (max-width: 900px) {
  .tiles-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .tile { aspect-ratio: 4/3; border-radius: 14px; }
  .tile-text { font-size: 0.95rem; }
}

/* Mobiel – twee kolommen, compacter */
@media (max-width: 600px) {
  .tiles-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 50px auto 40px;
    padding: 0 0.5rem;
  }
  .tile {
    aspect-ratio: 3/2;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .tile-text {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
  .tile-text small { font-size: 0.7rem; }
}

/* Fade-in bij scroll */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.6s ease-out;
}
[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CONTENT
   ============================================================ */
.content {
  padding: 60px 0;
  background: #fff;
}
.content .container {
  width: min(1200px, 94vw);
  margin-inline: auto;
}
.content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
  color: var(--ink);
}
.content p {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 800px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 40px 0;
  background: var(--muted);
  color: #666;
  margin-top: 40px;
}
.site-footer a { color: #333; }
.site-footer .socials { opacity: .85; }

/* ============================================================
   HULPFUNCTIES
   ============================================================ */
a { color: var(--mint); }
a:hover { text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   KAARTLAYOUT – herstel voor vervolgpagina's
   ============================================================ */

/* Twee kolommen onder elkaar op mobiel, naast elkaar op desktop */
.grid-2 .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .grid-2 .container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Kaarten zelf */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* Extra stijl voor highlight cards (zoals “Maak een afspraak”) */
.card.highlight {
  background: linear-gradient(180deg,#ffffff,#f9fffb);
  border: 1px solid #dff2ec;
}

/* Responsief gedrag */
@media (max-width: 700px) {
  .card { padding: 22px 18px; border-radius: 14px; }
}

/* Zorg dat afbeeldingen in cards mooi afgerond zijn */
.card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
/* --- Mobiel: ondertekst in tegels verbergen voor meer beeldruimte --- */
@media (max-width: 700px) {
  .tile-text small {
    display: none;
  }
}
/* --- Alleen bij telefoon in landscape kleine tekst verbergen --- */
@media (orientation: landscape) and (max-width: 900px) {
  .tile-text small {
    display: inline;
  }
}

/* --- In portret altijd tonen --- */
@media (orientation: portrait) {
  .tile-text small {
    display: none;
  }
}

/* =========================================
   AFSPRAAK FORMULIER – LAYOUT EN STIJL
   ========================================= */
.afspraak-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(48px, 6vw, 96px) 1rem;
  background: var(--muted);
  min-height: 100vh;
}

.afspraak-card {
  background: var(--bg);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 100%;
  margin-inline: auto;
}

.afspraak-card h2 {
  text-align: center;
  color: var(--ink);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.afspraak-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.afspraak-form label {
  font-weight: 600;
  color: var(--ink-2);
  font-size: 1rem;
}

.afspraak-form input,
.afspraak-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.afspraak-form input:focus,
.afspraak-form textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(107,181,163,.25);
  outline: none;
}

.btn-afspraak {
  display: block;
  margin: 1.5rem auto 0;
  background: var(--mint);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}

.btn-afspraak:hover {
  background: var(--mint-2);
  transform: scale(1.04);
}
/* -----------------------------
   MOBIEL MENU (werkt met body.nav-open)
------------------------------ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* kruisje bij open menu */
body.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* menu standaard */
.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* mobiel gedrag */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 1000;
  }
  body.nav-open .nav-links {
    display: flex;
    animation: fadeInNav 0.25s ease;
  }
  .nav-links a {
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
  @keyframes fadeInNav {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
/* ===== HEADER FHS ===== */
.fhs-header {
  font-family: system-ui, sans-serif;
  color: #222;
  width: 100%;
  box-sizing: border-box;
}

/* --- BOVENBALK --- */
.fhs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 6px 24px;
  border-bottom: 3px solid #6BB5A3;
  flex-wrap: nowrap;
}

.fhs-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fhs-left img {
  display: block;
}

.fhs-center {
  flex: 1;
  text-align: center;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}

.fhs-center a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.fhs-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 180px;
}

.fhs-btn {
  background: #6BB5A3;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s;
  white-space: nowrap;
}

.fhs-btn:hover {
  background: #579c8b;
}
  /* --- NAVIGATIE --- */
    .fhs-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      width: 100%;
      background: var(--mint);
      padding: 14px 0;
      margin: 0;
    }

    .fhs-nav a {
      color: #fff;
      font-weight: 600;
      text-decoration: none;
      font-size: 1.05rem;
      margin: 0 18px;
      line-height: 1.8;
      letter-spacing: 0.015em;
    }

    .fhs-nav a:hover {
      opacity: 0.85;
    }

    main {
      text-align: center;
      padding: 0;
      background: transparent;
      position: relative;
      z-index: 5;
    }
/* --- NAVIGATIEBALK --- 
.fhs-nav {
  background: #6BB5A3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 6px 0;
  margin: 0;
  gap: 6px;
}

.fhs-nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.fhs-nav a:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}
*/
/* --- MOBIEL --- */
@media (max-width: 900px) {
  .fhs-topbar {
    flex-direction: column;
    text-align: center;
    padding: 10px;
    gap: 6px;
  }

  .fhs-center {
    white-space: normal;
  }

/* 
  .fhs-nav {
    flex-direction: column;
    text-align: center;
  }
 */
}

/* ============================================================
   HEADER VASTZETTEN (blijft bovenaan bij scrollen)
   ============================================================ */
.fhs-header {
  position: sticky;  /* of fixed als je hem altijd in beeld wil houden */
  top: 0;
  z-index: 1000;
  background: #fff;
}

/* Als je hem écht vast bovenin wilt, ongeacht scroll: */
.fhs-header.fixed {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

/* Compensatie voor vaste header: geef de hero wat ruimte eronder */
.hero,
.hero-fixed {
  margin-top: 110px; /* hoogte van header + marge */
}

/* ============================================================
   HERO FIXED + TEgELS OVER HERO (GEEN WIT MEER)
   ============================================================ */
body {
  background: var(--bg);
}

.hero-fixed {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* HERO-IMAGE */
.hero-fixed .hero-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* HERO-CONTENT */
.hero-fixed .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 1;
}

/* TILES OVERLAPPEN HERO */
.tiles-section {
  position: relative;
  z-index: 2;
  background: #fff;
  margin-top: -60vh;           /* 🔹 schuif tegels omhoog over hero */
  padding-top: 60vh;           /* 🔹 start tegels halverwege hero */
  border-top: none;
}

/* zachte overgang */
.tiles-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
  z-index: 1;
}
/* ===== FINAL FIX: header not sticky, hero fixed background, tiles overlap cleanly ===== */

/* 1) Header must NOT be sticky/fixed */
.fhs-header {
  position: relative !important;
  top: auto !important;
  z-index: 10;
}

/* 2) Hero must NOT be pushed down */
.hero,
.hero-fixed {
  margin-top: 0 !important;
}

/* 3) Single, consistent hero/tiles implementation */
.hero-fixed {
  position: relative;
  height: 100vh;      /* full viewport */
  overflow: hidden;
}

.hero-fixed .hero-img {
  position: fixed;    /* stays put while scrolling */
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;        /* behind everything */
}

.hero-fixed .hero-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  z-index: 1;
}

/* 4) Tiles scroll OVER the hero, no white gap, no extra hero slice */
.tiles-section {
  position: relative;
  z-index: 2;
  background: #fff;
  margin-top: -100vh !important;   /* pull tiles up over hero */
  padding-top: 100vh !important;   /* start exactly at bottom of hero */
}

/* optional soft transition at the seam */
.tiles-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(255,255,255,0));
  z-index: 1;
}
/* 🌿 Verbeterd mobiel menu (moderne look) */
@media (max-width: 900px) {
  body.nav-open .nav-links {
    background: linear-gradient(180deg, var(--mint) 0%, #7fc3b5 100%);
    padding: 40px 0;
    flex-direction: column;
    align-items: center;
    animation: fadeDown 0.25s ease;
  }

  .nav-links a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    padding: 12px 28px;
    border-radius: 10px;
    margin: 6px 0;
    width: 80%;
    transition: background 0.25s, transform 0.25s;
  }

  .nav-links a:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
  }

  .nav-links a[href*="afspraak"],
  .nav-links a[href*="redirect"] {
    background: #fff;
    color: var(--mint);
    font-weight: 700;
  }

  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}



