/* Dev mock: full-bleed brand-led homepage hero */

body.home .homepage-cyclone,
body.home .cycloneslider,
body.home #cycloneslider-137-1 {
  display: none !important;
}

.bm-hero {
  --bm-hero-ink: #f7fbfa;
  --bm-hero-muted: rgba(247, 251, 250, 0.88);
  --bm-hero-teal: #1a5f58;
  --bm-hero-teal-deep: #134842;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 1rem;
  /* Shorter full-bleed hero (~48vh band, capped) */
  min-height: clamp(24rem, 57.6vh, 38.4rem);
  display: flex;
  /* Upper-middle: brand/CTAs over turquoise water, not pier/rocks */
  align-items: center;
  overflow: hidden;
  background: #0d2c30;
  isolation: isolate;
}

.bm-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0d2c30;
  /* Favor water band in the text zone (upper-middle of pier banner) */
  background-position: center 38%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.bm-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Soft bottom scrim only — upper/mid water+text stay bright like live */
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 48%,
      rgba(8, 28, 32, 0.10) 72%,
      rgba(8, 28, 32, 0.22) 100%
    );
}

.bm-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 68rem);
  margin: 0 auto;
  /* Slight upward bias into water (above true vertical center) */
  margin-top: -4.5%;
  padding: 1.5rem 1.15rem 1.75rem;
  color: var(--bm-hero-ink);
}

.bm-hero__brand {
  margin: 0 0 0.85rem;
  font-family: "PlutoBold", "PlutoLight", Georgia, serif;
  font-size: clamp(2.35rem, 6.2vw, 4.35rem);
  font-weight: normal;
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 2px 24px rgba(0, 0, 0, 0.28);
}

.bm-hero__headline {
  margin: 0 0 0.7rem;
  max-width: 22ch;
  font-family: "PlutoLight", "PlutoSansLight", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--bm-hero-ink);
}

/* Theme hides .home #main h1 (old page title). Keep hero headline visible. */
.home #main h1.bm-hero__headline {
  display: block;
}

.bm-hero__lede {
  margin: 0 0 1.55rem;
  max-width: 38ch;
  font-family: "DM Sans", "PlutoSansLight", Arial, Helvetica, sans-serif;
  font-size: clamp(1.02rem, 1.65vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
}

.bm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
}

/* wpautop/WPML may insert <br>/<p> between CTAs; hide so gap alone controls spacing */
.bm-hero__cta > br,
.bm-hero__cta > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

.bm-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  min-height: 2.65rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: "DM Sans", "PlutoSansLight", Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bm-hero__btn--primary {
  background: #fff;
  color: var(--bm-hero-teal-deep) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.bm-hero__btn--primary:hover,
.bm-hero__btn--primary:focus-visible {
  background: #f3faf8;
  transform: translateY(-1px);
}


@media (max-width: 978px) {
  .bm-hero {
    min-height: clamp(21.6rem, 50.4vh, 33.6rem);
    margin-bottom: 0.85rem;
  }

  html[lang="fr-FR"] body.home .bm-hero {
    margin-bottom: 1.25rem;
  }

  .bm-hero__inner {
    width: min(100% - 1.75rem, 68rem);
    margin-top: -5.5%;
    padding: 1.25rem 0.9rem 1.5rem;
  }

  .bm-hero__brand {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

@media (max-width: 520px) {
  .bm-hero__inner {
    margin-top: -6.5%;
  }

  .bm-hero__cta {
    justify-content: flex-start;
  }

  .bm-hero__btn {
    margin: 0 !important;
  }
}

/* Scroll target for hero primary CTA — small offset for sticky header only */
#bm-storefront-products.bm-scroll-target {
  scroll-margin-top: 1.5rem;
}

/*
 * Homepage Checkfront: #content/#main have max-width:none so the droplet
 * goes edge-to-edge. Keep it on the same 1180px column as intro copy and
 * inner pages (.col-full).
 */
body.home [id^="CHECKFRONT_WIDGET"] {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.home [id^="CHECKFRONT_WIDGET"] iframe.CHECKFRONT_DROPLET {
  max-width: 100% !important;
}


/* Flatten gap above hero (wpautop leftovers; FR often has <br> after LD+JSON) */
body.home .bm-hero {
  margin-top: 0 !important;
}

body.home .entry > p:has(> script[type="application/ld+json"]) {
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

body.home .entry > p:has(> script[type="application/ld+json"]) > br,
body.home .entry > br:has(+ .bm-hero),
body.home .entry > p:empty,
body.home .entry > p:has(+ .bm-hero):empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

/* Homepage itinerary links — under hero, above deals heading */
.bm-itin-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 1.35rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

html[lang="fr-FR"] .bm-itin-links {
  display: none !important;
}

html[lang="fr-FR"] body.home .bm-hero {
  margin-bottom: 1.75rem;
}

.bm-itin-links > br,
.bm-itin-links > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

body.home #content .entry .bm-itin-links__btn,
.bm-itin-links__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 11.5rem;
  max-width: 16.5rem;
  margin: 0 !important;
  min-height: 2.35rem;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  background: #30838c;
  color: #fff !important;
  font-family: "DM Sans", "PlutoSansLight", Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
}

body.home #content .entry .bm-itin-links__btn:hover,
body.home #content .entry .bm-itin-links__btn:focus-visible,
.bm-itin-links__btn:hover,
.bm-itin-links__btn:focus-visible {
  background: #27757d;
  color: #fff !important;
}

@media (max-width: 700px) {
  .bm-itin-links {
    gap: 0.55rem;
    padding: 0 0.75rem;
    margin-bottom: 1.15rem;
  }

  .bm-itin-links__btn,
  body.home #content .entry .bm-itin-links__btn {
    flex: 1 1 calc(50% - 0.55rem);
    max-width: none;
  }
}
