/* ============ TSZ Riooltechniek ============ */

:root {
  --ink: #0d161c;
  --ink-2: #13212b;
  --paper: #f3f1eb;
  --card: #ffffff;
  --line: #e3ded2;
  --accent: #f26212;
  --accent-dark: #d1500a;
  --wa: #1fa855;
  --wa-dark: #16863f;
  --muted: #5c6a72;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 22, 28, .10);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section { padding: 84px 0; }
[id] { scroll-margin-top: 84px; }
.section-intro { max-width: 560px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }

.btn-l { padding: 15px 24px; font-size: 1.02rem; }
.btn-s { padding: 9px 15px; font-size: .9rem; }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 168, 85, .32); }
.btn-wa:hover { background: var(--wa-dark); }

.btn-outline { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-outline-light { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.btn-ghost { color: var(--ink); border: 2px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 235, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 6px; }

.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--accent); }

.header-cta { display: flex; gap: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(242, 98, 18, .12), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
}
.hero .kicker { color: var(--accent); }
.hero h1 .accent { color: var(--accent); }
.lede { margin: 20px 0 30px; font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 540px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.trust {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.trust li {
  position: relative;
  padding-left: 26px;
  font-size: .93rem;
  color: rgba(255,255,255,.78);
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.1-4.2 4.6a1 1 0 0 1-1.5 0L4.3 8.9a1 1 0 1 1 1.4-1.3l1 1.2 3.5-3.9a1 1 0 0 1 1.5 1.2z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.1-4.2 4.6a1 1 0 0 1-1.5 0L4.3 8.9a1 1 0 1 1 1.4-1.3l1 1.2 3.5-3.9a1 1 0 0 1 1.5 1.2z"/></svg>') center/contain no-repeat;
}

.hero-photo {
  position: relative;
  justify-self: end;
  width: min(400px, 100%);
}
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  outline: 1px solid rgba(255,255,255,.14);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
  opacity: .8;
}
.hero-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(13, 22, 28, .82);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* Hazard stripe divider */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 16px,
    var(--ink) 16px 32px
  );
  opacity: .92;
}

/* ---------- USPs ---------- */
.usps { background: var(--card); border-bottom: 1px solid var(--line); }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 52px 24px;
}
.usp svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  margin-bottom: 14px;
}
.usp h3 { margin-bottom: 6px; }
.usp p { color: var(--muted); font-size: .95rem; }

/* ---------- Cards / diensten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 38px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(227, 222, 210, .6);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13, 22, 28, .14); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 8px 0 16px; }
.card-link {
  margin-top: auto;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Voor / na ---------- */
.beforeafter { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 38px;
}
.ba { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
}
.badge-voor { background: rgba(13, 22, 28, .85); }
.badge-na { background: var(--accent); }

/* ---------- Werkwijze ---------- */
.dark {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(242, 98, 18, .10), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
}
.dark h2 { color: #fff; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 44px;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 14px; }
.step-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: rgba(255,255,255,.75); font-size: .95rem; }

/* ---------- Galerij ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .4s ease;
  cursor: zoom-in;
}
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 64px;
  padding-bottom: 64px;
}
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.78); max-width: 480px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #fff; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 46px;
  padding-bottom: 26px;
}
.site-footer .brand-text em { color: rgba(255,255,255,.6); }
.site-footer p { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: 6px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.footer-contact a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-contact a:hover { color: var(--accent); }
.footer-small { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; padding-bottom: 22px; }
.footer-small p { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(31, 168, 85, .45);
  transition: transform .15s ease, background .2s ease;
}
.wa-float:hover { transform: scale(1.07); background: var(--wa-dark); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 15, 19, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

/* ---------- Reveal animatie ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.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: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .header-cta .btn-ghost { display: none; }
}

@media (max-width: 820px) {
  .header-inner { gap: 14px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .hero-photo { justify-self: start; width: min(340px, 86%); }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { font-size: .85rem; padding: 8px 12px; }
}

@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .brand-text { font-size: 1rem; }
  .brand-text em { display: none; }
  .header-cta .btn-lbl { display: none; }
  .header-cta .btn-ghost { display: inline-flex; }
  .header-cta .btn { padding: 10px; }
  .section { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ba-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .cta-row { width: 100%; }
  .footer-contact { text-align: left; }
}
