/* ============ Hero slider ============ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.hero-track { display: flex; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: var(--hero-h-desk, 460px);
  display: block;
  text-decoration: none;
  color: inherit;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-bg.fallback {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%);
  padding: 40px 0;
}
.hero-slide-content { max-width: 720px; padding-bottom: 12px; }
.hero-center .hero-slide-content { margin: 0 auto; text-align: center; }
.hero-center .hero-slide-content p { margin-left: auto; margin-right: auto; }
.hero-center .hero-slide-meta { justify-content: center; }
.hero-slide-content h1, .hero-slide-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}
.hero-slide-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slide-content .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-slide-meta { display: flex; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,0.8); font-size: 0.85rem; margin-bottom: 18px; }
.hero-cta {
  display: inline-block;
  color: #fff;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
}
@media (hover: hover) and (pointer: fine) {
  .hero-arrow:hover { background: var(--accent); }
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s, opacity 0.25s, transform 0.25s;
}
.hero-dots button.active { background: var(--accent); width: 26px; }

/* Mobile heights live in this feature file too: it loads after app.css, and a
   base .hero-slide rule with equal specificity and later source order would
   otherwise override the mobile queries in app.css, keeping the hero at its
   desktop height on phones. */
@media (max-width: 860px) {
  .hero-slide { min-height: var(--hero-h-mob, 400px); }
}
@media (max-width: 640px) {
  .hero-slide { min-height: var(--hero-h-mob, 380px); }
}

/* ============ Hero slider variants ============ */
/* Cards: slide content floats as a card over the image */
body.hero-variant-cards .hero-slide-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%); padding: 40px 0 34px; }
body.hero-variant-cards .hero-slide-content {
  max-width: 460px;
  margin: 0;
  background: var(--surface);
  color: var(--ink-1);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--shadow-lg);
}
body.hero-variant-cards .hero-slide-content h1,
body.hero-variant-cards .hero-slide-content h2 { color: var(--ink-1); }
body.hero-variant-cards .hero-slide-content p { color: var(--ink-2); }
body.hero-variant-cards .hero-slide-meta { color: var(--ink-3); }
body.hero-variant-cards .hero-cta { color: var(--accent); border-bottom-color: var(--accent); }
body.hero-variant-cards .hero-slider.hero-center .hero-slide-content { margin: 0 auto; }

/* Split: content panel on the left, image fades right */
body.hero-variant-split .hero-slide-overlay { background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 65%, rgba(0,0,0,0) 100%); }
body.hero-variant-split .hero-slide-content { max-width: 620px; }
