/**
 * Hero Section Widget Styles
 *
 * Preserves the authentic design from design-inputs/02-hero.html:
 * - Versatile media background (HTML5 video, multi-image slideshow, single image)
 * - Cinematic drift keyframe zoom
 * - Left-heavy dual gradient overlay for typography contrast
 * - Primary orange CTA and secondary ghost button
 * - Trust proof points line
 * - Bottom SVG flight route with traveling airplane marker
 * - Full 100vw breakout, responsive stacking, and reduced motion compliance
 *
 * @package Universal_Elementor_Engine\Widgets\Hero
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

.elementor-widget-uwe-hero {
  overflow-x: clip;
}

.hero-section {
  --hero-blue-deep: #003463;
  --hero-blue: #0064c1;
  --hero-orange: #f8753a;
  --hero-orange-hover: #e4622a;
  --hero-orange-tint: #ffb08e;
  --hero-white: #ffffff;
  --hero-sand: #f6f8fb;
  --hero-ink: #0e2136;
  --hero-ink-soft: #5b6b7c;
  --hero-line: #e4e9e2;

  --hero-font-display: "Fraunces", 'Georgia', serif;
  --hero-font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  overflow: hidden;
  overflow-x: clip;
  background: var(--hero-blue-deep);
  box-sizing: border-box;
  padding: 80px 0 60px;
}

.hero-section * {
  box-sizing: border-box;
}

/* ==========================================================================
   Width Modes
   ========================================================================== */
.hero-section.hero-width-full {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: 100vw !important;
  overflow-x: clip;
}

.hero-section.hero-width-viewport {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hero-section.hero-width-boxed {
  max-width: var(--hero-max-width, 1240px);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   Height Modes
   ========================================================================== */
.hero-section.hero-height-viewport {
  /* Default viewport height — the widget's responsive controls set the real value inline. */
  height: 82vh;
  min-height: 82vh;
}

.hero-section.hero-height-custom {
  height: auto;
  min-height: 500px;
}

.hero-section.hero-height-auto {
  height: auto;
  min-height: auto;
}

/* ==========================================================================
   Media Background Layer — video, slideshow, and single image all fill
   .hero-media edge-to-edge and crop with object-fit: cover so the section
   background never distorts or leaves gaps on any device.
   ========================================================================== */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Video Background */
.hero-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-video.has-drift,
.hero-image.has-drift,
.hero-slide.has-drift {
  animation: hero-drift 26s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

/* Slideshow Background */
.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Single Image Background */
.hero-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Left-heavy gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(0, 52, 99, 0.92) 0%, rgba(0, 52, 99, 0.72) 32%, rgba(0, 52, 99, 0.28) 58%, rgba(0, 52, 99, 0.15) 100%),
    linear-gradient(0deg, rgba(0, 52, 99, 0.55) 0%, rgba(0, 52, 99, 0) 40%);
}

/* ==========================================================================
   Inner Content Container
   ========================================================================== */
.hero-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px);
  width: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 620px;
}

.hero-heading {
  font-family: var(--hero-font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--hero-white);
  margin-top: 0;
  margin-bottom: 22px;
}

.hero-heading em {
  font-style: italic;
  color: var(--hero-orange-tint);
  font-weight: 500;
}

.hero-desc {
  font-family: var(--hero-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 480px;
  margin-top: 0;
  margin-bottom: 34px;
}

/* ==========================================================================
   Call to Action Buttons
   ========================================================================== */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hero-font-body);
  font-weight: 800;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-btn-primary {
  background: var(--hero-orange);
  color: var(--hero-white);
  border: 1.5px solid transparent;
  box-shadow: 0 10px 20px rgba(248, 117, 58, 0.28);
}

.hero-btn-primary:hover {
  background: var(--hero-orange-hover);
  color: var(--hero-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(248, 117, 58, 0.36);
}

.hero-btn-ghost {
  border: 1.5px solid var(--hero-white);
  color: var(--hero-white);
  background: transparent;
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--hero-white);
}

/* ==========================================================================
   Trust & Proof Meta Line
   ========================================================================== */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--hero-font-body);
  font-size: 13px;
  flex-wrap: wrap;
}

.hero-meta-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  display: inline-block;
}

/* ==========================================================================
   Bottom Animated Flight Route & Plane
   ========================================================================== */
.hero-route-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-route {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 22px;
  display: block;
}

.hero-route line {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
}

.hero-route-plane {
  position: absolute;
  top: 50%;
  left: 2%;
  color: var(--hero-orange);
  transform: translate(-50%, -50%) rotate(90deg);
  animation: hero-fly var(--hero-fly-speed, 11s) linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes hero-fly {
  0% {
    left: 2%;
  }
  100% {
    left: 98%;
  }
}

/* Ensure the first slide is instantly visible with zero flash/fade pop on page load */
.hero-slideshow .hero-slide:first-child.is-active {
  transition: none;
}

/* ==========================================================================
   Responsive Breakpoints & Stacking
   ========================================================================== */
@media (max-width: 1024px) {
  /* Responsive sizing is driven by Elementor section_padding and height controls */
}

/* Optional: hide background video/image/slideshow on mobile (per-widget toggle) */
@media (max-width: 767px) {
  .hero-section.hero-hide-media-mobile .hero-media {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-section.hero-height-custom,
  .hero-section.hero-height-auto {
    height: auto;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 34px;
  }
  .hero-btn {
    width: 100%;
    text-align: center;
  }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-meta-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video.has-drift,
  .hero-image.has-drift,
  .hero-slide.has-drift {
    animation: none !important;
  }
  .hero-route-plane {
    animation: none !important;
    left: 50% !important;
  }
}
