/*
Theme Name: HSF Calculator
Theme URI: https://hsfvloerverwarming.nl/
Description: Child theme van Konta. Live look behouden, plus een professionele multi-step offerte.
Author: HSF Vloerverwarming
Template: konta
Version: 1.7.1
Text Domain: hsf-qc
*/

/* =========================================================
 * 1. Logo-lockup: [beeldmerk] HSF Vloerverwarming
 *    integrate.js herbouwt elk logo-anker naar .hsf-lockup.
 *    Eén centrale maat: ELK logo (header/menu, mobiel menu,
 *    footer) is per breakpoint exact even groot.
 * ======================================================= */
:root {
  --hsf-logo-badge: 58px;
  --hsf-logo-title: 23px;
  --hsf-logo-sub: 10.5px;
  --hsf-logo-gap: 12px;
}

/* Mobiel/tablet: desktop is de referentie — het logo mag niet klein
   verloren staan in de header. */
@media (max-width: 991px) {
  :root {
    --hsf-logo-badge: 52px;
    --hsf-logo-title: 20px;
    --hsf-logo-sub: 9.5px;
    --hsf-logo-gap: 10px;
  }
}

@media (max-width: 360px) {
  :root {
    --hsf-logo-badge: 46px;
    --hsf-logo-title: 18px;
  }
}
/* Verticale padding klein houden: het logo groeit, de header niet. */
.th-header .header-logo,
.header-layout13 .header-logo,
.sticky-wrapper .header-logo,
.th-header .brand-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 300px !important;
  padding: 5px 14px 5px 0 !important;
  min-height: 0 !important;
}

.hsf-lockup {
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--hsf-logo-gap, 10px) !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.hsf-lockup__badge {
  width: var(--hsf-logo-badge, 46px) !important;
  height: var(--hsf-logo-badge, 46px) !important;
  max-width: var(--hsf-logo-badge, 46px) !important;
  max-height: var(--hsf-logo-badge, 46px) !important;
  min-width: var(--hsf-logo-badge, 46px) !important;
  object-fit: contain !important;
  display: block !important;
  flex: 0 0 auto;
}

/* Interne compositie zoals op desktop (source of truth): beeldmerk
   links, tekst rechts, "HSF" links uitgelijnd boven het woordbegin
   van "VLOERVERWARMING". Niet centreren. */
.hsf-lockup__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.hsf-lockup__text b {
  font-family: var(--title-font, "Exo", sans-serif);
  font-size: var(--hsf-logo-title, 19px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #262a36;
  line-height: 1;
}

.hsf-lockup__text em {
  font-style: normal;
  font-family: var(--body-font, "Roboto", sans-serif);
  font-size: var(--hsf-logo-sub, 9px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #74787f;
  line-height: 1;
}

/* Donkere contexten (footer) -> lichte tekst */
footer .hsf-lockup__text b,
.footer-wrapper .hsf-lockup__text b,
.th-footer .hsf-lockup__text b {
  color: #fff;
}

footer .hsf-lockup__text em,
.footer-wrapper .hsf-lockup__text em,
.th-footer .hsf-lockup__text em {
  color: rgba(255, 255, 255, 0.65);
}

/* Fallback: nog niet herbouwde logo-afbeeldingen krijgen exact
   dezelfde maat als het menulogo */
.th-header .header-logo img,
.header-layout13 .header-logo img,
.th-header img.custom-logo,
.th-menu-wrapper .mobile-logo img,
.footer-logo img {
  max-height: var(--hsf-logo-badge, 46px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

@media (max-width: 991px) {
  .th-header .header-logo,
  .header-layout13 .header-logo {
    max-width: 240px !important;
    padding: 5px 10px 5px 0 !important;
  }
  .hsf-lockup__text em {
    letter-spacing: 0.15em;
  }
}

/* Mobiel menu-overlay: logo gecentreerd, zelfde lockup.
   Extra ruimte boven het logo: het sluitkruisje staat (absoluut)
   rechtsboven en mag het logo niet raken. line-height 0 voorkomt
   een extra inline-regelhoogte onder de inline-flex lockup. */
.th-menu-wrapper .mobile-logo {
  padding: 60px 0 12px !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  line-height: 0 !important;
  border-bottom: 1px solid rgba(20, 24, 34, 0.08);
}

/* Compact: geen extra lege ruimte tussen logo en de navigatielinks */
.th-menu-wrapper .th-mobile-menu {
  margin-top: 0 !important;
  padding-top: 4px !important;
}

.th-menu-wrapper .mobile-logo .hsf-lockup {
  justify-content: center !important;
}

/* =========================================================
 * 2. Header & hoofdmenu: compact, strak, premium
 * ======================================================= */
/* Het thema laat de header op 15px hoogte instorten, waardoor het
   logo over de pagina-afbeelding valt op subpagina's. Geef de header
   echte hoogte + witte achtergrond, op elke pagina hetzelfde. */
.th-header .menu-area,
.header-layout13 .menu-area {
  height: auto !important;
  /* Hoog genoeg voor het grotere mobiele logo (52px beeldmerk +
     verticale marge): anders stak het logo 10px over de eerste
     sectie heen. Geen negatieve marges, gewoon passende hoogte. */
  min-height: 66px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  background: #fff !important;
}

@media (min-width: 992px) {
  .th-header .menu-area,
  .header-layout13 .menu-area {
    min-height: 64px !important;
  }
}

.th-header .menu-area > .container,
.th-header .menu-area .th-container,
.header-layout13 .menu-area > .container {
  height: auto !important;
  min-height: 0 !important;
}

.th-header .main-menu > ul > li {
  margin: 0 4px !important;
}

.th-header .main-menu > ul > li > a {
  position: relative;
  display: inline-block;
  padding: 20px 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

/* Het hoofdmenu van layout13 is een oranje balk (.main-menu-area).
   Links zijn daar wit; hover/actief = wit + witte underline. De
   underline staat op ::before, zodat het thema-::after (dropdown-
   plusje bij "Onze diensten") gewoon blijft werken. */
.th-header .main-menu-area .main-menu > ul > li > a {
  color: #fff !important;
}

.th-header .main-menu-area .main-menu > ul > li > a::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.th-header .main-menu-area .main-menu > ul > li > a:hover {
  color: #fff !important;
}

.th-header .main-menu-area .main-menu > ul > li > a:hover::before,
.th-header .main-menu-area .main-menu > ul > li.current-menu-item > a::before,
.th-header .main-menu-area .main-menu > ul > li.current_page_item > a::before,
.th-header .main-menu-area .main-menu > ul > li.current-menu-ancestor > a::before {
  transform: scaleX(1);
}

/* Dropdown-indicator (+/−) van het thema: op de oranje balk altijd wit */
.th-header .main-menu-area .main-menu > ul > li.menu-item-has-children > a::after {
  color: #fff !important;
}

/* Menu in de bovenste (witte) rij — alleen zichtbaar bij sticky header.
   Daar juist donkere links met oranje accent. */
.th-header .menu-area .sticky-d-block .main-menu > ul > li > a {
  color: #262a36 !important;
}

.th-header .menu-area .sticky-d-block .main-menu > ul > li > a:hover,
.th-header .menu-area .sticky-d-block .main-menu > ul > li.current-menu-item > a {
  color: var(--theme-color, #ff5e14) !important;
}

/* Header-CTA compact en netjes gecentreerd */
.th-header .header-button .th-btn,
.th-header .menu-area .th-btn {
  padding: 13px 20px !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
}

/* De offcanvas-knop (≡) naast de CTA opent een lege
   "No Widget Added"-zijbalk van het thema: weg ermee. */
.th-header .header-button .sideMenuToggler {
  display: none !important;
}

/* Dropdowns strakker */
.th-header .main-menu ul ul {
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(20, 24, 34, 0.14) !important;
  border: 1px solid rgba(20, 24, 34, 0.06) !important;
  padding: 8px 0 !important;
}

.th-header .main-menu ul ul li a {
  padding: 9px 18px !important;
  font-size: 13.5px !important;
}

/* =========================================================
 * 3. Mobiel menu-overlay: rustig en professioneel
 * ======================================================= */
.th-menu-wrapper .th-mobile-menu ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

.th-menu-wrapper .th-mobile-menu ul li {
  position: relative;
  list-style: none !important;
  margin: 0 !important;
}

.th-menu-wrapper .th-mobile-menu ul li a,
.th-menu-wrapper .th-mobile-menu > ul > li > a {
  position: relative;
  display: block !important;
  padding: 13px 44px 13px 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #262a36 !important;
  border-bottom: 1px solid rgba(20, 24, 34, 0.07) !important;
  text-align: left !important;
  text-decoration: none !important;
}

/* Kapotte icon-font-pijltjes/plusjes van het thema volledig uit */
.th-menu-wrapper .th-mobile-menu ul li a::before,
.th-menu-wrapper .th-mobile-menu ul li a::after,
.th-menu-wrapper .th-mobile-menu ul li::before,
.th-menu-wrapper .th-mobile-menu ul li::after {
  content: none !important;
}

.th-menu-wrapper .th-mobile-menu ul li a > i {
  display: none !important;
}

.th-menu-wrapper .th-mobile-menu ul li a:hover,
.th-menu-wrapper .th-mobile-menu ul li.current-menu-item > a {
  color: var(--theme-color, #ff5e14) !important;
}

/* Submenu-toggle: strak vierkantje met CSS-chevron
   (het thema injecteert een expand-span; icon-font erin verbergen) */
.th-menu-wrapper .th-mobile-menu [class*="expand"],
.th-menu-wrapper .th-mobile-menu .th-mean-expand,
.th-menu-wrapper .th-mobile-menu .mean-expand {
  position: absolute !important;
  right: 0 !important;
  top: 9px !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #f3f4f6 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  cursor: pointer;
}

.th-menu-wrapper .th-mobile-menu [class*="expand"] i,
.th-menu-wrapper .th-mobile-menu [class*="expand"] svg {
  display: none !important;
}

.th-menu-wrapper .th-mobile-menu [class*="expand"]::before {
  content: "" !important;
  display: block !important;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 2px solid #55595f;
  border-bottom: 2px solid #55595f;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

/* Open state: chevron omhoog (thema togglet een open/active klasse) */
.th-menu-wrapper .th-mobile-menu li.th-open > a [class*="expand"]::before,
.th-menu-wrapper .th-mobile-menu li.open > a [class*="expand"]::before,
.th-menu-wrapper .th-mobile-menu li.active > a [class*="expand"]::before,
.th-menu-wrapper .th-mobile-menu a.th-open [class*="expand"]::before {
  transform: rotate(-135deg);
  margin-top: 4px;
}

/* Submenu-items: iets ingesprongen, lichter */
.th-menu-wrapper .th-mobile-menu ul ul {
  padding-left: 14px !important;
}

.th-menu-wrapper .th-mobile-menu ul ul li a {
  padding: 11px 44px 11px 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* =========================================================
 * 4. Menu-toggle (hamburger + kruis) in CSS, geen icon-font
 * ======================================================= */
.th-menu-toggle {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: var(--theme-color, #ff5e14) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

.th-menu-wrapper .th-menu-toggle {
  display: inline-flex !important;
}

@media (max-width: 991px) {
  .menu-area .th-menu-toggle,
  .th-header .th-menu-toggle,
  .header-layout13 .th-menu-toggle {
    display: inline-flex !important;
  }
}

.th-menu-toggle i,
.th-menu-toggle svg {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  color: transparent !important;
}

.th-menu-toggle i::before {
  content: none !important;
}

/* 3-bar hamburger in de header */
.menu-area .th-menu-toggle::before,
.th-header .th-menu-toggle::before,
.header-layout13 .th-menu-toggle::before {
  content: "" !important;
  display: block !important;
  width: 18px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* Kruis (X) in het mobiele overlay-menu: netjes rechtsboven in het
   paneel, niet zwevend in het midden (het thema zet de knop in-flow
   in een gecentreerde kolom). */
.th-menu-wrapper .th-menu-area {
  position: relative !important;
}

.th-menu-wrapper .th-menu-toggle {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  margin: 0 !important;
  z-index: 3;
}

.th-menu-wrapper .th-menu-toggle::before,
.th-menu-wrapper .th-menu-toggle::after {
  content: "" !important;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: #fff;
  border-radius: 2px;
  box-shadow: none;
}

.th-menu-wrapper .th-menu-toggle::before {
  transform: rotate(45deg);
}

.th-menu-wrapper .th-menu-toggle::after {
  transform: rotate(-45deg);
}

/* =========================================================
 * 5a. Hero stabiel houden tijdens scrollen
 *     Eén entrance bij eerste load (JS voegt .hsf-hero-enter toe),
 *     daarna vergrendelt .hsf-hero-stable alles permanent zichtbaar.
 * ======================================================= */
@keyframes hsfHeroIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero .hsf-hero-enter {
  animation: hsfHeroIn 0.55s ease both;
}

@media (prefers-reduced-motion: reduce) {
  #hero .hsf-hero-enter {
    animation: none;
    opacity: 1;
  }
}

/* Na de entrance kan niets in de hero nog verdwijnen, verschuiven
   of opnieuw animeren — ook niet via theme-JS of inline styles. */
#hero.hsf-hero-stable .hero-subtitle,
#hero.hsf-hero-stable .hero-title,
#hero.hsf-hero-stable .hero-text,
#hero.hsf-hero-stable .btn-group,
#hero.hsf-hero-stable .btn-group .th-btn,
#hero.hsf-hero-stable .hsf-hero-usps,
#hero.hsf-hero-stable .hsf-hero-usps li,
#hero.hsf-hero-stable [data-ani] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* =========================================================
 * 5b. Hero: USP-regel onder de primaire CTA
 * ======================================================= */
.hsf-hero-usps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hsf-hero-usps li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.hsf-hero-usps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 99px;
  background: var(--theme-color, #ff5e14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 9px 9px;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
 * 5c. Desktop: offertecalculator als kaart naast de hero-tekst
 *     integrate.js verplaatst .hsf-calc naar .hsf-hero-calc-col
 *     en zet body.hsf-hero-calc-on. Mobiel behoudt de oude flow.
 * ======================================================= */
.hsf-hero-calc-col:empty {
  display: none;
}

@media (min-width: 992px) {
  /* Grijze quote-sectie onder de hero is op desktop overbodig:
     de calculator staat al in de hero. */
  body.hsf-hero-calc-on .hsf-quote-shell {
    display: none !important;
  }

  .hsf-hero-calc-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 120px 0 70px;
    /* OORZAAK desktopfout offerteaanvraag: .th-hero-bg van het thema
       is absoluut gepositioneerd en schilderde bovenop deze (statische)
       kolom — de witte kaart, titel en knoppen waren onzichtbaar en de
       overlay ving alle clicks af. Een eigen stacking context boven de
       hero-achtergrond herstelt zichtbaarheid én klikbaarheid. */
    position: relative;
    z-index: 3;
  }

  .hsf-hero-calc-col .hsf-calc {
    width: min(440px, 100%);
    padding: 18px 18px 16px;
    border-radius: 10px;
    box-shadow: 0 24px 64px rgba(10, 14, 24, 0.35);
  }

  .hsf-hero-calc-col .hsf-calc__title {
    font-size: 20px;
  }

  /* De hero hoeft niet meer extreem hoog: beide kolommen bepalen
     samen de hoogte, netjes verticaal gecentreerd. */
  body.hsf-hero-calc-on .hero-style1 {
    padding: 120px 0 70px !important;
  }

  body.hsf-hero-calc-on #hero .th-hero-slide {
    height: auto !important;
  }
}

/* =========================================================
 * 6. CTA-band (na dienstenoverzicht) + CTA-kaart (andere pagina's)
 * ======================================================= */
.hsf-cta-band {
  background: #20242e;
  padding: 40px 16px;
}

.hsf-cta-band__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hsf-cta-band__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-color, #ff5e14);
}

.hsf-cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 3vw, 27px);
  color: #fff;
  line-height: 1.25;
}

.hsf-cta-band__text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  max-width: 560px;
}

/* Knoppen buiten de quote-shell: expliciete waarden (CSS-vars van
   de calculator bestaan hier niet). */
.hsf-cta-band .hsf-btn,
.hsf-cta-card .hsf-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  min-height: 48px;
  padding: 0 26px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: var(--theme-color, #ff5e14) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.hsf-cta-band .hsf-btn:hover,
.hsf-cta-card .hsf-btn:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
  color: #fff !important;
}

.hsf-cta-card {
  max-width: 620px;
  margin: 8px auto 24px;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid rgba(20, 24, 34, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 24, 34, 0.07);
  text-align: left;
}

.hsf-cta-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #20242e;
}

.hsf-cta-card p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #55595f;
}

.hsf-cta-card__note {
  margin: 12px 0 0 !important;
  font-size: 12.5px !important;
  color: #8a8f96 !important;
}

/* =========================================================
 * 6b. Mobiel: geen horizontale overflow / uitzoomen
 *     Oorzaak: het e-mailadres (één onbreekbaar woord van ±237px)
 *     in de icon-boxen duwde de pagina op 320px breder dan de
 *     viewport. Lange strings mogen afbreken en de icon-box mag
 *     krimpen — geen overflow-x:hidden-lapmiddel.
 * ======================================================= */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.elementor-icon-box-wrapper,
.elementor-icon-box-content,
.elementor-icon-box-title {
  min-width: 0;
}

/* Dienstentabs op 992–1199px: de vijf tabtitels staan daar in één
   nowrap-rij die breder werd dan de viewport (204px horizontale
   overflow op 1024px — al aanwezig vóór onze aanpassingen). Laten
   wrappen binnen de container lost de overflow structureel op. */
@media (min-width: 992px) and (max-width: 1199px) {
  .e-n-tabs-heading {
    flex-wrap: wrap !important;
    max-width: 100% !important;
  }

  .e-n-tabs-heading .e-n-tab-title {
    min-width: 0 !important;
  }
}

/* =========================================================
 * 7. Homepage: witruimte begrenzen, secties sluiten aan
 *    Alleen pagina-content, niet header/footer/hero-widget.
 * ======================================================= */
body.home .elementor[data-elementor-post-type="page"] section.elementor-top-section,
body.home .elementor[data-elementor-post-type="page"] > .e-con.e-parent {
  padding-top: clamp(28px, 3.5vw, 48px) !important;
  padding-bottom: clamp(28px, 3.5vw, 48px) !important;
}

body.home .elementor[data-elementor-post-type="page"] .space,
body.home .elementor[data-elementor-post-type="page"] .space-extra-bottom {
  padding-top: clamp(28px, 3.5vw, 48px) !important;
  padding-bottom: clamp(28px, 3.5vw, 48px) !important;
}

body.home .elementor[data-elementor-post-type="page"] .title-area {
  margin-bottom: clamp(18px, 3vw, 32px) !important;
}

@media (max-width: 767px) {
  body.home .elementor[data-elementor-post-type="page"] section.elementor-top-section,
  body.home .elementor[data-elementor-post-type="page"] > .e-con.e-parent,
  body.home .elementor[data-elementor-post-type="page"] .space,
  body.home .elementor[data-elementor-post-type="page"] .space-extra-bottom {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  body.home .elementor[data-elementor-post-type="page"] .title-area {
    margin-bottom: 14px !important;
  }

  /* Grote desktop-marges onder afbeeldingen/blokken op mobiel halveren */
  body.home .elementor[data-elementor-post-type="page"] .mb-50 {
    margin-bottom: 24px !important;
  }

  body.home .elementor[data-elementor-post-type="page"] .mb-40 {
    margin-bottom: 20px !important;
  }
}

/* De sectie die hero + calculator bevat heeft geen eigen padding nodig:
   hero en quote-shell vullen hem volledig.

   Oorzaak van de witruimte tussen header en hero: het thema wikkelt
   de hele pagina in section.space-top (padding-top 80px mobiel /
   120px desktop) en Elementor compenseert dat met een negatieve
   marge op de herosectie — netto bleef er 39–72px wit over. Beide
   worden hier geneutraliseerd, alleen op de homepage: de hero begint
   strak onder de header. De selector-prefix is nodig om de generieke
   compact-paddingregel hierboven te overtroeven. */
body.home section.space-top:has(.th-hero-wrapper) {
  padding-top: 0 !important;
  /* Onderaan idem: de laatste sectie heeft eigen padding, de extra
     wrapper-padding creëerde alleen een leeg vlak boven de footer. */
  padding-bottom: 0 !important;
}

body.home section.elementor-top-section:has(.th-hero-wrapper),
body.home .elementor[data-elementor-post-type="page"] section.elementor-top-section:has(.th-hero-wrapper) {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.home section.elementor-top-section:has(.th-hero-wrapper) .elementor-column > .elementor-widget-wrap {
  padding-top: 0 !important;
}

/* LET OP: hier stond eerder een regel die "lege" e-con-containers
   platsloeg plus een display:none op .elementor-element-81f3516.
   Die containers zijn NIET leeg: het zijn de dienstfoto's van de
   tabs (achtergrondafbeelding + min-height). Bewust verwijderd
   zodat alle vijf foto's weer zichtbaar zijn. */

/* Onderkant homepage: rond "Heeft u een project?" en de kaart
   stapelen drie lagen padding (sectie 48 + e-con-inner 20 + kaart
   50). De binnenste kaart-padding is design en blijft; alleen de
   buitenste lagen worden hier compacter gemaakt. */
body.home .elementor-element-cd8fa90 {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

body.home .elementor-element-cd8fa90 > .e-con-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.home .elementor-element-d19b038 {
  padding-top: 20px !important;
  padding-bottom: 28px !important;
}

/* Oud offerteformulier-blok boven de kaart: op de homepage volledig
   weg (de calculator staat er al) — CSS-vangnet naast de JS. */
body.home .testi-contace-wrap {
  display: none !important;
}

/* Op andere pagina's blijft het blok (met CTA-kaart), maar zonder
   de enorme 80px-ondermarge. */
.testi-contace-wrap {
  margin-bottom: 24px !important;
}

/* Donkere project-CTA boven de kaart: compacter op mobiel */
@media (max-width: 767px) {
  body.home .elementor-element-a539114 {
    padding-bottom: 30px !important;
  }
}

/* =========================================================
 * 8. Algemene voorwaarden — leesbare, professionele pagina
 * ======================================================= */
.hsf-terms {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 20px 48px;
  color: #33363d;
  font-size: 15.5px;
  line-height: 1.65;
}

.hsf-terms__head {
  margin: 0 0 28px;
  padding: 26px 26px 22px;
  background: #f7f8fa;
  border: 1px solid rgba(20, 24, 34, 0.07);
  border-radius: 12px;
}

.hsf-terms__head h1 {
  margin: 0 0 2px;
  font-size: clamp(24px, 4vw, 32px);
  color: #20242e;
  line-height: 1.2;
}

.hsf-terms__sub {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--theme-color, #ff5e14);
}

.hsf-terms__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 20px;
  margin: 0 0 14px;
}

.hsf-terms__meta div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hsf-terms__meta dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8f96;
}

.hsf-terms__meta dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #20242e;
}

.hsf-terms__version {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 24, 34, 0.08);
  font-size: 13px;
  color: #74787f;
}

.hsf-terms section {
  margin: 0 0 8px;
}

.hsf-terms h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 30px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(20, 24, 34, 0.08);
  font-size: 19px;
  color: #20242e;
  line-height: 1.3;
  scroll-margin-top: 90px;
}

.hsf-terms h2 span {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-color, #ff5e14);
  white-space: nowrap;
}

.hsf-terms ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.hsf-terms ol li {
  margin: 0 0 9px;
  padding-left: 6px;
}

.hsf-terms ol li::marker {
  font-weight: 700;
  color: var(--theme-color, #ff5e14);
}

.hsf-terms__defs {
  margin: 0 0 14px;
}

.hsf-terms__defs dt {
  margin: 12px 0 2px;
  font-weight: 700;
  color: #20242e;
}

.hsf-terms__defs dd {
  margin: 0;
}

.hsf-terms__extra {
  margin-top: 36px;
  padding: 4px 22px 10px;
  background: #fbf7f3;
  border: 1px solid rgba(255, 94, 20, 0.18);
  border-radius: 12px;
}

.hsf-terms__extra-title {
  display: block !important;
  border-bottom: 0 !important;
  margin: 20px 0 4px !important;
  font-size: 22px !important;
}

.hsf-terms__foot {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 24, 34, 0.1);
  font-size: 13px;
  color: #74787f;
  line-height: 1.6;
}

@media (max-width: 575px) {
  .hsf-terms {
    font-size: 15px;
    padding: 4px 16px 36px;
  }
  .hsf-terms__head {
    padding: 20px 18px 16px;
  }
  .hsf-terms h2 {
    flex-direction: column;
    gap: 2px;
  }
}

/* Footerlink-blokje met juridische links (injectie via JS) */
.hsf-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hsf-legal-links a {
  font-size: 13.5px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hsf-legal-links a:hover {
  color: var(--theme-color, #ff5e14);
}
