/* ═══════════════════════════════════════════
   Hero — Address Capture Section
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  z-index: auto;
  background: linear-gradient(135deg, #f0fdf9 0%, #ecfdf5 40%, #f0f9ff 100%);
  padding: var(--space-16) 0 var(--space-12);
  overflow: visible;
}

/* Subtle pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(5,200,158,0.05) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

/* ── Left Column: Text + Input ── */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 480px;
}

/* ── Address Input Group ── */
.hero__input-group {
  position: relative;
  display: flex;
  gap: var(--space-2);
  max-width: 520px;
}

.hero__input-wrap {
  position: relative;
  flex: 1;
  z-index: auto;
}
/* Elevate only when suggestions are visible, so hero doesn't cover sticky nav */
.hero__input-wrap:focus-within,
.hero__input-wrap.has-suggestions {
  z-index: var(--z-dropdown, 300);
}

.hero__input-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 1;
}

.hero__input {
  width: 100% !important;
  height: 64px !important;
  padding: 0 var(--space-5) 0 52px !important;
  font-family: var(--font-family) !important;
  font-size: var(--text-lg) !important;
  color: var(--color-text);
  background: var(--color-surface) !important;
  border: 2px solid var(--color-border) !important;
  border-radius: var(--radius-lg) !important;
  outline: none;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  box-sizing: border-box !important;
}

.hero__input::placeholder {
  color: var(--color-text-muted);
}

.hero__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-50);
}

.hero__input-btn {
  height: 56px;
  padding: 0 var(--space-6);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-normal);
  white-space: nowrap;
}
.hero__input-btn:hover {
  background: var(--color-primary-dark);
}

/* ── Address Autocomplete Suggestions ── */
.hero__suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  max-height: 240px;
  overflow-y: auto;
  display: none;
}
.hero__suggestions.is-open {
  display: block;
}

.hero__suggestion {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
}
.hero__suggestion:last-child {
  border-bottom: none;
}
.hero__suggestion:hover,
.hero__suggestion.is-active {
  background: var(--color-primary-50);
}
.hero__suggestion strong {
  color: var(--color-primary-dark);
}

/* ── Trust Badges ── */
.hero__trust {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.01em;
}

.hero__trust-check {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* (rotator removed — using static trust badges) */

.hero__trust-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ── Right Column: Logo Grid ── */
.hero__logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-6);
}

.hero__logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
  min-height: 64px;
}

/* Logo rotation — only the image fades, card stays */
.hero__logo-item .hero__logo-img {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero__logo-item.is-fading .hero__logo-img {
  opacity: 0;
  transform: scale(0.85);
}
.hero__logo-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}

.hero__logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.8;
  transition: all var(--transition-normal);
}
.hero__logo-item:hover .hero__logo-img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Stats Bar (under hero, optional) ── */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  padding: var(--space-6) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ═══ Summary Card (shown after address selected) ═══ */
.hero-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.hero-summary__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.hero-summary__title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.hero-summary__address {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: var(--leading-tight);
}

/* Header actions: Skift adresse + Kopier link */
.hero-summary__header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.hero-summary__change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-weight: var(--weight-medium);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.hero-summary__change svg {
  flex-shrink: 0;
}
.hero-summary__change:hover {
  color: var(--color-primary);
  background: var(--color-primary-50);
}

.hero-summary__copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-weight: var(--weight-medium);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.hero-summary__copy svg {
  flex-shrink: 0;
}
.hero-summary__copy:hover {
  color: var(--color-primary);
  background: var(--color-primary-50);
}

/* Inline coverage (inside card) */
.coverage--inline {
  padding: 0;
}
.coverage--inline .coverage__providers {
  margin-bottom: var(--space-2);
}
.coverage--inline .coverage__messages {
  min-height: 20px;
}

/* Result area (compact) */
.hero-summary__result {
  padding-top: var(--space-3);
}

.hero-summary__body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
}

.hero-summary__connections {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-summary__connection {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary-dark);
}

.hero-summary__connection-icon {
  width: 16px;
  height: 16px;
}

.hero-summary__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero__logos {
    grid-template-columns: repeat(6, 1fr);
    padding: 0;
    gap: var(--space-3);
  }
  .hero__logo-item {
    min-height: 48px;
    padding: var(--space-3);
  }
  .hero__logo-img {
    height: 22px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--space-8) 0 var(--space-6);
  }
  .hero__input-group {
    flex-direction: column;
    max-width: 100%;
  }
  .hero__input-btn {
    width: 100%;
  }
  .hero__trust {
    display: none;
  }
  .hero__logos {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }
  .hero__stats {
    gap: var(--space-6);
  }
  .hero-summary {
    padding: var(--space-4);
  }
  .hero-summary__header {
    flex-direction: column;
    gap: var(--space-2);
  }
  .hero-summary__address {
    font-size: var(--text-lg);
  }
  .hero-summary__header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .hero-summary__change,
  .hero-summary__copy {
    font-size: var(--text-xs);
  }
}
