/* ---------- Tokens ---------- */
:root {
  --black: #0a0b0a;
  --near-black: #121412;
  --green: #00ff46;
  --green-deep: #009e33;
  --white: #ffffff;
  --off-white: #e8ebe1;
  --ink: #14150f;
  --gray: #6b6f68;
  --border: #23261f;

  --font-head: "Chakra Petch", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: 0.01em; }

.accent { color: var(--green); }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}
.tbd { color: var(--gray); font-style: italic; }

/* ---------- Reveal animation ---------- */
/* Handled by GSAP/ScrollTrigger in js/main.js. Content is visible by default
   so it never disappears if the animation scripts fail to load. */
.split-line { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { transform: translateY(-2px); background: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- Nav ---------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(10, 11, 10, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.65rem var(--gutter);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--green);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-highlight { color: var(--green) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,10,0.55) 0%, rgba(10,11,10,0.35) 40%, rgba(10,11,10,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 var(--gutter) 5rem; max-width: 1000px; }
.hero-content .eyebrow { color: var(--green); }
.hero h1 { margin-bottom: 1.75rem; line-height: 0; }
.hero-logo { width: min(95%, 920px); height: auto; transform: translateX(-3.81%); }
.hero-text { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 999px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span { width: 4px; height: 8px; background: var(--green); border-radius: 999px; animation: scrollcue 1.8s ease infinite; }
@keyframes scrollcue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Intro / Over ons ---------- */
.intro {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 640px);
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  align-items: center;
}
.intro-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  aspect-ratio: 1103/485;
  background-image: url('../assets/img/logo.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  opacity: 0.14;
  filter: grayscale(1);
  pointer-events: none;
}
.intro-media, .intro-copy { position: relative; z-index: 1; }
.intro-media img { width: 100%; border-radius: 4px; aspect-ratio: 4/5; object-fit: cover; }
.intro-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.intro-copy p:not(.eyebrow) { color: var(--gray); margin-bottom: 1rem; max-width: 46ch; }
.text-link { color: var(--green-deep); font-weight: 600; border-bottom: 1.5px solid currentColor; transition: color 0.2s ease; }
.text-link:hover { color: var(--ink); }

/* ---------- Services ---------- */
.services { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.services h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { border: 1px solid #e6e8e2; border-radius: 6px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.service-media { aspect-ratio: 4/3; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-card h3 { padding: 1.25rem 1.25rem 0.5rem; font-size: 1.3rem; }
.service-card p { padding: 0 1.25rem 1.5rem; color: var(--gray); }
.service-card p:has(+ .btn-view) { padding-bottom: 0.25rem; }
.btn-view {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 1.25rem 1.5rem;
  font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green-deep); background: none; border: none; cursor: pointer; padding: 0;
  transition: color 0.2s ease, gap 0.2s ease;
}
.btn-view:hover { color: var(--ink); gap: 0.7rem; }

/* ---------- Projects ---------- */
.projects { background: var(--off-white); padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.projects h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.projects-intro { color: var(--gray); max-width: 50ch; margin-top: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card { position: relative; }
.project-media { aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; background: var(--near-black); }
.project-media__inner { position: relative; width: 100%; height: 140%; margin-top: -20%; }
.project-media__inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.project-card:hover .project-media__inner img { transform: scale(1.06); }
/* ---------- Renovation (voor & na) ---------- */
.renovation { background: var(--white); padding: clamp(4rem, 10vw, 8rem) var(--gutter); text-align: center; border-top: 1px solid #e6e8e2; }
.renovation h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-top: 0.75rem; }
.renovation-intro { color: var(--gray); max-width: 46ch; margin: 1rem auto clamp(2.5rem, 6vw, 4rem); }
.renovation-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 900px; margin: 0 auto;
}

/* Before/after slider */
.ba-slider {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--near-black);
  touch-action: pan-y;
}
.ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.ba-handle {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  pointer-events: none;
}
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 100%; }
.ba-range::-moz-range-thumb { width: 40px; height: 100%; border: none; }
.ba-tag {
  position: absolute; top: 1rem; z-index: 1;
  font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(10,11,10,0.65); color: var(--white); padding: 0.3rem 0.7rem; border-radius: 999px;
  pointer-events: none;
}
.ba-tag--before { left: 1rem; }
.ba-tag--after { right: 1rem; }
.project-num { display: block; font-family: var(--font-head); color: var(--green-deep); margin-top: 1rem; font-size: 0.85rem; }
.project-card h3 { font-size: 1.15rem; margin-top: 0.25rem; }
.project-meta { color: var(--gray); font-size: 0.9rem; margin-top: 0.25rem; }

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--black); color: var(--white);
  text-align: center;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
}
.cta-block .eyebrow { color: var(--green); }
.cta-block h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 0 auto 1.25rem; max-width: 900px; }
.cta-lead { color: rgba(255,255,255,0.7); max-width: 46ch; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }

.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  text-align: left;
}
.contact-card {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 1.75rem 1.5rem;
  background: rgba(255,255,255,0.02);
}
.contact-card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,255,70,0.12); color: var(--green);
  margin-bottom: 1rem;
}
.contact-card h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 0.4rem; }
.contact-card a, .contact-card p { color: rgba(255,255,255,0.7); }
.contact-card a:hover { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 3rem var(--gutter) 1.5rem; }
.footer-inner {
  display: grid; grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr); align-items: center; gap: 1.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.footer-logo { height: 30px; width: auto; justify-self: start; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; justify-self: center; }
.footer-links a:hover, .footer-contact a:hover { color: var(--green); }
.footer-contact { display: flex; gap: 1.5rem; flex-wrap: nowrap; justify-self: end; }
.footer-contact a { white-space: nowrap; }
.footer-bottom { padding-top: 1.25rem; font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-vat { color: rgba(255,255,255,0.5); }

/* ---------- Modal ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: var(--gutter); visibility: hidden; opacity: 0; transition: opacity 0.25s ease, visibility 0.25s ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,6,5,0.8); backdrop-filter: blur(2px); }
.modal__panel {
  position: relative; z-index: 1;
  background: var(--near-black); color: var(--white);
  border: 1px solid var(--border); border-radius: 10px;
  max-width: 780px; width: 100%; height: 90vh;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.98); transition: transform 0.25s ease;
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__panel h3 { flex: none; font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 1rem; }
.modal__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--white); border: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal__close:hover { background: var(--green); color: var(--black); }
.modal__gallery {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.modal__gallery img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: rgba(255,255,255,0.03); border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .intro-media { order: -1; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; max-width: 480px; }
  .footer-inner { grid-template-columns: auto 1fr; row-gap: 1.25rem; }
  .footer-logo { justify-self: start; }
  .footer-links { justify-self: end; }
  .footer-contact { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100svh; width: min(78vw, 320px);
    background: var(--black); flex-direction: column; align-items: flex-start;
    padding: 6rem 2rem 2rem; gap: 1.75rem;
    transform: translateX(100%); transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .renovation-gallery { grid-template-columns: 1fr; max-width: 420px; }
  .modal__panel { height: auto; max-height: 94vh; overflow-y: auto; padding: 1.25rem; }
  .modal__gallery { grid-template-rows: none; gap: 0.6rem; }
  .modal__gallery img { height: auto; aspect-ratio: 3/4; object-fit: cover; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-logo, .footer-links, .footer-contact { justify-self: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .intro-copy::before { display: none; }
}
