/* =============================================================
   NUVETRIS – hero-slider.css
   Hero section with image slider and audience cards
============================================================= */

.hero {
  position: relative;
  width: 100%;
  height: clamp(680px, 85vh, 1000px);
  overflow: hidden;
  background: #ffffff;
}

/* --- Slider --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero-slide--active {
  opacity: 1;
  pointer-events: auto;
}

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

/* Gradient: transparent → white (not greenish base) */
.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 360px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* --- Headline (top-left) --- */
.hero-headline {
  position: absolute;
  top: 56px;
  left: 40px;
  z-index: 3;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero-headline .eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.hero-line {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  color: var(--color-text);
  padding: 5px 14px 7px;
  border-radius: 4px;
  line-height: 1.25;
  display: inline-block;
}

.hero-h1 .hero-line + .hero-line {
  margin-left: 12px;
}

/* --- Dots (top-right) --- */
.hero-dots {
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 3;
  display: flex;
  gap: 9px;
  align-items: center;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.hero-dot--active,
.hero-dot:hover {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* --- Audience Cards ---
   Live OUTSIDE .hero in the DOM.
   Overlap the hero bottom via negative margin-top.
   max-width matches the content sections below.
------------------------------------------------ */
.audience-cards {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: -280px;
  padding: 0 max(32px, calc((100% - 1200px) / 2 + 32px));
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

a.audience-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 40px rgba(28, 45, 45,0.14);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

a.audience-card:hover {
  box-shadow: 0 16px 56px rgba(28, 45, 45,0.2);
  transform: translateY(-3px);
  text-decoration: none;
}

.card-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.card-title {
  font-family: var(--font-headline);
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-text);
  font-weight: 400;
  margin: 4px 0;
}

.card-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
}

.card-link {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s, color 0.15s;
}

.card-link:hover {
  color: #006666;
  gap: 10px;
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero { height: 75vh; }

  .hero-h1 { font-size: 30px; }

  .hero-headline {
    top: 36px;
    left: 24px;
    max-width: calc(100% - 60px);
  }

  .audience-cards {
    margin-top: -220px;
    padding: 0 24px;
  }
}

@media (max-width: 600px) {
  .hero { height: 65vh; }

  .hero-h1 { font-size: 24px; }

  .hero-headline {
    top: 24px;
    left: 16px;
    max-width: calc(100% - 40px);
  }

  .hero-dots { top: 18px; right: 16px; }

  .audience-cards {
    grid-template-columns: 1fr;
    margin-top: -140px;
    padding: 0 16px;
    gap: 12px;
  }

  a.audience-card { padding: 22px 22px; }
  .card-title { font-size: 19px; }

  .hero-gradient { height: 240px; }
}
