/*
 * Module: Hero
 *
 * Full-width cover with overlay, centered or left-aligned content.
 * Used on: Homepage
 * Dependencies: tokens.css, animations.css
 */

/* ── Centered (default) ── */
.hero.wp-block-cover {
  min-height: 650px;
  padding-top: var(--space-100);
  padding-bottom: var(--space-xl);
}
/* Force navy overlay @ 0.7 regardless of block-level dimRatio drift */
.hero.wp-block-cover > .wp-block-cover__background {
  background-color: var(--color-navy) !important;
  opacity: 0.7 !important;
}
.hero .hero__eyebrow {
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  text-transform: uppercase; color: var(--color-accent);
  max-width: 522px; margin: 0 auto;
}
.hero .hero__title {
  font-family: var(--font-heading); font-weight: var(--fw-semibold); font-size: var(--font-4xl);
  text-transform: lowercase; max-width: 856px; line-height: 1;
  color: var(--color-white); margin: var(--space-3xs) auto var(--space-lg);
}
.hero .wp-block-button__link {
  background: var(--color-success);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.9px;
  padding: 15px 25px; height: 50px;
}
.hero .wp-block-button__link:hover {
  background: #029D6A;
}

/* ── Entrance animation ── */
.hero .hero__eyebrow,
.hero .hero__title,
.hero .wp-block-buttons {
  opacity: 0;
  animation: heroFadeUp 0.7s ease both;
}
.hero .hero__eyebrow   { animation-delay: 0.3s; }
.hero .hero__title     { animation-delay: 0.5s; }
.hero .wp-block-buttons { animation-delay: 0.7s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero__eyebrow,
  .hero .hero__title,
  .hero .wp-block-buttons {
    opacity: 1; animation: none;
  }
}

/* ── Left-aligned variant ── */
.hero--left.wp-block-cover {
  min-height: 650px;
  padding: var(--space-100) var(--space-2xl) var(--space-xl);
  align-items: center;
}
.hero--left .wp-block-cover__inner-container {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
}
.hero--left .hero__content {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
}
.hero--left .hero__text-block { max-width: 620px; }
.hero--left .hero__eyebrow {
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  text-transform: uppercase; color: var(--color-accent);
  line-height: 1.4; margin-bottom: var(--space-xs); margin-left: 0;
  text-wrap: balance;
}
.hero--left .hero__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(36px, 5vw, 56px);
  text-transform: lowercase; line-height: 1.05; color: #fff;
  margin-bottom: var(--space-sm);
}
.hero--left .hero__subhead {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6; color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-lg);
}
.hero--left .wp-block-button__link {
  background: var(--color-success);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.9px;
  padding: 15px 30px; height: 50px;
}
.hero--left .wp-block-button__link:hover { background: #029D6A; }

/* Left hero entrance */
.hero--left .hero__eyebrow,
.hero--left .hero__title,
.hero--left .hero__subhead,
.hero--left .wp-block-buttons {
  opacity: 0; animation: heroFadeUp 0.7s ease both;
}
.hero--left .hero__eyebrow    { animation-delay: 0.2s; }
.hero--left .hero__title      { animation-delay: 0.4s; }
.hero--left .hero__subhead    { animation-delay: 0.6s; }
.hero--left .wp-block-buttons { animation-delay: 0.8s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero.wp-block-cover { min-height: 500px; padding: 40px 24px 60px; }
  .hero .hero__title { font-size: 44px; }
  .hero--left.wp-block-cover { min-height: 550px; padding: 60px 24px; }
  .hero--left .hero__text-block { max-width: 100%; }
}
@media (max-width: 768px) {
  .hero.wp-block-cover { min-height: 400px; padding: 48px 16px 56px; }
  .hero .hero__eyebrow { font-size: 14px; max-width: 100%; }
  .hero .hero__title { font-size: 32px; max-width: 100%; }
  .hero--left.wp-block-cover { min-height: 450px; padding: 48px 16px; }
  .hero--left .hero__eyebrow { font-size: 16px !important; }
  .hero--left .hero__subhead { font-size: 16px; line-height: 1.5; }
}
