:root {
  --bg: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-slate: #1e293b;
  --surface: #ffffff;
  --primary: #e85d04;
  --primary-dark: #c44d00;
  --accent: #0f766e;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(340px, 62vw);
}

.footer-logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-phone {
  color: var(--text) !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

.nav-phone:hover { color: var(--primary) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(232, 93, 4, 0.3);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

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

.btn-small { padding: 0.5rem 1.1rem; font-size: 0.875rem; }

.btn-full { width: 100%; }

/* ——— Hero (full-bleed) ——— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5rem;
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.35) 100%),
    url('images/dienst-loodgieterswerk.jpg') center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 80%, rgba(232, 93, 4, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
  animation: heroIn 0.85s ease-out both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: #fff;
}

.hero h1,
.hero .hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-text {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* SEO page heroes — lighter full-bleed variant */
.seo-page-hero {
  min-height: auto;
  padding: 3.25rem 0 3rem;
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.82) 100%),
    url('images/dienst-loodgieterswerk.jpg') center / cover no-repeat;
}

.seo-page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.1rem;
}

.seo-page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.seo-page-hero .breadcrumb a:hover { color: #fff; }

.seo-page-hero .hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 183, 71, 0.95);
  margin-bottom: 0.75rem;
}

.seo-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.seo-page-hero .hero-text {
  color: rgba(255, 255, 255, 0.78);
}

/* ——— Sections ——— */
.section { padding: 4.5rem 0; }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.section-header p { color: var(--text-muted); }

/* ——— Trust strip ——— */
.trust {
  background: var(--bg-dark);
  color: #fff;
  padding: 2.75rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  text-align: center;
  padding: 0.5rem;
  animation: heroIn 0.7s ease-out both;
}

.trust-item:nth-child(2) { animation-delay: 0.08s; }
.trust-item:nth-child(3) { animation-delay: 0.16s; }
.trust-item:nth-child(4) { animation-delay: 0.24s; }

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
}

.trust-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ——— Diensten ——— */
.diensten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.dienst-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.dienst-card-body { padding: 1.5rem 1.6rem 1.65rem; }

.dienst-card-media {
  position: relative;
  overflow: hidden;
  height: 180px;
  background: var(--border);
}

.dienst-card-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dienst-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(232, 93, 4, 0.35);
}

.dienst-card:hover .dienst-card-media img {
  transform: scale(1.04);
}

.dienst-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.dienst-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.dienst-card--featured {
  border-color: rgba(232, 93, 4, 0.4);
}

.dienst-lijst {
  margin-top: 0.85rem;
  padding-left: 1.05rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dienst-lijst li { margin-bottom: 0.3rem; }

.dienst-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}

.dienst-card-link:hover { text-decoration: underline; }

/* ——— Werkwijze ——— */
.werkwijze { background: var(--surface); }

.stappen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  counter-reset: stap;
}

.stappen li {
  text-align: left;
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.stap-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.stappen h3 {
  font-family: var(--font-display);
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.stappen p { color: var(--text-muted); font-size: 0.92rem; }

/* ——— Offerte ——— */
.offerte-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.75rem;
  align-items: start;
}

.offerte-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.85rem;
}

.offerte-info p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.offerte-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.offerte-tips li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.offerte-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}

.offerte-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-adres { grid-template-columns: 1fr 1fr; }

.form-group-lead {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.form-postcode-huisnummer {
  display: grid;
  grid-template-columns: 11rem 5.5rem;
  gap: 0.75rem;
  align-items: end;
  width: fit-content;
  max-width: 100%;
}

.form-inline-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-postcode-huisnummer .postcode-input,
.form-postcode-huisnummer .huisnummer-input {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.form-inline-field-hn .huisnummer-input { text-align: center; }

.form-group input[readonly],
.form-group input.input-autofill.is-autofilled {
  background: #f8fafc;
  color: var(--text);
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #f8fafc;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(232, 93, 4, 0.04);
}

.upload-placeholder p { margin-bottom: 0.25rem; }

.upload-placeholder small { color: var(--text-muted); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
}

.form-feedback[hidden] { display: none !important; }

.form-feedback.success {
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  border: 1px solid rgba(15, 118, 110, 0.25);
}

.form-feedback.error {
  background: rgba(200, 50, 50, 0.1);
  color: #a32020;
  border: 1px solid rgba(200, 50, 50, 0.2);
}

/* ——— SEO / FAQ ——— */
.faq-seo .faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.seo-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.seo-page-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0;
}

.seo-page-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.seo-page-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.seo-page-links { background: var(--surface); }

.seo-page-links h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.seo-service-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.seo-service-links a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.seo-service-links a:hover,
.seo-service-links a[aria-current="page"] {
  border-color: var(--primary);
  color: var(--primary);
}

/* ——— Reviews (placeholder-ready) ——— */
.reviews { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  max-width: 960px;
  margin: 0 auto;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ——— Footer ——— */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin: 0.25rem 0 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.footer-kvk {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.footer-contact { margin-top: 1.25rem; }

.footer-contact p { margin: 0 0 0.5rem; }

.footer-contact p:last-child { margin-bottom: 0; }

.footer-contact a {
  color: #fb923c;
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-services p,
.footer-specialties p {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-services ul,
.footer-specialties ul {
  list-style: none;
  font-size: 0.85rem;
}

.footer-services li,
.footer-specialties li { margin-bottom: 0.35rem; }

.footer-services a,
.footer-specialties a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-services a:hover,
.footer-specialties a:hover { color: #fb923c; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom a:hover { color: #fb923c; }

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .offerte-grid { grid-template-columns: 1fr; }
  .stappen { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .why-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 3.5rem 0 4rem; }
}

@media (max-width: 768px) {
  .seo-page-grid { grid-template-columns: 1fr; }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-brand { order: 1; }
  .footer-contact { margin-top: 1rem; }

  .footer-services {
    order: 2;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-specialties {
    order: 3;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .footer-services ul,
  .footer-specialties ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 1rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.85rem;
  }

  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .form-postcode-huisnummer {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    width: 100%;
  }
  .trust-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero-brand { font-size: clamp(2.2rem, 11vw, 3rem); }
}
