/* ============================================================
   De Loodgieter Amsterdam — demo site
   Warm, editorial, trustworthy local-trade design system
   ============================================================ */

:root {
  --ink: #1d1b16;
  --muted: #6b6559;
  --cream: #f6f2ea;
  --paper: #fffdf8;
  --green: #14524a;
  --green-dark: #0e3a34;
  --green-light: #e3efea;
  --copper: #c26a38;
  --copper-dark: #a55226;
  --line: #e4ddcf;
  --shadow: 0 10px 30px rgba(29, 27, 22, .08);
  --radius: 18px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

h1 em, h2 em { font-style: italic; color: var(--copper); }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }

.section { padding: 96px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 16px;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 46px); }
.section-head .lede { margin-top: 14px; font-size: 17.5px; color: var(--muted); }
.section-foot { margin-top: 40px; text-align: center; }
.lede { font-size: 18px; color: var(--muted); }
.p-muted { color: var(--muted); font-size: 15.5px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 15.5px var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }

.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--green-light); }

.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-ghost { border-color: rgba(255, 255, 255, .65); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .65); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); }

.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 6px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 234, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(29, 27, 22, .06); }

.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { font-family: var(--font-serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.brand-text em { font-style: italic; color: var(--copper); }
.brand-light { color: #fff; }

.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--copper);
  margin-top: 5px;
}
.nav-cta { margin-left: 10px; padding: 11px 22px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.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;
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 100px 0 120px;
  color: #fff;
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 32, 29, .88) 0%, rgba(10, 32, 29, .55) 55%, rgba(10, 32, 29, .25) 100%);
}
.hero-content { position: relative; max-width: 720px; }
.hero .eyebrow { color: #e9c9a8; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin-bottom: 22px; }
.hero h1 em { color: #f0cfae; }
.hero .lede { color: rgba(255, 255, 255, .9); font-size: 19px; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-notes { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 34px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.hero-notes strong { color: #fff; }

/* ---------- Trust bar ---------- */

.trust-bar { background: var(--green-dark); color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 38px 0;
  text-align: center;
}
.trust-num { font-family: var(--font-serif); font-size: 36px; font-weight: 600; }
.trust-label { font-size: 13.5px; color: rgba(255, 255, 255, .75); margin-top: 4px; }

/* ---------- Cards ---------- */

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.service-card, .testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(29, 27, 22, .12); }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; }

.service-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--green-light);
  color: var(--green);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 27px; height: 27px; }

.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.price { font-weight: 700; color: var(--green); font-size: 16px; }
.link-arrow { color: var(--copper); font-weight: 600; text-decoration: none; }
.link-arrow:hover { color: var(--copper-dark); }

.testimonial-card { display: flex; flex-direction: column; }
.stars { color: #e8a33d; letter-spacing: 3px; font-size: 16px; margin-bottom: 14px; }
.testimonial-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17.5px;
  line-height: 1.5;
  flex: 1;
}
.testimonial-card figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial-card figcaption strong { display: block; font-size: 15px; }
.testimonial-card figcaption span { color: var(--muted); font-size: 13.5px; }

/* ---------- Two-column / lists ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-2 h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.grid-2 .p-muted { margin-top: 14px; }

.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--green-light), var(--line));
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.check-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; }
.check-list li::before {
  content: "✓";
  width: 23px; height: 23px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  display: grid; place-items: center;
  margin-top: 2px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--copper-dark), var(--copper) 65%, #d88a52);
  color: #fff;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 64px 24px; }
.cta-band .eyebrow { color: #ffe1c4; }
.cta-inner h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 620px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 52px;
}
.footer-brand p { font-size: 14.5px; margin-top: 18px; max-width: 320px; }
.footer-rating { color: #e8a33d; letter-spacing: 2px; font-size: 14px; }
.footer-rating span { color: rgba(255, 255, 255, .6); letter-spacing: 0; margin-left: 8px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.footer-col a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 24px;
}
.footer-bottom a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Inner page hero ---------- */

.page-hero {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 84px 0 72px;
}
.page-hero .eyebrow { color: #e9c9a8; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); max-width: 760px; margin-bottom: 18px; }
.page-hero .lede { color: rgba(255, 255, 255, .88); max-width: 640px; }

/* ---------- Services rows ---------- */

.service-rows { display: grid; gap: 18px; }
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
}
.service-row .service-icon { margin-bottom: 0; }
.service-row-body h3 { font-size: 21px; margin-bottom: 6px; }
.service-row-body p { color: var(--muted); font-size: 15px; max-width: 640px; }
.service-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.emergency-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  background: var(--green-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
}
.emergency-card h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.emergency-card p { color: rgba(255, 255, 255, .82); max-width: 560px; }
.emergency-card .eyebrow { color: #e9c9a8; }

/* ---------- Before / after slider ---------- */

.ba {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-before-clip .ba-img {
  filter: saturate(.55) contrast(.9) brightness(.82) sepia(.16);
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-1.5px);
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.ba-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.ba-label {
  position: absolute;
  top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  background: rgba(0, 0, 0, .45);
  color: #fff;
}
.ba-label-before { left: 18px; }
.ba-label-after { right: 18px; }
.ba-caption { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- Gallery & steps ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.gallery-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-card .media { aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
.gallery-card figcaption { padding: 20px 22px 22px; }
.gallery-card figcaption strong { display: block; font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.gallery-card figcaption span { color: var(--muted); font-size: 13.5px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.step-num { font-family: var(--font-serif); font-size: 30px; color: var(--copper); font-weight: 600; display: block; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: start; }
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px;
}
.form-card h2 { font-size: 28px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: 500 15px var(--font-sans);
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 82, 74, .14);
}
.field-full { grid-column: 1 / -1; margin-top: 18px; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.form-success {
  background: var(--green-light);
  border: 1px solid var(--green);
  color: var(--green-dark);
  border-radius: var(--radius);
  padding: 30px;
}
.form-success h3 { font-size: 22px; margin-bottom: 8px; }

.info-stack { display: grid; gap: 18px; position: sticky; top: 100px; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 17px; margin-bottom: 8px; }
.info-card p { font-size: 14.5px; }
.info-card .p-muted { margin-top: 6px; }
.info-link { font-family: var(--font-serif); font-size: 20px; font-weight: 600; text-decoration: none; color: var(--green); }
.info-link:hover { color: var(--green-dark); }

.map { width: 100%; height: 400px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; background: var(--green-light); }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .cards-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-stack { position: static; grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 56px 1fr; }
  .service-row-meta { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .site-nav {
    position: fixed;
    top: 76px;
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 14px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-link { padding: 11px 12px; border-radius: 10px; font-size: 16px; }
  .nav-link.active { background: var(--green-light); }
  .nav-link.active::after { display: none; }
  .hero { min-height: 0; padding: 84px 0 96px; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .info-stack { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards-grid, .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-row { grid-template-columns: 1fr; }
  .service-row-meta { grid-column: 1; flex-direction: row; justify-content: space-between; }
  .emergency-card, .form-card { padding: 30px 24px; }
}
