/* =====================================================================
   Reset, typography, layout primitives
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: var(--grad-page);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-bright);
  line-height: var(--lh-snug);
  letter-spacing: -.022em;
  margin: 0 0 var(--s-4);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.032em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.028em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--azure-bright); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
a:hover { color: var(--azure-soft); }

img, video, svg { max-width: 100%; display: block; }

/* Any class that sets `display` outranks the UA's [hidden] rule, which is how
   an element told to hide ends up on screen anyway. One rule settles it for
   the whole site. */
[hidden] { display: none !important; }
img { height: auto; }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: .35em; }

hr { border: 0; height: 1px; background: var(--border); margin: var(--s-6) 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--azure); color: #04162A; }

:focus-visible {
  outline: 2px solid var(--azure-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbars — restrained, matching the ground. */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); background-clip: content-box; }

/* ---- Layout ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 980px; }
.wrap--text   { max-width: 76ch; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--flush-top { padding-top: 0; }

.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }

.flex { display: flex; gap: var(--s-3); }
.flex--between { justify-content: space-between; align-items: center; }
.flex--center { align-items: center; }
.flex--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---- Type helpers ---------------------------------------------------- */

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--azure-bright);
  margin-bottom: var(--s-3);
  display: block;
}
.eyebrow--gold { color: var(--gold); }

.kicker {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--silver-dim);
  max-width: 62ch;
}

.muted { color: var(--text-dim); }
.bright { color: var(--text-bright); }
.small { font-size: var(--fs-sm); }
.tiny  { font-size: var(--fs-xs); }
.center { text-align: center; }
.center-x { margin-inline: auto; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: var(--s-4); z-index: 200;
  background: var(--azure); color: #04162A; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); }

/* ---- Section headers ------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: clamp(24px, 3.5vw, 48px);
  flex-wrap: wrap;
}
.section-head__text { max-width: 64ch; }
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { color: var(--text-dim); margin: 0; }

/* ---- Reveal on scroll ------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Utility --------------------------------------------------------- */

.ratio { position: relative; overflow: hidden; }
.ratio > img, .ratio > video, .ratio > iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ratio--wide   { aspect-ratio: 16 / 10; }
.ratio--cine   { aspect-ratio: 21 / 9; }
.ratio--square { aspect-ratio: 1; }
.ratio--tall   { aspect-ratio: 3 / 4; }
.ratio--reel   { aspect-ratio: 9 / 16; }

.hide-desktop { display: none; }
@media (max-width: 900px) {
  .hide-mobile  { display: none !important; }
  .hide-desktop { display: revert; }
}

.no-print { }
@media print {
  .no-print, .site-nav, .mobile-nav, .wa-float, .app-splash { display: none !important; }
  body { background: #fff; color: #000; }

  /* The brand block is screen-hidden and print-only — see components.css. */
  .print-brand {
    display: flex !important; align-items: center; gap: 12px;
    padding: 0 0 14px; margin-bottom: 22px;
    border-bottom: 2px solid #04162A;
  }
  .print-brand img { width: 40px; height: 40px; border-radius: 50%; }
  .print-brand b { display: block; font-size: 1.05rem; letter-spacing: -.02em; color: #04162A; }
  .print-brand small { display: block; font-size: .72rem; color: #55647A; }
  main { padding-top: 0 !important; }

  /* Ink on paper. A printed itinerary should not be a full-bleed dark hero. */
  .page-hero { min-height: 0 !important; padding: 0 0 18px !important; }
  .page-hero__bg, .page-hero__veil, .page-hero video { display: none !important; }
  .page-hero *, .page-hero h1, .page-hero .lede { color: #000 !important; text-shadow: none !important; }
  .btn, .wa-btn, .reels-page, .atlas, .rail__nav { display: none !important; }
  .card, .panel, section { break-inside: avoid; }

  /* Reveal-on-scroll never runs when printing, so unhide everything, and put
     the muted greys back to something that survives a laser printer. */
  [data-reveal], [data-reveal] * { opacity: 1 !important; transform: none !important; }
  body, p, li, td, dd, .lede, .muted, .small, h1, h2, h3, h4 { color: #16202E !important; }
  .muted, .small { color: #46566B !important; }
  a { color: #123A6B !important; text-decoration: underline; }

  /* Gradient-clipped headings print as nothing at all — paint them flat. */
  .grad-text, .price__now, .day__title, [class*="__title"], [class*="price"] {
    background: none !important; -webkit-text-fill-color: #16202E !important;
    color: #16202E !important;
  }
}
