/* ============================================================
   PAGE-HOME.CSS — Homepage "Linnen gids" (licht, editorial)
   Verbruikt tokens.css + sandbox-base.css. Generieke klasse-
   namen (.hm-hero, .search-card, .kosten, .top10, .art-card ...).
   Hardgecodeerde merkwaarden zijn vervangen door tokens;
   visuele uitkomst blijft identiek aan het oorspronkelijke
   ontwerp.
   ============================================================ */

/* body-font komt via .d2-scope in design2.css */

/* ---- 12-koloms raster ---- */
.wrap   { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c7 { grid-column: span 7; }
.c6 { grid-column: span 6; } .c5 { grid-column: span 5; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; }
@media (max-width: 960px) {
  .c8, .c7, .c6, .c5, .c4 { grid-column: span 12; }
  .c3 { grid-column: span 6; }
}

/* ---- Hero ---- */
.hm-hero {
  padding: 84px 0 64px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(247, 244, 237, .86), rgba(247, 244, 237, .88)),
    url('/assets/img/hero-uitvaartvinden.webp') center / cover no-repeat;
}
.hm-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(620px 320px at 85% 0%, rgba(176, 141, 63, .10), transparent 70%),
    radial-gradient(520px 300px at 8% 100%, rgba(47, 93, 70, .08), transparent 70%);
}
.hm-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.hm-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.hm-hero h1 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.08;
  margin: 20px 0 14px;
}
.hm-hero h1 em { font-style: italic; color: var(--cta); }
.hm-hero-sub {color: var(--ink-soft);font-size: 1rem;max-width: 620px;margin: 0 auto;}
/* Zoekblok - het hart van de pagina.
   Twee lagen: .hm-search-stack is de donkere achterlaag die onder
   de zoekkaart uitsteekt en de "Veel gezocht"-tags draagt. */
.hm-search-stack {
  margin: 36px auto 0; max-width: 874px;
  background: color-mix(in srgb, var(--paper-deep) 30%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px -18px rgba(36, 48, 41, .25);
}
.hm-search-stack .search-card { margin: 0; max-width: none; }
.hm-search-stack .quick-cities {
  margin: 0; max-width: none; opacity: 1;
  padding: 14px 24px 16px;
}
.hm-search-stack .quick-cities span { color: var(--card); }
/* Tags ingetogen: half-transparant, zachte rand, gedempte tekst */
.hm-search-stack .quick-cities a {
  background: color-mix(in srgb, var(--card) 22%, transparent);
  border-color: color-mix(in srgb, var(--card) 55%, transparent);
  color: var(--card);
  transition: background-color .25s ease, border-color .25s ease;
}
/* Hover: iets voller glas, maar nog steeds doorschijnend — geen positieverandering */
.hm-search-stack .quick-cities a:hover {
  background: color-mix(in srgb, var(--card) 42%, transparent);
  border-color: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--card);
}
.search-card {
  margin: 36px auto 0; max-width: 874px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.search-card label {
  display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 12px;
}
.hm-search-row { display: flex; gap: 12px; }
.hm-search-row .search-wrapper {
  flex: 1;
  min-width: 0;
}
.hm-search-row input[type="search"] {
  flex: 1; min-width: 0; height: 64px; padding: 0 22px;
  font: inherit; font-size: 1.15rem; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
}
.hm-search-row .search-wrapper input[type="search"] {
  width: 100%;
}
.hm-search-row input[type="search"]::placeholder { color: #9aa294; }
.hm-search-row input[type="search"]:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.hm-search-btn {
  height: 64px;
  padding: 0 34px;
  flex: 0 0 auto;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-danger);
  border: none;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hm-search-btn:hover { background: var(--color-ink); color: #fff; }
.hm-search-btn:active { transform: translateY(1px); }
@media (max-width: 620px) {
  .hm-search-row { flex-direction: column; }
  .hm-search-btn { justify-content: center; }
}
.search-hint { margin-top: 14px; font-size: 0.95rem; color: var(--ink-soft); }
.search-hint a { color: var(--cta); font-weight: 600; text-underline-offset: 3px; }

.quick-cities {
  max-width: 760px; margin: 20px auto 0;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  opacity: .5; /* iets minder opvallend */
}
.quick-cities span { font-size: 0.9rem; color: var(--ink-soft); margin-right: 2px; }
.quick-cities a {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink);
}
.quick-cities a:hover { border-color: var(--ink); }
.quick-cities a:active { background: var(--paper-deep); }
/* Badges staan in de logo-strip; hero-versie overal verborgen (ook mobiel) */
.trust-row { display: none; }

/* ---- Logo strip ---- */
.logo-strip {
  background: #25302a;
  padding: 28px 48px;
  position: relative;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  overflow: hidden;
}
.logo-strip__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  letter-spacing: 0.01em;
  text-align: center;
  transition: opacity .8s ease;
}
.logo-strip--animated .logo-strip__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 0 32px;
}
.logo-strip__text.fade-in { opacity: 1; }
.logo-strip__text.fade-out { opacity: 0; }
/* Vertrouwens-badges als tekst-laag in de logo-strip (wisselt af met logo's) */
.logo-strip__badges {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 14px 40px;
  flex-wrap: wrap;
}
.logo-strip__badges li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cdd7cd;
  font-size: 0.98rem;
  font-weight: 500;
  white-space: nowrap;
}
.logo-strip__badges svg { color: var(--gold); flex: 0 0 auto; }
.logo-strip__logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.logo-strip__logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .45;
}
.logo-strip--animated .logo-strip__logo {
  opacity: 0;
  transition: opacity .6s ease;
}
.logo-strip--animated .logo-strip__logo.fade-in { opacity: .45; }
.logo-strip__logo--wide {
  height: auto;
  width: 160px;
}
.logo-strip__logo--last-eer {
  position: relative;
  top: 5px;
}
@media (max-width: 768px) {
  .logo-strip { display: none; }
}

/* ---- USP: wat de site voor u doet ---- */
.usp { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.usp-titel { text-align: center; max-width: 960px; margin: 0 auto; }
.usp-grid {
  list-style: none; margin: 56px auto 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter);
}
.usp-item { text-align: center; padding: 0 20px; }
.usp-icon { display: flex; justify-content: center; margin-bottom: 26px; color: var(--cta); }
.usp-icon svg { width: 132px; height: 110px; }
.usp-icon .ico-soft { opacity: .45; }
.usp-icon .ico-cut { fill: var(--paper-deep); opacity: 1; }
.usp-kop {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em;
  font-size: 1.55rem; line-height: 1.2; color: var(--cta); margin-bottom: 12px;
}
.usp-item p { color: var(--ink-soft); font-size: 1rem; max-width: 38ch; margin: 0 auto; }
@media (max-width: 860px) {
  .usp-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---- Sectiekoppen ---- */
section { padding: 72px 0; }
.sec-head { margin-bottom: 38px; }
.sec-head--end { align-items: end; }
.sec-kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 10px;
}
.sec-title {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15;
}
.sec-link { font-weight: 600; color: var(--cta); text-underline-offset: 4px; }
.sec-action { text-align: right; }

/* ---- Kosten ---- */
.kosten {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kosten-intro p { color: var(--ink-soft); margin: 16px 0 26px; max-width: 46ch; }
.hm-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 1.05rem; border-radius: var(--radius); padding: 16px 28px;
}
.hm-btn-primary { background: var(--cta); color: #fff; border: 2px solid var(--cta); }
.hm-btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.hm-btn-primary:active { transform: translateY(1px); }
.hm-btn-ghost { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.hm-btn-ghost:hover { background: var(--ink); color: var(--paper); }
.hm-btn-ghost:active { transform: translateY(1px); }

.kosten-table { display: flex; flex-direction: column; }
.kosten-rij {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 24px;
  padding: 22px 4px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.kosten-naam { grid-column: 1; grid-row: 1; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.kosten-sub  { grid-column: 1; grid-row: 2; font-size: 0.95rem; color: var(--ink-soft); }
.kosten-prijs {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--cta);
  white-space: nowrap;
}
.kosten-balk { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; margin-top: 8px; }
.kosten-balk i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cta), #5d8a6f); }
.kosten-balk--100 i { width: 100%; }
.kosten-balk--73 i { width: 73%; }
.kosten-balk--45 i { width: 45%; }
.kosten-bron { margin-top: 14px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---- Artikelen ---- */
.art-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.art-card:hover { box-shadow: 0 16px 36px -18px rgba(36, 48, 41, .3); transform: translateY(-3px); }
.art-card:active { transform: translateY(-1px); }
.art-card a { text-decoration: none; color: inherit; }
.art-img { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.art-img img { width: 100%; height: 100%; object-fit: cover; }
.art-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36, 48, 41, .28), transparent 55%); }
.art-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.art-meta { display: flex; gap: 14px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.art-meta .tijd { color: var(--ink-soft); letter-spacing: 0; text-transform: none; font-weight: 500; }
.art-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.28; }
.art-intro { color: var(--ink-soft); font-size: 0.98rem; }
.art-lees { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--cta); font-size: 0.98rem; }
.art-card:hover .art-lees { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Top 10 ---- */
.top10 { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.top10-lijst { list-style: none; counter-reset: rang; display: flex; flex-direction: column; }
.top10-item { border-bottom: 1px solid var(--line); }
.top10-item:first-child { border-top: 2px solid var(--ink); }
.top10-item a {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 8px 20px; align-items: center;
  padding: 20px 8px; text-decoration: none; border-radius: 6px;
}
.top10-item a:hover { background: rgba(255, 253, 248, .85); }
.rang {
  font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--gold);
  text-align: center; line-height: 1; font-variant-numeric: tabular-nums;
}
.t10-naam { font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; line-height: 1.25; }
.t10-meta { font-size: 0.92rem; color: var(--ink-soft); }
.t10-score { text-align: right; white-space: nowrap; }
.t10-cijfer { font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: 6px; }
.t10-cijfer svg { color: var(--gold); }
.t10-reviews { display: block; font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 620px) {
  .top10-item a { grid-template-columns: 46px minmax(0, 1fr); }
  .top10-item a > span { min-width: 0; }
  .t10-naam, .t10-meta { overflow-wrap: anywhere; }
  .rang { font-size: 1.5rem; }
  .t10-score { grid-column: 2; text-align: left; }
}

/* ---- Slotband ---- */
.slot { text-align: center; }
.slot .sec-title { max-width: 640px; margin: 0 auto 14px; }
.slot p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 30px; }
.slot-acties { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   MOBIELE CORRECTIES (telefoons t/m 640px)
   - H1 kleiner zodat het lange woord "uitvaartondernemers"
     binnen de viewport past (voorheen liep dit door de rand).
   - Zoeklabel gecentreerd boven de zoekbalk.
   - "Veel gezocht:" op een eigen gecentreerde regel bovenaan,
     de stad-chips gecentreerd daaronder.
   - Kostentabel: prijs onder naam/omschrijving i.p.v. een
     nowrap-kolom die tegen de rand botst; balken binnen breedte.
   ============================================================ */
@media (max-width: 640px) {
  .hm-hero h1 {
    font-size: clamp(1.35rem, 8.2vw, 2.15rem);
    line-height: 1.12;
  }

  /* Zoeklabel gecentreerd in het zoekkader */
  .search-card label { text-align: center; }

  /* Homepage: "Veel gezocht:"-label en hint-aanloop verbergen op mobiel */
  .hm-search-stack .quick-cities span { display: none; }
  .search-hint-lead { display: none; }

  /* "Veel gezocht:" als eigen regel bovenaan, chips gecentreerd eronder */
  .quick-cities span {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    margin: 0 0 2px;
  }

  /* Kostentabel: één kolom, prijs onder de omschrijving */
  .kosten-rij { grid-template-columns: 1fr; gap: 4px 0; }
  .kosten-naam { grid-column: 1; grid-row: 1; }
  .kosten-sub  { grid-column: 1; grid-row: 2; }
  .kosten-prijs {
    grid-column: 1; grid-row: 3;
    align-self: start; text-align: left;
    margin-top: 6px; white-space: normal;
    font-size: 1.4rem;
  }
  .kosten-balk { grid-column: 1; }
}
