/* Daylight theme — hero-lead. Split from daylight.css (see docs/adr/0002). */

/* ---------- Hero (homepage 2a): full-bleed video/photo, lead form IN the hero ----------
   The backdrop (video on the homepage, unit photo on city pages) runs behind
   both columns under a spruce-tinted gradient; left is the pitch in white
   type, right is the capture card (one step — ort, antal, e-post, telefon,
   budget — handled by js/hero-form.js). */
.hero-lead {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 660px;
}

.hero-lead > img,
.hero-lead > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 36, 28, 0.92) 0%, rgba(16, 36, 28, 0.72) 42%, rgba(16, 36, 28, 0.28) 78%, rgba(16, 36, 28, 0.15) 100%);
}

.hero-lead .container {
  position: relative;
  z-index: 1; /* above the ::after gradient */
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4.4vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 56px);
}

.hero-lead .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
}

.hero-lead .over {
  color: var(--c-dis);
  font-size: 0.9rem; /* a step up from the 0.78rem base — hero kicker carries the category */
}

.hero-lead h1 {
  font-size: clamp(2.7rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--c-vit);
  max-width: 13ch;
}

.hero-lead .sub {
  margin-top: 22px;
  max-width: 42ch;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-lead .hero-call {
  margin-top: 26px;
}

.hero-lead .link-phone {
  color: var(--c-vit);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.hero-lead .link-phone:hover {
  color: var(--c-vit);
  border-bottom-color: var(--c-vit);
}

/* USP ledge (markup via partials.heroUsps/heroSteps): ONE frosted card
   split by hairlines — the card vocabulary (quiet surface, hairline, r-lg)
   at chip scale. Spruce-tinted glass so it reads as the hero gradient
   condensing into a shelf, not a milky overlay. The homepage fills it with
   icon USPs (5 cells), city heroes with the numbered process steps (4);
   column-flow keeps the cells equal either way. */
.hero-usps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 44px;
  background: rgba(16, 36, 28, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-usps li {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px 14px 13px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.hero-usps li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-usps svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--c-dis);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Step number in the icon slot (city heroes); line-height matches the
   18px icon so both fills share the same cell rhythm */
.hero-usps .usp-no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 18px;
  color: var(--c-dis);
}

@media (max-width: 640px) {
  /* 2-up cells; an odd last cell spans the full row. Hairlines move to
     nth-child rules since the left-border chain breaks on wrap. */
  .hero-usps {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }

  .hero-usps li + li {
    border-left: 0;
  }

  .hero-usps li:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-usps li:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-usps li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* The capture card */
.hero-form-card {
  position: relative; /* anchors the absolutely-positioned honeypot */
  background: var(--c-dagsljus);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  padding: 32px 34px 28px;
}

.hero-form-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--tx);
}

.hero-form-card .form-sub {
  margin: 4px 0 20px;
  font-size: 0.9rem;
  color: var(--c-ink-muted);
}

.hero-form-card .form-field {
  margin-bottom: 14px;
}

.hero-miniform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.hero-miniform-grid .form-field--full {
  grid-column: 1 / -1;
}

.hero-miniform-actions .btn--primary {
  width: 100%;
  justify-content: center;
  padding: 14px 26px;
  margin-top: 4px;
}

/* Trust badge: verifiable repeat-customer claim (12 of 25 companies on
   GM Case-lista 2.0 have booked more than once, 2026-07-17 — keep the
   copy in sync with the board). Replaces the old Google-stars placeholder. */
.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line-soft);
  font-size: 0.85rem;
  color: var(--c-ink-muted);
}

.trust-badge b {
  color: var(--tx);
}

.trust-badge--inline {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  justify-content: flex-start;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Placeholder chip (from the v2 mockups): impossible to miss in review */
.ph-chip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6d1d;
  background: #f5ecd4;
  border: 1px dashed #c9a94e;
  border-radius: 3px;
  padding: 2px 7px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  /* Stack: pitch above, capture card below, photo + gradient behind both */
  .hero-lead .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-miniform-grid {
    grid-template-columns: 1fr;
  }

  .hero-form-card {
    padding: 24px 22px 22px;
  }
}
