/* ============================================================
   hero.css — Hero Section Styles
   Martin Gerber Entrümpelung & Service
   ============================================================ */

/* ============================================================
   SPLIT HERO (Homepage) — Text Left, Image Right
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(520px, 82vh, 720px); /* spec: mandatory clamp */
  overflow: hidden;
  background-color: var(--color-primary);
}

/* Left side: content */
.hero-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-10) var(--space-16) 0;
  color: var(--color-white);
  /* Localized gradient overlay on text side only — per anti-overlay spec */
  background: linear-gradient(
    to right,
    rgba(27, 58, 92, 0.92) 0%,
    rgba(27, 58, 92, 0.82) 45%,
    rgba(27, 58, 92, 0) 55%
  );
}

.hero-split__content .container {
  padding-inline: 0;
}

.hero-split__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-split h1 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.hero-split__lead {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.85);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  max-width: 480px;
}

/* Benefit checklist */
.hero-split__benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-split__benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: rgba(255,255,255,0.9);
  font-weight: var(--font-weight-medium);
}

.hero-split__benefits li i {
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 1rem;
}

/* Action buttons */
.hero-split__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Trust signal under buttons */
.hero-split__trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-split__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
}

.hero-split__trust-item i {
  color: var(--color-accent);
}

.hero-split__trust-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
}

/* Right side: image — full bleed, no overlay */
.hero-split__image {
  position: relative;
  overflow: hidden;
}

.hero-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   COMPACT HERO (Service & Location pages)
   Background image + localized gradient — text side only
   ============================================================ */
.hero-compact {
  position: relative;
  min-height: clamp(280px, 45vh, 460px); /* spec: mandatory clamp */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.hero-compact__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Anti-overlay spec: gradient on left (text) side only, fully transparent by 55% */
.hero-compact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(27, 58, 92, 0.88) 0%,
    rgba(27, 58, 92, 0.75) 35%,
    rgba(27, 58, 92, 0.3) 45%,
    transparent 55%
  );
}

.hero-compact__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-12) 0 var(--space-10);
  max-width: 55%;
}

.hero-compact__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-3);
}

.hero-compact__breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.hero-compact__breadcrumb a:hover { color: var(--color-accent-light); }
.hero-compact__breadcrumb .sep { color: rgba(255,255,255,0.3); }

.hero-compact h1 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.hero-compact__lead {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-6);
  max-width: 440px;
  line-height: var(--line-height-relaxed);
}

.hero-compact__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 300px;
  }

  .hero-split__content {
    padding: var(--space-10) 0;
    background: var(--color-primary);
  }

  .hero-split__image { grid-row: 1; }

  .hero-compact__content { max-width: 90%; }

  .hero-compact::before {
    background: linear-gradient(
      to bottom,
      rgba(27, 58, 92, 0.9) 0%,
      rgba(27, 58, 92, 0.7) 60%,
      transparent 100%
    );
  }
}

@media (max-width: 480px) {
  .hero-split__trust { flex-direction: column; align-items: flex-start; }
  .hero-split__trust-sep { display: none; }
  .hero-compact__actions { flex-direction: column; }
  .hero-compact__actions .btn-primary,
  .hero-compact__actions .btn-outline { width: 100%; text-align: center; justify-content: center; }
}
