/* =====================================================================
   home.css — homepage-only layout. Depends on css/csa.css.
   ===================================================================== */

/* ---------- Hero ---------- */
.home-hero { min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); height: calc(100vh - 64px); height: calc(100dvh - 64px); display: flex; align-items: flex-end; }
/* Let carousel controls receive clicks: hero__inner is full-width above the track. */
.home-hero .hero__inner { pointer-events: none; }
.home-hero .hero__inner a, .home-hero .hero__inner button { pointer-events: auto; }
.home-hero .hero__badge { pointer-events: auto; }

.home-hero .hero__inner { width: 100%; padding-top: 140px; padding-bottom: 28px; }
.home-hero .hero__eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(241,90,36,.92); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; text-shadow: none; }
.home-hero h1 { font-size: min(calc((100vw - 2 * var(--gutter)) / 10.7), 3.6rem); margin: 0 0 12px; }
.home-hero h1 .line { display: block; white-space: nowrap; }
.home-hero h1 .accent { text-shadow: 0 2px 22px rgba(0,0,0,.55); }
.home-hero h1 .hero__eyebrow { white-space: normal; line-height: 1.3; }
.home-hero .hero__sub { font-size: clamp(1.02rem, .9rem + .7vw, 1.4rem); font-weight: 600; margin: 0 0 22px; text-shadow: 0 1px 10px rgba(0,0,0,.45); max-width: 34ch; }
.hero__ctas { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; max-width: 440px; }
.hero__ctas .btn { min-height: 52px; font-size: .92rem; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
@media (max-width: 339px) { .hero__ctas { grid-template-columns: 1fr; } }
.hero__facts { display: none; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 18px 0 0; padding: 0; font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.92); }
@media (min-width: 900px) { .hero__facts { display: flex; } }
.hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts svg { width: 16px; height: 16px; color: var(--orange); }

/* Mobile: photo fills the top ~72% of the hero and fades into navy, so the
   whole fleet stays visible and the headline sits on a dark, legible base. */
@media (max-width: 899px) {
  .home-hero::after { background: linear-gradient(180deg, rgba(14,17,52,.12) 0%, rgba(14,17,52,0) 28%, rgba(14,17,52,.45) 55%, rgba(14,17,52,.88) 78%, rgba(14,17,52,.95) 100%); }
}

/* Desktop: lighter scrim than v1 so more of the fleet shows; text side stays dark. */
@media (min-width: 900px) { .home-hero::after { background: linear-gradient(90deg, rgba(14,17,52,.88) 0%, rgba(14,17,52,.82) 40%, rgba(14,17,52,.62) 58%, rgba(14,17,52,.20) 76%, rgba(14,17,52,0) 88%), linear-gradient(0deg, rgba(14,17,52,.30), rgba(14,17,52,0) 35%); } }

@media (min-width: 900px) {
  .home-hero { min-height: calc(100vh - 120px); min-height: calc(100dvh - 120px); height: calc(100vh - 120px); height: calc(100dvh - 120px); max-height: none; align-items: center; }
  .home-hero .hero__inner { padding-top: 70px; padding-bottom: 70px; }
  .home-hero h1 { font-size: clamp(3.2rem, 4.5vw, 4.5rem); }
}

/* ---------- Intro ---------- */
.intro { display: grid; gap: 28px; align-items: center; }
.intro > * { min-width: 0; }
@media (max-width: 899px) { .intro__media { display: none; } }
@media (min-width: 900px) { .intro { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.intro__tagline { font-size: 1.15rem; font-weight: 700; color: var(--orange-700); margin-bottom: 14px; }
.intro__lead { font-size: 1.02rem; }
@media (min-width: 700px) { .intro__lead { font-size: 1.08rem; } }
.checklist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.intro__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 899px) {
  .cat-links { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .cat-links::-webkit-scrollbar { display: none; }
  .cat-links li { flex: none; scroll-snap-align: start; }
  .cat-links a { white-space: nowrap; }
}
.cat-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: var(--navy-100); color: var(--navy); font-weight: 700; font-size: .86rem; text-decoration: none; }
.cat-links a:hover { background: var(--navy); color: #fff; }

/* ---------- Buck Island ---------- */
.buck { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .buck { grid-template-columns: 1fr 1fr; gap: 56px; } }
.buck__media { display: grid; gap: 12px; }
.buck__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.buck__media .pano { aspect-ratio: 3.2 / 1; object-fit: cover; }
@media (max-width: 899px) { .buck { gap: 22px; } .buck__media .pano { display: none; } }
.buck__copy p { color: rgba(255,255,255,.9); }

/* ---------- Fleet ---------- */
/* Phones/tablets: horizontal scroll-snap row (next card peeks). Desktop: 3x2 grid. */
.fleet { display: flex; gap: 14px; list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.fleet > li { flex: 0 0 72%; scroll-snap-align: start; }
@media (min-width: 700px) { .fleet > li { flex-basis: 40%; } }
.swipe-hint { margin: 6px 0 0; text-align: center; font-size: .84rem; font-weight: 700; color: var(--navy); }
@media (min-width: 900px) {
  .fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; overflow: visible; }
  .swipe-hint { display: none; }
}
.boat { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.boat a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.boat img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.boat__body { padding: 12px 14px 16px; }
.boat h3 { font-size: 1rem; margin: 0 0 4px; }
.boat p { font-size: .84rem; color: var(--ink-2); margin: 0; line-height: 1.45; }
@media (min-width: 900px) { .boat h3 { font-size: 1.15rem; } .boat p { font-size: .92rem; } .boat__body { padding: 16px 18px 20px; } }

/* ---------- v2: phone compaction (< 700px) ---------- */
@media (max-width: 699px) {
  #tours .section-head p, .buck__copy .eyebrow, .intro .eyebrow, .checklist { display: none; }
  .feature p { display: none; }
  .feature { padding: 14px 10px; }
  .intro__lead { margin-bottom: 16px; }
}
@media (max-width: 699px) {
  .section-head p { display: none; }
  .home-hero .hero__eyebrow { font-size: .68rem; letter-spacing: .06em; padding: 6px 10px; }
  .buck__copy > p:first-of-type { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

.buck__copy:has(.readmore[open]) > p:first-of-type { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }


/* ---------- Hero carousel ---------- */
/* Slide stack stays under the scrim; controls are siblings of .hero-carousel so their
   z-index participates in .home-hero's stacking context (Safari-safe). Scrim has
   pointer-events:none (see csa.css) so clicks always reach arrows/dots. */
.home-hero .hero-carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.home-hero::after { z-index: 1; pointer-events: none; }
.home-hero .hero__inner { z-index: 2; }
.home-hero .hero-carousel__nav,
.home-hero .hero-carousel__dots { z-index: 3; }
.home-hero .hero__badge { z-index: 4; }
/* Homepage TA seal (trimmed): uses tripadvisor-travelers-choice-2026-trim.png (same art, built-in white margin
   cropped) so the art fills the card; art is ~4% larger than before, card tighter, softer shadow. Other pages unchanged. */
.home-hero .hero__badge { width: 69px; padding: 10px 9px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.10); }
@media (min-width: 900px) { .home-hero .hero__badge { width: 104px; padding: 14px 13px; border-radius: 10px; } }
.hero-carousel__track { position: absolute; inset: 0; overflow: hidden; }
.hero-carousel__slide {
  position: absolute; inset: 0; margin: 0; padding: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none; z-index: 0;
}
.hero-carousel__slide.is-active {
  opacity: 1; pointer-events: auto; z-index: 1;
}
.hero-carousel__slide picture, .hero-carousel__slide img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; max-width: none;
}
.hero-carousel__slide img { object-fit: cover; object-position: 50% 45%; }
.hero-carousel__slide[data-slide="1"] img { object-position: 50% 50%; } /* fleet — baked desk/mobile crops */
.hero-carousel__slide[data-slide="2"] img { object-position: 48% 42%; } /* aerial power cat */
.hero-carousel__slide[data-slide="3"] img { object-position: 50% 50%; } /* elkhorn */
.hero-carousel__slide[data-slide="4"] img { object-position: 50% 40%; } /* fish */
.hero-carousel__slide[data-slide="0"] img { object-position: 100% 0%; } /* Celebration (Mac photo 07, native: boat top-right, pinned top so it clears the headline) */
.hero-carousel__slide[data-slide="sr"] img { object-position: 80% 50%; } /* Smooth Recovery */
/* Mobile-only hero set (≤699px): Celebration, fleet, Buck Island, Good Times, sunset. Desktop-only slides
   (power cat, elkhorn, fish) are hidden on phones and mobile-only slides on ≥700px; JS filters the same way. */
@media (max-width: 699px) {
  .home-hero [data-only="desktop"] { display: none !important; }
  .hero-carousel__slide img { object-position: 50% 30%; } /* 1:2 portrait crops, subject in top ~40% */
  .hero-carousel__slide[data-slide] img { object-position: 50% 30%; }
}
@media (min-width: 700px) {
  .home-hero [data-only="mobile"] { display: none !important; }
}
@media (max-width: 899px) {
  .home-hero .hero-carousel { inset: 0; height: auto; bottom: 0; }
  .home-hero .hero__inner { padding-top: 120px; padding-bottom: 28px; }
  .hero-carousel__dots { bottom: 18px; top: auto; left: 50%; transform: translateX(-50%); }
  .hero-carousel__btn { top: 42%; }
}
.hero-carousel__nav { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.hero-carousel__btn {
  pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75);
  background: rgba(14,17,52,.4); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.hero-carousel__btn svg { width: 18px; height: 18px; }
.hero-carousel__btn--prev { left: 10px; }
.hero-carousel__btn--next { right: 10px; }
.hero-carousel__btn:hover, .hero-carousel__btn:focus-visible { background: rgba(14,17,52,.7); outline: none; }
.hero-carousel__dots {
  position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%);
  pointer-events: auto;
  display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(14,17,52,.35);
}
@media (min-width: 900px) {
  .hero-carousel__dots { bottom: 22px; left: max(32px, calc((100vw - var(--container)) / 2 + 32px)); transform: none; }
  .hero-carousel__btn--prev { left: 18px; }
  .hero-carousel__btn--next { right: 18px; }
}
.hero-carousel__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45);
}
.hero-carousel__dots button.is-active { background: #fff; box-shadow: 0 0 0 2px rgba(241,90,36,.9); }
.hero-carousel__dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide { transition: none; }
}
/* Arrows kept clear of the headline (2026-10-06 QA): hidden below 900 px (swipe + dots), and on
   desktop moved to the bottom-right corner of the content column, level with the dots. */
@media (max-width: 899px) { .home-hero .hero-carousel__btn { display: none; } }
@media (min-width: 900px) {
  .home-hero .hero-carousel__btn { top: auto; bottom: 13px; transform: none; width: 40px; height: 40px; }
  .home-hero .hero-carousel__btn--next { left: auto; right: max(18px, calc((100vw - var(--container)) / 2 + 32px)); }
  .home-hero .hero-carousel__btn--prev { left: auto; right: calc(max(18px, calc((100vw - var(--container)) / 2 + 32px)) + 50px); }
}



/* Compact booking line under hero subhead */
.hero__book-note {
  margin: 10px 0 0; max-width: 46ch;
  font-size: .86rem; font-weight: 600; line-height: 1.4;
  color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
@media (max-width: 899px) {
  .hero__book-note { max-width: 34ch; font-size: .82rem; }
}


/* Desktop: shorter hero so boat slides show more of the vessel + water */


/* Six popular-tour cards: 3 across on desktop */
@media (min-width: 1180px) {
  .tour-grid.tour-grid--6 { grid-template-columns: repeat(3, 1fr); }
  .tour-grid.tour-grid--6 .tour-card__media { aspect-ratio: 16 / 10; }
}

/* ---------- Real snorkel feature band (hawksbill selfie, baked-in "THIS IS NOT AI" text) ---------- */
/* Never cropped: full image at every size so the baked-in headline stays readable. */
.turtle-band { background: var(--sand, #f6f1e7); padding: 0; }
.turtle-band__fig { margin: 0; }
.turtle-band__fig img { display: block; width: 100%; height: auto; }
@media (min-width: 700px) {
  .turtle-band { padding: 48px var(--gutter, 24px); }
  .turtle-band__fig { width: min(1180px, 113vh, 100%); margin: 0 auto; } /* 100%: no sideways scroll at 700–920 px (iPad portrait) */
  .turtle-band__fig img { border-radius: 14px; box-shadow: 0 12px 34px rgba(14,17,52,.18); }
}

/* ---------- Hero Tripadvisor badge (2026-10-06) ----------
   The floating hero badge card moved to the site header (desktop/tablet, see csa.css .hdr-tc).
   Phones (<700px) show a small inline badge next to the booking note instead. */
.home-hero .hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.home-hero .hero__proof .hero__book-note { margin: 0; }
.home-hero .hero__tc { flex: none; pointer-events: auto; display: block; line-height: 0; background: #fff; border-radius: 8px; padding: 4px 5px; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.home-hero .hero__tc img { height: 38px; width: auto; }
@media (min-width: 700px) {
  .home-hero .hero__tc { display: none; }
  .home-hero .hero__proof { display: block; }
  .home-hero .hero__proof .hero__book-note { margin: 10px 0 0; }
}

/* ---------- Wave Dancer slide (desktop-only, 2026-10-06): right-side photo panel ----------
   Whole photo (3:2, full mast to hull + water) at full hero height, anchored so the sails clear the headline
   and the bow stays inside the viewport at 1440/1920/2400; left side is solid brand navy with a mask fade.
   No generated or extended pixels. Below 900px (text sits at the bottom) it falls back to a plain cover crop. */
.hero-carousel__slide[data-slide="wd"] { background: #0e1134; }
.hero-carousel__slide[data-slide="wd"] img { object-fit: cover; object-position: 40% 50%; }
@media (min-width: 900px) {
  .hero-carousel__slide[data-slide="wd"] { container-type: size; }
  .hero-carousel__slide[data-slide="wd"] img {
    inset: auto; top: 0; height: 100cqh; width: 150cqh; max-width: none;
    left: calc(61cqw - 42cqh);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%); mask-image: linear-gradient(90deg, transparent 0, #000 11%);
  }
}

/* Phone: keep the booking note (and inline TA badge) clear of the carousel dots (dots sit 18-40px from the bottom). */
@media (max-width: 699px) {
  .home-hero .hero__inner { padding-bottom: 56px; }
}
