/* ==========================================================================
   Pol Group – onepager
   Maten komen uit het Figma-ontwerp (frame 1512 × 1301 px).
   Omrekening: 1vw = 15,12px op de ontwerpbreedte.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Lettertypes (zelf gehost: geen verzoeken naar Google, AVG-vriendelijk)

   Het ontwerp gebruikt Kallisto (Bold/Medium) voor koppen. Dat is een
   betaald lettertype. Zolang de webfont-bestanden er niet zijn, valt de
   site terug op Saira op 122% breedte; die heeft vrijwel dezelfde
   tekstbreedtes. Kallisto toevoegen: zet kallisto-bold.woff2 en
   kallisto-medium.woff2 in /fonts en haal het commentaar rond het blok
   hieronder weg.
   -------------------------------------------------------------------------- */

/*
@font-face {
  font-family: "Kallisto";
  src: url("../fonts/kallisto-bold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "Kallisto";
  src: url("../fonts/kallisto-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
*/

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-variable-latin.woff2") format("woff2-variations"),
       url("../fonts/saira-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Variabelen
   -------------------------------------------------------------------------- */

/* Schuine lijnen als animeerbare percentages (voor het hover-effect) */
@property --c1t { syntax: "<percentage>"; inherits: true; initial-value: 36.18%; }
@property --c1b { syntax: "<percentage>"; inherits: true; initial-value: 27.38%; }
@property --c2t { syntax: "<percentage>"; inherits: true; initial-value: 72.42%; }
@property --c2b { syntax: "<percentage>"; inherits: true; initial-value: 63.69%; }

:root {
  --blue: #24418E;
  --ink: #000000;
  --white: #ffffff;

  --font-display: "Kallisto", "Saira", "Poppins", Arial, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display-stretch: 122%;          /* alleen van invloed op Saira */

  --gutter: clamp(20px, 2.65vw, 56px);       /* 40px */
  --ease: cubic-bezier(0, 0, .58, 1);       /* Figma: ease-out, 300ms */
}

/* --------------------------------------------------------------------------
   Basis
   -------------------------------------------------------------------------- */

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

html {
  background: var(--blue);          /* geen witte strook bij overscroll */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;                 /* geen horizontale scrollbalk */
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  z-index: 50;
  top: clamp(12px, 1.65vw, 36px);            /* 25px */
  left: clamp(12px, 1.59vw, 36px);           /* 24px */
  right: clamp(12px, 1.59vw, 36px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: clamp(60px, 4.76vw, 100px);        /* 72px */
  padding: 0 clamp(18px, 2.65vw, 56px);      /* 40px */
  background: var(--white);
  border-radius: clamp(14px, 1.32vw, 28px);  /* 20px */
}

.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: clamp(150px, 13.3vw, 280px); height: auto; }   /* 201px */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.98vw, 42px);            /* 30px */
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  font-size: clamp(15px, 1.19vw, 25px);      /* 18px */
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color .3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-link:hover { color: var(--blue); }
.nav-link:hover::after { transform: scaleX(1); }

/* Hamburger (alleen mobiel) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.burger:hover { background: #F1F3F8; }

.burger-line {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s ease;
}

.burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(10, 25, 70, .25);
}

.mobile-menu[hidden] { display: none; }

.mobile-link {
  display: block;
  padding: 16px 8px;
  border-bottom: 1px solid #E6E9F2;
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.mobile-link:last-child { border-bottom: 0; }
.mobile-link:hover { color: var(--blue); }

/* --------------------------------------------------------------------------
   Hero met drie schuine beeldvlakken
   Elk vlak is een parallellogram van 682 × 817px met 133px schuinte.
   -------------------------------------------------------------------------- */

.hero {
  --media-w: 45.1%;                           /* 682 / 1512 */
  position: relative;
  width: 100%;
  height: clamp(600px, 54.03vw, 1120px);      /* 817px */
  overflow: hidden;
  background: var(--blue);
  transition: --c1t .3s var(--ease), --c1b .3s var(--ease),
              --c2t .3s var(--ease), --c2b .3s var(--ease);
}

/* Elk vlak beslaat de hele hero; clip-path snijdt het schuine deel uit.
   clip-path begrenst ook het klikgebied, dus vlakken overlappen niet. */
.panel {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.panel--transport { clip-path: polygon(0 0, var(--c1t) 0, var(--c1b) 100%, 0 100%); }
.panel--containers     { clip-path: polygon(var(--c1t) 0, var(--c2t) 0, var(--c2b) 100%, var(--c1b) 100%); }
.panel--cranes    { clip-path: polygon(var(--c2t) 0, 100% 0, 100% 100%, var(--c2b) 100%); }

/* Foto vult de omsluitende rechthoek van het parallellogram (zoals in Figma) */
.panel-media {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--media-w);
  overflow: hidden;
}

.panel--transport .panel-media { left: calc(var(--c1t) - var(--media-w)); }
.panel--containers     .panel-media { left: var(--c1b); width: calc(var(--c2t) - var(--c1b)); }
.panel--cranes    .panel-media { left: var(--c2b); width: calc(100% - var(--c2b)); min-width: var(--media-w); }

.panel-media picture,
.panel-media img {
  width: 100%;
  height: 100%;
}

.panel-media img {
  object-fit: cover;
  transform-origin: 50% 60%;
  transition: transform .8s var(--ease);
}

/* Uitsnedes volgen de beeldcrop in Figma */
.panel--transport .panel-media img { object-position: 90% 50%; }
.panel--containers     .panel-media img { object-position: 50% 45%; }
.panel--cranes    .panel-media img { object-position: 50% 0%; }

/* Blauwe laag: #24418E op 30% (hover: 20%, de andere vlakken 50%) */
.panel-shade {
  position: absolute;
  inset: 0;
  background: var(--blue);
  opacity: .30;
  transition: opacity .3s var(--ease);
}

/* De tekstbreedte volgt de vrije ruimte in het vlak, zodat tekst nooit over
   de schuine rand loopt (ook niet als een vlak tijdens hover smaller wordt). */
.panel-content {
  --content-w: clamp(240px, 22.7vw, 480px);   /* 343px */
  position: absolute;
  bottom: 8.2%;
  width: min(var(--content-w), var(--avail));
}

.panel--transport .panel-content { left: 2.65%;                      --avail: calc(var(--c1b) - 4.7%); }               /* 40px  */
.panel--containers     .panel-content { left: calc(var(--c1b) + 6.88%);   --avail: calc(var(--c2b) - var(--c1b) - 8.9%); }  /* 518px */
.panel--cranes    .panel-content { left: calc(var(--c2b) + 6.15%);   --avail: calc(100% - var(--c2b) - 8.2%); }        /* 1056px */

.panel-logo {
  display: flex;
  align-items: center;
  height: clamp(36px, 3.24vw, 68px);          /* 49px */
  margin-bottom: clamp(18px, 2.45vw, 52px);   /* 37px */
}

.panel-logo img {
  width: clamp(110px, 9.92vw, 210px);         /* 150px */
  height: auto;
}

.panel-title {
  position: relative;
  display: inline-block;
  margin-bottom: clamp(10px, .99vw, 22px);    /* 15px */
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  font-size: clamp(24px, 1.98vw, 42px);       /* 30px */
  line-height: 1.2;
  text-transform: uppercase;
}

.panel-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.12em;
  width: 100%;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.panel-text {
  min-height: 3em;                            /* 2 regels: titels blijven op één lijn */
  font-size: clamp(14px, .99vw, 21px);        /* 15px */
  line-height: 1.5;
}

/* Hover (uit het Figma-prototype): het vlak onder de muis wordt breder
   en lichter, de andere twee worden smaller en donkerder. */
@media (hover: hover) and (min-width: 768px) {
  .hero:has(.panel--transport:hover) { --c1t: 42.4%; --c1b: 33.6%; --c2t: 74.5%; --c2b: 65.8%; }
  .hero:has(.panel--containers:hover)     { --c1t: 30.7%; --c1b: 21.9%; --c2t: 76.7%; --c2b: 68.0%; }
  .hero:has(.panel--cranes:hover)    { --c1t: 32.7%; --c1b: 23.9%; --c2t: 66.1%; --c2b: 57.4%; }

  .hero:has(.panel:hover) .panel-shade { opacity: .50; }
  .hero .panel:hover .panel-shade { opacity: .20; }
  .panel:hover .panel-media img { transform: scale(1.03); }
  .panel:hover .panel-title::after { transform: scaleX(1); }
}

.panel:focus-visible { outline: none; }
.panel:focus-visible .panel-shade { opacity: .15; }
.panel:focus-visible .panel-title::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Contact & footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(32px, 2.12vw, 48px) var(--gutter) 0;   /* 32px */
  background: var(--blue);
  color: var(--white);
}

/* Kolommen op x = 40 / 621 / 1129 px  →  581 : 508 : 343 */
.contact-top {
  display: grid;
  grid-template-columns: 1089fr 343fr;
  align-items: start;
}

.eyebrow {
  margin-bottom: clamp(6px, .6vw, 14px);
  font-size: clamp(14px, .99vw, 21px);        /* 15px */
  line-height: 1.5;
}

.contact-title {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  font-size: clamp(38px, 4.63vw, 104px);      /* 70px */
  line-height: 1.2;
  text-transform: uppercase;
}

.address {
  padding-top: clamp(30px, 2.91vw, 64px);     /* 44px */
  font-size: clamp(17px, 1.32vw, 28px);       /* 20px */
  line-height: 1.5;
}

.companies {
  display: grid;
  grid-template-columns: 581fr 508fr 343fr;
  margin-top: clamp(40px, 4.5vw, 96px);       /* 68px */
}

.company {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.company-name {
  margin-bottom: clamp(12px, 1.52vw, 32px);   /* 23px */
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  font-size: clamp(17px, 1.32vw, 28px);       /* 20px */
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-link {
  font-size: clamp(13px, .79vw, 17px);        /* 12px */
  line-height: 2.17;                          /* 26px regelafstand */
  text-decoration: none;
  transition: opacity .2s ease;
}

.contact-link:hover { opacity: .75; text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: clamp(40px, 4.96vw, 104px);     /* 75px */
  padding: clamp(20px, 1.98vw, 42px) 0;       /* 30px */
  border-top: 1px solid rgba(255, 255, 255, .5);
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 500;
  font-size: clamp(13px, .79vw, 17px);        /* 12px */
}

.footer-bottom a { text-decoration: none; transition: opacity .2s ease; }
.footer-bottom a:hover { opacity: .75; }
.legal { text-align: center; }
.credit { justify-self: end; }

/* --------------------------------------------------------------------------
   Focus-states
   -------------------------------------------------------------------------- */

.brand:focus-visible,
.nav-link:focus-visible,
.burger:focus-visible,
.mobile-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Tablet (768–1100px): schuine vlakken blijven, tekst compacter
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero { height: clamp(560px, 72vw, 760px); }
  .panel-content { --content-w: 26%; }
  .panel-logo { height: 32px; margin-bottom: 18px; }
  .panel-logo img { width: 110px; }
  .panel-title { font-size: clamp(19px, 2.2vw, 24px); white-space: nowrap; }
  .panel-text { font-size: 13px; min-height: 4.5em; }   /* 3 regels */

  .companies { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}

/* --------------------------------------------------------------------------
   Mobiel (≤ 767px): vlakken onder elkaar, hamburgermenu
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .nav { display: none; }
  .burger { display: flex; }

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .panel {
    position: relative;
    inset: auto;
    height: clamp(360px, 95vw, 540px);
    clip-path: none !important;
  }

  /* eerste vlak iets hoger: de zwevende header ligt eroverheen */
  .panel--transport { height: calc(clamp(360px, 95vw, 540px) + 72px); }

  .panel .panel-media,
  .panel--transport .panel-media,
  .panel--containers .panel-media,
  .panel--cranes .panel-media { left: 0; width: 100%; min-width: 0; }

  .panel--transport .panel-media img { object-position: 70% 50%; }
  .panel--cranes .panel-media img { object-position: 50% 20%; }
  .panel--containers .panel-media img { object-position: 50% 88%; }

  /* iets meer contrast voor de tekst op kleine schermen */
  .panel-shade { opacity: .38; }

  .panel-content,
  .panel--transport .panel-content,
  .panel--containers .panel-content,
  .panel--cranes .panel-content {
    left: 24px;
    right: 24px;
    bottom: 32px;
    width: auto;
    max-width: 380px;
    --avail: 100%;
  }

  .panel-logo { height: 46px; margin-bottom: 18px; }
  .panel-logo img { width: 140px; }
  .panel-title { font-size: 28px; margin-bottom: 10px; }
  .panel-text { font-size: 15px; min-height: 0; }

  .contact-top { grid-template-columns: 1fr; }
  .address { padding-top: 24px; }

  .companies { grid-template-columns: 1fr; gap: 36px; }

  .footer-bottom { grid-template-columns: 1fr; gap: 10px; }
  .legal { text-align: left; }
  .credit { justify-self: start; }
}

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