/* ==========================================================================
   QVAS — visitekaartje
   Eén stylesheet voor alle pagina's. Pas kleuren/typografie aan in :root.
   ========================================================================== */

/* Merklettertype "Brown" — zelf-gehost (fonts/), woff2 met otf-fallback.
   font-display:swap → tekst is direct leesbaar terwijl het font laadt. */
@font-face {
  font-family: "Brown";
  src: url("../fonts/Brown-Light.woff2") format("woff2"),
       url("../fonts/Brown-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brown";
  src: url("../fonts/Brown-Regular.woff2") format("woff2"),
       url("../fonts/Brown-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brown";
  src: url("../fonts/Brown-Bold.woff2") format("woff2"),
       url("../fonts/Brown-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Kleuren — pas hier alles centraal aan.
     Blauwtinten afgeleid van de Qvas-huisstijl (logo #1825aa / #00129d). */
  --ink:        #16182b;   /* hoofdtekst / donker navy-ink */
  --ink-soft:   #565b73;   /* secundaire tekst */
  --paper:      #ffffff;   /* achtergrond */
  --sand:       #f2f4fb;   /* lichte sectie-achtergrond (blauw-grijs) */
  --line:       #e1e4f1;   /* randen / scheidingen */
  --accent:     #1825aa;   /* merkblauw (logo) — links, accenten */
  --accent-dk:  #00129d;   /* dieper kobalt — hover */

  /* Maatvoering */
  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  /* Typografie — Brown (merkfont), met systeemfonts als fallback */
  --font: "Brown", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* Reset / basis ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dk); }

h1, h2, h3 { line-height: 1.13; font-weight: 400; letter-spacing: -.015em; margin: 0 0 .5em; }
h1, h2 { font-weight: 300; }   /* ranke, editorial display-titels (Brown Light) */
strong, b { font-weight: 400; }   /* geen vet in lopende tekst */
h1 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4.5rem, 9vw, 9rem); }
.section--sand { background: var(--sand); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 1rem;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 300; color: var(--ink-soft); max-width: 60ch; }

/* Header / navigatie ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-weight: 400; letter-spacing: .22em; font-size: 1.25rem;
  color: var(--ink); text-transform: uppercase;
}
.brand:hover { color: var(--ink); }
.brand img { height: 36px; width: auto; display: block; }
.site-footer .brand img { height: 28px; }
.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 400; font-size: .95rem;
  position: relative; padding-block: .25rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--accent); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--accent-dk); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; color: var(--ink);
}
.nav-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: .25s; }

/* Contacteer-ons pill in de nav */
.nav-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.15rem; border-radius: 999px; line-height: 1;
  background: var(--accent); color: #fff; font-size: .9rem;
  border: 1px solid var(--accent); white-space: nowrap; transition: background .15s ease, border-color .15s ease;
}
.nav-cta:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }

/* Header transparant over de hero (alleen .has-hero), wordt solide bij scrollen */
body.has-hero .site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body.has-hero .site-header .brand img { filter: brightness(0) invert(1); }
body.has-hero .nav-links a,
body.has-hero .nav-links a.is-active { color: #fff; }
body.has-hero .nav-links a::after { background: #fff; }
body.has-hero .nav-toggle { color: #fff; }
body.has-hero .site-header:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); color: #fff;
}
body.has-hero .site-header:not(.scrolled) .nav-cta:hover { background: rgba(255,255,255,.24); }

body.has-hero .site-header.scrolled {
  background: #ffffff; border-bottom-color: var(--line);
  box-shadow: 0 1px 14px rgba(10,12,40,.06);
}
body.has-hero .site-header.scrolled .brand img { filter: none; }
body.has-hero .site-header.scrolled .nav-links a { color: var(--ink); }
body.has-hero .site-header.scrolled .nav-links a.is-active { color: var(--accent-dk); }
body.has-hero .site-header.scrolled .nav-links a::after { background: var(--accent); }
body.has-hero .site-header.scrolled .nav-toggle { color: var(--ink); }
body.has-hero .site-header.scrolled .nav-cta { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(60vh, 80vh, 760px);
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(7,11,46,.55), rgba(5,8,38,.78)),
              var(--accent-dk);
  background-size: cover; background-position: center;
}
.hero__inner { padding-block: 4rem; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.9); font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 46ch; }

/* Hero-slideshow — foto's vloeien traag in elkaar over (crossfade) */
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-bg__img.is-active { opacity: 1; }
.hero-bg::after {                                        /* donkerblauwe overlay over de foto's */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,46,.34), rgba(5,8,38,.74));
}
.hero__inner { position: relative; z-index: 2; }         /* tekst boven de slideshow */

/* Scroll-hint — verschijnt bij muisbeweging, fadet weg bij stilstand/scrollen */
.scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  color: var(--ink); opacity: 0; transition: opacity .5s ease; z-index: 5;
  background: rgba(255,255,255,.92); border-radius: 50%;
  box-shadow: 0 6px 22px -8px rgba(0,0,0,.35);
}
.scroll-hint.is-visible { opacity: .92; }
.scroll-hint:hover { opacity: 1; }
.scroll-hint__chevron {
  width: 16px; height: 16px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); }
  50%      { transform: rotate(45deg) translate(2px, 2px); }
}
.scroll-hint--fixed { position: fixed; }                 /* vast onderaan het scherm */
.scroll-hint--dark { color: var(--ink); }                /* (donker pijltje — nu standaard) */
@media (prefers-reduced-motion: reduce) { .scroll-hint__chevron { animation: none; } }

/* Knoppen ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff;
  padding: .85rem 1.6rem; border-radius: 2px; font-weight: 400; font-size: .95rem;
  border: 1px solid var(--accent); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #000; }

/* Activiteiten / kolommen ------------------------------------------------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.pillar { }
.pillar__num { font-size: .8rem; color: var(--accent); font-weight: 400; letter-spacing: .1em; }
.pillar h3 { margin-top: .4rem; }
.pillar p { color: var(--ink-soft); margin-bottom: 0; }

/* Projecten --------------------------------------------------------------- */
.project {
  display: block; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.project:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 16px 40px -20px rgba(0,0,0,.3); }
.project__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--sand); }
.project__body { padding: 1.25rem 1.4rem 1.6rem; }
.project__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 400; }
.project__body h3 { margin: .4rem 0 .25rem; }
.project__body p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Instagram-achtige galerij — beeld-gedreven, locatie bij hover ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; grid-auto-flow: dense; }
.tile {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--sand); margin: 0;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile__info {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem 1.2rem; color: #fff;
  background: linear-gradient(to top, rgba(8,11,38,.74) 0%, rgba(8,11,38,.12) 48%, rgba(8,11,38,0) 72%);
  opacity: 0; transition: opacity .4s ease;
}
.tile:hover .tile__info, .tile:focus-visible .tile__info { opacity: 1; }
.tile__loc { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .9; margin-bottom: .15rem; }
.tile__title { font-size: 1.05rem; line-height: 1.2; }
.tile--wide { grid-column: span 2; aspect-ratio: 2 / 1; }   /* spreidt over 2 tegels */
.tile--full { grid-column: span 3; aspect-ratio: 3 / 1; }   /* panorama over 3 tegels */
.tile--tall { grid-row: span 2; aspect-ratio: auto; }   /* staande tegel vult exact 2 rijen (lijnt perfect uit) */

@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .tile--wide, .tile--full { grid-column: 1 / -1; aspect-ratio: 2 / 1; }   /* volle breedte op mobiel */
  /* geen hover op touch → locatie altijd tonen */
  .tile__info { opacity: 1; background: linear-gradient(to top, rgba(8,11,38,.72) 0%, rgba(8,11,38,0) 58%); }
}

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: .2rem; }
.contact-list .value { font-size: 1.15rem; font-weight: 400; color: var(--ink); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); filter: grayscale(.2); }

/* Relatie-blok (oud-klanten / kopen-verkopen) ----------------------------- */
.note {
  margin-top: 2.5rem;
  padding: 1.6rem 1.8rem;
  background: var(--sand);
  border-left: 3px solid var(--accent);
}
.note h3 { margin: 0 0 .5rem; }
.note p { color: var(--ink-soft); margin: 0 0 1rem; }
.note__link { font-weight: 400; }
.note__hint { display: block; margin-top: 1rem; font-size: .85rem; line-height: 1.5; color: var(--ink-soft); }

/* CTA-band ---------------------------------------------------------------- */
.cta {
  background: var(--ink); color: #fff; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.75); max-width: 50ch; margin-inline: auto; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer .brand { font-size: 1rem; }
.site-footer small { color: var(--ink-soft); }
.footer-nav { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--ink-soft); font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); }
.footer-legal a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--accent); }

/* Tekstpagina's (voorwaarden / privacy) */
.prose { max-width: 70ch; }
.prose h2 { font-weight: 400; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 2.4rem 0 .5rem; }
.prose h3 { font-weight: 400; font-size: 1.1rem; margin: 1.5rem 0 .35rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .3rem; }

/* Cookiebanner (toestemming vóór Google Analytics) */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 1rem var(--gut);
  transform: translateY(110%); transition: transform .4s ease;
  box-shadow: 0 -6px 24px rgba(0,0,0,.25);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.85); max-width: 62ch; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-banner .btn { font-size: .85rem; padding: .6rem 1.3rem; }
.cookie-banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.cookie-banner .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* Hulpklassen ------------------------------------------------------------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 820px) {
  .grid--3, .grid--2, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 380px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem var(--gut); }
  .nav-links a::after { display: none; }
}

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