/*
 * Walkborder v4.0.3 Home polish.
 *
 * Small WordPress-only adjustments after the ACF structured build:
 * - preserve the approved Home density;
 * - improve footer spacing;
 * - make the Private Meaning image card closer to the approved premium feel;
 * - avoid admin/editor chrome affecting visual validation.
 */

/* Keep the Hero clear of navigation and balanced around its editorial content. */
.wb-home-hero-stage,
.wb-home-hero-layout {
  min-height: 780px;
}

.wb-home-hero-layout {
  padding-top: 7rem;
  padding-bottom: 10rem;
}

.wb-home-hero-stage .hero-swiper {
  height: 100%;
}

@media (max-width: 1023px) {
  .wb-home-hero-controls {
    left: 1rem;
    width: auto;
    max-width: calc(100% - 2rem);
    padding: 0.5rem 0.625rem;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.82);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
  }

  .wb-home-hero-controls .hero-nav-button {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (min-width: 1024px) {
  .wb-home-hero-stage,
  .wb-home-hero-layout {
    min-height: 720px;
  }

  .wb-home-hero-layout {
    padding-top: 7.5rem;
    padding-bottom: 7rem;
  }
}

/* Image-independent contrast for every Destination card. */
.wb-home-destination-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.12) 0%,
    rgba(8, 8, 8, 0.38) 52%,
    rgba(8, 8, 8, 0.92) 100%
  );
}

.wb-home-final-cta-link {
  white-space: nowrap;
}

/* Preserve the compact premium rhythm between Home sections. */
#featured-tours {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

#destinations {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

#how-it-works {
  padding-top: 5.75rem;
  padding-bottom: 5.75rem;
}

/* Private Meaning: make the left visual read less like a normal photo card. */
#main-content section.bg-brand-ivory img.h-\[560px\] {
  background: #090909;
  filter: saturate(0.92) contrast(1.04);
}

#main-content section.bg-brand-ivory .absolute.-bottom-7 {
  max-width: 20rem;
}

/* Footer density closer to approved prototype. */
[data-component="site-footer"] {
  padding-top: 4.5rem;
}

[data-component="site-footer"] ul {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

/* Prevent Gutenberg editor placeholder from showing on frontend fallback pages as primary content. */
body.home .entry-content,
body.front-page .entry-content {
  display: none;
}

/* WCAG AA contrast for Home editorial labels and canonical Tour links. */
body.home #main-content .text-brand-goldDark {
  color: #755f00;
}

/* The shared footer stays unchanged elsewhere; Home fixes its legal strip. */
body.home [data-component="site-footer"] .text-white\/45 {
  color: rgba(255, 255, 255, 0.68);
}
