/* ===================================================== */
/* HERO SYSTEM (Slider + Banner Logo + Banner Text) */
/* Breakpoints: 1100 / 768 / 580 */
/* ===================================================== */

/* ------------------------------ */
/* Shared hero base */
/* ------------------------------ */
.hero {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

/* ------------------------------ */
/* Banner Hero (picture/img based) */
/* ------------------------------ */
.hero--banner .hero__media {
  position: relative;
  width: 100%;
  padding-top: 28.1%; /* desktop 1920x560 */
  overflow: hidden;
}

/* Image handling */
.hero--banner .hero__media picture,
.hero--banner .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero--banner .hero__media img {
  object-fit: cover;
  object-position: center;
  filter: brightness(0.58) saturate(1.05);
}

/* Mobile ratio: 800x1200 */
@media (max-width: 768px) {
  .hero--banner .hero__media {
    padding-top: 150%;
  }

  /* Better framing for portrait images */
  .hero--banner .hero__media img {
    object-position: center top;
  }
}

/* ------------------------------ */
/* Logo overlay variant */
/* ------------------------------ */
.hero--logo .hero__logo {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 520px;
  max-height: 80%;
  height: auto;
  z-index: 2;
}

@media (max-width: 580px) {
  .hero--logo .hero__logo {
    width: calc(100% - 2rem);
  }
}

/* ------------------------------ */
/* Text overlay variant */
/* ------------------------------ */
.hero--text .hero__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  text-align: center;
  color: white;
  z-index: 2;
}

.hero--text .hero__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero--text .hero__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: var(--display-xl);
  text-shadow: 4px 5px 14px black;
}

.hero--text .hero__subtitle {
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
  opacity: 0.95;
}

.hero--text .hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-3);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--color-info);
  color: white;
  text-decoration: none;

  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero--text .hero__cta:hover {
  background: var(--yellow-500);
}

/* Responsive typography */
@media (max-width: 1100px) {
  .hero--text .hero__title {
    font-size: var(--display-lg);
  }
}
@media (max-width: 768px) {
  .hero--text .hero__title {
    font-size: var(--display-md);
  }
}
@media (max-width: 580px) {
  .hero--text .hero__title {
    font-size: var(--display-sm);
  }
}

/* ------------------------------ */
/* Slider Hero (unchanged) */
/* ------------------------------ */

/* Section wrapper */
#slider-section { 
  overflow: hidden;
  padding: 0 !important;
}

/* Container */
#slider-section .slider-wrapper { 
  position: relative; 
  width: 100%; 
}

#slider-section .slider-viewport {
  display: flex;
  gap: 0;
  will-change: transform;
  transition: transform 500ms;
  width: auto;
  transform: translate3d(0,0,0);
}

/* Slide sizing */
#slider-section .slider-viewport > .slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 1920 / 560;
}

@media (max-width: 768px) {
  #slider-section .slider-viewport > .slide { 
    aspect-ratio: 800 / 1200;
  }
}

/* Image fit */
#slider-section .slide-link picture,
#slider-section .slide-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}

/* Progress bar */
#slider-section .slider-bar {
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: 0;
  height: 4px; 
  background: #e5e5e5; 
  z-index: 3;
}

#slider-section .progress-timer {
  height: 100%;
  width: 0%;
  background: var(--tln-red, #c62828);
}

/* Arrows */
#slider-section .slider-previous,
#slider-section .slider-next {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  border: 0; 
  background: none; 
  color: #fff;
  font-size: 4rem; 
  padding: 1rem;
  cursor: pointer;
  filter: drop-shadow(0px 3px 5px black); 
  z-index: 4;
}

#slider-section .slider-previous { left: 0 }
#slider-section .slider-next { right: 0 }

/* ------------------------------ */
/* Accessibility */
/* ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero--text .hero__cta {
    transition: none !important;
  }
}