:root {
  --ink: #14191f;
  --muted: #5c6772;
  --paper: #f4f2ec;
  --card: #ffffff;
  --accent: #0e5c4c;
  --accent-deep: #0a4036;
  --accent-soft: #e6f1ed;
  --mint: #28c890;
  --gold: #f0b400;
  --magenta: #e80070;
  --line: #dce3df;
  --shadow: 0 22px 60px rgba(20, 25, 31, 0.14);
  --radius: 20px;
  --max: 1160px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.hidden { display: none !important; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 92, 76, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand img {
  height: 42px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-offerte {
  display: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.nav-phone:hover { background: var(--accent-deep); }

/* Hero: photo first on mobile, then calculator */
.hero {
  position: relative;
  padding: 0 0 28px;
}

.hero-media {
  position: relative;
  height: min(68vh, 560px);
  min-height: 380px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 46%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 14, 0.28) 0%, rgba(8, 16, 14, 0.62) 72%, rgba(8, 16, 14, 0.78) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
}

.hero-copy {
  margin-top: calc(-1 * min(68vh, 560px));
  min-height: min(68vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 0 32px;
  color: #f6f4ee;
}

.eyebrow {
  color: #b7e2cf;
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(1.85rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 750;
  max-width: 14ch;
  color: #fff;
}

.lede {
  margin-top: 14px;
  color: rgba(246, 244, 238, 0.86);
  font-size: 1.05rem;
  max-width: 34ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}

.btn-hero {
  margin-top: 22px;
  width: fit-content;
  background: #fff;
  color: var(--accent-deep);
}

.btn-hero:hover { background: #eef6f2; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.btn-block { width: 100%; margin-top: 8px; }

/* Calculator */
.calc-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 92, 76, 0.08);
  padding: 20px 18px 22px;
}

.calc-head h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.calc-head p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.service-pills {
  border: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 6px;
  -webkit-overflow-scrolling: touch;
}

.pill {
  flex: 0 0 auto;
  cursor: pointer;
}

.pill input { position: absolute; opacity: 0; pointer-events: none; }

.pill span {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fafaf7;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill input:checked + span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pill input:focus-visible + span {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.fields {
  display: grid;
  gap: 14px;
  padding: 10px 0 6px;
}

.field { display: grid; gap: 6px; }

.field label,
.label-text {
  font-size: 0.86rem;
  font-weight: 600;
}

.optional { color: var(--muted); font-weight: 500; }

select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

output {
  min-width: 3.2ch;
  text-align: right;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.seg { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 0.86rem;
  font-weight: 600;
}
.seg input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.quote {
  margin-top: 8px;
  background: linear-gradient(180deg, #0e5c4c 0%, #0a4036 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px 16px 16px;
}

.quote-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 650;
}

.quote-main { margin: 6px 0 12px; }

.quote-amount {
  display: block;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.quote-unit {
  display: block;
  margin-top: 4px;
  opacity: 0.82;
  font-size: 0.9rem;
}

.quote-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.quote-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.quote-meta dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quote-note {
  margin-top: 10px;
  font-size: 0.86rem;
  opacity: 0.9;
}

.disclaimer {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.72;
}

.lead {
  border: 0;
  margin-top: 18px;
}

.lead legend {
  font-weight: 750;
  font-size: 1.02rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.lead-grid {
  display: grid;
  gap: 12px;
}

.form-status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--accent-deep);
}

/* Sections */
.section { padding: 72px 0; }

.section h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.step-grid,
.tile-grid,
.why-grid {
  list-style: none;
  display: grid;
  gap: 16px;
}

.step-grid li,
.why-grid li,
.tile {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 24px;
  border: 1px solid rgba(14, 92, 76, 0.07);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
  margin-bottom: 12px;
}

.step-grid h3,
.tile-grid h3,
.why-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step-grid p,
.tile-grid p,
.why-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.tile {
  overflow: hidden;
  padding: 0;
}

.tile-body { padding: 20px 20px 22px; }

.tile-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.tile-photo:nth-child(1) img { object-position: 50% 60%; }
.tile-photo:nth-child(2) img { object-position: 50% 40%; }

.tile:not(.tile-photo) {
  border-top: 3px solid var(--accent);
}

.tile:nth-child(4) { border-top-color: var(--gold); }
.tile:nth-child(5) { border-top-color: var(--magenta); }
.tile:nth-child(6) { border-top-color: var(--mint); }

.why { padding-bottom: 88px; }

/* Footer */
.site-footer {
  background: #111814;
  color: #e8eee9;
  padding: 48px 0 40px;
}

.footer-grid {
  display: grid;
  gap: 22px;
}

.footer-logo {
  height: 48px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
}

.footer-legal { margin-top: 10px; font-size: 0.92rem; }

.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9db0a6;
  margin-bottom: 8px;
}

.site-footer a { color: #fff; }

/* Modal / offerte */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 16, 0.55);
}

.modal-sheet {
  position: relative;
  width: min(820px, calc(100% - 20px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}

.offerte { color: var(--ink); }

.offerte-head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.offerte-head img { height: 56px; width: auto; }

.offerte-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offerte h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 14px 0 4px;
}

.offerte-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
}

.offerte-table th,
.offerte-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.offerte-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.offerte-btw,
.offerte-disc,
.offerte-foot {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
}

.offerte-foot { border-top: 1px solid var(--line); padding-top: 12px; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .nav-offerte { display: inline; }
  .brand img { height: 48px; }

  .hero {
    min-height: calc(100svh - var(--header-h));
    padding: 40px 0 56px;
    display: flex;
    align-items: flex-start;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
  }

  .hero-media img {
    object-position: 70% 48%;
  }

  .hero-media::after {
    background:
      linear-gradient(
        90deg,
        rgba(7, 16, 13, 0.82) 0%,
        rgba(7, 16, 13, 0.62) 34%,
        rgba(7, 16, 13, 0.22) 62%,
        rgba(7, 16, 13, 0.08) 100%
      );
  }

  .hero-grid {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
    grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.08fr);
    align-items: start;
    gap: 48px;
  }

  .hero-copy {
    margin-top: 0;
    min-height: calc(100svh - var(--header-h) - 96px);
    justify-content: center;
    padding: 24px 0 40px;
  }

  h1 { max-width: 12ch; }

  .calc-card {
    padding: 24px 24px 26px;
    margin-top: 8px;
  }

  .fields { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-photo img { height: 210px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .modal-sheet { padding: 28px 28px 22px; margin-top: 28px; }
}

@media print {
  body { background: #fff; }
  .site-header,
  .hero-copy,
  .hero-media,
  .header-nav,
  .steps,
  .services,
  .why,
  .site-footer,
  .modal-backdrop,
  .modal-close,
  .modal-actions,
  .calc-card { display: none !important; }
  .modal, .modal-sheet {
    position: static;
    box-shadow: none;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  .offerte { display: block !important; }
}
