/* ==== index.css ==== */

:root {
  --mint: #6BB5A3;
  --ink: #1f4a46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #f6f7f8;
}

/* ===== HEADER FHS ===== */
.fhs-header {
  font-family: system-ui, sans-serif;
  color: #222;
  width: 100%;
}

.fhs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 6px 24px;
  border-bottom: 3px solid var(--mint);
  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: var(--mint);
  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;
}

/* === HERO === */
.hero-fixed {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-fixed picture {
  display: block;
}

.hero-fixed .hero-img {
  position: fixed;
  top: -10vh;
  left: 0;
  width: 100%;
  height: 120vh;
  object-fit: cover;
  object-position: center top;
  z-index: -1;
  filter: brightness(0.85);
}

.hero-fixed::after {
  display: none !important;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
}

/* === TEGELS === */
.tiles-section {
  padding: 60px 20px 80px;
  background: transparent;
  position: relative;
  margin-top: -80px;
  z-index: 5;
}

.tiles-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.tile {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.tile-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: brightness(0.9);
}

.tile:hover .tile-img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.tile-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12), transparent);
  color: #fff;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.tile-text small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.25;
}

/* === FOOTER === */
.site-footer {
  background: var(--mint);
  color: #fff;
  text-align: center;
  padding: 40px 5% 30px;
  line-height: 1.7;
  font-size: 1rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .socials {
  margin-top: 10px;
  font-size: 1rem;
  opacity: 0.9;
}

.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  width: 60px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

/* ===== TABLET / SMALL DESKTOP ===== */
@media (max-width: 1100px) {
  .tiles-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

/* ===== MOBIEL HEADER ===== */
@media (max-width: 900px) {
  .fhs-topbar {
    flex-direction: column;
    text-align: center;
    padding: 10px;
    gap: 6px;
  }

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

/* ===== MOBIEL MENU ===== */
@media (max-width: 768px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .main-nav {
    background: linear-gradient(180deg, var(--mint) 0%, #7fc3b5 100%);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding-top: 30px;
    z-index: 1000;
    animation: fadeDown 0.25s ease;
  }

  .main-nav a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px 22px;
    border-radius: 10px;
    width: 80%;
    text-align: center;
    transition: background 0.25s, transform 0.25s;
  }

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

  .main-nav a[href*="redirect"],
  .main-nav a[href*="afspraak"] {
    background: #fff;
    color: var(--mint);
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  }

  .main-nav a[href*="redirect"]:hover,
  .main-nav a[href*="afspraak"]:hover {
    background: #f7f7f7;
    transform: scale(1.05);
  }

  .hero-fixed {
    height: 70vh;
  }

  .tiles-section {
    padding: 40px 16px 60px;
    margin-top: -60px;
  }

  .tiles-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
  }

  .tile-text {
    font-size: 0.95rem;
    padding: 10px 6px;
  }

  .tile-text small {
    font-size: 0.8rem;
  }

  .site-footer {
    font-size: 0.95rem;
    padding: 30px 6% 20px;
  }
}

/* ===== EXTRA KLEIN ===== */
@media (max-width: 420px) {
  .tiles-container {
    grid-template-columns: 1fr;
  }
}

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