/*
 * Alf Theme — Home Page Hero Section
 * Figma node: 665:6289
 *
 * Full-viewport cross-fading slider. Content sticks to the bottom-left.
 * Heading allows inline <span class="accent"> for red accent words.
 */

/* ═══════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-dark);
  padding: 144px var(--section-pad-x) 80px;
}

/* ═══════════════════════════════════════════════════════════════════
   BACKGROUND SLIDES (cross-fade)
   ═══════════════════════════════════════════════════════════════════ */
.hero__slides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

/* Left-to-right dark gradient: legible text on left, photo visible on right */
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(37, 37, 37, 0.95) 0%,
      rgba(37, 37, 37, 0.80) 50%,
      rgba(0, 0, 0, 0) 100%);
}

/* ═══════════════════════════════════════════════════════════════════
   FOREGROUND CONTENT
   ═══════════════════════════════════════════════════════════════════ */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Text panels ─────────────────────────────────────────────────── */
.hero__panels {
  position: relative;
}

.hero__panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.hero__panel.is-active {
  display: flex;
}

/* ── Heading ─────────────────────────────────────────────────────── */
.hero__heading {
  font-size: 72px;
  font-weight: 400;
  /* Regular — matches Figma */
  line-height: 1;
  /* 100% — matches Figma */
  color: #fff;
  margin: 0;
}

.hero__heading .accent {
  color: var(--color-primary);
  /* #CD261D */
}

/* ── Subheading ──────────────────────────────────────────────────── */
.hero__subheading {
  font-size: var(--font-size-body-md);
  /* 16px */
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.5;
}

/* ── Pagination dots ─────────────────────────────────────────────── */
.hero__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.hero__dot.is-active {
  background-color: var(--color-primary);
  transform: scale(1.2);
}

.hero__dots--decorative .hero__dot {
  cursor: default;
  pointer-events: none;
}

/* ── Actions: nav buttons + CTA ──────────────────────────────────── */
.hero__actions {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 0 0;
}

.hero__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 48px;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #fff;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.hero__nav-btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.hero__nav-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background-color: var(--color-bg);
  /* #F8FAF0 cream */
  color: var(--color-dark);
  /* #252525 */
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-regular);
  line-height: 1;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__cta:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero__cta svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* Tablet landscape */
@media (max-width: 1280px) {
  .hero {
    padding: 120px 80px 64px;
  }

  .hero__heading {
    font-size: 56px;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .hero {
    padding: 100px 60px 56px;
    min-height: 80vh;
  }

  .hero__heading {
    font-size: 44px;
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero {
    padding: 80px 24px 48px;
    min-height: 70vh;
  }

  .hero__heading {
    font-size: 32px;
  }

  .hero__inner {
    gap: 24px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 16px;
  }

  .hero__nav {
    flex: 0 0 auto;
  }

  .hero__cta {
    width: 100%;
    justify-content: center;
  }
}