/*
 * ═══════════════════════════════════════════════════════════════════════════
 *  FRONEN BOUWBEDRIJF — GEDEELDE STIJLEN
 *  Geladen door: index.html, projecten.html, (elke nieuwe pagina)
 *
 *  Aanpassen hier → wijziging geldt voor de HELE website.
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ─── FONTS (zelf gehost) ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/jost-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/jost-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/jost-300italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jost-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jost-500.woff2') format('woff2');
}

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Neutrals */
  --white:     #FFFFFF;
  --off-white: #F5F5F4;
  --sand-1:    #E9EAE3;
  --sand-2:    #D3D1C8;
  --sand-3:    #C2BEB3;
  --mid-1:     #8F8B82;
  --mid-2:     #7E7C76;
  --dark-1:    #60584E;
  --primary:   #2D2D2D;

  /* Brand oranje — subtiel accent uit het logo */
  --orange:       #E8590C;
  --orange-light: #F07040;
  --orange-pale:  rgba(232, 89, 12, 0.08);

  --nav-h: 72px;
  --font:  'Jost', sans-serif;
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

img { display: block; object-fit: cover; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── NAVIGATIE ──────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-1);
}

nav::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--orange);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.nav-links a:hover              { color: var(--orange); }
.nav-links a:hover::after       { width: 100%; }
.nav-links .nav-cta::after      { display: none; }

/* Actieve pagina markering */
.nav-links a.nav-active {
  color: var(--orange);
}
.nav-links a.nav-active::after  { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  color: var(--orange);
  background: transparent;
  transition: background 0.22s, color 0.22s;
}

.nav-cta:hover {
  background: var(--orange);
  color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* ─── SECTION LABEL ──────────────────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-1);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
}

/* ─── KNOPPEN ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 15px 38px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--orange);
  color: var(--white);
  border: 1px solid var(--orange);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #c94d0a;
  border-color: #c94d0a;
}

.btn-secondary {
  display: inline-block;
  padding: 15px 38px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--sand-2);
  color: var(--mid-2);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── CONTACT BAR ────────────────────────────────────────────────────────── */
.contact-bar {
  background: var(--primary);
  padding: 32px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.contact-bar-info {
  display: flex;
  align-items: center;
  gap: 48px;
}

.contact-bar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-bar-item .label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-1);
}

.contact-bar-item a,
.contact-bar-item span {
  font-size: 15px;
  font-weight: 300;
  color: var(--sand-1);
  transition: color 0.2s;
}

.contact-bar-item a:hover { color: var(--orange); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer {
  background: #1E1C1A;
  color: var(--sand-2);
  padding: 56px 52px 36px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-logo {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--mid-1);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid-1);
  transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.footer-social svg {
  width: 15px; height: 15px;
  fill: currentColor;
}

.footer-brand::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--orange);
  margin-bottom: 24px;
}

.footer-col h5 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-3);
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 12px; }

/* Werkgebied: volle breedte balk met inline stadslinks */
.footer-cities {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}

.footer-cities-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-3);
  margin-right: 20px;
  white-space: nowrap;
}

.footer-cities a {
  font-size: 13px;
  font-weight: 300;
  color: var(--mid-1);
  transition: color 0.2s;
}

.footer-cities a:hover { color: var(--orange); }

.footer-cities a::after {
  content: '·';
  color: rgba(255,255,255,0.15);
  margin: 0 14px;
}

.footer-cities a:last-of-type::after { content: ''; margin: 0; }

.footer-col ul li a {
  font-size: 14px;
  font-weight: 300;
  color: var(--mid-1);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.footer-bottom p {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(143,139,130,0.6);
}

/* ─── MOBIEL MENU ────────────────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  padding: 96px 40px 48px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 30px;
  font-weight: 200;
  letter-spacing: 0.03em;
  color: var(--primary);
  padding: 18px 0;
  border-bottom: 1px solid var(--sand-1);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--orange); }

.mobile-close {
  position: absolute;
  top: 22px; right: 36px;
  font-size: 26px;
  font-weight: 200;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--primary);
}

.mobile-tel {
  margin-top: 32px;
  font-size: 18px !important;
  font-weight: 300 !important;
  letter-spacing: 0.04em !important;
  color: var(--orange) !important;
  border: none !important;
}

/* ─── GRID ACHTERGROND ───────────────────────────────────────────────────── */
.global-grid-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.global-grid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── ANIMATIE CANVAS + CUSTOM CURSOR ───────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
  input, textarea, input:focus, textarea:focus { cursor: text !important; caret-color: currentColor; }

  #cursor-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    left: 0; top: 0;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: background 0.2s, width 0.12s, height 0.12s;
  }

  #cursor-dot.on-dark { background: var(--white); }

  body.cursor-clicking #cursor-dot {
    width: 8px; height: 8px;
  }
}

@keyframes ringExpand {
  from { width: 6px;  height: 6px;  opacity: 0.65; }
  to   { width: 52px; height: 52px; opacity: 0; }
}

.cursor-click-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  animation: ringExpand 0.55s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

.cursor-click-ring { border: 1.5px solid var(--orange); }

/* ─── ANIMATIES ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-hidden {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.anim-visible {
  opacity: 1;
  transform: none;
}

/* ─── WHATSAPP FLOATING BUTTON ──────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.30);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-btn::before {
  content: 'Stuur mij een whatsapp';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.whatsapp-btn:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-btn svg { width: 26px; height: 26px; }
}

/* ─── STICKY MOBIELE CTA-BALK ───────────────────────────────────────────── */
.mobile-cta-bar {
  display: none; /* standaard verborgen; zichtbaar via media query */
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.08);
    height: 60px;
    box-shadow: 0 -4px 24px rgba(20,18,16,0.18);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-cta-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 36%;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(233,234,227,0.75);
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s, background 0.2s;
  }

  .mobile-cta-tel svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
  }

  .mobile-cta-tel:hover { color: var(--white); background: rgba(255,255,255,0.06); }

  .mobile-cta-offerte {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--orange);
    color: var(--white);
    transition: background 0.2s;
  }

  .mobile-cta-offerte:hover { background: #c94d0a; }
}

/* ─── SPLASH SCREEN ──────────────────────────────────────────────────────── */
@keyframes splash-out {
  0%   { opacity: 1; pointer-events: auto; }
  100% { opacity: 0; pointer-events: none; }
}
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: #1E1C1A;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
  will-change: opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: splash-out 1.1s cubic-bezier(0.76, 0, 0.24, 1) 2.8s forwards;
}

@keyframes splash-logo-in {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.splash-logo {
  width: 160px;
  height: auto;
  opacity: 0;
  filter: brightness(0) invert(1);
  animation: splash-logo-in 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes splash-line-in {
  0%   { width: 0; }
  100% { width: 48px; }
}
.splash-line {
  height: 1px;
  width: 0;
  background: var(--orange);
  margin: 20px 0 18px;
  animation: splash-line-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

@keyframes splash-label-in {
  0%   { opacity: 0; letter-spacing: 0.4em; }
  100% { opacity: 1; letter-spacing: 0.22em; }
}
.splash-label {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  opacity: 0;
  animation: splash-label-in 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

/* ─── WHATSAPP FLOATING BUTTON ───────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: waFloat 0.5s ease 1.5s both;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}
.wa-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.wa-float-label {
  white-space: nowrap;
}
/* Op desktop alleen icoon tonen, label verbergen */
@media (min-width: 769px) {
  .wa-float-label { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
}
@keyframes waFloat {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE (gedeeld) ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  nav::after { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .contact-bar { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .contact-bar-info { flex-direction: column; gap: 20px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  footer { padding: 48px 24px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
