/* ============================================
   VARWEG — Modern redesign
   ============================================ */

:root {
  --red: #aa191d;
  --red-dark: #880f12;
  --red-light: rgba(170, 25, 29, 0.08);
  --green: #4a9b34;
  --ink: #0e0e0e;
  --ink-mid: #1c1c1c;
  --surface: #f7f6f4;
  --surface-2: #eeece9;
  --muted: #888;
  --white: #ffffff;

  --font-head: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;

  --max: 1180px;
  --hh: 72px;
  --ease: cubic-bezier(0.22, 0.68, 0, 1.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
address {
  font-style: normal;
}
ul {
  list-style: none;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER ── */
header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--hh);
  background: transparent;
  z-index: 200;
  transition:
    background 0.35s,
    backdrop-filter 0.35s,
    box-shadow 0.35s;
}

header.scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}

.logo-link {
  display: flex;
  flex-shrink: 0;
}
.logo {
  height: 48px;
  width: auto;
}

/* Nav */
nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition:
    color 0.2s,
    background 0.2s;
}

nav ul li a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(170, 25, 29, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s 0.3s var(--ease-out) forwards;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s var(--ease-out) forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
  display: block;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: fadeUp 0.7s 0.75s var(--ease-out) forwards;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition:
    background 0.2s,
    transform 0.2s;
  opacity: 0;
  animation: fadeUp 0.7s 0.95s var(--ease-out) forwards;
}

.hero-btn::after {
  content: "↓";
}
.hero-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  cursor: pointer;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SECTION ATOMS ── */
.section {
  padding: 6rem 0;
}
.section-dark {
  background: var(--ink-mid);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-label.light {
  color: rgba(170, 25, 29, 0.9);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 3.5rem;
}

.section-title.light {
  color: var(--white);
}

.section-intro {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── IN HET KORT ── */
.kort-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--surface-2);
  border: 1.5px solid var(--surface-2);
  border-radius: 10px;
  overflow: hidden;
}

.kort-item {
  background: var(--white);
  padding: 2.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: background 0.25s;
}

.kort-item:hover {
  background: var(--surface);
}

.kort-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(170, 25, 29, 0.12);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.kort-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.kort-body p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
}

.kort-body a {
  color: var(--red);
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.kort-body a:hover {
  opacity: 0.7;
}

/* ── WERKWIJZE ── */
.werkwijze-quote {
  max-width: 680px;
  margin-bottom: 5rem;
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
}

.werkwijze-quote p {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  font-style: italic;
}

.werkwijze-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.05em;
}

.werkwijze-intro {
  max-width: 680px;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-top: -2rem;
  margin-bottom: 4rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.werkwijze-rows {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.werkwijze-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-mid);
}

.werkwijze-row-reverse {
  direction: rtl;
}
.werkwijze-row-reverse > * {
  direction: ltr;
}

.werkwijze-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.werkwijze-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.werkwijze-row:hover .werkwijze-image img {
  transform: scale(1.05);
}

.werkwijze-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
}

.green-tag {
  background: rgba(74, 155, 52, 0.7);
}

.werkwijze-text {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row-num {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
  user-select: none;
}

.werkwijze-text h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.werkwijze-text h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.werkwijze-text p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
}

/* ── AANBOD ── */
.aanbod-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.aanbod-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: var(--white);
  transition: background 0.2s;
}

.aanbod-row:hover {
  background: var(--surface);
}

.aanbod-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(170, 25, 29, 0.15);
  line-height: 1;
  user-select: none;
}

.aanbod-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.aanbod-content p {
  font-size: 0.88rem;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
  max-width: 560px;
}

.aanbod-tag {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  background: var(--red-light);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  white-space: nowrap;
}

.aanbod-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 3rem;
  background: var(--ink);
  border-radius: 8px;
  flex-wrap: wrap;
}

.aanbod-cta p {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.65;
  font-style: italic;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* ── GALLERY ── */
.gallery {
  overflow: hidden;
  line-height: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 3px;
}

.gallery-img {
  overflow: hidden;
  position: relative;
}

.gallery-img.tall {
  grid-row: span 2;
}

.gallery-img.wide {
  grid-column: span 2;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.gallery-img:hover img {
  transform: scale(1.06);
}

/* ── PROJECTEN ── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--surface-2);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
}

.client {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  transition: background 0.2s;
  aspect-ratio: 2/1;
}

.client:hover {
  background: var(--surface);
}

.client img {
  max-height: 64px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition:
    filter 0.3s,
    transform 0.3s;
}

.client:hover img {
  filter: none;
  transform: scale(1.06);
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: var(--white);
}

.footer-top {
  padding: 5rem 0 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

.footer-brand img.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.25rem;
}

.footer-col ul li,
.footer-col address > * {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col address svg,
.footer-col ul li svg {
  flex-shrink: 0;
  color: var(--red);
}

.footer-col p {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.footer-et-link {
  display: inline-block;
  margin-top: 0.75rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-et-link:hover {
  opacity: 1;
}

.et-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-et-link:hover .et-logo-img {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .werkwijze-row,
  .werkwijze-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .werkwijze-image {
    aspect-ratio: 16/7;
  }
  .werkwijze-text {
    padding: 2.5rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-grid {
    grid-auto-rows: 180px;
  }

  .aanbod-row {
    grid-template-columns: 60px 1fr;
  }
  .aanbod-tag {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --hh: 62px;
  }

  .header-inner {
    padding: 0 1.25rem;
  }
  .logo {
    height: 40px;
  }

  nav {
    position: fixed;
    inset: var(--hh) 0 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  nav ul li a {
    font-size: 1.4rem;
    padding: 0.75rem 2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-bar {
    flex-wrap: wrap;
  }
  .stat {
    flex: 0 0 50%;
  }
  .stat-divider {
    display: none;
  }

  .kort-grid {
    grid-template-columns: 1fr;
  }

  .aanbod-row {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem;
    gap: 0.75rem;
  }
  .aanbod-num {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .gallery-img.tall {
    grid-row: span 1;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aanbod-cta {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom .container {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .stats-bar .stat {
    flex: 0 0 100%;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
