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

/* ─── 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; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  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-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; }

.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; }

  #cursor-dot {
    position: fixed;
    width: 7px; height: 7px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    left: 0; top: 0;
    transform: translate(-50%, -50%);
    will-change: left, top;
    mix-blend-mode: difference;
  }

  #cursor-ring {
    position: fixed;
    width: 32px; height: 32px;
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    left: 0; top: 0;
    transform: translate(-50%, -50%);
    will-change: left, top, width, height;
    mix-blend-mode: difference;
    transition: width 0.28s ease, height 0.28s ease,
                border-color 0.28s ease, background 0.28s ease;
  }

  body.cursor-hovering #cursor-ring {
    width: 54px; height: 54px;
    border-color: rgba(255,255,255,1);
    background: rgba(255,255,255,0.08);
  }

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

  body.cursor-clicking #cursor-ring {
    width: 18px; height: 18px;
    transition: width 0.1s ease, height 0.1s ease;
  }
}

/* ─── 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 !important;
  transform: translateY(0) !important;
}

/* ─── 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; }
}
