/* Hero GS1 sunrise stats — larger type + brand stat color */
.tbs-hero-sunrise-stats .body-large {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text--brand, #b8501e);
}
.tbs-hero-sunrise-stats .body-small.text-color-muted {
  font-size: clamp(0.9375rem, 2.1vw, 1.1875rem);
  line-height: 1.35;
  margin-top: 0.35rem;
}

/* ── Hero carousel — 4 slides, each with its own copy ─────────── */
.hero_section.tbs-hero {
  padding: 0 !important;
  min-height: 0;
}

.tbs-hero {
  position: relative;
  padding: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text--alternate, #fff);
  background: #0d0d0d;
}

.tbs-hero__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 86vh;
  overflow: hidden;
}

.tbs-hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0s linear 0.7s;
}

.tbs-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition:
    opacity 0.7s ease,
    visibility 0s;
}

.tbs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tbs-hero__bg .hero_image-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease;
}

.tbs-hero__slide.is-active .tbs-hero__bg .hero_image-slide {
  transform: scale(1);
}

/* Even, full-width darkening so text is legible everywhere (no bright seam) */
.tbs-hero .hero_image-overlay {
  z-index: 1;
  background-image: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.6) 45%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.2) 55%,
      rgba(0, 0, 0, 0.35) 100%
    );
}

.tbs-hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 11rem 0 2.5rem;
}

/* Smaller hero headings + accent italic em */
.tbs-hero .h1-heading {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.tbs-hero .h1-heading em {
  color: #e6a868;
  font-style: italic;
}

.tbs-hero__slide.is-active .tbs-hero__copy > .container-large {
  animation: tbs-hero-copy-in 0.7s ease both;
}

@keyframes tbs-hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Controls row: prev + next side by side, left aligned */
.tbs-hero__controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
}

.tbs-hero__arrow {
  appearance: none;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text--alternate, #fff);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.tbs-hero__arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.tbs-hero__arrow:focus-visible {
  outline: 2px solid var(--text--brand, #b8501e);
  outline-offset: 2px;
}

.tbs-hero__arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Desktop: hero fits below sticky header; viewport fills parent minus controls */
@media screen and (min-width: 768px) {
  .hero_section.tbs-hero,
  .tbs-hero {
    height: calc(100vh - 84px);
    min-height: calc(100vh - 84px);
    max-height: calc(100vh - 84px);
  }

  .tbs-hero__viewport {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .tbs-hero__controls {
    flex-shrink: 0;
  }
}

/* ── Mobile only (desktop keeps original styles above) ───────── */
@media screen and (max-width: 767px) {
  .tbs-hero {
    --tbs-hero-nav-clearance: 4.75rem;
    --tbs-hero-inline-pad: 1.5rem;
  }

  .tbs-hero__viewport {
    min-height: clamp(24rem, 92svh, 40rem);
  }

  .tbs-hero__bg .hero_image-slide {
    object-position: center 38%;
    transform: scale(1.04);
  }

  .tbs-hero__slide.is-active .tbs-hero__bg .hero_image-slide {
    transform: scale(1);
  }

  .tbs-hero .hero_image-overlay {
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.65) 100%
      ),
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.45) 100%
      );
  }

  .tbs-hero__copy {
    padding: calc(var(--tbs-hero-nav-clearance) + env(safe-area-inset-top, 0px))
      max(var(--tbs-hero-inline-pad), env(safe-area-inset-right, 0px)) 1.25rem
      max(var(--tbs-hero-inline-pad), env(safe-area-inset-left, 0px));
    box-sizing: border-box;
  }

  .tbs-hero__copy .container-large {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .tbs-hero .h1-heading {
    font-size: clamp(1.375rem, 5.25vw, 1.75rem);
    line-height: 1.12;
  }

  .tbs-hero .body-x-large {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .tbs-hero .badge {
    font-size: 0.75rem;
  }

  .tbs-hero .button.color-light {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    max-width: 100%;
  }

  .tbs-hero-sunrise-stats {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .tbs-hero-sunrise-stats .body-large {
    font-size: clamp(1.375rem, 5vw, 1.625rem);
  }

  .tbs-hero-sunrise-stats .body-small.text-color-muted {
    font-size: 0.875rem;
  }

  .tbs-hero__controls {
    width: 100%;
    box-sizing: border-box;
    padding-left: max(var(--tbs-hero-inline-pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--tbs-hero-inline-pad), env(safe-area-inset-right, 0px));
    padding-top: 1rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .tbs-hero__arrow {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
  }
}

@media screen and (max-width: 479px) {
  .tbs-hero {
    --tbs-hero-inline-pad: 1.25rem;
  }

  .tbs-hero__viewport {
    min-height: clamp(22rem, 100svh, 36rem);
  }

  .tbs-hero__copy .column-small {
    gap: 0.75rem;
  }

  .tbs-hero .h1-heading {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .tbs-hero .body-x-large {
    font-size: 0.875rem;
  }
}

@media screen and (max-width: 767px) and (max-height: 520px) and (orientation: landscape) {
  .tbs-hero__viewport {
    min-height: 100svh;
  }

  .tbs-hero__copy {
    padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.75rem;
  }

  .tbs-hero .h1-heading {
    font-size: clamp(1.5rem, 6vh, 2rem);
  }

  .tbs-hero-sunrise-stats {
    display: none;
  }

  .tbs-hero__controls {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tbs-hero__slide,
  .tbs-hero__bg .hero_image-slide,
  .tbs-hero__slide.is-active .tbs-hero__copy > .container-large {
    transition: none;
    animation: none;
  }

  .tbs-hero__bg .hero_image-slide,
  .tbs-hero__slide.is-active .tbs-hero__bg .hero_image-slide {
    transform: none;
  }
}
