/* guidovangennep.com – statische versie
   Kleuren/maten overgenomen uit het Avada-thema van de live site. */

@font-face {
  font-family: "Britannic";
  src: url("../fonts/britannic-bold.woff2") format("woff2"),
       url("../fonts/britannic-bold.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #242321;
  --black: #040404;
  --panel: #010101;
  --cream: #eeecc9;
  --light: #f2f3f5;
  --offwhite: #f9f9fb;
  --green: #83b697;
  --green-hover: #65bd7d;
  --sage: #5e6f6a;
  --yellow: #f6c660;
  --gutter: max(30px, calc((100vw - 1200px) / 2));
  --radius: 6px;
  --tile-gap: 20px;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: "Britannic", "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.72;
  letter-spacing: .3px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--green-hover); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.45px; line-height: 1.2; }
p { margin: 0 0 20px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--yellow); color: var(--black); padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 15px max(0px, calc((100vw - 1200px) / 2));
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
  transition: transform .4s ease, opacity .4s ease;
  will-change: transform;
}
.site-header > * { pointer-events: auto; }
.site-header.is-hidden { transform: translateY(-100%); opacity: 0; }
.site-header.is-hidden > * { pointer-events: none; }

.brand { margin: 0; font-size: 14px; line-height: 1.72; letter-spacing: .3px; }
.brand a { display: inline-block; color: #fff; }
.brand img { width: 162px; height: 106px; }
.brand .tagline {
  display: block; margin-top: 14px; color: #fff; text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12.6px;
  font: inherit; font-size: 18px; line-height: 1.2; letter-spacing: .27px;
  color: var(--black); background: var(--yellow);
  border: 4px solid var(--black); border-radius: 32px;
  padding: 16px 36px; cursor: pointer; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: #ffd800; color: var(--black); }
.btn svg { width: 16px; height: 18px; fill: currentColor; flex: none; }
.menu-toggle { margin-top: 3px; }

/* ---------- Off-canvas menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 199; background: rgba(36, 35, 33, .8);
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.menu-panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
  width: 280px; max-width: 100%; overflow-y: auto;
  background: var(--panel); color: var(--cream);
  transform: translateX(-30%); opacity: 0; visibility: hidden;
  transition: transform .5s ease, opacity .5s ease, visibility .5s;
}
.menu-open .menu-overlay { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }
.menu-open .menu-panel { transform: none; opacity: 1; visibility: visible; transition: transform .5s ease, opacity .5s ease, visibility 0s; }
.menu-panel .menu-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--yellow);
  width: 44px; height: 44px; display: grid; place-items: center; /* tikdoel 44px */
}
.menu-close svg { width: 12px; height: 22px; fill: currentColor; display: block; }
.menu-panel .portrait { margin-top: 40px; width: 280px; height: 442px; object-fit: cover; }
.menu-panel picture { display: block; }
.menu-panel .btn { margin: 10px 30px 0; width: 220px; padding: 16px 18px; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0 30px; font-size: 16px; line-height: 1.7; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact-list a { padding-block: 9px; margin-block: -9px; } /* groter tikdoel zonder extra hoogte */
.contact-list .icon {
  width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list .icon svg { width: 14px; height: 14px; fill: var(--bg); }

/* ---------- Project grid ---------- */
.projects { overflow: hidden; }
.tile-row {
  display: flex; flex-wrap: wrap;
  width: 104%; margin-left: -2%;
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  margin: 0 10px var(--tile-gap);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: #111;
}
.tile--full { flex: 0 0 calc(100% / 1.04); margin-left: 1.92%; margin-right: 1.92%; }
.tile--half { flex: 0 0 calc(50% - 20px); }
.tile--third { flex: 0 0 calc(33.3333% - 20px); }
.tile > picture, .tile .tile-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.tile .tile-img { object-fit: cover; object-position: center; }
.tile-title {
  position: relative; margin: 10px 0 15px; padding: 0 22px; /* randtegels lopen 2% buiten beeld */
  font-size: 30px; line-height: 1.2; letter-spacing: -.45px; text-transform: uppercase;
  text-align: center; color: var(--light); text-shadow: 1px 1px 0 #000;
}
.tile .awards {
  position: relative; display: flex; justify-content: center;
  margin: 0 0 12px; line-height: 0;
}
.tile .awards picture { display: block; flex: 0 1 200px; min-width: 0; }
.tile .awards img { width: 100%; height: auto; }

/* Hoogtes zoals live (padding-top boven de titel) */
.h-325 { padding-top: 325px; } .h-330 { padding-top: 330px; } .h-335 { padding-top: 335px; }
.h-400 { padding-top: 400px; } .h-450 { padding-top: 450px; } .h-500 { padding-top: 500px; }
.h-550 { padding-top: 550px; } .h-600 { padding-top: 600px; }
.tile-row { align-items: stretch; }

/* ---------- Filmography ---------- */
.filmography {
  position: relative;
  padding: 50px var(--gutter) 100px;
}
.filmography, .notfound {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(131,182,151,0.1)' fill-rule='evenodd'%3E%3Cpath d='M1.488 30c0 15.747 12.765 28.512 28.512 28.512S58.512 45.747 58.512 30 45.747 1.488 30 1.488 1.488 14.253 1.488 30zM30 60C13.431 60 0 46.569 0 30 0 13.431 13.431 0 30 0c16.569 0 30 13.431 30 30 0 16.569-13.431 30-30 30z'/%3E%3Cpath d='M11.47 30c0 10.234 8.296 18.53 18.53 18.53 10.234 0 18.53-8.296 18.53-18.53 0-10.234-8.296-18.53-18.53-18.53-10.234 0-18.53 8.296-18.53 18.53zM30 50c-11.046 0-20-8.954-20-20s8.954-20 20-20 20 8.954 20 20-8.954 20-20 20z'/%3E%3Cpath d='M1.488 90c0 15.747 12.765 28.512 28.512 28.512S58.512 105.747 58.512 90 45.747 61.488 30 61.488 1.488 74.253 1.488 90zM30 120c-16.569 0-30-13.431-30-30 0-16.569 13.431-30 30-30 16.569 0 30 13.431 30 30 0 16.569-13.431 30-30 30z'/%3E%3Cpath d='M11.47 90c0 10.234 8.296 18.531 18.53 18.531 10.234 0 18.53-8.297 18.53-18.531 0-10.234-8.296-18.53-18.53-18.53-10.234 0-18.53 8.296-18.53 18.53zM30 110c-11.046 0-20-8.954-20-20s8.954-20 20-20 20 8.954 20 20-8.954 20-20 20z'/%3E%3Cpath d='M61.488 30c0 15.747 12.765 28.512 28.512 28.512S118.512 45.747 118.512 30 105.747 1.488 90 1.488 61.488 14.253 61.488 30zM90 60c-16.569 0-30-13.431-30-30C60 13.431 73.431 0 90 0c16.569 0 30 13.431 30 30 0 16.569-13.431 30-30 30z'/%3E%3Cpath d='M71.47 30c0 10.234 8.296 18.53 18.53 18.53 10.234 0 18.531-8.296 18.531-18.53 0-10.234-8.297-18.53-18.531-18.53-10.234 0-18.53 8.296-18.53 18.53zM90 50c-11.046 0-20-8.954-20-20s8.954-20 20-20 20 8.954 20 20-8.954 20-20 20z'/%3E%3Cpath d='M61.488 90c0 15.747 12.765 28.512 28.512 28.512S118.512 105.747 118.512 90 105.747 61.488 90 61.488 61.488 74.253 61.488 90zM90 120c-16.569 0-30-13.431-30-30 0-16.569 13.431-30 30-30 16.569 0 30 13.431 30 30 0 16.569-13.431 30-30 30z'/%3E%3Cpath d='M71.47 90c0 10.234 8.296 18.531 18.53 18.531 10.234 0 18.531-8.297 18.531-18.531 0-10.234-8.297-18.53-18.531-18.53-10.234 0-18.53 8.296-18.53 18.53zM90 110c-11.046 0-20-8.954-20-20s8.954-20 20-20 20 8.954 20 20-8.954 20-20 20z'/%3E%3C/g%3E%3C/svg%3E");
  scroll-margin-top: 0;
}
.filmography > h2 {
  margin: 10px 0 15px; font-size: 30px; line-height: 1.2; text-transform: uppercase;
  color: var(--sage); text-shadow: 1px 1px 0 #000;
}
.filmography > .intro { max-width: 52em; margin: 0 0 30px; color: var(--cream); }
/* Flex-kolommen: marges tellen op (geen margin-collapsing), net als in Avada */
.filmography, .film-year, .film-list, .film { display: flex; flex-direction: column; }
.film-year { margin-bottom: 20px; }
.film-year > h3 { margin: 10px 0 15px; font-size: 30px; line-height: 1.2; color: var(--light); }
.film-list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--cream); }
.film h4 { margin: 10px 0 15px; font-size: 30px; line-height: 1.2; color: #fff; overflow-wrap: break-word; }
.film p { color: var(--cream); }

/* ---------- Content pages ---------- */
.page-main { padding: 200px var(--gutter) 60px; min-height: 60vh; }
.page-main h1 { font-size: 64px; line-height: 1.2; color: var(--cream); margin: 0 0 15px; letter-spacing: -.96px; }
.page-main .CookieDeclaration p { margin-bottom: 20px; }
.page-main .CookieDeclarationTable { margin-bottom: 18px; }

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - 52px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 200px var(--gutter) 120px;
}
.notfound h1 {
  max-width: 14em; margin: 0 0 30px;
  font-size: clamp(44px, 6.5vw, 96px); line-height: 1.08; letter-spacing: -.02em; color: var(--light);
  text-shadow: 1px 1px 0 #000;
}
.notfound h1 .accent { color: var(--yellow); }
.notfound p { max-width: 38em; margin: 0 0 40px; color: var(--cream); }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.notfound .actions .link { font-size: 18px; display: inline-block; padding: 10px 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 0 var(--gutter);
  font-size: 14px; line-height: 1.72; color: var(--offwhite);
}
.site-footer p { margin: 14px 0; }
.site-footer a { padding-block: 15px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.to-top {
  position: fixed; right: 75px; bottom: 0; z-index: 90;
  width: 48px; height: 44px; border-radius: var(--radius) var(--radius) 0 0;
  background: #333; color: var(--green); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top svg { width: 14px; height: 14px; fill: currentColor; }
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Medium (641–1024px) ---------- */
@media (max-width: 1024px) {
  .hide-medium { display: none !important; }
  /* Live laat losse tegels op tablet half/derde breed staan met een leeg vlak; hier vullen ze de rij */
  .tile { flex-grow: 1; }
}

/* ---------- Small (≤ 640px) ---------- */
@media (max-width: 640px) {
  :root { --gutter: 30px; }
  .hide-small { display: none !important; }
  .site-header { padding: 15px 0 15px 35px; }
  .brand { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tile, .tile--half, .tile--third, .tile--full {
    flex: 0 0 calc(100% / 1.04); margin-left: 1.92%; margin-right: 1.92%;
    padding-top: 100px; padding-bottom: 100px; justify-content: center;
  }
  .tile-title { margin: 10px 0; }
  .filmography > h2, .film-year > h3, .film h4 { margin-top: 10px; margin-bottom: 10px; }
  .to-top { display: none; }
  .page-main h1 { font-size: clamp(40px, 12vw, 64px); overflow-wrap: break-word; }
  .notfound { padding-top: 140px; padding-bottom: 80px; }
  .notfound h1 { font-size: 44px; }
  .notfound p { margin-bottom: 30px; }
}

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