/* Hero Slider CLS-safe styles */
.hero-slider { position: relative; color: #fff; }
.hero-slider .hero-aspect {
  /* Desktop: fill viewport height for full, immersive hero */
  width: 100%;
  height: 100svh;
  min-height: 560px;
  background: #0e0e10; /* fallback while images load */
}
@media (max-width: 991.98px) {
  /* On smaller screens, use aspect-ratio to stabilize height */
  .hero-slider .hero-aspect { aspect-ratio: 16/10; height: auto; min-height: 360px; }
}
@media (max-width: 575.98px) {
  .hero-slider .hero-aspect { aspect-ratio: 4/3; height: auto; min-height: 300px; }
}

/* Swiper basics */
.hero-slider .swiper { height: 100%; }
.hero-slider .swiper-wrapper { height: 100%; }
.hero-slider .swiper-slide { position: relative; overflow: hidden; height: 100%; }
.hero-slider .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Enhanced touch targets for pagination */
.hero-slider .swiper-pagination {
  padding: 12px 0; /* Add vertical padding for better touch area */
}

.hero-slider .swiper-pagination-bullet { 
  background: rgba(192,192,192,.85); 
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 10px !important; /* Increased horizontal spacing */
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
  /* Create a larger touch target area */
}

/* Create a larger touch target area without affecting layout */
.hero-slider .swiper-pagination-bullet::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;  /* Minimum touch target size (44x44px recommended by WCAG) */
  height: 44px; /* Minimum touch target size */
  background: transparent;
  z-index: 1;
  cursor: pointer;
}

.hero-slider .swiper-pagination-bullet-active { 
  background: #C0C0C0; 
  box-shadow: 0 0 0 2px rgba(255,255,255,.5);
  transform: scale(1.3);
}

/* Ensure the pagination container has enough spacing */
.hero-slider .swiper-pagination-horizontal {
  bottom: 10px;
  padding: 15px 0; /* Additional padding for better touch area */
}

/* Improve touch feedback */
.hero-slider .swiper-pagination-bullet:hover,
.hero-slider .swiper-pagination-bullet:focus {
  transform: scale(1.4);
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next { color: var(--brand-accent-silver, #C0C0C0); text-shadow: 0 0 8px rgba(0,0,0,.35); }
.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover { color: #E0E0E0; }

/* Optional overlay for readability */
.hero-slider .slide-overlay::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}

/* Caption overlay */
.hero-slider .hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  color: #fff;
  background: none; /* remove dark overlay to avoid blocking view */
}
.hero-slider .hero-caption.left {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 2rem 3rem;
  max-width: 760px;
  margin-left: clamp(2rem, 7vw, 6rem);
}
@media (max-width: 991.98px) {
  .hero-slider .hero-caption.left { padding: 1.25rem 1.5rem; max-width: 90%; }
}
.hero-slider .hero-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  margin: 0 0 .5rem 0;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hero-slider .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: .9;
  margin: 0 0 .75rem 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.hero-slider .hero-link { color: var(--brand-primary, #14B8A6); text-decoration: underline; }
.hero-slider .btn-primary {
  background-color: var(--brand-accent-silver, #C0C0C0);
  border-color: var(--brand-accent-silver, #C0C0C0);
  color: #111;
}
.hero-slider .btn-primary:focus,
.hero-slider .btn-primary:hover {
  background-color: #b0b0b0;
  border-color: #b0b0b0;
  color: #111;
  box-shadow: 0 0 0 .2rem rgba(192,192,192,.35);
}

/* Fade-in animation for caption elements */
.hero-slider .anim-el { opacity: 0; transform: translateY(8px); will-change: opacity, transform; }
.hero-slider .anim-show { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }
.hero-slider .hero-title.anim-show { transition-duration: .6s; }
.hero-slider .hero-subtitle.anim-show { transition-delay: .12s; }
.hero-slider .hero-cta.anim-show { transition-delay: .2s; }

/* Front page layout adjustments: remove extra space under hero */
.path-frontpage .site-main .container { padding-top: 0 !important; }
