/* ==========================================================================
   DIA BONITO · home.css
   Homepage: video hero, full-screen destination panels (shared .panel
   system in style.css), parallax letter, pavilion panel, moment video,
   closing.
   ========================================================================== */

/* ==========================================================================
   HERO · media slot "home-hero"
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster { z-index: 0; }

.hero-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 2.4s ease-in-out;
}

.hero-video.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* The headline stack is centered, so a radial pool carries the text
     zone to WCAG AA on top of the base gradient */
  background:
    radial-gradient(ellipse 88% 56% at 50% 50%, rgba(10, 19, 16, 0.52) 0%, rgba(10, 19, 16, 0.08) 100%),
    linear-gradient(
      to bottom,
      rgba(10, 19, 16, 0.52) 0%,
      rgba(10, 19, 16, 0.22) 40%,
      rgba(10, 19, 16, 0.4) 72%,
      rgba(10, 19, 16, 0.9) 100%
    );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Clear headroom below the fixed header, real breathing room at the
     bottom now that the scroll cue is gone */
  padding: calc(var(--header-h) + 20px) var(--gutter) clamp(56px, 9vh, 96px);
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Status line above the mast: the resort is not open yet. Lands first,
   so the eyebrow starts 0.1s ahead of the headline (0.1s) and the CTAs
   (0.45s). Reduced motion is handled globally in style.css. */
.hero-eyebrow {
  font-family: var(--sans);
  font-size: clamp(11px, 1.2vw, 12px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lagoon);
  /* Lagoon green over a bright video frame needs its own floor */
  text-shadow: 0 1px 12px rgba(10, 19, 16, 0.6);
  /* ch ignores the 0.32em tracking, so this line needs ~61ch to sit on one
     row; min() lets it wrap on phones instead of overflowing the gutter */
  max-width: min(100%, 62ch);
  margin: 0 0 clamp(16px, 2.6vh, 26px);
  animation: home-rise 1.3s var(--ease-out) 0s both;
}

.hero-mast {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 6.2vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 1000px;
  animation: home-rise 1.3s var(--ease-out) 0.1s both;
}

.hero-ctas {
  margin-top: clamp(32px, 5vh, 40px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: home-rise 1.3s var(--ease-out) 0.45s both;
}

/* (The "Scroll" cue was removed site-wide: redundant, and it collided
   with the hero CTA on small phones.) */

/* ==========================================================================
   INTRO
   ========================================================================== */

.opening {
  padding: clamp(100px, 15vw, 180px) 0;
  text-align: center;
}

.opening-body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.72;
  color: var(--bone);
  max-width: 720px;
  margin: 0 auto;
}

/* Two differentiator notes can share one destination panel */
.panel-note + .panel-note { margin-top: 30px; }

/* The Dining panel is bottom-anchored, not centered, so the shared
   .panel-backing (which assumes centered content) doesn't apply here.
   Its lede + note block get their own tight card instead of the old
   permanent dark scrim override. Measured against images/dining-board.webp:
   flat rgba(10, 19, 16, 0.8) over the brightest pixel in the photo still
   clears 8.34:1 for the --bone body text (needs 4.5:1). */
[data-media-slot="home-dining"] .home-dining-backing {
  max-width: 640px;
  margin-top: clamp(22px, 3vh, 30px);
  padding: clamp(24px, 4vw, 36px);
  background: rgba(10, 19, 16, 0.8);
}

[data-media-slot="home-dining"] .home-dining-backing .panel-lede {
  margin-top: 0;
}

/* ==========================================================================
   GUEST REVIEWS · three Airbnb quotes between Getting Here and the letter
   ========================================================================== */

.reviews {
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
}

.reviews-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 22px;
}

.reviews-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.reviews-grid {
  list-style: none;
  display: grid;
  gap: 40px;
  text-align: left;
}

@media (min-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.review-quote {
  font-family: var(--serif);
  font-weight: 350;
  font-size: 19px;
  line-height: 1.6;
  color: var(--bone);
}

/* Five stars in type, no images */
.review-quote::before {
  content: "\2605\2605\2605\2605\2605";
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--lagoon);
  margin-bottom: 14px;
}

.review-meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-2);
  margin-top: 18px;
}

.review-source {
  color: var(--bone-3);
  text-transform: none;
  letter-spacing: 0.08em;
  margin-left: 10px;
}

/* ==========================================================================
   A NOTE FROM TIM AND LIZ + OUR FAMILY · parallax letter, one block
   Media slot "home-letter": background image below.
   ========================================================================== */

.our-story-parallax {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 18vw, 220px) 0;
  display: flex;
  align-items: center;
}
/* The #our-family anchor lands with the section flush to the viewport top;
   the fixed header overlays only the section's own generous top padding. */

.parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.parallax-bg-image {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  height: 140%;
  background-image: url('../images/island-palms-cove.webp');
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.parallax-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--ink) 0%,
    rgba(10, 19, 16, 0.84) 18%,
    rgba(10, 19, 16, 0.8) 82%,
    var(--ink) 100%
  );
}

.parallax-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.parallax-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 22px;
}

.parallax-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 780px;
  margin: 0 auto;
}

.parallax-rule { margin-top: 44px; margin-bottom: 52px; }

.parallax-body {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.parallax-body p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.85;
  color: var(--bone-2);
  margin-bottom: 28px;
}

.parallax-body p:last-child { margin-bottom: 0; }

.parallax-signature { margin-top: 60px; }

.signature-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--bone);
  margin-bottom: 14px;
}

.signature-role {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(237, 231, 218, 0.85);
}

/* --- Family photograph + intro, folded in from the old our-family page --- */

.family-inline {
  max-width: 480px;
  margin: clamp(56px, 8vw, 80px) auto 0;
}

.family-inline img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.family-inline-caption {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(237, 231, 218, 0.88);
  text-align: center;
  margin-top: 16px;
}

.family-inline-caption em { font-style: normal; }

.family-inline-lede {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.6;
  color: var(--bone);
  max-width: 560px;
  margin: clamp(40px, 6vw, 56px) auto 0;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-bg-image { transform: none !important; top: 0; height: 100%; }
}

/* ==========================================================================
   THE PAVILION · panel variant with long-form text over media
   ========================================================================== */

.pavilion-panel .panel-title { font-size: clamp(38px, 7vw, 74px); }

/* (The pavilion previously carried its own darker scrim; the shared
   .panel-center scrim now meets the same AA target, so it uses that.) */

/* ==========================================================================
   MOMENT · media slot "home-moment" (video tagline)
   ========================================================================== */

.moment {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
}

.moment-poster,
.moment-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-poster { z-index: 0; }
.moment-video { z-index: 1; opacity: 0; transition: opacity 2s ease-in-out; }
.moment-video.active { opacity: 1; }

.moment-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Centered tagline + booking invite: radial pool holds the text zone
     at WCAG AA over the brightest video frames */
  background:
    radial-gradient(ellipse 92% 66% at 50% 50%, rgba(10, 19, 16, 0.7) 0%, rgba(10, 19, 16, 0.14) 100%),
    linear-gradient(
      to bottom,
      var(--ink) 0%,
      rgba(10, 19, 16, 0.26) 26%,
      rgba(10, 19, 16, 0.32) 70%,
      var(--ink) 100%
    );
}

.moment-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}

.moment-line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(27px, 5.4vw, 52px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 900px;
}

/* (The standalone closing section is gone; the booking invite now lives
   inside the moment video via the shared .closing-invite component.) */

/* The homepage tagline speaks for itself, so the invite carries no line
   of its own here: the button sits straight under the hairline. */
.moment .closing-invite-cta { margin-top: 0; }
