/* Cinematic hero – DeMi Tours rhythm */
.wg-hero {
  position: relative;
  /* Pull hero under fixed nav so transparent navbar shows slides, not body gap */
  margin-top: calc(-1 * var(--wg-nav-h));
  min-height: calc(100svh + var(--wg-nav-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--wg-bg-muted, #f5f0e8);
  color: #ffffff;
}

.wg-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.wg-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wg-hero__slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.wg-hero__slide.is-exiting {
  opacity: 0;
  z-index: 1;
  transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wg-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  image-rendering: auto;
  transition: transform 8s linear;
}

.wg-hero__slide.is-active img {
  transform: scale(1.02);
}

.wg-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;
}

.wg-hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--wg-nav-h) + 1rem) clamp(1.25rem, 4vw, 2rem) clamp(4.5rem, 11vh, 6.5rem);
  min-height: 100svh;
  box-sizing: border-box;
}

.wg-hero__body-inner {
  position: relative;
  max-width: min(36rem, 92vw);
  padding: 0;
}

.wg-hero__body-inner .wg-hero__sign,
.wg-hero__body-inner .wg-hero__dest,
.wg-hero__body-inner .wg-btn-hero {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.wg-hero__body-inner.is-text-visible .wg-hero__sign {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.wg-hero__body-inner.is-text-visible .wg-hero__dest {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}

.wg-hero__body-inner.is-text-visible .wg-btn-hero {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.wg-hero__sign {
  font-family: var(--wg-font-sans);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--wg-gold-lt);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  margin: 0 0 0.45rem;
}

.wg-hero__dest {
  font-family: var(--wg-font-sans);
  font-size: clamp(1.85rem, 5.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  margin: 0 0 1.35rem;
}

.wg-hero__deck {
  display: none;
}

.wg-scroll-indicator {
  display: none;
}

.wg-hero,
.wg-hero *:not(.wg-btn-hero):not(.wg-btn-hero *),
.wg-hero *:not(.wg-btn-hero)::before,
.wg-hero *:not(.wg-btn-hero)::after {
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Clean hero CTA – border only, smooth white fill on hover */
.wg-btn-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.72rem 1.45rem;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  border-radius: 3px;
  background: transparent;
  color: #ffffff;
  font-family: var(--wg-font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
}

.wg-btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--wg-ease);
  z-index: 0;
}

.wg-btn-hero:hover::before {
  transform: scaleX(1);
}

.wg-btn-hero__label {
  position: relative;
  z-index: 1;
  transition: color 0.45s var(--wg-ease) 0.08s;
}

.wg-btn-hero:hover .wg-btn-hero__label {
  color: var(--wg-text);
}

.wg-btn-hero:hover {
  border-color: #ffffff;
}

/* legacy deck – hidden */
.wg-hero__deck-old {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-46%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.wg-hero__deck-spine {
  position: absolute;
  right: 0.55rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.wg-hero__deck-spine-fill {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--wg-gold-lt);
  transition: height 0.15s linear;
}

.wg-hero__deck-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: right;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.35s, transform 0.35s var(--wg-ease);
}

.wg-hero__deck-btn:hover { color: rgba(255, 255, 255, 0.7); }

.wg-hero__deck-btn.is-active {
  color: #ffffff;
  transform: translateX(-4px);
}

.wg-hero__deck-num {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  min-width: 1.5rem;
  transition: font-size 0.4s var(--wg-ease);
}

.wg-hero__deck-btn.is-active .wg-hero__deck-num {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wg-gold-lt);
}

.wg-hero__deck-name {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.35s, max-width 0.45s var(--wg-ease);
}

.wg-hero__deck-btn.is-active .wg-hero__deck-name {
  opacity: 1;
  max-width: 8rem;
}

.wg-hero__deck-btn.is-active.is-progress .wg-hero__deck-num::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.wg-hero__deck-btn.is-active.is-progress .wg-hero__deck-num::before {
  content: '';
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  width: calc(var(--progress, 0) * 100%);
  max-width: 2.5rem;
  background: var(--wg-gold-lt);
  border-radius: 1px;
  transition: width 0.05s linear;
}

.wg-hero__deck-btn.is-active .wg-hero__deck-num {
  position: relative;
}

.wg-hero__deck-total {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
  padding-right: 0.15rem;
}

/* Prev / next – bare chevrons, no container */
.wg-hero__arrows {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.wg-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.35s var(--wg-ease), transform 0.35s var(--wg-ease), opacity 0.35s;
}

.wg-hero__arrow:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.wg-hero__arrow--prev {
  left: clamp(0.75rem, 3vw, 2rem);
}

.wg-hero__arrow--next {
  right: clamp(0.75rem, 3vw, 2rem);
}

/* Mobile dots */
.wg-hero__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

@media (max-width: 900px) {
  .wg-hero__dots { display: flex; }

  .wg-hero__body {
    padding-bottom: 4rem;
    padding-inline: 1.15rem;
  }

  .wg-hero__dest { font-size: clamp(1.85rem, 8vw, 2.75rem); }
}

.wg-hero__dot {
  width: 26px;
  height: 2px;
  padding: 0;
  border: none;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.35s, width 0.35s;
}

.wg-hero__dot.is-active {
  background: var(--wg-gold-lt);
  width: 38px;
}

/* Inner page hero */
.wg-page-hero {
  position: relative;
  margin-top: var(--wg-nav-h);
  background: var(--wg-surface);
}

.wg-page-hero__image {
  height: clamp(220px, 38svh, 380px);
  overflow: hidden;
  position: relative;
}

.wg-page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* SAFARI-EARTH: filter → photo-treatment.css */
}

/* Image heroes – title block overlays the photo */
.wg-page-hero:has(.wg-page-hero__image) {
  overflow: hidden;
  background: var(--wg-bg);
}

.wg-page-hero:has(.wg-page-hero__image) .wg-page-hero__image {
  height: clamp(300px, 50svh, 500px);
}

.wg-page-hero:has(.wg-page-hero__image) .wg-page-hero__image::after {
  content: none;
}

.wg-page-hero:has(.wg-page-hero__image) .wg-page-hero__content {
  position: relative;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.35rem);
  background: var(--wg-bg);
}

.wg-page-hero:has(.wg-page-hero__image) .wg-page-hero__breadcrumb {
  color: var(--wg-text-muted);
}

.wg-page-hero:has(.wg-page-hero__image) .wg-page-hero__breadcrumb a {
  color: var(--wg-text-muted);
}

.wg-page-hero:has(.wg-page-hero__image) .wg-page-hero__breadcrumb a:hover {
  color: var(--wg-gold);
}

.wg-page-hero:has(.wg-page-hero__image) .wg-page-hero__sign {
  color: var(--wg-gold-olive);
}

.wg-page-hero:has(.wg-page-hero__image) .wg-page-hero__title {
  color: var(--wg-text);
}

.wg-page-hero:has(.wg-page-hero__image) .wg-section-lead {
  color: var(--wg-text-muted);
}

.wg-page-hero__sign {
  font-family: var(--wg-font-sans);
  font-size: clamp(0.62rem, 1.2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wg-gold-olive);
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.wg-page-hero__content {
  padding: 0 clamp(1.25rem, 4vw, 2rem) clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.wg-page-hero__content .wg-container { padding: 0; }

.wg-page-hero__breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wg-text-dim);
  margin-bottom: 0.5rem;
}

.wg-page-hero__breadcrumb a {
  text-decoration: none;
  color: var(--wg-text-muted);
}

.wg-page-hero__breadcrumb a:hover { color: var(--wg-gold); }

.wg-page-hero__title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--wg-text);
}

.wg-page-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.wg-page-hero__tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--wg-border-strong);
  color: var(--wg-text-muted);
  border-radius: 3px;
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .wg-hero__slide { transition: none; }
  .wg-hero__body-inner .wg-hero__sign,
  .wg-hero__body-inner .wg-hero__dest,
  .wg-hero__body-inner .wg-btn-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wg-cine-hero__media img { animation: none !important; transform: none !important; }
}

/* ── Cinematic inner-page hero (circuits, destinations, packages, activities) ── */
.wg-cine-hero {
  position: relative;
  margin-top: calc(-1 * var(--wg-nav-h));
  min-height: calc(100svh + var(--wg-nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: #1a1814;
}

.wg-cine-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.wg-cine-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: scale(1.02) translateZ(0);
  animation: wgCineKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
  filter: brightness(1.05) contrast(1.03) saturate(1.04);
}

.wg-cine-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 36%, rgba(0, 0, 0, 0.05) 58%, transparent 76%),
    radial-gradient(ellipse 88% 65% at 50% 100%, rgba(0, 0, 0, 0.26) 0%, transparent 68%);
}

.wg-cine-hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding:
    calc(var(--wg-nav-h) + clamp(1.5rem, 5vh, 2.5rem))
    clamp(1.25rem, 4vw, 2rem)
    clamp(2rem, 6vh, 3.25rem);
  box-sizing: border-box;
}

.wg-cine-hero__inner {
  padding: 0;
  max-width: min(44rem, 100%);
}

.wg-cine-hero__crumb {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.65rem;
}

.wg-cine-hero__crumb a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.wg-cine-hero__crumb a:hover {
  color: #ffffff;
}

.wg-cine-hero__sign {
  font-family: var(--wg-font-sans);
  font-size: clamp(1.02rem, 2.3vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--wg-gold-lt);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  margin: 0 0 0.35rem;
}

.wg-cine-hero__title {
  font-family: var(--wg-font-sans);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  margin: 0 0 0.65rem;
}

.wg-cine-hero__desc {
  font-family: var(--wg-font-sans);
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.wg-cine-hero .wg-dest-meta {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.wg-cine-hero .wg-dest-meta span {
  color: rgba(255, 255, 255, 0.78);
}

.wg-cine-hero .wg-pkg-hero__price {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.wg-cine-hero .wg-pkg-hero__price strong {
  color: var(--wg-gold-lt);
}

.wg-cine-hero .wg-cta-row {
  margin-top: 1rem;
}

@keyframes wgCineKenBurns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(-0.8%, -0.6%, 0); }
}

@media (max-width: 900px) {
  .wg-cine-hero__media img {
    animation: wgCineKenBurnsMobile 26s ease-in-out infinite alternate;
  }
}

@keyframes wgCineKenBurnsMobile {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to   { transform: scale(1.03) translate3d(-0.4%, -0.3%, 0); }
}

@media (max-width: 640px) {
  .wg-cine-hero__sign { font-size: clamp(0.95rem, 4.2vw, 1.12rem); }
  .wg-cine-hero__title { font-size: clamp(1.55rem, 7.5vw, 2.15rem); }
  .wg-cine-hero__desc { font-size: 0.86rem; max-width: 100%; }
}
