/*
 * WCCM Hero, Homepage hero section.
 * Loaded on front page only via conditional enqueue.
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ── Hero shell ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(850px, 100svh);
  min-height: max(850px, 100vh); /* fallback */
  color: var(--color-white);
  overflow: hidden;
}

/* ── Background (poster + optional video) ────────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-navy-dark);
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero__video.is-ready {
  opacity: 1;
}

/* Colour grading, brand tint over photo/video */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 72% 38%, rgba(26, 122, 114, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 88%, rgba(232, 98, 42, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

/* ── Directional gradient (left dark → right clear) ─────────────────────── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(7, 24, 40, 0.82) 0%,
    rgba(7, 24, 40, 0.58) 35%,
    rgba(7, 24, 40, 0.15) 65%,
    rgba(7, 24, 40, 0.05) 100%
  );
  pointer-events: none;
}

/* ── Top/bottom contrast overlay ─────────────────────────────────────────── */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(6, 21, 36, 0.40) 0%,
    rgba(6, 21, 36, 0.05) 40%,
    rgba(6, 21, 36, 0.50) 100%
  );
  pointer-events: none;
}

/* ── Body (main content) ─────────────────────────────────────────────────── */
.hero__body {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-20));
  padding-bottom: var(--space-20);
}

/* ── Content block ───────────────────────────────────────────────────────── */
.hero__content {
  max-width: 680px;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-teal-light);
  margin-bottom: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  opacity: 0;
  animation: hero-fade-up 600ms var(--ease-out) 100ms forwards;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-teal-light), var(--color-teal));
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ── Headline ─────────────────────────────────────────────────────────────── */
.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: var(--weight-bold);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: hero-fade-up 600ms var(--ease-out) 220ms forwards;
}

/* ── Subheadline ─────────────────────────────────────────────────────────── */
.hero__sub {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.80);
  max-width: 580px;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: hero-fade-up 600ms var(--ease-out) 340ms forwards;
}

/* ── CTAs ─────────────────────────────────────────────────────────────────── */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  animation: hero-fade-up 600ms var(--ease-out) 460ms forwards;
}

.hero__ctas .btn--accent {
  box-shadow: 0 4px 24px rgba(232, 98, 42, 0.45);
}
.hero__ctas .btn--accent:hover {
  box-shadow: 0 8px 32px rgba(232, 98, 42, 0.55);
}

.hero__ctas .btn--outline-light {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}
.hero__ctas .btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* ── Feature strip ───────────────────────────────────────────────────────── */
.hero__strip {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 21, 36, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: var(--space-5);
  opacity: 0;
  animation: hero-fade-up 600ms var(--ease-out) 600ms forwards;
}

.hero__strip-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.hero__strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  position: relative;
}

.hero__strip-item + .hero__strip-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-5));
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}

.hero__strip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-base);
  background: rgba(26, 122, 114, 0.25);
  color: var(--color-teal-light);
  flex-shrink: 0;
  transition: background-color var(--duration-fast) var(--ease-in-out);
}
.hero__strip-item:hover .hero__strip-icon {
  background: rgba(26, 122, 114, 0.45);
}

.hero__strip-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  letter-spacing: var(--tracking-wide);
}

/* ── Entrance animations ─────────────────────────────────────────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduce motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__headline,
  .hero__sub,
  .hero__ctas,
  .hero__strip {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive: tablet ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__headline {
    font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    min-height: 100vh;
  }

  .hero__body {
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-12);
  }

  .hero__strip-list { gap: var(--space-6); }

  .hero__strip-item + .hero__strip-item::before {
    left: calc(-1 * var(--space-3));
  }
}

/* ── Responsive: mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero__body {
    padding-top: calc(var(--header-height) + var(--space-10));
    padding-bottom: var(--space-10);
    align-items: flex-start;
  }

  .hero__headline {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
  }

  .hero__sub {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__strip-list {
    gap: var(--space-5);
    justify-content: flex-start;
  }
  .hero__strip-item + .hero__strip-item::before { display: none; }
  .hero__strip-label { font-size: var(--text-xs); }
  .hero__strip-icon  { width: 30px; height: 30px; }
  .hero__strip-icon svg { width: 18px; height: 18px; }
}
