/* ==========================================================================
   HOME HERO SECTION
   ========================================================================== */

.home-hero {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  max-width: var(--wrap, min(1760px, 94vw));
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.2vw, 2.5rem);
}

/* ==========================================================================
   LAYOUT: Two columns - Content left, Gallery right
   ========================================================================== */

.home-hero {
  display: grid;
  grid-template-columns: minmax(320px, 480px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* ==========================================================================
   LEFT SIDE: Content
   ========================================================================== */

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Title */
.home-hero__content h1 {
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink, #1b2531);
  margin: 0 0 1rem;
}

/* Body text - first paragraph is the lead */
.home-hero__content .field--name-body {
  margin-bottom: 1.5rem;
}

.home-hero__content .field--name-body p:first-child {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft, #57626f);
  margin-bottom: 1rem;
}

.home-hero__content .field--name-body p:first-child strong {
  font-weight: 500;
  color: var(--ink-soft, #57626f);
}


/* ==========================================================================
   BADGES: 50+, 250+, Tiel
   ========================================================================== */

.home-hero__content .field--name-body::after {
  content: "";
  display: block;
}

/* We need to add badges via additional markup or pseudo-elements */
/* For now, create a badges section that can be added to the template */

.hero-badges {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  flex-direction: column;
}

.hero-badge strong {
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink, #1b2531);
  line-height: 1.2;
}

.hero-badge span {
  font-size: 0.8rem;
  color: var(--ink-soft, #57626f);
}

/* ==========================================================================
   BUTTONS: BEKIJK VOORRAAD + BEL
   ========================================================================== */

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-actions .btn-primary,
.home-hero__content .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-sm, 4px);
  border: none;
  cursor: pointer;
  background: var(--rust-600, #c1592b);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions .btn-primary:hover,
.home-hero__content .btn-primary:hover {
  background: var(--rust-700, #9c4420);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 10px 26px -10px rgba(22,32,43,.28));
}

.hero-actions .btn-outline,
.home-hero__content .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-sm, 4px);
  border: 1.5px solid var(--line-strong, #d2cec2);
  cursor: pointer;
  background: transparent;
  color: var(--ink, #1b2531);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-actions .btn-outline:hover,
.home-hero__content .btn-outline:hover {
  border-color: var(--rust-600, #c1592b);
  color: var(--rust-600, #c1592b);
}

/* ==========================================================================
   RIGHT SIDE: Image Gallery / Collage
   ========================================================================== */

.home-hero__gallery {
  display: block;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  height: 100%;
  min-height: clamp(350px, 32vw, 520px);
}

/* Main large image - spans 2 rows */
.hero-gallery .hero-main {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: var(--r-lg, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 10px 26px -10px rgba(22,32,43,.28));
}

/* Side images - stacked on the right */
.hero-gallery .hero-side {
  border-radius: var(--r-lg, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 10px 26px -10px rgba(22,32,43,.28));
}

.hero-gallery .hero-side-2 {
  grid-column: 2;
  grid-row: 1;
}

.hero-gallery .hero-side-3 {
  grid-column: 2;
  grid-row: 2;
}

/* Hide extra images (4, 5, 6) - only show 3 in collage */
.hero-gallery .hero-side-4,
.hero-gallery .hero-bottom,
.hero-gallery .hero-bottom-5,
.hero-gallery .hero-bottom-6 {
  display: none;
}

/* All images */
.hero-gallery article {
  position: relative;
  overflow: hidden;
}

.hero-gallery article picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-gallery article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-gallery article:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .home-hero__content {
    order: 1;
  }
  
  .home-hero__gallery {
    order: 2;
  }
  
  .hero-gallery {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .home-hero__content h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .hero-gallery {
    min-height: 250px;
    gap: 0.5rem;
  }
  
  .hero-badges {
    gap: 1.5rem;
  }
  
  .hero-badge strong {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .home-hero {
    padding-block: 1rem 1.5rem;
  }
  
  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 200px;
  }
  
  .hero-gallery .hero-main {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  
  .hero-gallery .hero-side-2 {
    grid-column: 1;
    grid-row: 2;
  }
  
  .hero-gallery .hero-side-3 {
    grid-column: 2;
    grid-row: 2;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   SOCIAL / VACATURE LINKS - "Handel", "Constructie", "Vacature"
   Floated row of pills, right-aligned
   ========================================================================== */

.home-hero__content .field--name-body p:has(> a > .fbl) {
  margin: 0;
}

.home-hero__content .fbl {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e3e0d8);
  border-radius: 999px;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  margin-left: 0.5rem;
  font-family: var(--font-body, 'Inter', Arial, sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink, #1b2531);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-hero__content .fbl img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.home-hero__content .fbl:hover {
  border-color: var(--rust-600, #c1592b);
  color: var(--rust-700, #9c4420);
  background: var(--rust-100, #f7e6da);
}

/* Clearfix so the floated pills don't collapse the container */
.home-hero__content .field--name-body::after {
  content: '';
  display: block;
  clear: both;
}

/* ==========================================================================
   CTA BUTTON - "Bekijk hier onze voorraad"
   This is THE call-to-action, make it stand out
   ========================================================================== */

.home-hero__content .field--name-field-priotekst {
  text-align: center;
}

.home-hero__content .field--name-field-priotekst hr {
  border: none;
  border-top: 1px solid var(--line, #e3e0d8);
}

.home-hero__content .field--name-field-priotekst p {
  margin: 0;
  line-height: 0;
}

.home-hero__content .button-voorraad {
  margin: 0;
}

.home-hero__content .button-voorraad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--rust-600, #c1592b);
  color: #fff;
  font-family: var(--font-display, 'Archivo', Arial, sans-serif);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 1rem 2.2rem;
  border-radius: var(--r-sm, 4px);
  text-decoration: none;
  box-shadow: var(--shadow-md, 0 10px 26px -10px rgba(22,32,43,.28));
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero__content .button-voorraad a:hover {
  background: var(--rust-700, #9c4420);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 22px 48px -14px rgba(22,32,43,.32));
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
  .home-hero__content .fbl {
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  }
  
  .home-hero__content .fbl img {
    width: 18px;
    height: 18px;
  }
  
  .home-hero__content .button-voorraad a {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }
}

