/* ============================================================
   pages/home.css — Homepage-specific styling
   WP TEMPLATE: front-page.php
   ============================================================ */

/* Hero title breaks onto two lines via the <br> in the markup */
.hero--home .hero__title { max-width: 20ch; }

/* ============================================================
   Region band — directly below the hero, brings Amstelland &
   Meerlanden visually to the foreground. Centered head with serif
   title, plus a row of pill-chips for the eight municipalities.
   ============================================================ */

.region-band {
  background:
    radial-gradient(circle at 20% 0%, rgba(50, 172, 152, 0.10), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(50, 172, 152, 0.08), transparent 50%),
    linear-gradient(180deg, var(--teal-bg) 0%, #F1FAF7 70%, var(--warm) 100%);
  border-block: 1px solid var(--teal-border);
  padding-block: clamp(40px, 7vw, 64px);
  position: relative;
  overflow: hidden;
}

.region-band__head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.region-band__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-teal);
  margin-bottom: 14px;
}
.region-band__icon svg { width: 32px; height: 32px; }

.region-band__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.region-band__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.region-band__sub {
  font-size: 15px;
  color: var(--mid);
  margin: 0;
}

/* Pill-chip grid — wraps fluidly, centered */
.region-band__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: var(--space-md) auto 0;
  max-width: 780px;
  padding: 0;
  position: relative;
  z-index: 1;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  background: var(--white);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: 0 1px 3px rgba(50, 172, 152, 0.08);
  transition:
    transform var(--duration) var(--ease-smooth),
    border-color var(--duration) var(--ease-smooth),
    box-shadow var(--duration) var(--ease-smooth);
}
.region-chip:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 6px 16px rgba(50, 172, 152, 0.18);
}

.region-chip__pin {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .region-band__icon { width: 54px; height: 54px; }
  .region-band__icon svg { width: 26px; height: 26px; }
  .region-band__title { font-size: 26px; }
  .region-band__chips { gap: 7px; }
  .region-chip { padding: 7px 13px 7px 11px; font-size: 13.5px; }
  .region-chip__pin { width: 14px; height: 14px; }
}

/* Org logo grid */
.section--orgs .org-logo-grid { margin-top: var(--space-md); }

/* Process steps */
.section--proces .steps { margin-top: var(--space-md); }

/* Home CTA banner connects to the footer */
.home-cta-banner { margin-bottom: 0; }

/* "Wat is BBL?" — video on the left, the three pillars on the right */
.bbl-layout {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.bbl-layout .bbl-pillars {
  grid-template-columns: 1fr;
  margin: 0;
}
.bbl-layout__media { display: flex; }
.bbl-layout__media .video-placeholder { width: 100%; }
.bbl-layout__pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.bbl-layout__cta { display: flex; }

@media (min-width: 900px) {
  .bbl-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
  }
  .bbl-layout__cta { justify-content: flex-end; }
}

/* ============================================================
   Sitemap page
   ============================================================ */
.sitemap-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
.sitemap-group { display: grid; gap: 6px; align-content: start; }
.sitemap-group__head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 4px;
}
.sitemap-group a { font-size: 15px; color: var(--charcoal); }
.sitemap-group a:hover { color: var(--teal-dark); text-decoration: underline; }
@media (min-width: 560px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .sitemap-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   Mobile homepage hero — reorder so the heading and buttons
   come first, then the video, then the body copy and the trust
   items. Uses display:contents so the desktop two-column layout
   (text left, video right) stays intact.
   ============================================================ */
@media (max-width: 767px) {
  .hero--home .hero__content,
  .hero--home .hero__media { display: contents; }
  .hero--home .container { gap: 22px; }
  .hero--home .hero__eyebrow  { order: 1; justify-self: start; margin-bottom: 0; }
  .hero--home .hero__title    { order: 2; margin-bottom: 0; }
  .hero--home .hero__actions  { order: 3; margin-bottom: 0; }
  .hero--home .hero__media .video-placeholder { order: 4; }
  .hero--home .hero__subtitle { order: 5; margin-bottom: 0; }
  .hero--home .hero__trust    { order: 6; }
}

/* ============================================================
   Home hero video — autoplay mode (js/hero-video.js)
   Only rendered when "Hero video weergave" = Automatisch
   afspelen. Until the script upgrades the block (and under
   prefers-reduced-motion) it looks and works like the normal
   click-to-play placeholder.
   ============================================================ */
.hero-video__media {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.hero-video.is-inline .hero-video__media { display: block; }
.hero-video.is-inline .play-icon { display: none; }

.hero-video__controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  gap: 8px;
}
.hero-video__controls[hidden] { display: none; }
.hero-video__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 43, 58, 0.6);
  color: #fff;
  cursor: pointer;
}
.hero-video__btn:hover { background: rgba(28, 43, 58, 0.8); }
.hero-video__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--charcoal);
}
.hero-video__btn svg { width: 20px; height: 20px; }
.hero-video__icon-play,
.hero-video__icon-sound { display: none; }
.hero-video.is-paused .hero-video__icon-pause { display: none; }
.hero-video.is-paused .hero-video__icon-play { display: block; }
.hero-video.is-unmuted .hero-video__icon-muted { display: none; }
.hero-video.is-unmuted .hero-video__icon-sound { display: block; }
