/* ============================================
   HERO COMPONENT
   ============================================ */

.hero {
  background: #111111;
  color: var(--white);
  padding: 250px 0 70px;
  position: relative;
  overflow: visible;
  margin-top: -110px;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: calc(-260px - env(safe-area-inset-top));
  left: 0;
  right: 0;
  height: calc(260px + env(safe-area-inset-top));
  background: #111111;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow);
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em; /* Better visual hierarchy - tighter spacing (Wix tip #2) */
  margin-bottom: 0; /* Controlled spacing */
}

.hero .eyebrow {
  color: var(--yellow) !important;
}

.hero p {
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
}

.cta-group {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-trust-signals {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-insurance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.hero-fskatt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.hero-fskatt svg {
  width: 14px;
  height: 14px;
  color: var(--yellow);
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(255, 214, 38, 0.4));
}

.hero-insurance .insurance-icon {
  width: 14px;
  height: 14px;
  color: var(--yellow);
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(255, 214, 38, 0.4));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
  display: block;
  margin: 0;
  padding: 0;
  align-self: center;
  font-size: 0;
}

.hero-insurance:hover .insurance-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(255, 214, 38, 0.6));
}

.insurance-text {
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-insurance .insurance-icon {
    transition: none;
  }
  
  .hero-insurance:hover .insurance-icon {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-trust-signals {
    gap: 12px;
  }
  
  .hero-insurance,
  .hero-fskatt {
    font-size: 11px;
    gap: 5px;
  }
  
  .hero-insurance .insurance-icon,
  .hero-fskatt svg {
    width: 12px;
    height: 12px;
  }
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list li {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
}

.stat span {
  display: block;
  font-size: 34px;
  font-weight: 800;
}

.stat p {
  color: rgba(255, 255, 255, 0.7);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 20px;
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 214, 38, 0.5);
  background-color: rgba(255, 214, 38, 0.1);
}

.highlight-card:hover::before {
  transform: scaleX(1);
}

.highlight-card small {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.highlight-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.proof-section {
  background: var(--white);
  padding: 90px 0;
}

.proof-section .tag-list {
  margin-top: 24px;
  margin-bottom: 48px;
}

.proof-section .tag-list li {
  background: var(--light-grey);
  border: none;
  color: var(--black);
  font-weight: 600;
  transition: 
    background-color 0.3s ease,
    transform 0.2s ease;
}

.proof-section .tag-list li:hover {
  background-color: var(--yellow);
  transform: translateY(-2px);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.quality-card {
  background: var(--light-grey);
  border: none;
  border-radius: 18px;
  padding: 28px;
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.quality-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quality-card:hover {
  transform: translateY(-4px);
}

.quality-card:hover::before {
  transform: scaleX(1);
}

.quality-card small {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
  opacity: 0.7;
}

.quality-card strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.quality-card p {
  color: var(--dark-grey);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .highlight-card,
  .quality-card {
    transition: none;
  }
  
  .highlight-card:hover,
  .quality-card:hover {
    transform: none;
  }
  
  .highlight-card::before,
  .quality-card::before {
    transition: none;
  }
  
  .proof-section .tag-list li:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(80px + env(safe-area-inset-top)) 0 60px;
    margin-top: -20px;
  }
}
