/* Promotional Banners */
.promo-banner {
  border-radius: 10px;
  padding: 0;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.promo-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
}
.promo-banner__content {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}
.promo-banner__title {
  font-size: 0.95rem;
  font-weight: 700;
}
.promo-banner__text {
  font-size: 0.875rem;
}
.promo-banner__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.promo-banner__link:hover {
  opacity: 0.85;
}
.promo-banner__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 6px;
}
.promo-banner__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.promo-banner__close:hover {
  opacity: 1;
}
.promo-banner__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
  opacity: 1;
}

/* Style: Promo (green) */
.promo-banner--promo {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.promo-banner--promo .promo-banner__link {
  background: #059669;
  color: #fff;
}
.promo-banner--promo .promo-banner__close {
  color: #065f46;
}

/* Style: Info (blue) */
.promo-banner--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.promo-banner--info .promo-banner__link {
  background: var(--primary, #2563eb);
  color: #fff;
}
.promo-banner--info .promo-banner__close {
  color: #1e40af;
}

/* Style: Warn (yellow) */
.promo-banner--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.promo-banner--warn .promo-banner__link {
  background: #b45309;
  color: #fff;
}
.promo-banner--warn .promo-banner__close {
  color: #92400e;
}

/* Style: Urgent (red) */
.promo-banner--urgent {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.promo-banner--urgent .promo-banner__link {
  background: #dc2626;
  color: #fff;
}
.promo-banner--urgent .promo-banner__close {
  color: #991b1b;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .promo-banner__inner {
    flex-wrap: wrap;
    padding: 0.875rem 1rem;
    gap: 0.5rem;
  }
  .promo-banner__link {
    width: 100%;
    justify-content: center;
  }
  .promo-banner__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* Hide dismissed banners */
.promo-banner[hidden] {
  display: none;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .promo-banner__link,
  .promo-banner__close { transition: none; }
}

/* Accessibility: forced-colors (Windows High Contrast) — WCAG 1.4.11 */
@media (forced-colors: active) {
  .promo-banner__link { border: 2px solid ButtonText; }
  .promo-banner__close { border: 1px solid ButtonText; }
}

/* Print: hide promotional banners (interactive CTA elements waste ink) */
@media print {
  .promo-banner { display: none !important; }
  .hero-carousel { display: none !important; }
}

/* ── Hero Carousel ────────────────────────────────────────────── */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: #f1f5f9;
}
.hero-carousel__track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 200px;
}
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hero-carousel__slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-carousel__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.hero-carousel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay text on image slides */
.hero-carousel__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem 1.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  z-index: 2;
}
.hero-carousel__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-carousel__text {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  opacity: 0.95;
  max-width: 600px;
}
.hero-carousel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  color: #1e40af;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.hero-carousel__link:hover .hero-carousel__cta {
  background: #e0e7ff;
}

/* Placeholder slides (no image) */
.hero-carousel__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 2rem;
}
.hero-carousel__placeholder--promo { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #065f46; }
.hero-carousel__placeholder--info  { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1e40af; }
.hero-carousel__placeholder--warn  { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #92400e; }
.hero-carousel__placeholder--urgent { background: linear-gradient(135deg, #fef2f2, #fecaca); color: #991b1b; }
.hero-carousel__placeholder-inner { max-width: 600px; }
.hero-carousel__placeholder-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.hero-carousel__placeholder-text {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  opacity: 0.85;
}
.hero-carousel__placeholder-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: currentColor;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
}
.hero-carousel__placeholder--promo .hero-carousel__placeholder-cta { background: #059669; color: #fff; }
.hero-carousel__placeholder--info .hero-carousel__placeholder-cta  { background: #2563eb; color: #fff; }
.hero-carousel__placeholder--warn .hero-carousel__placeholder-cta  { background: #b45309; color: #fff; }
.hero-carousel__placeholder--urgent .hero-carousel__placeholder-cta { background: #dc2626; color: #fff; }

/* Navigation arrows */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.15s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.hero-carousel__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.hero-carousel__arrow:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.hero-carousel__arrow--prev { left: 0.75rem; }
.hero-carousel__arrow--next { right: 0.75rem; }

/* Dot indicators */
.hero-carousel__dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-carousel__dot--active {
  background: #fff;
  transform: scale(1.2);
}
.hero-carousel__dot:hover {
  background: rgba(255,255,255,0.6);
}
.hero-carousel__dot:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Pause/play button */
.hero-carousel__pause {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.hero-carousel__pause:hover { background: rgba(0,0,0,0.6); }
.hero-carousel__pause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 640px) {
  .hero-carousel { border-radius: 8px; margin-bottom: 1rem; }
  .hero-carousel__track { aspect-ratio: 16 / 9; min-height: 180px; }
  .hero-carousel__overlay { padding: 1.25rem 1rem 1rem; }
  .hero-carousel__title { font-size: 1.1rem; }
  .hero-carousel__text { font-size: 0.85rem; }
  .hero-carousel__arrow { width: 36px; height: 36px; }
  .hero-carousel__arrow--prev { left: 0.5rem; }
  .hero-carousel__arrow--next { right: 0.5rem; }
  .hero-carousel__arrow svg { width: 18px; height: 18px; }
  .hero-carousel__placeholder-title { font-size: 1.25rem; }
  .hero-carousel__placeholder-text { font-size: 0.9rem; }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-carousel__track { aspect-ratio: 5 / 2; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide { transition: none; }
  .hero-carousel__arrow,
  .hero-carousel__dot,
  .hero-carousel__cta { transition: none; }
}

/* Forced colors (WCAG 1.4.11) */
@media (forced-colors: active) {
  .hero-carousel__arrow { border: 2px solid ButtonText; }
  .hero-carousel__dot { border-color: ButtonText; }
  .hero-carousel__dot--active { background: ButtonText; }
  .hero-carousel__pause { border: 1px solid ButtonText; }
}
