/* Aeromec — cinematic video hero banner */

.aeromec-hero.aeromec-hero--video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  min-height: clamp(560px, 92vh, 960px);
  padding:
    clamp(7rem, 20vh, 11rem)
    var(--aeromec-inline-pad)
    clamp(3rem, 8vh, 5rem);
  display: flex;
  align-items: flex-end;
  color: var(--aeromec-white);
  background: #021a3a;
}

.aeromec-hero.aeromec-hero--video::before {
  display: none;
}

.aeromec-hero.aeromec-hero--video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(16, 14, 79, 0.88) 0%, rgba(0, 89, 96, 0.5) 42%, rgba(16, 14, 79, 0.35) 68%, rgba(10, 12, 40, 0.82) 100%),
    linear-gradient(180deg, rgba(2, 26, 58, 0.35) 0%, transparent 28%, rgba(10, 15, 26, 0.92) 100%),
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(56, 189, 248, 0.28), transparent 58%);
}

.aeromec-hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.aeromec-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.06) brightness(0.92);
  animation: AeromecHeroVideoKenBurns 22s ease-in-out infinite alternate;
}

.aeromec-hero.aeromec-hero--video .wp-block-html {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0 !important;
}

.aeromec-hero-video-content {
  position: relative;
  z-index: 2;
  max-width: min(820px, 100%);
  width: 100%;
}

.aeromec-hero.aeromec-hero--video .aeromec-hero-title,
.aeromec-hero.aeromec-hero--video h1 {
  font-size: clamp(2.75rem, 7.5vw, 5.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 0.35rem !important;
  color: var(--aeromec-white) !important;
  background: linear-gradient(135deg, #ffffff 18%, rgba(186, 230, 253, 0.98) 72%, rgba(125, 211, 252, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.35));
}

.aeromec-hero.aeromec-hero--video .aeromec-hero-tagline,
.aeromec-hero.aeromec-hero--video h2.aeromec-hero-tagline {
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(1.35rem, 3.2vw, 2.15rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: rgba(224, 242, 254, 0.96) !important;
  max-width: 22ch;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
}

.aeromec-hero.aeromec-hero--video .aeromec-hero-copy {
  font-size: clamp(1rem, 1.8vw, 1.12rem) !important;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.86) !important;
}

.aeromec-hero.aeromec-hero--video .aeromec-hero-actions {
  margin-top: 0.5rem;
}

.aeromec-hero.aeromec-hero--video .aeromec-eyebrow-pulse {
  margin-bottom: 1rem !important;
}

@keyframes AeromecHeroVideoKenBurns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.14);
  }
}

body.aeromec-site:has(.aeromec-hero--video) .aeromec-header-shell {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
}

@media (max-width: 781px) {
  .aeromec-hero.aeromec-hero--video {
    min-height: clamp(480px, 88vh, 720px);
    padding-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aeromec-hero-video {
    animation: none !important;
    transform: scale(1.06);
  }
}
