/*
 * De nieuwe homepage (Asana 1219080311964038).
 *
 * Alleen geladen op een pagina met [ndhr_voorbeelden]; zie
 * NDHR_WB_Homepage::laad_bestanden(). Alles hangt aan .nh-klassen, zodat de rest
 * van de site er niets van merkt. De verhalen en het nieuws zijn de bestaande
 * YOOtheme-blokken en worden hier niet opgemaakt.
 *
 * Kleuren: oranje knoppen met witte tekst in #BF5715 (4,9:1), oranje tekst op wit
 * of perzik in #9A430C (6,5:1). Het merkoranje #E8722A haalt met witte tekst geen
 * AA en staat hier dus nergens onder tekst.
 */
.nh-hero,
.nh-blok {
  --nh-oranje-ink: #9A430C;
  --nh-oranje-diep: #BF5715;
  --nh-perzik: #FBE9DC;
  --nh-tekst: #1F1A17;
  --nh-zacht: #5E534B;
  --nh-lijn: #EADBCD;
  --nh-r: 16px;
  color: var(--nh-tekst);
}
.nh-hero a, .nh-blok a { text-decoration: none; }
.nh-hero a:hover, .nh-blok a:hover { text-decoration: none; }
/* Alleen links en knoppen: de zoekbalk heeft een eigen focusrand om het hele veld,
   en een tweede rand om het invoerveld zelf stond er dik in (2 oktober 2026). */
.nh-hero a:focus-visible, .nh-blok a:focus-visible,
.nh-hero button:focus-visible, .nh-blok button:focus-visible { outline: 3px solid var(--nh-oranje-ink); outline-offset: 2px; }
.nh-tekstlink { color: var(--nh-oranje-ink) !important; font-weight: 700; }
.nh-tekstlink:hover { text-decoration: underline !important; }

/* ---------------------------------------------------------------- hero */

/* Op mobiel is alleen het kopblok perzik; de drie kaarten staan eronder op wit.
   Vanaf 640px staan de panelen ín de hero en is de hele sectie perzik, over de
   volle breedte. Met .uk-section erbij: het thema zet .uk-section-default op wit
   en laadt later, dus .nh-hero alleen verloor (gezien op 2 oktober 2026: perzik
   alleen achter de kop, op containerbreedte). */
.nh-hero.uk-section { background: #fff; }
.nh-hero-kop {
  text-align: center;
  background: var(--nh-perzik);
  box-shadow: 0 0 0 100vmax var(--nh-perzik);
  clip-path: inset(0 -100vmax);
  padding: 24px 0 22px;
}
.nh-merk { font-weight: 700; font-size: 13px; color: var(--nh-oranje-ink); letter-spacing: .02em; margin: 0; }
.nh-hero-kop h1 {
  font-weight: 700; font-size: 30px; line-height: 1.12; letter-spacing: -.02em;
  margin: 6px auto 0; max-width: 15em; text-wrap: balance; color: var(--nh-tekst);
}
.nh-lead { font-size: 16px; color: #3d3530; margin: 10px auto 0; max-width: 34em; }
.nh-zoek { max-width: 620px; margin: 18px auto 0; text-align: left; }
.nh-zoek > p { margin: 0; }
.nh-daaronder { margin: 12px 0 0; font-size: 15px; }

@media (min-width: 640px) {
  .nh-hero.uk-section { background: var(--nh-perzik); }
  .nh-hero-kop { padding: 52px 0 8px; box-shadow: none; clip-path: none; }
  .nh-hero-kop h1 { font-size: 44px; }
  .nh-lead { font-size: 18px; }
  .nh-zoek { margin-top: 26px; }
}
@media (min-width: 1024px) { .nh-hero-kop h1 { font-size: 56px; } }

/* De drie deuren: op mobiel een compacte kaart, vanaf 640px een fotopaneel. */
.nh-hero .nh-deuren { padding-top: 16px; }
.nh-paneel {
  display: grid; grid-template-columns: 84px 1fr 20px; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--nh-lijn); border-radius: 14px;
  padding: 10px 12px 10px 10px; color: var(--nh-tekst) !important;
}
.nh-paneel img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; display: block; max-width: none; }
.nh-paneel-in { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.nh-label { font-weight: 800; font-size: 11px; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; color: var(--nh-oranje-ink); }
.nh-label:empty { display: none; }
.nh-paneel-kop { font-weight: 700; font-size: 17px; line-height: 1.25; }
.nh-paneel-tekst { font-size: 14px; line-height: 1.4; color: var(--nh-zacht); }
.nh-paneel-link { font-size: 14px; font-weight: 700; color: var(--nh-oranje-ink); }
.nh-paneel-pijl { color: var(--nh-oranje-ink); display: flex; }

@media (min-width: 640px) {
  /* Met .nh-hero ervoor: UIkit zet .uk-grid op padding 0 en laadt later. */
  .nh-hero .nh-deuren { padding: 32px 0 56px; }
  .nh-paneel {
    position: relative; display: flex; align-items: flex-end; min-height: 360px; height: 100%;
    padding: 0; border: 0; border-radius: var(--nh-r); overflow: hidden; color: #fff !important;
    background: #3a2a20; box-shadow: 0 6px 20px rgba(60, 40, 20, .12);
  }
  .nh-paneel img {
    position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; transition: transform .6s;
  }
  .nh-paneel:hover img { transform: scale(1.04); }
  .nh-paneel-kaart img { object-position: 45% 40%; }
  .nh-paneel-in {
    position: relative; width: 100%; gap: 6px; padding: 80px 18px 18px;
    background: linear-gradient(rgba(20, 12, 6, 0), rgba(20, 12, 6, .82) 50%);
  }
  .nh-label { align-self: flex-start; background: #fff; border-radius: 999px; padding: 2px 10px; }
  .nh-paneel-kop { font-size: 22px; line-height: 1.2; margin-top: 2px; text-wrap: balance; color: #fff; }
  .nh-paneel-tekst { font-size: 15px; color: #f3ece6; }
  .nh-paneel-link { align-self: flex-start; margin-top: 6px; font-size: 15px; color: #fff; border-bottom: 2px solid currentColor; }
  .nh-paneel-pijl { display: none; }
}
/* YOOtheme zet een kolomraster om de panelen; laat ze even hoog worden. */
.nh-deuren .uk-grid > * > .uk-panel, .nh-deuren .uk-grid > * > * { height: 100%; }
@media (max-width: 639px) {
  .nh-deuren .uk-grid { row-gap: 0; }
  .nh-deuren .uk-grid > * + * { margin-top: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .nh-paneel img, .nh-woning-foto img { transition: none !important; }
  .nh-baan { scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------- sectiekop */

.nh-sectiekop {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 8px 16px; margin-bottom: 18px;
}
.nh-sectiekop h2 {
  font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.015em;
  margin: 0; color: var(--nh-tekst);
}
@media (min-width: 640px) { .nh-sectiekop h2 { font-size: 34px; } .nh-sectiekop { margin-bottom: 26px; } }

/* ---------------------------------------------------------- carrousel */

.nh-carr { position: relative; }
.nh-baan {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 4px; scrollbar-width: none;
}
.nh-baan::-webkit-scrollbar { display: none; }
.nh-woning {
  flex: 0 0 78%; scroll-snap-align: start; border-radius: var(--nh-r); overflow: hidden;
  background: #fff; border: 1px solid var(--nh-lijn); display: flex; flex-direction: column;
  color: var(--nh-tekst) !important;
}
.nh-woning.nh-reserve { display: none; }
@media (min-width: 640px) { .nh-baan { gap: 16px; } .nh-woning { flex-basis: calc((100% - 16px) / 2.2); } }
@media (min-width: 1024px) { .nh-woning { flex-basis: calc((100% - 48px) / 4); } }
.nh-woning-foto { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--nh-perzik); }
.nh-woning-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.nh-woning:hover .nh-woning-foto img { transform: scale(1.04); }
.nh-woning-in { padding: 12px 16px 14px; display: flex; flex-direction: column; }
.nh-woning-kop { font-weight: 700; font-size: 16px; line-height: 1.3; }
.nh-woning-plaats { color: var(--nh-zacht); font-size: 15px; }
.nh-woning-alle { background: var(--nh-perzik); border-color: transparent; justify-content: center; }
.nh-alle-in { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.nh-alle-getal { font-weight: 800; font-size: 40px; line-height: 1; color: var(--nh-oranje-ink); font-variant-numeric: tabular-nums; }
.nh-alle-tekst { color: #3d3530; }
.nh-alle-link { margin-top: 12px; font-weight: 700; color: var(--nh-oranje-ink); }

.nh-rond {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--nh-lijn); background: #fff;
  color: var(--nh-tekst); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0;
}
.nh-rond:disabled { opacity: .35; cursor: default; }
.nh-pijl { display: none; position: absolute; top: calc(50% - 40px); z-index: 2; box-shadow: 0 4px 14px rgba(40, 25, 10, .16); }
.nh-pijl-l { left: -14px; }
.nh-pijl-r { right: -14px; }
.nh-baan-voet { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .nh-pijl { display: grid; } .nh-baan-voet { display: none; } }

/* ---------------------------------------------------------- community */

.nh-comm { display: grid; background: var(--nh-perzik); border-radius: 22px; overflow: hidden; }
.nh-comm-foto { aspect-ratio: 16 / 10; overflow: hidden; }
.nh-comm-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nh-comm-in { padding: 24px 20px 26px; }
.nh-comm-in h2 { font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; margin: 0; color: var(--nh-tekst); }
.nh-comm-in p { margin: 10px 0 0; color: #3d3530; max-width: 34em; }
.nh-cijfers { display: flex; gap: 28px; margin: 18px 0 4px; }
.nh-cijfers b { display: block; font-weight: 800; font-size: 30px; line-height: 1; color: var(--nh-oranje-ink); font-variant-numeric: tabular-nums; }
.nh-cijfers span { font-size: 14px; color: var(--nh-zacht); }
.nh-knoppen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nh-knop {
  display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; line-height: 1.4;
  border-radius: 999px; padding: 11px 20px; background: var(--nh-oranje-diep); color: #fff !important;
}
.nh-knop:hover { background: #A84B11; }
.nh-knop.nh-licht { background: #fff; color: var(--nh-tekst) !important; border: 1px solid var(--nh-lijn); }
@media (min-width: 640px) {
  .nh-comm { grid-template-columns: 1.05fr 1fr; }
  .nh-comm-foto { aspect-ratio: auto; order: 2; }
  .nh-comm-in { padding: 44px; }
  .nh-comm-in h2 { font-size: 36px; }
  .nh-cijfers b { font-size: 38px; }
}

/* ---------------------------------------------------------- verhalen */

/* Het bestaande YOOtheme-blok, met op de nieuwe pagina de klasse nh-verhalen
   op de sectie. Op mobiel het uitgelichte verhaal en drie in de lijst, zoals in
   de mockup; vijf maakte de lijst langer dan het hele eerste scherm. */
@media (max-width: 639px) {
  .nh-verhalen .uk-grid-divider > :nth-child(n+4) { display: none; }
}
