/* Blowline Whale Trips: concept website by Milson Studio.
   A bright ocean brand, deliberately distinct from Milson's own site. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0B2A3C;
  --ink: #12232E;
  --sea: #1B5F80;
  --foam: #F4F2ED;
  --white: #FFFFFF;
  --line: #D8DDE1;
  --muted: #4F5E68;
  --cta: #FFB547;
  --cta-ink: #0B2A3C;
  --open: #2F7A57;
  --few: #B3741B;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --wrap: 1180px;
  --r: 12px;
  --top-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Concept disclosure */
.concept-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding: 8px 16px;
  background: var(--navy);
  color: #DCE6EC;
  font-size: 0.8125rem;
  text-align: center;
}
.concept-bar a { color: #fff; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 0.9375rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, transform 140ms ease-out, border-color 160ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: #FFC56E; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 24px; height: var(--top-h); }
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo span { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sea); }
.top nav { margin-left: auto; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 8px 0; }
.nav-links a:hover { color: var(--sea); }
@media (max-width: 760px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .logo span { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(calc(100svh - 104px), 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 28px;
  color: #fff;
  overflow: hidden;
  background: #0A2E45 url("../assets/aerial-poster.jpg") center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 22, 34, 0.78) 0%, rgba(4, 22, 34, 0.35) 55%, rgba(4, 22, 34, 0.1) 100%),
    linear-gradient(0deg, rgba(4, 22, 34, 0.7) 0%, transparent 40%);
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 28px; }
.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #CDE7F2; }
.hero h1 {
  margin-top: 16px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 12ch;
}
.hero-sub { margin-top: 20px; max-width: 34rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: #E6EFF3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.facts li { padding: 16px 16px 4px 0; color: #CFE0E8; font-size: 0.875rem; line-height: 1.35; }
.facts span { display: block; color: #fff; font-size: 1.125rem; font-weight: 700; margin-bottom: 2px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { padding-top: 64px; }
}

/* Sections */
.section-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: 36px; }
.section-head p, .lead { color: var(--muted); font-size: 1.125rem; }
.trips, .day, .faq, .dates { padding-block: clamp(64px, 10vh, 112px); }
.trips { background: var(--white); }

.trip-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.trip {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--foam);
}
.trip-main { background: #EAF3F7; border-color: #B8D3E0; }
.trip h3 { font-size: 1.625rem; }
.trip-tag { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.trip-tag-quiet { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.trip-for { color: var(--muted); }
.trip-facts { margin: 4px 0 8px; display: grid; }
.trip-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.trip-facts dt { color: var(--muted); }
.trip-facts dd { margin: 0; font-weight: 600; }
.trip .btn { justify-self: start; }
.promise { margin-top: 24px; padding: 16px 20px; border-radius: var(--r); background: var(--foam); font-size: 0.9375rem; }
.promise-label { display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) { .trip-grid { grid-template-columns: 1fr; } }

/* Encounter */
.encounter { position: relative; background: #061A26; color: #fff; }
.encounter-sticky { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.encounter-media, .encounter-media img, .encounter-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.encounter-video { display: none; }
.encounter-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 16, 24, 0.82) 0%, rgba(3, 16, 24, 0.45) 45%, transparent 75%), linear-gradient(0deg, rgba(3, 16, 24, 0.7) 0%, transparent 30%); }
.encounter-copy { position: relative; padding-block: 96px; }
.encounter-title { max-width: 12ch; }
.beats { margin-top: 32px; display: grid; gap: 24px; max-width: 26rem; }
.beat h3 { font-size: 1.375rem; }
.beat p { margin-top: 6px; color: #D5E3EA; }
.media-note { position: absolute; left: clamp(20px, 4vw, 40px); bottom: 20px; font-size: 0.75rem; color: #B7CAD4; }
.encounter-copy { position: static; }
.encounter-copy > :not(.media-note) { position: relative; }

/* Live scrub: pinned, video scrubbed by scroll, one beat at a time. */
.js .encounter.is-live { height: 320svh; }
.js .encounter.is-live .encounter-sticky { position: sticky; top: 0; height: 100svh; }
.js .encounter.is-live .encounter-video { display: block; }
.js .encounter.is-live .encounter-still { display: none; }
.js .encounter.is-live .beats { position: relative; min-height: 9rem; }
.js .encounter.is-live .beat { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(12px); transition: opacity 300ms ease-out, transform 300ms ease-out; }
.js .encounter.is-live .beat.is-on { opacity: 1; transform: none; }

/* The day */
.day-grid, .faq-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px 64px; align-items: start; }
.lead { margin-top: 12px; }
.timeline { display: grid; }
.timeline li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 800; color: var(--sea); font-size: 1.125rem; }
.timeline p { color: var(--muted); margin-top: 4px; }
@media (max-width: 820px) { .day-grid, .faq-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--white); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--sea); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 20px; color: var(--muted); max-width: 40rem; }

/* Booking path */
.booking {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  grid-template-areas: "trip summary" "date summary" "time summary";
  gap: 16px 32px;
  align-items: start;
}
.bk-step { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.bk-step:nth-of-type(1) { grid-area: trip; }
.bk-step:nth-of-type(2) { grid-area: date; }
.bk-step:nth-of-type(3) { grid-area: time; }
.bk-step legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-weight: 800; font-size: 1.0625rem; }
.bk-step legend span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.8125rem; }

.bk-trips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.bk-trip { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.bk-trip:has(input:checked) { border-color: var(--sea); background: #EAF3F7; }
.bk-trip input { margin-top: 4px; accent-color: var(--sea); }
.bk-trip small { display: block; color: var(--muted); font-size: 0.875rem; }

.bk-month { margin-top: 6px; font-weight: 700; }
.bk-month small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cal-dow { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: 700 0.9375rem var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.cal-day::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--open); }
.cal-day[data-state="few"]::after { background: var(--few); }
.cal-day[data-state="full"] { color: #9AA6AE; background: #F1F2F3; cursor: not-allowed; text-decoration: line-through; }
.cal-day[data-state="full"]::after { display: none; }
.cal-day[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-day:not([data-state="full"]):hover { border-color: var(--sea); }
.cal-blank { aspect-ratio: 1; }
.cal-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.k { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.k-open { background: var(--open); } .k-few { background: var(--few); } .k-full { background: #C4CBD0; }

.bk-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bk-time { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 700 0.9375rem var(--sans); color: var(--ink); cursor: pointer; }
.bk-time[aria-checked="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.bk-times-empty { color: var(--muted); font-size: 0.9375rem; padding: 10px 0; }
.bk-guests { display: grid; gap: 10px; margin-top: 16px; }
.stepper { display: grid; grid-template-columns: 1fr 44px 2.5rem 44px; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.25rem; color: var(--ink); cursor: pointer; }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { text-align: center; font-weight: 800; font-size: 1.125rem; }
.stepper[data-off] { opacity: 0.5; }

.bk-summary {
  grid-area: summary;
  position: sticky;
  top: calc(var(--top-h) + 16px);
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--navy);
  color: #fff;
}
.bk-summary dl { margin: 0; }
.bk-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9375rem; }
.bk-summary dt { color: #B9CDD8; }
.bk-summary dd { margin: 0; font-weight: 700; text-align: right; }
.bk-total dd { font-size: 1.25rem; }
.bk-field { display: grid; gap: 6px; font-size: 0.875rem; color: #D6E3EA; }
.bk-field input { min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff; font: 500 1rem var(--sans); }
.bk-note { font-size: 0.8125rem; color: #B9CDD8; }
.bk-done { margin-top: 24px; padding: 28px; border-radius: var(--r); background: #EAF3F7; border: 1px solid #B8D3E0; display: grid; gap: 12px; justify-items: start; }
.bk-done p { color: var(--muted); max-width: 44rem; }

@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr; grid-template-areas: "trip" "date" "time" "summary"; }
  .bk-summary { position: static; }
}
@media (max-width: 520px) {
  .bk-trips { grid-template-columns: 1fr; }
  .bk-step { padding: 16px 12px; }
  .cal { gap: 4px; }
  .cal-day { min-height: 38px; font-size: 0.875rem; }
}
html:not(.js) .booking { display: none; }
html:not(.js) .dates .section-head::after { content: "The date picker needs JavaScript. Use the trip details above."; color: var(--muted); }

/* Footer */
.foot { background: var(--navy); color: #C9D8E0; padding-block: 40px 48px; font-size: 0.9375rem; }
.foot-inner { display: grid; gap: 12px; }
.foot .logo { color: #fff; }
.foot .logo span { color: #9FC6D8; }
.foot a { color: #fff; }
.credits { font-size: 0.8125rem; color: #9DB4C0; }

@media (prefers-reduced-motion: reduce) {
  .btn, .beat { transition: none !important; }
}

/* Previewed inside the Milson site: no scrollbar in the frame. */
html.embed { scrollbar-width: none; }
html.embed::-webkit-scrollbar { display: none; }
