/* ==========================================================================
   Vitalprint — site styles
   Colours taken from the existing Vitalprint brand (green #137547).
   Type: Barlow Condensed (headings) + Barlow (text), self-hosted.
   ========================================================================== */

@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --green: #137547;
  --green-dark: #0e5735;
  --green-deep: #0a3d26;
  --sage: #71a38b;
  --mint: #eef4f0;
  --mint-2: #dfeae3;
  --ink: #14201a;
  --text: #33403a;
  --muted: #5d6a63;
  --line: #d9e2dc;
  --white: #ffffff;

  --f-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--f-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 600; color: var(--ink); line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.2vw, 5.25rem); line-height: .98; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.7rem); line-height: 1.1; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.on-green :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mint { background: var(--mint); }
.eyebrow { display: block; font-weight: 600; font-size: .95rem; color: var(--green); margin-bottom: .9rem; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--text); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.4rem; border: 2px solid var(--green); border-radius: var(--radius); background: var(--green); color: #fff; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn--white:hover { background: var(--mint); border-color: var(--mint); color: var(--green-deep); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.more { font-weight: 600; color: var(--green); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.more::after { content: ""; width: 14px; height: 2px; background: currentColor; transition: width .2s; }
.more:hover::after { width: 24px; }

/* Photos (with graceful fallback if an image can't load) */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mint-2); aspect-ratio: var(--ar, 4 / 5); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.photo.is-missing img { display: none; }
.photo.is-missing::after { content: ""; position: absolute; inset: 0; margin: auto; width: 30%; height: 30%; background: url(../img/favicon.svg) center / contain no-repeat; opacity: .35; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { height: 30px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(1rem, 1.8vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .5rem 0; background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size .2s; }
.nav a:hover { color: var(--ink); background-size: 100% 2px; }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: .5rem 1rem; border: 1.5px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font: 600 .95rem var(--f-body); cursor: pointer; }
@media (max-width: 1079px) { .nav, .header-phone, .site-header .btn { display: none; } .menu-btn { display: inline-flex; } }

.menu-panel { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; padding: 0 var(--gutter) 2rem; overflow-y: auto; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-bottom: 1px solid var(--line); }
.menu-panel .menu-btn { display: inline-flex; }
.menu-panel ul { list-style: none; margin: 1.5rem 0; padding: 0; }
.menu-panel li a { display: block; padding: .6rem 0; color: var(--ink); text-decoration: none; font: 600 2rem/1.1 var(--f-head); border-bottom: 1px solid var(--line); }
.menu-panel__contact { margin-top: auto; display: grid; gap: .75rem; }

/* Mobile contact bar */
.action-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .82rem; }
.action-bar a + a { border-left: 1px solid var(--line); }
.action-bar a:last-child { background: var(--green); color: #fff; }
.action-bar svg { width: 21px; height: 21px; }
@media (max-width: 1079px) { body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); } }
@media (min-width: 1080px) { .action-bar { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #d5e3da; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.footer-grid h2 { font: 600 1.2rem/1.2 var(--f-head); color: #fff; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-grid address { font-style: normal; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .9rem; color: #a9c2b4; }
.footer-bottom a { color: #cfe0d6; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.15rem; }
.field > label, .legend { font-weight: 600; color: var(--ink); font-size: .97rem; line-height: 1.35; }
.opt { font-weight: 400; color: var(--muted); }
.req { color: var(--green); }
.input { width: 100%; min-height: 50px; padding: .7rem .9rem; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: #fff; border: 1.5px solid #b9c6be; border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314201a' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(19, 117, 71, .2); }
.input::placeholder { color: #8a968f; }
.hint { font-size: .9rem; color: var(--muted); line-height: 1.45; margin: 0; }
.error { display: none; margin: 0; font-size: .9rem; font-weight: 600; color: #b42318; }
.is-invalid > .error { display: block; }
.is-invalid .input { border-color: #b42318; }
.check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; line-height: 1.45; font-size: .97rem; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: .1rem 0 0; border: 1.5px solid #8fa197; border-radius: 3px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.two { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }

/* ---------- Simple text pages (privacy, voorwaarden) ---------- */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.6rem; margin: 2.2rem 0 .6rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .35rem; }
