/* ======================================================
   HERO SLIDER – LAYOUT, KEN BURNS, NAVIGATION
   ====================================================== */

/* Outer shell (full-width hero, square corners, shadow) */
.hero-swiper-shell {
  position: relative;
  border-radius: 0; /* full-bleed look */
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(63, 127, 140, 0.12);
  height: 360px;
  /* dark fallback so any tiny gap at edges is invisible */
  background-color: #020617; /* ~slate-950 */
}

@media (min-width: 640px) { /* sm: */
  .hero-swiper-shell {
    height: 400px;
  }
}

@media (min-width: 1024px) { /* lg: */
  .hero-swiper-shell {
    height: 440px;
  }
}

/* Background image Ken Burns effect */
.hero-kenburns {
  animation: heroKenburns 16s ease-out infinite;
  transform-origin: center center;
  will-change: transform;
}

/* Subtle, professional pan + zoom – starts centered to avoid gaps */
@keyframes heroKenburns {
  0% {
    /* slightly zoomed, centered */
    transform: scale(1.06) translate3d(0px, 0px, 0);
  }
  100% {
    /* gentle push-in + small drift to bottom-right */
    transform: scale(1.10) translate3d(8px, 10px, 0);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-kenburns {
    animation: none !important;
    transform: scale(1.02);
  }
}

/* Dark overlay over image (light so image remains visible) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color:  rgba(17, 64, 77, 0.5);
}

/* Inner centering container */
.hero-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem; /* ~px-4 */
}

@media (min-width: 640px) {
  .hero-inner {
    padding-inline: 1.5rem; /* ~px-6 */
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    padding-inline: 2.5rem; /* ~px-10 */
  }
}

/* ======================================================
   CAPTION STRUCTURE & TYPOGRAPHY
   ====================================================== */

.hero-caption {
  max-width: 40rem; /* ≈ 640px */
  text-align: center;
  color: #ffffff;
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Glass card behind the text */
.hero-caption-card {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.06), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.28));
  border-radius: 0.75rem; /* card has subtle rounding */
  border: 1px solid rgba(148, 163, 184, 0.20);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.40);
  backdrop-filter: blur(9px);
  padding: 1rem 1.25rem;
}

@media (min-width: 768px) {
  .hero-caption-card {
    padding: 1.25rem 1.5rem;
  }
}

/* Eyebrow label */
.hero-eyebrow {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: rgba(241, 245, 249, 0.9);
}

/* Title */
.hero-title {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 1.9rem;
  }
}

/* Body text */
.hero-body {
  margin: 0 auto;
  max-width: 32rem; /* ~512px */
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.9);
}

@media (min-width: 640px) {
  .hero-body {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  .hero-body {
    font-size: 0.875rem;
  }
}

/* CTA container */
.hero-caption-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* Primary button */
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #3F7F8C;
  box-shadow: 0 12px 30px rgba(63, 127, 140, 0.35);
  text-decoration: none;
  transition:
    background-color 0.18s ease-out,
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

.hero-button:hover {
  background-color: #32636f;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(63, 127, 140, 0.4);
}

@media (min-width: 640px) {
  .hero-button {
    font-size: 0.75rem;
    padding: 0.55rem 1.6rem;
  }
}

/* ======================================================
   CAPTION ANIMATION (Revolution-like)
   ====================================================== */

/* Base state: off-screen & transparent */
.hero-caption,
.hero-caption-line-1,
.hero-caption-line-2,
.hero-caption-actions {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Container eased a bit more */
.hero-caption {
  transform: translate3d(0, 22px, 0);
}

/* Heading underline accent */
.hero-caption-heading {
  position: relative;
}

.hero-caption-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.4rem;
  width: 2.3rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3F7F8C, rgba(148, 163, 184, 0.4));
}

/* Active slide – staggered entrance */
.swiper-slide-active .hero-caption {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-duration: 0.7s;
  transition-delay: 0.06s;
}

.swiper-slide-active .hero-caption-line-1 {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-duration: 0.72s;
  transition-delay: 0.14s;
}

.swiper-slide-active .hero-caption-line-2 {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-duration: 0.78s;
  transition-delay: 0.22s;
}

.swiper-slide-active .hero-caption-actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-duration: 0.8s;
  transition-delay: 0.3s;
}

/* ======================================================
   SWIPER CONTROLS (ARROWS & BULLETS)
   ====================================================== */

.hero-swiper-shell .swiper-button-prev,
.hero-swiper-shell .swiper-button-next {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.55); /* slate-900/55 */
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-swiper-shell .swiper-button-prev::after,
.hero-swiper-shell .swiper-button-next::after {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero-swiper-shell .swiper-button-prev,
  .hero-swiper-shell .swiper-button-next {
    display: none;
  }
}

/* Pagination bullets */
.hero-swiper-shell .hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.hero-swiper-shell .hero-pagination .swiper-pagination-bullet-active {
  background: #3F7F8C; /* brand colour */
}
