/* ============================================
   VitroWorks — Homepage layout
   ============================================ */

.hero {
  padding-block: var(--space-6) var(--space-7);
}

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* Width comes from the per-locale width attribute (vw_hero_graphic_attrs),
   height follows via the attribute-derived aspect ratio — so the browser
   reserves the box before the SVG arrives. No width:auto here: that would
   override the attribute and leave nothing to reserve, which is a layout
   shift on slow connections. max-width:100% keeps it inside the container. */
.hero__graphic {
  height: auto;
  max-width: 100%;
}

.hero__arrow {
  width: 20px;
  align-self: center;
  /* Nudge down 20% of the arrow's own height, relative — scales with it. */
  transform: translateY(20%);
}

@media (min-width: 640px) {
  .hero__grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: nowrap;
  }

  /* Flex items default to native size (flex-basis: auto) and shrink
     proportionally — not distorted, not force-equalized — only if the
     row is too wide for the hero's content width. min-width:0 lets that
     shrink go all the way down instead of stalling at the native size. */
  .hero__graphic {
    min-width: 0;
  }

  .hero__arrow {
    width: 18px;
    align-self: center;
    flex-shrink: 0;
    transform: translateY(20%) rotate(-90deg);
  }
}

@media (min-width: 1024px) {
  .hero__arrow {
    width: 24px;
    transform: translateY(20%) rotate(-90deg);
  }
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  padding-top: var(--space-8);
}

.hero__logo-wrap img {
  height: 40px;
  width: auto;
}

@media (min-width: 1024px) {
  .hero__logo-wrap img {
    height: 64px;
  }
}

.hero__intro {
  max-width: 60ch;
  margin-inline: auto;
  margin-top: var(--space-5);
  padding-inline: var(--space-5);
  color: var(--color-navy-soft);
  text-align: center;
}

@media (min-width: 640px) {
  .hero__intro {
    padding-inline: 0;
  }
}

/* Hersteldienst section */
.hersteldienst {
  background: var(--color-cyan);
  color: var(--color-white);
  padding-block: var(--space-9);
}

.hersteldienst__left {
  margin-bottom: var(--space-7);
}

.hersteldienst__van {
  width: 72px;
  /* margin-bottom: var(--space-4); */
}

.hersteldienst__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.hersteldienst__services {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: var(--space-4);
}

.hersteldienst__services .service-pill {
  text-decoration: none;
}

.hersteldienst__services > li {
  margin-block: var(--space-3);
}

.hersteldienst__body {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-5);
  max-width: 46ch;
}

.hersteldienst__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .hersteldienst__actions {
    flex-direction: row;
  }
  .hersteldienst__actions .btn {
    width: auto;
  }
}

@media (min-width: 640px) {
  .hersteldienst__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: center;
  }

  .hersteldienst__left {
    margin-bottom: 0;
  }

  .hersteldienst__services {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .hersteldienst__inner {
    gap: var(--space-5);
  }

  /* Scale the whole pill (thumb, text, badge spacing) up together on
     desktop, matching the design's larger proportions. Width now comes
     from .hersteldienst__services (fit-content + stretch), so both
     pills share the same width — sized to the widest pill's natural
     content — and the label's flex:1 pushes the info badge to the
     same right-aligned position in both, regardless of label length. */
  .service-pill {
    font-size: var(--fs-md);
    max-width: 100%;
  }

  .service-pill__thumb {
    margin-inline-start: 2em;
  }
}

/* Producten section */
.producten {
  padding-block: var(--space-9);
}

.producten__header {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.producten__icon {
  width: 91px;
  height: auto;
}

.producten__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-regular);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-navy);
  line-height: 1em;
}

@media (max-width: 449px) {
  .producten__icon {
    width: 86px;
  }

  .producten__title {
    font-size: 2.14rem;
  }
}

.producten__intro {
  color: var(--color-navy-soft);
  font-size: var(--fs-md);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  text-align: center;
}

.producten__intro strong {
  color: var(--color-navy);
}

.producten__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 640px) {
  .producten__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Photos on the homepage ---------------------------------------------
   The text column is 750px. Beside a paragraph that leaves under 300px for a
   photo, which reads as a thumbnail rather than as the work — so photos are
   stacked under their section instead, at the full column width, and keep the
   shape they were shot in (see the note on .photo in article.css). */
.home-photoband {
  margin-block: var(--space-7) var(--space-8);
}

/* Also stated without :has(), so a browser that lacks it still loses the
   inline descender gap under the band. */
.home-photoband picture,
.home-split picture {
  display: block;
}

.home-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
