/* =========================================================
   VER — Verenigde Eerstelijnsapotheken Rijn en Duin
   House style: calm blue-green pharmacy palette
   No framework, no build step. Vanilla CSS.
   ========================================================= */

:root {
  /* Brand — afgeleid van het VER-logo (turquoise #50B8B0) */
  --teal-800: #1E736C;
  --teal-700: #23837B;
  --teal-600: #35A79E;
  --teal-500: #50B8B0; /* exacte logokleur */
  --teal-400: #74C7C0;
  --deep:     #15544F;
  --ink:      #123B37;
  --ink-soft: #46635F;
  --sand:     #E8C583;
  --mist:     #F1F9F7;
  --mist-2:   #E3F3F0;
  --white:    #ffffff;
  --line:     #D3E9E5;

  /* Semantic */
  --bg:         var(--white);
  --bg-alt:     var(--mist);
  --text:       var(--ink);
  --text-muted: var(--ink-soft);
  --primary:    var(--teal-800);
  --primary-2:  var(--teal-600);
  --accent:     var(--teal-700);

  /* Type */
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,46,42,.06), 0 2px 8px rgba(11,46,42,.05);
  --shadow-md: 0 8px 30px rgba(11,46,42,.10);
  --shadow-lg: 0 24px 60px rgba(11,46,42,.14);
  /* buttons & icon chips (grote/bold tekst → voldoende contrast) */
  --gradient: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-800) 100%);
  /* volvlak brand-secties met witte lopende tekst (donkerder voor contrast) */
  --gradient-deep: linear-gradient(135deg, var(--teal-700) 0%, var(--deep) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding: clamp(52px, 8vw, 96px) 0; }
.section--tint { background: var(--bg-alt); }
.section--brand { background: var(--gradient-deep); color: #eafffb; }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: .8rem;
}
.section--brand .eyebrow { color: #bff3ea; }
.lead { font-size: 1.18rem; color: var(--text-muted); }
.section--brand .lead, .section--brand p { color: #dffaf4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary-2); color: var(--primary); }
.btn--light { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; padding: .55rem .85rem; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: .98rem;
}
.nav__links a:hover { background: var(--mist-2); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--primary); background: var(--mist-2); }
.nav__cta { margin-left: .4rem; }
.nav__toggle {
  display: none; background: var(--mist-2); border: 1px solid var(--line);
  border-radius: 10px; width: 46px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: .2s;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after  { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 85% -10%, rgba(80,184,176,.28), transparent 60%),
    radial-gradient(50% 50% at 5% 110%, rgba(53,167,158,.20), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center;
  padding: clamp(48px, 7vw, 88px) 0;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.8rem; color: var(--text-muted); font-weight: 600; font-size: .95rem; }
.hero__badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__badges svg { color: var(--primary-2); flex: none; }

.hero__card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 30px; border: 1px solid var(--line);
}
.hero__card h2 { font-size: 1.15rem; }
.region-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.region-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.region-list .pin { width: 34px; height: 34px; border-radius: 10px; background: var(--mist-2); color: var(--primary); display: grid; place-items: center; flex: none; }
.region-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--mist-2); color: var(--primary);
  font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em;
  padding: .7rem 1.15rem; border-radius: 14px;
}
.region-badge .pin { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--primary); display: grid; place-items: center; flex: none; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mist-2); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--gradient);
  color: #fff; display: grid; place-items: center; margin-bottom: 16px;
}
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--text-muted); margin: 0; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat__num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: #fff; line-height: 1; }
.stat__label { color: #dffaf4; font-weight: 600; margin-top: .4rem; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

.value-card {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--primary-2);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.value-card h3 { color: var(--primary); }

/* ---------- News ---------- */
.news-list { display: grid; gap: 18px; }
.news-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm);
}
.news-item time { font-weight: 700; color: var(--primary-2); font-size: .95rem; }
.news-item h3 { margin-bottom: .3rem; }
.news-item p { color: var(--text-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--mist-2); color: var(--primary); display: grid; place-items: center; flex: none; }
.contact-row strong { display: block; }
.contact-row a { font-weight: 600; }

form.card label { display: block; font-weight: 600; margin: 0 0 .35rem; font-size: .95rem; }
form.card .field { margin-bottom: 1.1rem; }
form.card input, form.card textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--mist); transition: border-color .15s;
}
form.card input:focus, form.card textarea:focus { outline: none; border-color: var(--primary-2); background: #fff; }
.form-note { font-size: .85rem; color: var(--text-muted); }

/* ---------- Bestuur / team ---------- */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.member { flex: 0 1 300px; text-align: center; }
.member .avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--gradient);
  color: #fff; font-weight: 800; font-size: 1.45rem; letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
}
.member h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.member .role { color: var(--primary-2); font-weight: 600; margin: 0; }
.member .role small { display: block; color: var(--text-muted); font-weight: 500; font-size: .85rem; margin-top: .15rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe6e1; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #cfe6e1; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-brand img { height: 42px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: #a9cdc6; margin-top: 1rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .9rem; color: #9cc2bb;
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--mist-2); color: var(--primary); font-weight: 700; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Only hidden when JS is active (html.js); no-JS users see everything. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .2rem; background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 22px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .25s ease; z-index: 40;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: .8rem .6rem; }
  .nav__cta { margin: .4rem 0 0; }
  .nav__toggle { display: inline-flex; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
