/* VSPR-0252 — Calf Care System (one-pager FR/NL)
   Blauwdruk: flyer-spread (G. van Beek en Zn.). Huisstijl-port gvanbeekenzn.nl.
   Brandbook: ~/Brein/.../g-van-beek-zonen-brandbook/ */

@import url('https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Merk (brandbook) */
  --navy: #1B223A;
  --navy-2: #232C49;
  --blue: #1F2F79;
  --blue-light: #4D87C6;      /* lichter brand-blauw (gvanbeekenzn divisie) */
  --red: #E52713;
  --white: #FFFFFF;
  --bg-light: #F2F1F0;
  --bg-grey: #EDEDED;         /* lichtgrijze sectie-achtergrond */
  --bg-blue: #EAF0F7;         /* zacht lichtblauw vlak */
  --ink: #1B223A;            /* body op licht: navy ipv zwart */
  --ink-soft: #3C4257;        /* secundair, navy-getint ipv #333 */
  --muted: rgba(255,255,255,.82);
  --hairline: rgba(255,255,255,.16);

  --font: "Calibri", "Carlito", system-ui, "Segoe UI", sans-serif;

  /* Spacing-schaal (4pt) */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;    --space-8: 4rem;    --space-9: 6rem;

  --radius: 14px;
  --container: 1140px;
  --pad-x: clamp(1.5rem, 6vw, 7rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --ease: 320ms cubic-bezier(.2,0,0,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  /* Lettergrootte richting gvanbeekenzn.nl (brandbook body-base ~20px) */
  font-size: 1.1875rem; line-height: 1.55;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3 { line-height: 1.16; font-weight: 700; color: var(--blue); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { max-width: 65ch; }
a  { color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
section { padding-block: var(--section-y); }

/* ---------- Taal-laag ---------- */
html[data-lang="fr"] [lang="nl"] { display: none; }
html[data-lang="nl"] [lang="fr"] { display: none; }
.lang-toggle {
  font: 700 .8rem/1 var(--font); letter-spacing: .08em;
  color: var(--white); background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: .5rem .85rem; cursor: pointer;
  transition: background var(--ease), opacity var(--ease);
}
.lang-toggle:hover { background: rgba(255,255,255,.2); }

/* ---------- Productnaam-merk (officieel Logo.svg) ---------- */
.brandmark { display: inline-flex; text-decoration: none; }
.brandmark img {
  display: block; width: auto;
  height: clamp(40px, 4.6vw, 52px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(1.1rem, 2.4vw, 1.75rem) var(--pad-x);
  transition: background-color var(--ease), padding var(--ease), box-shadow var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 26, 46, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.22);
  padding-block: clamp(.7rem, 1.6vw, 1rem);
}
.site-header nav { display: flex; gap: clamp(1rem, 2.4vw, 1.9rem); align-items: center; }
.site-header nav a {
  color: var(--white); text-decoration: none; font-size: .98rem;
  transition: opacity var(--ease);
}
.site-header nav a:hover { opacity: .7; }
.site-header .tel { font-variant-numeric: tabular-nums; opacity: .85; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 820px);
  display: flex; align-items: center;
  color: var(--white);
  background: var(--navy) center/cover no-repeat;
  /* Feedback ronde 1: banner minder donker + tekst links, zodat de foto beter
     tot zijn recht komt. Lichtere navy-overlay aflopend naar rechts. */
  background-image:
    linear-gradient(94deg, rgba(27,34,58,.84) 0%, rgba(27,34,58,.58) 36%, rgba(27,34,58,.24) 66%, rgba(27,34,58,.05) 100%),
    linear-gradient(0deg, rgba(27,34,58,.35) 0%, rgba(27,34,58,0) 26%),
    url('assets/foto-banner.jpg');
  overflow: hidden;
}
/* Hero-container op volle containerbreedte. In de flex-parent (.hero) kromp de
   container anders naar de tekstbreedte en werd hij gecentreerd, waardoor de
   hero-tekst naar het midden viel. Met width:100% lijnt de hero-tekst uit met
   de container, gelijk aan de intro en de rest van de pagina (feedback Rianne:
   'tekst naar links'). */
.hero .container { position: relative; z-index: 2; padding-block: var(--space-9); width: 100%; }
.hero .eyebrow {
  font-weight: 700; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: var(--space-4);
}
.hero h1 { color: var(--white); max-width: 16ch; letter-spacing: -.01em; }

/* ---------- Knop (brand: tekst + rode underline) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-6); font-weight: 700; font-size: 1.05rem;
  color: var(--white); text-decoration: none;
  padding-bottom: 5px;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 100% 2px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--ease), opacity var(--ease);
}
.btn::after { content: "\2192"; transition: transform var(--ease); }
.btn:hover { opacity: .9; }
.btn:hover::after { transform: translateX(4px); }

/* ---------- Intro (tekst, uitgelijnd met het beeldgrid eronder) ----------
   Feedback ronde 3 (Rianne, 25-06): de tekst liep smal langs de linkerkant,
   met een leeg vlak rechts. De tekst vult nu de volle containerbreedte en
   lijnt uit met de foto's: de lead staat over de volle breedte, de twee
   verdiepende alinea's staan in twee kolommen naast elkaar. */
.intro { background: var(--bg-light); }
.intro .body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-4) clamp(2rem, 4vw, 3rem); max-width: none;
}
.intro p { color: var(--ink-soft); max-width: none; font-size: 1.0625rem; line-height: 1.65; }
.intro p:first-child {
  grid-column: 1 / -1;
  color: var(--ink); font-size: 1.2rem; font-weight: 700; line-height: 1.5;
}
@media (max-width: 720px) {
  .intro .body { grid-template-columns: 1fr; }
}

/* ---------- Beeldgrid (uniform 3×2, zoals 'Het innovatieve centrum') ---------- */
.bento { background: var(--bg-light); padding-top: 0; }
.bento .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.bento .cell {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); aspect-ratio: 4 / 3;
}
.bento .cell img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .bento .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .bento .grid { grid-template-columns: 1fr; }
}

/* ---------- Gedeelde sectie-titel ---------- */
.atouts__title, .features__title {
  color: var(--blue); margin-bottom: var(--space-6);
  position: relative; padding-bottom: var(--space-3);
}
.atouts__title::after, .features__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 2px; background: var(--blue-light);
}

/* ---------- Eigenschappen (7 icoon-items, flyer) ---------- */
.atouts { background: var(--bg-blue); }
.atouts__grid {
  list-style: none; display: grid; gap: clamp(1.6rem, 3.2vw, 2.4rem) clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.atout { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-2) var(--space-4); align-items: center; }
/* Iconen overgenomen uit de flyer (Iconen los.pdf): navy line-art met rood
   accent in een cirkel. Tonen we direct, zonder eigen badge eromheen. */
img.atout__ic {
  grid-row: 1 / span 2; width: 72px; height: 72px;
  display: block; object-fit: contain;
}
.atout h3 { color: var(--blue); align-self: end; font-size: 1.1rem; }
.atout p { color: var(--ink-soft); font-size: .95rem; line-height: 1.45; align-self: start; max-width: none; }

/* ---------- Knop: gevulde variant (rood, zoals gvanbeekenzn-CTA) ---------- */
.btn--solid {
  background: var(--red); background-image: none;
  color: var(--white); padding: .85rem 1.4rem; border-radius: var(--radius);
  font-size: 1.02rem; margin-top: 0;
  transition: background-color var(--ease), transform var(--ease), opacity var(--ease);
}
.btn--solid::after { content: "\2192"; }
.btn--solid:hover { background: #c81f0f; opacity: 1; transform: translateY(-1px); }
.btn--solid:hover::after { transform: translateX(4px); }
.btn--button { border: 0; cursor: pointer; font-family: inherit; }

/* ---------- CTA-blok ('Samen met u vinden we de beste oplossing') ---------- */
.cta { background: var(--white); }
.cta__panel {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch;
  background: var(--blue); color: var(--white);
  border-radius: var(--radius); overflow: hidden;
}
.cta__body { padding: clamp(2rem, 4vw, 3.5rem); align-self: center; }
.cta__title { color: var(--white); max-width: 16ch; margin-bottom: var(--space-4); }
.cta__lead { color: rgba(255,255,255,.9); max-width: 46ch; font-size: 1.05rem; line-height: 1.55; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }
.cta__tel { color: var(--white); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; opacity: .92; }
.cta__tel:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.cta__media { position: relative; min-height: 240px; background: var(--navy); }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .cta__panel { grid-template-columns: 1fr; }
  .cta__media { min-height: 220px; order: -1; }
}

/* ---------- Contactformulier ---------- */
.contact { background: var(--bg-light); }
.contact__intro { max-width: 60ch; margin-bottom: var(--space-6); }
.contact__title {
  color: var(--blue); margin-bottom: var(--space-3);
  position: relative; padding-bottom: var(--space-3);
}
.contact__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 2px; background: var(--blue-light);
}
.contact__intro p { color: var(--ink-soft); }
/* Feedback ronde 3 (Rianne, 25-06): het formulier stond smal links met een
   leeg vlak rechts. Formulier + beeld staan nu naast elkaar en vullen de
   volle breedte, uitgelijnd met de foto's elders op de pagina. */
.contact__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 3vw, 2.75rem); align-items: stretch;
}
.contact__form { display: grid; gap: var(--space-4); align-content: start; }
.contact__aside {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); min-height: 260px;
}
.contact__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__aside { min-height: 220px; order: -1; }
}
@media (max-width: 600px) { .contact__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field__label { font-weight: 700; font-size: .95rem; color: var(--blue); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #D7D9E0; border-radius: 10px;
  padding: .75rem .9rem; width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(77,135,198,.18);
}
.contact__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
.contact__status { font-size: .96rem; font-weight: 700; color: var(--blue); max-width: none; }
.contact__status.is-error { color: var(--red); }

/* ---------- Footer (lichte stijl, zoals gvanbeekenzn.nl) ---------- */
.site-footer { background: var(--bg-grey); color: var(--ink); padding-block: var(--space-8) var(--space-6); }
.site-footer .container {
  display: grid; gap: var(--space-7) var(--space-6); align-items: start;
  grid-template-columns: 1fr 1fr 1.5fr;
}
.site-footer h4 { color: var(--blue); font-size: 1.2rem; font-weight: 700; margin-bottom: var(--space-4); }
.site-footer p, .site-footer a { color: var(--ink-soft); font-size: .98rem; text-decoration: none; line-height: 1.65; }
.site-footer a { transition: color var(--ease); }
.site-footer a:hover { color: var(--red); }
.site-footer .logo { width: 230px; max-width: 100%; height: auto; margin-bottom: var(--space-4); }

.footer-brand { grid-column: 1 / -1; max-width: 60ch; }
.footer-brand__ref { color: var(--ink-soft); font-size: .96rem; line-height: 1.65; }
.footer-brand__ref strong { color: var(--blue); font-weight: 700; }

/* Driehoek-bullets (rood), zoals de footer-lijsten op gvanbeekenzn.nl */
.footer-list { list-style: none; display: grid; gap: var(--space-2); }
.footer-list li { position: relative; padding-left: 1.25rem; }
.footer-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  border-style: solid; border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--red);
}
.footer-list a { color: var(--ink); font-size: 1rem; }
.footer-contact p + p { margin-top: var(--space-4); }
.footer-contact strong { color: var(--blue); font-weight: 700; }

@media (max-width: 820px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer .container { grid-template-columns: 1fr; } }

.site-footer .legal {
  grid-column: 1 / -1; border-top: 1px solid rgba(27,34,58,.14);
  margin-top: var(--space-2); padding-top: var(--space-5);
  display: flex; gap: var(--space-3) var(--space-6); flex-wrap: wrap; align-items: center;
  font-size: .85rem;
}
.site-footer .legal a, .site-footer .legal span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .site-header { gap: var(--space-3); }
  .site-header nav a:not(.lang-toggle):not(.tel) { display: none; }
  .site-header .tel { display: none; }
}
@media (max-width: 460px) {
  .site-header .brandmark__name { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn, .btn::after, .lang-toggle, .site-header nav a { transition: none; }
}

/* ===========================================================================
   LEGACY — uitsluitend voor de versiebeheer-viewer
   Oude snapshots (t/m v3) bewaren alleen HTML en lenen daardoor de huidige
   styles.css. Die versies gebruikten inline-SVG iconen in een badge en een
   'Tot in het detail'-sectie. Onderstaande regels houden die oude versies
   correct in beeld zonder de huidige (v4) opzet te raken.
   ======================================================================== */

/* Oude eigenschappen-iconen: inline-svg in ronde blauwe badge */
span.atout__ic {
  grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; align-self: center;
  background: var(--blue-light); color: var(--white);
}
span.atout__ic svg { width: 28px; height: 28px; }

/* Oude 'Tot in het detail'-sectie (kenmerken in detail) */
.features { background: var(--white); }
.features .grid { column-count: 2; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
.feature {
  display: grid; grid-template-columns: 52px 1fr; gap: var(--space-4); align-items: start;
  break-inside: avoid; margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}
.feature:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .features .grid { column-count: 1; } }
.feature .ic {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white); margin-top: 2px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { color: var(--blue); margin-bottom: var(--space-2); }
.feature p { color: var(--ink-soft); font-size: 1rem; max-width: 46ch; }
