:root {
  --brand: #1d9753;
  --brand-dark: #146c3b;
}

/* =============================================
   RESET
============================================= */
body { margin: 0; font-family: 'Inter', sans-serif; }

[data-include$="partials/header.html"]:empty,
[data-include*="/partials/header.html"]:empty {
  display: block;
  min-height: 117px;
  background: #fff;
}

/* =============================================
   CONTAINER
============================================= */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   TOPBAR
============================================= */
.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
}

.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar .usp { font-weight: 600; }
.topbar-icon {
  display: inline-block;
  min-width: 1.1em;
  margin-right: 4px;
  text-align: center;
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

/* =============================================
   LOGO
============================================= */
.logo {
  position: relative;
  flex: 0 0 auto;
}

.logo img {
  width: 138px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.logo-wolkje {
  position: absolute;
  width: max-content;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 2px solid #2fbf71;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #1f1f1f;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  z-index: 9999;
  pointer-events: none;
  text-wrap: balance;
}

.logo-wolkje.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =============================================
   DESKTOP NAVIGATIE
============================================= */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: rgba(29, 151, 83, 0.06);
}

.nav-link.is-active { font-weight: 700; }

.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
  opacity: 0.82;
  color: var(--brand);
  transition: transform 0.2s;
}

/* =============================================
   DROPDOWN
============================================= */
.nav-item {
  position: relative;
}

.nav-item--services::after {
  content: "";
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 46px;
  z-index: 998;
}

.nav-item--services:hover::after {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  padding: 20px;
  padding-top: 28px;
  margin-top: -8px;
  z-index: 999;
  min-width: 220px;
}

.dropdown--services {
  position: fixed;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 110px);
  overflow: auto;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
}

/* Grote dropdown met grid */
.dropdown-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  width: 130px;
}

.dropdown-col-group {
  width: 250px;
}

.dropdown-extra-col {
  display: none;
}

.dropdown-extra-col.is-open {
  display: flex;
}

.dropdown-inline-extra {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.dropdown-inline-extra.is-open {
  display: flex;
}

.dropdown-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--brand) !important;
  margin-bottom: 4px;
}

/* Links niet vetgedrukt */
.dropdown a:not(.dropdown-heading) {
  font-weight: 400;
}

.dropdown a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.dropdown a:hover {
  background: rgba(29, 151, 83, 0.08);
  color: var(--brand);
}

.dropdown-more {
  margin-top: 2px;
}

.dropdown-more-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: max-content;
  padding: 4px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--brand);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
}

.dropdown-more-toggle:hover {
  color: var(--brand-dark);
}

.dropdown-cta {
  font-weight: 700 !important;
  color: var(--brand) !important;
}

/* Klein dropdown */
.dropdown--sm {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
}

.dropdown--lekkages {
  width: max-content;
  max-width: calc(100vw - 32px);
}

.dropdown-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 170px);
  gap: 14px 18px;
  align-items: start;
}

.dropdown--lekkages .dropdown-col {
  width: 170px;
}

.dropdown--lekkages .dropdown-heading {
  padding: 0 8px;
}

.dropdown-lekkages-cta {
  grid-column: 1 / span 2;
}

.dropdown-lekkages-cta .dropdown-inspectie-btn {
  width: 100%;
}

.dropdown--sm a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.dropdown--sm a:hover {
  background: rgba(29, 151, 83, 0.08);
  color: var(--brand);
}

/* Hover gedrag */
.nav-item:hover .dropdown,
.nav-item:hover .dropdown--sm {
  display: flex;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* =============================================
   CTA KNOPPEN
============================================= */
.nav-cta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-header-call {
  display: none;
}

.btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s;
  display: inline-block;
  white-space: nowrap;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 151, 83, 0.3);
}

.btn.primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn.secondary:hover {
  background: var(--brand);
  color: #fff;
}

/* =============================================
   HAMBURGER
============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   MOBIEL MENU
============================================= */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1301;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 88px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu,
.mobile-menu * {
  box-sizing: border-box;
}

.mobile-menu-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 16px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(15,17,21,.08);
  box-shadow: 0 10px 24px rgba(15,17,21,.08);
}

.mobile-menu-logo {
  display: inline-flex;
  align-items: center;
  width: min(205px, calc(100vw - 104px));
}

.mobile-menu-logo img {
  width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(15,17,21,.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15,17,21,.08);
  cursor: pointer;
}

.mobile-menu-close span {
  position: absolute;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #222;
}

.mobile-menu-close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
}

.mobile-group {
  width: 100%;
  margin: 0;
  padding: 0;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(15,17,21,.08);
  border-radius: 16px;
  background: linear-gradient(180deg,#fff,#fbfcfb);
  box-shadow: 0 8px 18px rgba(15,17,21,.05);
  color: #222;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}

.mobile-link.is-active {
  color: var(--brand);
  border-color: rgba(29,151,83,.25);
  background: rgba(29,151,83,.07);
}

a.mobile-link:not(.is-active)::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(15,17,21,.28);
  border-bottom: 2px solid rgba(15,17,21,.28);
  transform: rotate(-45deg);
  flex: 0 0 9px;
}

.mobile-group summary {
  list-style: none;
}

.mobile-group summary::-webkit-details-marker { display: none; }

.mobile-group > summary.mobile-link::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  flex: 0 0 10px;
  transition: transform .2s ease;
}

.mobile-group > summary.mobile-link {
  width: 100%;
}

.mobile-group[open] > summary.mobile-link {
  color: var(--brand);
  border-color: rgba(29,151,83,.28);
  background: rgba(29,151,83,.08);
}

.mobile-group[open] > summary.mobile-link::after {
  transform: rotate(225deg);
}

.mobile-sub {
  display: grid;
  gap: 8px;
  margin: 8px 0 1px;
  padding: 10px;
  border: 1px solid rgba(29,151,83,.12);
  border-radius: 16px;
  background: rgba(29,151,83,.04);
}

.mobile-sub > a,
.mobile-service-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  color: #222;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid rgba(15,17,21,.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15,17,21,.04);
}

.mobile-sub > a:hover,
.mobile-service-group > summary:hover {
  color: var(--brand);
  border-color: rgba(29,151,83,.22);
}

.mobile-feature-link {
  color: var(--brand) !important;
  border-color: rgba(29,151,83,.22) !important;
  background: linear-gradient(180deg,rgba(29,151,83,.10),rgba(29,151,83,.04)) !important;
}

.mobile-sub strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.mobile-service-group {
  margin: 0;
}

.mobile-service-group > summary { cursor: pointer; list-style: none; }

.mobile-service-group > summary::-webkit-details-marker,
.mobile-more > summary::-webkit-details-marker {
  display: none;
}

.mobile-service-group > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.mobile-service-group[open] > summary {
  color: var(--brand);
  border-color: rgba(29,151,83,.24);
}

.mobile-service-group[open] > summary::after {
  transform: rotate(225deg);
}

.mobile-service-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 0 0 2px 10px;
  border-left: 1px solid rgba(29,151,83,.16);
}

.mobile-service-list > a,
.mobile-more > div > a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
  color: #444;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.28;
  text-decoration: none;
  border: 1px solid rgba(15,17,21,.06);
  border-radius: 11px;
  background: #fff;
}

.mobile-service-list > a::before,
.mobile-more > div > a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(29,151,83,.42);
  flex: 0 0 6px;
}

.mobile-service-list > a:hover,
.mobile-more > div > a:hover {
  color: var(--brand);
  border-color: rgba(29,151,83,.22);
}

.mobile-more {
  margin: 0;
}

.mobile-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  border: 1px dashed rgba(29,151,83,.28);
  border-radius: 11px;
  background: rgba(29,151,83,.06);
}

.mobile-more > summary::after {
  content: "+";
  font-weight: 900;
}

.mobile-more[open] > summary::after {
  content: "-";
}

.mobile-more > div {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.mobile-more[open] > div {
  padding-bottom: 4px;
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.mobile-cta .btn { text-align: center; width: 100%; box-sizing: border-box; }

.mobile-menu .mobile-cta .btn {
  min-height: 46px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.2;
  white-space: normal;
}

.mobile-menu .mobile-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .mobile-menu {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 82px;
  }

  .mobile-menu .mobile-cta {
    grid-template-columns: 1fr;
  }

  .mobile-menu-head {
    min-height: 72px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-menu-logo {
    width: min(168px, calc(100vw - 92px));
  }

  .mobile-menu-logo img {
    max-height: 50px;
  }

  .mobile-menu-close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .mobile-link {
    min-height: 48px;
    padding: 12px 13px;
    font-size: 15.5px;
  }

  .mobile-sub {
    padding: 9px;
  }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-cta { display: none; }
  .mobile-header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 8px 20px rgba(29,151,83,.22);
    white-space: nowrap;
  }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .nav { display: none; }
  .nav-cta { display: none; }
  .mobile-header-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 8px 20px rgba(29,151,83,.22);
    white-space: nowrap;
  }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
}

@media (max-width: 768px) {
  .logo-wolkje {
    display: none !important;
  }

  .logo-wolkje.visible {
    display: none !important;
  }
}

@media (max-width: 600px) {
  [data-include$="partials/header.html"]:empty,
  [data-include*="/partials/header.html"]:empty {
    min-height: 126px;
  }

  .navbar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar .logo {
    margin-left: 6px;
  }

  .nav-inner {
    gap: 6px;
  }

  .logo img {
    width: min(150px, 34vw);
  }

  .mobile-header-call {
    flex: 1 1 auto;
    align-self: flex-end;
    max-width: 134px;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 10px 10px;
    border-radius: 15px;
    font-size: 12px;
  }

  .hamburger {
    width: 42px;
    height: 42px;
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 10px;
    text-align: center;
    padding: 7px 0;
    font-size: 12px;
    line-height: 1.25;
  }

  .topbar-inner span:first-child {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 800;
  }

  .topbar-icon {
    margin-right: 2px;
  }
}

/* =============================================
   DROPDOWN KLIKBARE HEADINGS & CTA KOLOM
============================================= */
.dropdown-heading--link {
  text-decoration: none;
  transition: opacity 0.15s;
}

.dropdown-heading--link:hover {
  opacity: 0.75;
  background: none !important;
}

.dropdown-col--cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-inspectie-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px !important;
  background: linear-gradient(135deg, #1d9753, #146c3b) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border-radius: 14px !important;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(29,151,83,0.3);
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.dropdown-inspectie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29,151,83,0.4) !important;
  background: linear-gradient(135deg, #1d9753, #146c3b) !important;
  color: #fff !important;
}

/* =============================================
   DROPDOWN CTA ROW (breed onderaan)
============================================= */
.dropdown-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0;
  transform: translateY(-64px);
}

.dropdown-cta-row .dropdown-inspectie-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 100%);
  padding: 14px 20px !important;
  background: linear-gradient(135deg, #1d9753, #146c3b) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  border-radius: 14px !important;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(29,151,83,0.3);
  transition: transform 0.2s, box-shadow 0.2s !important;
  box-sizing: border-box;
}

.dropdown-cta-row .dropdown-inspectie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29,151,83,0.4) !important;
}

/* =============================================
   DROPDOWN COL GROUP (dakkapel + dakraam + dakgoot + CTA)
============================================= */
.dropdown-col-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.dropdown-col-group-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.dropdown-col-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dropdown-col-group .dropdown-inspectie-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 13px 16px;
  background: linear-gradient(135deg, #1d9753, #146c3b);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(29,151,83,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  width: 100%;
}

.dropdown-col-group .dropdown-inspectie-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29,151,83,0.4);
  background: linear-gradient(135deg, #1d9753, #146c3b);
  color: #fff;
}
