/* ==============================================================
   BOUWBEDRIJF DE VRIES — eigen ontwerp
   Vormtaal: vierkant, vlak, stevig. Navy + amber, Archivo/Barlow.
   Signatuur: de schuine naad (dakhelling) en het duimstok-streepje.
   ============================================================== */

:root {
  --inkt:   #21252B;
  --navy:   #17324F;
  --navy-d: #122840;
  --amber:  #E8A33D;
  --papier: #F2F1ED;
  --wit:    #FFFFFF;
  --staal:  #5C6670;
  --lijn:   #DDDBD4;

  --font-kop:   'Archivo', sans-serif;
  --font-tekst: 'Barlow', sans-serif;

  --h1: clamp(38px, 4.6vw, 58px);
  --h2: clamp(28px, 3vw, 38px);
  --h3: 21px;
  --tekst: 17px;
  --klein: 15px;

  --sectie: 96px;
  --breedte: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-tekst);
  font-size: var(--tekst);
  line-height: 1.65;
  color: var(--inkt);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-kop);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--inkt);
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.binnen {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: 0 28px;
}
.blok { padding-top: var(--sectie); padding-bottom: var(--sectie); }

/* Duimstok-streepje: korte amber liniaal met maatstreepjes */
.duimstok {
  display: block;
  width: 72px;
  height: 8px;
  margin-bottom: 22px;
  background:
    repeating-linear-gradient(90deg,
      var(--amber) 0, var(--amber) 2px,
      transparent 2px, transparent 12px),
    linear-gradient(var(--amber), var(--amber)) 0 100% / 100% 3px no-repeat;
}
.duimstok--wit {
  background:
    repeating-linear-gradient(90deg,
      var(--wit) 0, var(--wit) 2px,
      transparent 2px, transparent 12px),
    linear-gradient(var(--wit), var(--wit)) 0 100% / 100% 3px no-repeat;
}

/* ---- knoppen ---- */
.knop {
  display: inline-block;
  padding: 15px 30px;
  background: var(--amber);
  color: var(--inkt);
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: var(--klein);
  text-decoration: none;
  border: 2px solid var(--amber);
  border-radius: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.knop:hover { background: #D89127; border-color: #D89127; }
.knop:active { transform: translateY(1px); }

.knop--lijn {
  background: transparent;
  color: var(--wit);
  border-color: rgba(255,255,255,.75);
}
.knop--lijn:hover { background: var(--wit); border-color: var(--wit); color: var(--inkt); }

.knop--inkt {
  background: transparent;
  color: var(--inkt);
  border-color: var(--inkt);
}
.knop--inkt:hover { background: var(--inkt); border-color: var(--inkt); color: var(--wit); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ==============================================================
   HEADER
   ============================================================== */
.menu {
  background: var(--wit);
  border-bottom: 1px solid var(--lijn);
  position: sticky;
  top: 0;
  z-index: 50;
}
.menu .binnen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}
.menu__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  color: var(--inkt);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.menu__logo b {
  width: 16px;
  height: 16px;
  background: var(--amber);
  flex: none;
}
.menu__logo span { color: var(--staal); font-weight: 600; }

.menu__rechts { display: flex; align-items: center; gap: 30px; }
.menu__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.menu__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.menu__links a:hover { border-bottom-color: var(--lijn); }
.menu__links a[aria-current="page"] { border-bottom-color: var(--amber); font-weight: 600; }

.menu__bel {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--klein);
  color: var(--navy);
}
.menu__bel:hover { text-decoration: underline; }

.menu__hamburger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu__hamburger span { display: block; width: 26px; height: 3px; background: var(--inkt); margin: 5px 0; }

/* ==============================================================
   HERO MET SCHUINE NAAD (homepage)
   ============================================================== */
.hero2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--navy);
  min-height: 620px;
}
.hero2__paneel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px max(28px, calc((100vw - var(--breedte)) / 2 + 28px));
  color: var(--wit);
}
.hero2__paneel h1 { color: var(--wit); margin-bottom: 18px; max-width: 560px; }
.hero2__sub {
  font-size: 19px;
  color: rgba(255,255,255,.85);
  max-width: 460px;
  margin-bottom: 34px;
}
.hero2__knoppen { display: flex; gap: 14px; flex-wrap: wrap; }
.hero2__foto {
  background-size: cover;
  background-position: center;
  clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -72px;
  min-height: 320px;
}

/* ==============================================================
   SECTIEKOP (links uitgelijnd)
   ============================================================== */
.kop { max-width: 640px; margin-bottom: 52px; }
.kop p { color: var(--staal); }

/* ==============================================================
   DIENSTKAARTEN — vlak en vierkant
   ============================================================== */
.kaarten__raster {
  display: grid;
  grid-template-columns: repeat(var(--kolommen, 4), 1fr);
  gap: 26px;
}
.kaart {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease;
}
.kaart:hover { border-top-color: var(--amber); }
.kaart__foto { aspect-ratio: 4 / 3; overflow: hidden; }
.kaart__foto img { width: 100%; height: 100%; object-fit: cover; }
.kaart__inhoud { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.kaart__inhoud h3 { margin-bottom: 8px; }
.kaart__inhoud p { color: var(--staal); font-size: var(--klein); flex: 1; }
.kaart__link {
  margin-top: 16px;
  font-weight: 600;
  font-size: var(--klein);
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.kaart__link:hover { color: var(--inkt); }

/* ==============================================================
   FOTO NAAST TEKST
   ============================================================== */
.fnt--papier { background: var(--papier); }
.fnt__raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.fnt--rechts .fnt__foto { order: 2; }
.fnt__foto { position: relative; }
.fnt__foto img {
  width: 100%;
  min-height: 380px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.fnt__foto::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 3px solid var(--amber);
}
.fnt__tekst h2 { margin-bottom: 16px; }
.fnt__tekst p { color: var(--staal); }
.fnt__punten { list-style: none; margin: 22px 0 28px; padding: 0; }
.fnt__punten li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--inkt); }
.fnt__punten li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--amber);
}

/* ==============================================================
   ZEKERHEDEN (icoontjes-rij)
   ============================================================== */
.zeker { border-top: 1px solid var(--lijn); }
.zeker__raster {
  display: grid;
  grid-template-columns: repeat(var(--kolommen, 4), 1fr);
  gap: 40px;
}
.zeker__item { border-top: 3px solid var(--inkt); padding-top: 20px; }
.zeker__item svg { width: 40px; height: 40px; color: var(--amber); margin-bottom: 14px; }
.zeker__item h3 { font-size: 18px; margin-bottom: 6px; }
.zeker__item p { color: var(--staal); font-size: var(--klein); margin: 0; }

/* ==============================================================
   OPROEP
   ============================================================== */
.oproep { background: var(--navy); color: var(--wit); }
.oproep__binnen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 52px;
  padding-bottom: 52px;
  flex-wrap: wrap;
}
.oproep__tekst {
  font-family: var(--font-kop);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  margin: 0;
  flex: 1;
  min-width: 280px;
  color: var(--wit);
}
.oproep__knoppen { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==============================================================
   SUBPAGINA-HERO met schuine onderrand
   ============================================================== */
.heroklein {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--wit);
  padding: 110px 0 130px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}
.heroklein::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(18,40,64,.94) 0%, rgba(18,40,64,.72) 55%, rgba(18,40,64,.45) 100%);
}
.heroklein .binnen { position: relative; z-index: 1; }
.heroklein h1 { color: var(--wit); margin: 0; }
.heroklein__ondertitel { margin: 14px 0 0; color: rgba(255,255,255,.85); max-width: 560px; font-size: 18px; }

/* ==============================================================
   CONTACT
   ============================================================== */
.contact__raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact__foto img { width: 100%; min-height: 400px; object-fit: cover; }
.contact__tekst p { color: var(--staal); }
.contact__lijst { margin: 26px 0 0; }
.contact__lijst dt {
  font-family: var(--font-kop);
  font-weight: 700;
  font-size: var(--klein);
  margin-top: 16px;
}
.contact__lijst dd { margin: 2px 0 0; color: var(--staal); }
.contact__lijst a { text-decoration: none; color: var(--navy); font-weight: 600; }
.contact__lijst a:hover { text-decoration: underline; }

/* ==============================================================
   FORMULIER
   ============================================================== */
.form--papier { background: var(--papier); }
.form__binnen { max-width: 760px; }
.form__val { display: none !important; }
.form__rij { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__veld { display: block; margin-bottom: 18px; }
.form__veld > span {
  display: block;
  font-weight: 600;
  font-size: var(--klein);
  margin-bottom: 6px;
}
.form__veld input,
.form__veld select,
.form__veld textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--lijn);
  border-radius: 0;
  background: var(--wit);
  font-family: var(--font-tekst);
  font-size: var(--tekst);
  color: var(--inkt);
}
.form__veld textarea { resize: vertical; }
.form__veld input:focus,
.form__veld select:focus,
.form__veld textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: var(--amber);
}
.form__klein { margin-top: 14px; font-size: var(--klein); color: var(--staal); }

/* ==============================================================
   BEDANKT
   ============================================================== */
.bedankt { text-align: left; }
.bedankt__binnen { max-width: 640px; }
.bedankt__vink { width: 64px; height: 64px; color: var(--amber); margin-bottom: 24px; }
.bedankt__vink svg { width: 100%; height: 100%; }
.bedankt p { color: var(--staal); }
.bedankt__knoppen { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ==============================================================
   FOOTER
   ============================================================== */
.footer { background: var(--inkt); color: rgba(255,255,255,.75); font-size: var(--klein); }
.footer__kolommen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer h4 { color: var(--wit); font-size: 17px; margin-bottom: 16px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--wit); text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__onder {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==============================================================
   ENTREE-ANIMATIE (alleen hero, eenmalig)
   ============================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero2__paneel > * {
    animation: entree .6s ease both;
  }
  .hero2__paneel > *:nth-child(2) { animation-delay: .08s; }
  .hero2__paneel > *:nth-child(3) { animation-delay: .16s; }
  .hero2__paneel > *:nth-child(4) { animation-delay: .24s; }
  @keyframes entree {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ==============================================================
   MOBIEL
   ============================================================== */
@media (max-width: 980px) {
  .hero2 { grid-template-columns: 1fr; }
  .hero2__paneel { padding: 64px 28px; }
  .hero2__foto { clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%); margin-left: 0; min-height: 300px; }
  .kaarten__raster { grid-template-columns: repeat(2, 1fr); }
  .zeker__raster { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --sectie: 60px; --h3: 19px; }

  .menu .binnen { min-height: 68px; }
  .menu__hamburger { display: block; }
  .menu__bel { display: none; }
  .menu__rechts {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wit);
    border-bottom: 1px solid var(--lijn);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 28px 22px;
  }
  .menu__rechts.open { display: flex; }
  .menu__links { flex-direction: column; gap: 0; }
  .menu__links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--lijn); }
  .menu__rechts .knop { margin-top: 16px; text-align: center; }

  .kaarten__raster { grid-template-columns: 1fr; }
  .zeker__raster { grid-template-columns: 1fr; gap: 28px; }
  .fnt__raster { grid-template-columns: 1fr; gap: 44px; }
  .fnt--rechts .fnt__foto { order: 0; }
  .fnt__foto img { min-height: 240px; }
  .fnt__foto::after { inset: 12px -12px -12px 12px; }
  .contact__raster { grid-template-columns: 1fr; gap: 36px; }
  .contact__foto img { min-height: 240px; }
  .form__rij { grid-template-columns: 1fr; gap: 0; }
  .footer__kolommen { grid-template-columns: 1fr; gap: 32px; padding-top: 52px; }
  .oproep__binnen { flex-direction: column; align-items: flex-start; }
  .heroklein { padding: 72px 0 90px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
