/* ================================================================
   Gezinsbond Wevelgem — algemene homepagina
   Zelfde look & feel als de inschrijfpagina's (public.css).
   Pas --primair en --accent aan als je in het CMS andere kleuren gebruikt.
   ================================================================ */
:root {
  --primair: #009844;
  --accent: #f26a4b;
  --ink: #0d2233;
  --ink-2: #3a5266;
  --muted: #6a8093;
  --lijn: #dfe8ef;
  --bg: #f2f7fa;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primair); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.ic { flex-shrink: 0; vertical-align: -3px; }

/* ---------- kop ---------- */
.pub-kop { background: var(--primair); color: #fff; position: relative; padding: 0 22px; }
.pub-kop-in { max-width: 1120px; margin: 0 auto; padding: 18px 0; display: flex; align-items: center; }
.pub-merk { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; }
.pub-merk img { max-height: 48px; max-width: 160px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.merk-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--primair), color-mix(in srgb, var(--primair) 78%, #021522));
  color: #fff; padding: 36px 22px 120px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 70px;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 35c120-30 240-30 360 0s240 30 360 0 240-30 360 0 240 30 360 0v35H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 35c120-30 240-30 360 0s240 30 360 0 240-30 360 0 240 30 360 0v35H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hero-in { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; margin: 6px 0 8px; }
.hero-sub { font-size: 1.1rem; opacity: .9; margin: 0; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin: 0; }

/* ---------- layout ---------- */
.pub-main { min-height: 60vh; }
.pub-container { max-width: 1120px; margin: -84px auto 0; padding: 0 22px 40px; position: relative; z-index: 2; }

/* ---------- tegels ---------- */
.tegels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .tegels { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.tegel { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 28px 28px 24px;
  color: var(--ink); text-decoration: none; border: 1px solid rgba(13,34,51,.05); border-top: 5px solid var(--primair);
  box-shadow: 0 1px 2px rgba(13,34,51,.04), 0 10px 30px rgba(13,34,51,.06);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.tegel:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13,34,51,.05), 0 18px 40px rgba(13,34,51,.11); }
.tegel:active { transform: translateY(-1px); }
.tegel:focus-visible { outline: 3px solid color-mix(in srgb, var(--primair) 45%, transparent); outline-offset: 3px; }
.tegel h2 { font-size: 1.3rem; font-weight: 800; margin: 18px 0 6px; }
.tegel p { color: var(--ink-2); font-size: 15px; margin: 0 0 20px; flex: 1; }

.tegel-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primair) 10%, #fff); color: var(--primair); }
.tegel-info { border-top-color: var(--accent); }
.tegel-info .tegel-ic { background: color-mix(in srgb, var(--accent) 12%, #fff); color: color-mix(in srgb, var(--accent) 85%, #000); }

.tegel-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--primair); }
.tegel-info .tegel-cta { color: color-mix(in srgb, var(--accent) 85%, #000); }
.tegel-cta .ic { transition: transform .15s ease; }
.tegel:hover .tegel-cta .ic { transform: translateX(3px); }

@media (max-width: 600px) {
  .pub-container { padding: 0 12px 30px; }
  .tegel { padding: 22px 20px 20px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tegel, .tegel-cta .ic { transition: none; } .tegel:hover { transform: none; } }

/* ---------- voet ---------- */
.pub-voet { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 20px 40px; display: grid; gap: 4px; }

/* Navigatie tussen home, zwemlessen en activiteiten */
.pub-kop-in { flex-wrap: wrap; gap: 10px 20px; }
.pub-nav { margin-left: auto; display: flex; gap: 4px; }
.pub-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: rgba(255,255,255,.88); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s; }
.pub-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.pub-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pub-nav a.actief { background: #fff; color: var(--primair); }
@media (max-width: 640px) {
  .pub-kop-in { padding: 14px 0; }
  .pub-nav { margin-left: 0; width: 100%; }
  .pub-nav a { flex: 1; justify-content: center; padding: 8px 6px; font-size: 14px; gap: 6px; }
}
@media (max-width: 360px) { .pub-nav a svg { display: none; } }
