/* ================================
   BEVER BOUWBEDRIJF B.V.
   Modern minimalist construction co.
   ================================ */

:root {
  --red: #B8291A;
  --red-700: #971F13;
  --red-50: #FBEBE9;

  --ink: #1C1C1C;
  --ink-2: #2A2A2A;
  --muted: #5C5C5C;
  --muted-2: #8A8A8A;

  --line: #E6E6E6;
  --line-2: #EFEFEF;

  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --bg-dark: #111111;

  --shadow-sm: 0 1px 2px rgba(20,20,20,.04);
  --shadow-md: 0 8px 24px -8px rgba(20,20,20,.12);
  --shadow-lg: 0 24px 48px -16px rgba(20,20,20,.18);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 48px);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section--alt { background: var(--bg-alt); }

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
}

.section__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 22ch;
  text-wrap: balance;
}

.section__sub {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
  text-wrap: pretty;
}

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head .section__title,
.section__head .section__sub { margin-left: auto; margin-right: auto; }

.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
  flex-wrap: wrap;
}
.section__head--row .section__title { max-width: 24ch; margin-top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow__line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
}
.eyebrow--light { color: rgba(255,255,255,.85); }

.text-red { color: var(--red); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap .25s ease, border-color .25s ease;
}
.link-arrow:hover { gap: 12px; border-color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--red);
  --fg: #fff;
  --bd: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  white-space: nowrap;
}
.btn--primary:hover { background: var(--red-700); border-color: var(--red-700); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  --bd: var(--line);
}
.btn--ghost:hover { --bd: var(--ink); }
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- NAVBAR ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 1px 0 var(--line-2), 0 6px 24px -16px rgba(0,0,0,.18);
  border-bottom-color: var(--line-2);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 104px;
}
.nav__logo {
  overflow: hidden;
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 114px;
  width: auto;
  display: block;
  margin-top: -18px;
  margin-bottom: -18px;
  filter: brightness(0) invert(1);
  transition: filter .25s ease;
}
.nav.is-scrolled .nav__logo img { filter: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 36px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--red);
  transition: right .3s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { right: 0; }

.nav.is-scrolled .nav__links a { color: var(--ink-2); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav.is-scrolled .nav__burger span { background: var(--ink); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px var(--pad) 28px;
  border-top: 1px solid var(--line-2);
  background: #fff;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.nav__mobile a:last-child { border: 0; margin-top: 10px; }
.nav__mobile .btn--primary { color: #fff; }

/* When mobile menu is open, force the nav opaque */
.nav:has(.nav__mobile.is-open) {
  background: #fff;
  border-bottom-color: var(--line-2);
}
.nav:has(.nav__mobile.is-open) .nav__logo img { filter: none; }
.nav:has(.nav__mobile.is-open) .nav__burger span { background: var(--ink); }

/* ---------- HERO (full-bleed background) ---------- */

.hero {
  position: relative;
  background: #111;
  color: #fff;
  overflow: hidden;
  /* Account for sticky navbar (height 104px) */
  margin-top: -104px;
  padding-top: 104px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(17,17,17,0.55) 0%,
      rgba(17,17,17,0.40) 35%,
      rgba(17,17,17,0.55) 75%,
      rgba(17,17,17,0.80) 100%),
    linear-gradient(90deg,
      rgba(17,17,17,0.45) 0%,
      rgba(17,17,17,0.15) 60%,
      rgba(17,17,17,0) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(56px, 6vw, 96px);
  gap: clamp(48px, 6vw, 80px);
  max-width: none;
  margin: 0;
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: clamp(24px, 6vw, 96px);
  align-items: flex-start;
}
.hero__copy { max-width: 760px; }
.hero__title {
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 24px 0 28px;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: rgba(255,255,255,.85);
  max-width: 52ch;
  margin: 0 0 40px;
  text-wrap: pretty;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.18);
  flex-wrap: wrap;
}
.hero__meta-num {
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.hero__meta-num--sm { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.hero__meta-lbl {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__meta-sep {
  width: 1px;
  height: 38px;
  background: rgba(255,255,255,.18);
}
.hero__meta-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(184,41,26,.22);
  flex-shrink: 0;
}

/* Outlined-light variant for hero second CTA */
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: #fff;
  color: #fff;
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  right: var(--pad);
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__scroll svg {
  animation: heroScroll 1.8s ease-in-out infinite;
}
@keyframes heroScroll {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---------- DIENSTEN ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px 32px;
  cursor: pointer;
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.svc::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.svc:hover {
  border-color: #d6d6d6;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.svc:hover::after { transform: scaleX(1); }
.svc__icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-bottom: 28px;
}
.svc__icon svg { width: 100%; height: 100%; }
.svc__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.svc__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
}
.svc__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.svc__more em {
  font-style: normal;
  transition: transform .3s ease;
}
.svc:hover .svc__more em { transform: translateX(4px); }

/* ---------- WERKWIJZE ---------- */

.process__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.process__copy .section__title { margin-top: 18px; }
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 36px;
  display: grid;
  gap: 28px;
  position: relative;
}
.step__seg {
  position: absolute;
  width: 2px;
  background: var(--line);
  left: 0; /* set by JS */
  top: 0;  /* set by JS */
  height: 0; /* set by JS */
  overflow: hidden;
  pointer-events: none;
}
.step__seg-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--red);
  transition: height .08s linear;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step__num {
  font-size: 28px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: 2px;
}
.step__t {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.step__d {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.process__visual {
  aspect-ratio: 4/5;
  background: #ddd;
  overflow: hidden;
}
.process__img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- PROJECTEN ---------- */

.proj-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 36px 0 40px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all .2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}
.proj { position: relative; overflow: hidden; display: block; background: var(--bg-alt); }
.proj--tall { grid-row: span 2; }
.proj--wide { grid-column: span 2; }
.proj__media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.proj__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
.proj::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,.78) 0%, rgba(28,28,28,.15) 45%, transparent 70%);
  z-index: 1;
  opacity: .85;
  transition: opacity .3s ease;
}
.proj:hover .proj__media img { transform: scale(1.06); }
.proj__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 24px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.proj__t {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: #fff;
}
.proj__l {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  letter-spacing: 0.02em;
}
.proj__arrow {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.proj:hover .proj__arrow {
  background: var(--red);
  border-color: var(--red);
  transform: translate(2px, -2px);
}
.proj.is-hidden { display: none; }

/* ---------- OVER ONS ---------- */

.about__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about__visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  right: -24px;
  bottom: 48px;
  background: var(--red);
  color: #fff;
  padding: 28px 32px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
}
.about__badge-num {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.about__badge-lbl {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.92;
}

.about__copy .section__title { margin-top: 18px; }
.about__lead {
  font-size: 18px;
  margin: 28px 0 18px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.about__body {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat__lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- CTA BAND ---------- */

.cta-band {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(64px, 8vw, 112px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 50%;
  right: -120px; top: -160px;
}
.cta-band::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 50%;
  right: 80px; top: 60px;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band__title {
  font-size: clamp(34px, 4.5vw, 60px);
  margin: 20px 0 18px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}
.cta-band__sub {
  color: rgba(255,255,255,.7);
  font-size: 17px;
  margin: 0;
  max-width: 48ch;
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.cta-band__phone {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  width: 100%;
}
.cta-band__phone svg { color: var(--red); }
.cta-band__phone-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cta-band__phone-num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* ---------- CONTACT ---------- */

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact__lead {
  font-size: 17px;
  color: var(--muted);
  margin: 24px 0 40px;
  max-width: 44ch;
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.contact__list li:last-child { border: 0; padding-bottom: 0; }
.contact__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red);
  flex-shrink: 0;
}
.contact__lbl {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact__val {
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
a.contact__val { transition: color .2s ease; }
a.contact__val:hover { color: var(--red); }

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.contact__form-t {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.contact__form-s {
  margin: -8px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.field { display: grid; gap: 8px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 13px 14px;
  border-radius: var(--r-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231C1C1C' stroke-width='1.5'><path d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28,28,28,.06);
}
.field__err {
  font-size: 12px;
  color: var(--red);
  margin-top: -2px;
  opacity: 0;
  height: 0;
  transition: opacity .2s ease;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(184,41,26,.08);
}
.field.is-invalid .field__err { opacity: 1; height: auto; }

.contact__disclaimer {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.contact__disclaimer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: #F0F8F1;
  border: 1px solid #C9E5CC;
  border-radius: var(--r-sm);
  color: #1E5928;
  font-size: 14px;
  margin-top: 4px;
}
.form__success.is-visible { display: flex; }
.form__success svg { flex-shrink: 0; margin-top: 2px; }
.form__success strong { display: block; margin-bottom: 2px; }
.form__success span { color: #366d3d; }

/* ---------- FOOTER ---------- */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 56px;
}
.footer__logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1) brightness(.95);
  margin-bottom: 20px;
}
.footer__tag {
  font-size: 14px;
  max-width: 36ch;
  color: rgba(255,255,255,.55);
  margin: 0;
  line-height: 1.65;
}
.footer__col h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.footer__col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 12px;
}
.footer__col a {
  color: rgba(255,255,255,.62);
  font-size: 14px;
  transition: color .2s ease;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
}
.footer__legal {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__legal a:hover { color: #fff; }

/* ---------- DIENST MODAL ---------- */

.svc-modal {
  grid-template-columns: 1fr;
  max-width: 520px;
  padding: 0;
}
.svc-modal__icon {
  background: var(--bg-alt);
  padding: 36px 40px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--red);
}
.svc-modal__icon svg {
  width: 52px;
  height: 52px;
}
.svc-modal .modal__body {
  padding: clamp(24px, 4vw, 40px);
  gap: 20px;
}
.svc-modal .modal__title {
  font-size: 26px;
}
.svc-modal .modal__desc {
  font-size: 15px;
  line-height: 1.75;
}
.svc-modal .modal__cta {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ---------- PROJECT MODAL ---------- */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17,17,17,.6);
  backdrop-filter: blur(4px);
  padding: clamp(16px, 4vw, 48px);
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.is-open { display: flex; }

.modal {
  background: #fff;
  width: 100%;
  max-width: 720px;
  margin: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 32px 80px -16px rgba(0,0,0,.35);
  animation: modalIn .3s cubic-bezier(.2,.6,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background .2s ease, border-color .2s ease;
}
.modal__close:hover { background: #fff; border-color: var(--ink); }

.modal__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
}
.modal__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.modal__type {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.modal__body {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.modal__location {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.modal__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.modal__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.modal__review {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.modal__review-stars {
  color: #F5A623;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.modal__review-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 10px;
  font-style: italic;
}
.modal__review-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0;
}
.modal__cta {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 600px) {
  .modal { grid-template-columns: 1fr; }
  .modal__img-wrap { aspect-ratio: 16/9; }
}

/* ---------- REVEAL ANIMATIONS ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .process__inner,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .about__visual { aspect-ratio: 16/11; max-height: 500px; }
  .process__visual { aspect-ratio: 16/11; max-height: 500px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .proj--tall { grid-row: span 1; }
  .proj--wide { grid-column: span 2; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav__cta { display: none; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__inner { height: 80px; }
  .nav__logo img { height: 84px; margin-top: -12px; margin-bottom: -12px; }
  .hero { padding-top: 80px; margin-top: -80px; min-height: 92vh; }
  .hero__title { font-size: clamp(44px, 12vw, 72px); }
  .hero__meta { gap: 20px; }
  .hero__meta-sep { display: none; }
  .hero__scroll { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .proj--wide { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__badge { right: 12px; bottom: 12px; padding: 20px 22px; }
  .about__badge-num { font-size: 34px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
}
