/* ==========================================================================
   CDM Yachts — design system
   2026-10-27 refresh: Apple HIG + Liquid Glass. The rules that shape it:

   - Two layers. Glass (blur + translucent fill + hairline highlight) is
     only for the floating functional layer: the header capsule, its
     menus, the mobile menu sheet, the phone action bar, the hero booking
     panel and the photo-gallery controls. Content (text, tiles, forms)
     stays on solid surfaces so it reads at a glance. Water photography is
     what the glass floats over; that is the brand's signature.
   - Brand color is spent on primary actions: one or two gold buttons per
     view. Secondary actions use the tinted style (.btn--outline).
   - Every glass surface has an opaque fallback: no backdrop-filter
     support, prefers-reduced-transparency, prefers-contrast: more.
   - Motion is short and optional; prefers-reduced-motion removes it,
     including the page cross-fade.
   - No small label sits above a headline (York's standing rule); .eyebrow
     is retired below.

   Colors are the existing brand (docs/audit/design-system.md); contrast
   on white: navy 18.7:1, slate 5.4:1, gold-text 5.8:1; navy on gold 9.1:1.
   ========================================================================== */

:root {
  --color-navy: #061138;
  --color-navy-deep: #081853;
  --color-gold: #d5ae82;
  --color-gold-deep: #b09373;
  /* Gold-brown for text on light backgrounds (5.8:1 on white); plain
     gold is only for fills and for text on navy. */
  --color-gold-text: #7a6144;
  --color-white: #ffffff;
  /* Muted text. #7f8a99 failed AA (3.5:1); #5f6b78 is 5.4:1 on white. */
  --color-slate: #5f6b78;
  --color-slate-light: #b5c0cf;
  --color-mist: #f0f3f7;
  /* Tile surface for content cards: a cool, barely-there gray in the
     spirit of Apple's #f5f5f7 product tiles. On mist sections tiles turn
     white instead (see .section--mist .card). */
  --color-tile: #f4f6f9;
  --color-line: rgba(6, 17, 56, 0.09);
  --color-alert: #be1935;

  /* Inter for everything, light display weights per the owner's direct
     direction (thin/modern/sleek, 2026-09-17). Display moved from 100 to
     250 and small headings to 600 in the 2026-10 refresh: hairline
     weights don't hold up at small sizes (HIG Typography: avoid light
     weights for small text). */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;

  --space-1: 0.4rem;
  --space-2: 0.85rem;
  --space-3: 1.25rem;
  --space-4: 1.75rem;
  --space-5: 2.1rem;
  --space-6: 2.5rem;
  --space-8: 3.25rem;
  --space-12: 4.5rem;
  --space-16: 6rem;
  --section-space: clamp(4rem, 7vw, 7rem);
  --gutter: clamp(1rem, 3vw, 2rem);

  --max-content: 1280px;
  --max-prose: 68ch;

  /* Shape: controls and fields 14px, media tiles 24px, buttons/chips pill. */
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --header-height: 64px;
  --header-height-scrolled: 56px;
  --header-offset: 12px;

  --shadow-soft: 0 1px 2px rgba(6, 17, 56, 0.05), 0 6px 20px rgba(6, 17, 56, 0.06);
  --shadow-lift: 0 2px 6px rgba(6, 17, 56, 0.06), 0 22px 48px -12px rgba(6, 17, 56, 0.22);
  --shadow-float: 0 1px 1px rgba(6, 17, 56, 0.05), 0 14px 44px rgba(6, 17, 56, 0.16);

  /* Liquid Glass approximations (HIG liquid-glass.md › Cross-platform):
     regular ≈ 24–28px blur at 70–86% fill, clear ≈ 16px at 20–40%,
     ~1.6× saturation so the water behind stays lively. */
  --glass-fill: rgba(255, 255, 255, 0.72);
  --glass-fill-strong: rgba(255, 255, 255, 0.86);
  --glass-fill-dark: rgba(6, 17, 56, 0.72);
  --glass-fill-clear: rgba(6, 17, 56, 0.26);
  --glass-blur: blur(24px) saturate(1.6);
  --glass-blur-strong: blur(30px) saturate(1.7);
  --glass-edge: rgba(255, 255, 255, 0.6);
  --glass-edge-dark: rgba(255, 255, 255, 0.16);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --focus-ring: 0 0 0 4px rgba(213, 174, 130, 0.45);

  /* Considered motion for reveals, images and menus; quick functional
     feedback (press, focus) stays short. */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* One-time scroll-entrance for section content (see main.js): a quiet
   rise + fade. Safety-critical: the hidden starting state ONLY applies
   under html.js, a class an inline script in <head> adds before paint.
   If JS never runs, content simply renders. Keep the html.js prefix on
   both rules (the .is-visible rule must be at least as specific, or the
   hidden state wins forever). transform:none, not translateY(0), once
   revealed: any transform creates a stacking context that painted
   content over the sticky header mid-scroll. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.21s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.28s; }
.reveal-group > .reveal:nth-child(6) { transition-delay: 0.35s; }

/* Page transitions: browsers that support cross-document View
   Transitions (Chrome/Edge 126+, Safari 18.2+) cross-fade between pages.
   Others navigate normally. Don't give the header or the action bar a
   view-transition-name: it makes them a backdrop root, and the glass
   inside them (the capsule, its menus) stops blurring the page and shows
   it through crisp. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s var(--ease-premium) both; }
::view-transition-new(root) { animation: vt-in 0.38s var(--ease-premium) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ==========================================================================
   Reset + base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--header-offset) * 2); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem; /* 17px, the HIG body default */
  line-height: 1.6;
  color: var(--color-navy);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }
::selection { background: rgba(213, 174, 130, 0.45); color: var(--color-navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--color-navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 2.6vw + 1rem, 3.5rem); font-weight: 250; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.875rem, 2vw + 1rem, 2.75rem); font-weight: 300; letter-spacing: -0.028em; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }

/* Statement-scale display type for hero moments. */
.display-xl {
  font-family: var(--font-display);
  font-weight: 250;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 3.6vw + 1rem, 4.5rem);
  color: var(--color-white);
  max-width: 15ch;
  margin: 0 0 0.35em;
}

/* An italic accent line, used once or twice a page. */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.375rem, 1.4vw + 1rem, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  max-width: 34ch;
  margin: 0 0 0.6em;
}
.section--navy .pull-quote { color: var(--color-white); }

/* Section intro: a larger lead line under the heading. */
.section-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-slate);
  max-width: 56ch;
  margin: -0.2em 0 var(--space-4);
}
.section--navy .section-lead { color: var(--color-slate-light); }

p { margin: 0 0 var(--space-2); max-width: var(--max-prose); }
strong { font-weight: 600; }

a {
  color: inherit;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:not([class]) { color: var(--color-navy-deep); }
a:not([class]):hover { text-decoration-color: var(--color-navy-deep); }

button { font-family: inherit; }

/* Visible focus everywhere. Never remove it. */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  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;
  left: var(--space-2);
  top: -100px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-2); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }
.section--tight { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.section--mist { background: linear-gradient(180deg, #f5f7fa 0%, var(--color-mist) 100%); }
/* Back-to-back mist sections: continue flat from where the first ends. */
.section--mist + .section--mist { background: var(--color-mist); }
/* Deep water: navy with a little moonlight and sea-blue depth, instead of
   a flat fill. */
.section--navy {
  color: var(--color-white);
  background:
    radial-gradient(110% 80% at 88% 0%, rgba(213, 174, 130, 0.13) 0%, rgba(213, 174, 130, 0) 46%),
    radial-gradient(90% 70% at 0% 100%, rgba(40, 92, 160, 0.28) 0%, rgba(40, 92, 160, 0) 60%),
    linear-gradient(180deg, #08164a 0%, #050d2c 100%);
  background-color: var(--color-navy);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--color-white); }
.section--navy a:not([class]) { color: var(--color-white); }

/* ==========================================================================
   Buttons. Pill, Title Case, 48px. Primary = gold fill (one or two per
   view); .btn--outline = the tinted secondary style (name kept so the
   templates didn't change meaning); .btn--glass = for photos and navy.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
}
.btn--sm { min-height: 40px; padding: 0.55em 1.15em; font-size: 0.92rem; }

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px -6px rgba(176, 147, 115, 0.65);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: #dcb98f;
  color: var(--color-navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 26px -8px rgba(176, 147, 115, 0.8);
}

.btn--outline {
  background: rgba(6, 17, 56, 0.06);
  color: var(--color-navy);
  border-color: transparent;
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: rgba(6, 17, 56, 0.11);
  color: var(--color-navy);
}

/* Over photos and on navy: a glass pill. */
.btn--glass,
.section--navy .btn--outline,
.feature-band .btn--outline,
.site-footer .btn--outline,
.article-cta .btn--outline,
.quick-quote--dark .btn--outline {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
}
.btn--glass:hover, .btn--glass:focus-visible,
.section--navy .btn--outline:hover, .section--navy .btn--outline:focus-visible,
.feature-band .btn--outline:hover, .feature-band .btn--outline:focus-visible,
.site-footer .btn--outline:hover,
.article-cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.24);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.36);
}

/* Text link with an arrow that nudges on hover. */
.link-arrow, .yacht-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
  text-decoration: none;
}
.link-arrow:hover, .yacht-card__link:hover { color: var(--color-gold-text); }

/* ==========================================================================
   Subpage title: a large title on the page itself (HIG large titles),
   with the breadcrumb trail above and one hairline below.
   ========================================================================== */

.page-header { padding-block: clamp(1.25rem, 3vw, 2.25rem) 0; }
.page-header .container {
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
  /* A hairline the width of the text column (a border would also run
     under the container's side padding). */
  background: linear-gradient(var(--color-line), var(--color-line)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.page-header h1 { margin: 0.35em 0 0; max-width: 22ch; }
/* Breadcrumbs only (the page sets its own H1 lower down). */
.page-header--crumbs { padding-bottom: clamp(0.75rem, 2vw, 1.25rem); }
.page-header--crumbs .container { padding-bottom: 0; background: none; }

.breadcrumbs { font-size: 0.85rem; color: var(--color-slate); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 0.75em;
  border-right: 1.5px solid var(--color-slate-light);
  border-top: 1.5px solid var(--color-slate-light);
  transform: rotate(45deg);
}
.breadcrumbs a { color: var(--color-slate); text-decoration: none; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--color-navy); }
.breadcrumbs [aria-current="page"] { color: var(--color-navy); font-weight: 500; }

/* ==========================================================================
   Header: a floating glass capsule. The glass lives on ::before so the
   bar itself is not a backdrop root; that lets the menus below it blur
   the page too (a nested backdrop-filter only samples its parent).
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--header-offset);
  /* The wrapper is invisible; only the capsule takes clicks. */
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: min(var(--max-content), calc(100% - 2 * var(--header-offset)));
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: 1.25rem 0.5rem;
  border-radius: var(--radius-pill);
  transition: height 0.35s var(--ease-premium);
}
.site-header__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 0 0 1px rgba(6, 17, 56, 0.05), var(--shadow-float), var(--glass-highlight);
  transition: background-color 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
}
.site-header.is-scrolled .site-header__bar { height: var(--header-height-scrolled); }
.site-header.is-scrolled .site-header__bar::before { background: var(--glass-fill-strong); }

/* Homepage: fixed over the full-bleed hero, so <main> starts at y:0. At
   rest over the hero (.hero-active, set by main.js) the capsule turns to
   clear glass with white type; once scrolled it is the regular capsule.
   Without JS it stays the regular capsule. */
.site-header--transparent { position: fixed; top: 0; left: 0; right: 0; }
.site-header--transparent.hero-active .site-header__bar::before {
  background: var(--glass-fill-clear);
  border-color: var(--glass-edge-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 40px rgba(0, 0, 0, 0.18);
}
.site-header--transparent.hero-active .primary-nav > ul > li > a,
.site-header--transparent.hero-active .primary-nav .has-children > button,
.site-header--transparent.hero-active .header-call,
.site-header--transparent.hero-active .nav-toggle { color: var(--color-white); }
.site-header--transparent.hero-active .site-header__logo img { filter: brightness(0) invert(1); }
.site-header--transparent.hero-active .header-call { background: rgba(255, 255, 255, 0.14); }

.site-header__logo { flex-shrink: 0; display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 44px; width: auto; transition: height 0.35s var(--ease-premium), filter 0.3s ease; }
.site-header.is-scrolled .site-header__logo img { height: 38px; }

.primary-nav { display: none; }

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .primary-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }
  .primary-nav > ul > li { position: relative; }
  .primary-nav > ul > li.has-mega { position: static; }

  /* Nav items: a soft pill on hover and for the current page, the way
     segmented controls show selection, instead of an underline. */
  .primary-nav > ul > li > a,
  .primary-nav .has-children > button {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    min-height: 40px;
    padding: 0 0.85rem;
    border-radius: var(--radius-pill);
    font: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
    color: var(--color-navy);
    background: transparent;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .primary-nav > ul > li > a:hover,
  .primary-nav .has-children:hover > button,
  .primary-nav .has-children.is-open > button,
  .primary-nav .has-children:focus-within > button { background: rgba(6, 17, 56, 0.06); }
  .primary-nav > ul > li > a[aria-current="page"] { background: rgba(6, 17, 56, 0.08); font-weight: 600; }
  .site-header--transparent.hero-active .primary-nav > ul > li > a:hover,
  .site-header--transparent.hero-active .primary-nav .has-children:hover > button,
  .site-header--transparent.hero-active .primary-nav .has-children.is-open > button,
  .site-header--transparent.hero-active .primary-nav > ul > li > a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }

  .primary-nav .has-children > button svg { transition: transform 0.25s var(--ease-premium); }
  .primary-nav .has-children:hover > button svg,
  .primary-nav .has-children.is-open > button svg,
  .primary-nav .has-children:focus-within > button svg { transform: rotate(180deg); }

  /* Menus: regular glass popovers. */
  .primary-nav .dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    border-radius: 20px;
    background: var(--glass-fill-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-edge);
    box-shadow: 0 0 0 1px rgba(6, 17, 56, 0.05), var(--shadow-float), var(--glass-highlight);
    /* The nav list is nowrap; menus wrap normally (links opt back in). */
    white-space: normal;
    display: none;
    opacity: 0;
    transform: translateX(-50%) translateY(6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.25s var(--ease-premium);
  }
  /* An invisible bridge across the gap so the pointer can travel from
     the trigger to the menu. */
  .primary-nav .dropdown::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -16px;
    height: 16px;
  }
  .primary-nav .has-children:hover .dropdown,
  .primary-nav .has-children:focus-within .dropdown,
  .primary-nav .has-children.is-open .dropdown {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  .primary-nav .dropdown a {
    display: block;
    padding: 0.6em 0.9em;
    border-radius: 12px;
    color: var(--color-navy);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
  }
  .primary-nav .dropdown a:hover,
  .primary-nav .dropdown a:focus-visible,
  .primary-nav .dropdown a[aria-current="page"] { background: rgba(6, 17, 56, 0.06); }

  /* Mega menu: centered under the whole capsule (.has-mega is static and
     the capsule is position:relative), so it can't clip off-screen. */
  .primary-nav .dropdown.dropdown--mega {
    top: calc(100% + 10px);
    width: min(960px, calc(100vw - 48px));
    min-width: 0;
    display: none;
    /* Link columns as wide as their longest item; the feature column
       takes the rest. */
    grid-template-columns: repeat(3, max-content) minmax(220px, 1fr);
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 26px;
  }
  .primary-nav .has-children:hover .dropdown--mega,
  .primary-nav .has-children:focus-within .dropdown--mega,
  .primary-nav .has-children.is-open .dropdown--mega { display: grid; }
  .dropdown--mega__heading {
    margin: 0 0 0.4em;
    padding-inline: 0.9em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-slate);
  }
  .dropdown--mega__col ul { list-style: none; margin: 0; padding: 0; }
  .dropdown--mega__col--feature {
    background: rgba(6, 17, 56, 0.05);
    border-radius: 18px;
    padding: var(--space-3);
  }
  .dropdown--mega__col--feature .dropdown--mega__heading { padding-inline: 0; color: var(--color-navy); font-size: 0.95rem; }
  .dropdown--mega__col--feature p { font-size: 0.9rem; color: var(--color-slate); margin: 0 0 var(--space-2); }
  .dropdown--mega__col--feature .btn { width: 100%; }
}

/* Nine nav items fit beside the call and CTA buttons only with tighter
   spacing below 1280px (measured 2026-11-11 after Home came back). */
@media (min-width: 1024px) and (max-width: 1199px) {
  .primary-nav > ul > li > a, .primary-nav .has-children > button { padding: 0 0.42rem; font-size: 0.875rem; }
  .site-header__bar { gap: var(--space-2); padding-inline: 1rem 0.4rem; }
  .site-header__logo img { height: 38px; }
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .primary-nav > ul > li > a, .primary-nav .has-children > button { padding: 0 0.6rem; font-size: 0.92rem; }
}

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.site-header__actions .btn { min-height: 44px; padding: 0.6em 1.25em; }

/* Call button in the capsule: icon only until there's room for the number. */
.header-call {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 17, 56, 0.06);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.header-call:hover { background: rgba(6, 17, 56, 0.11); }
.header-call__number { display: none; }
@media (min-width: 1024px) { .header-call { display: inline-flex; } }
/* 1024-1099: the call icon makes way for the nav (the phone stays in the hero and footer). */
@media (min-width: 1024px) and (max-width: 1099px) { .header-call { display: none; } }
@media (min-width: 1320px) { .header-call__number { display: inline; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: none;
  color: var(--color-navy);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(6, 17, 56, 0.06); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
@media (max-width: 639px) {
  /* Phones book from the floating action bar instead. */
  .site-header__actions .btn--primary { display: none; }
  .site-header__bar { padding-inline: 1rem 0.35rem; }
  .site-header__logo img { height: 38px; }
}

/* Mobile menu: a full-screen sheet of dark glass. */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  color: var(--color-white);
  background: rgba(5, 13, 44, 0.82);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  padding: calc(var(--header-offset) + 4.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.3s var(--ease-premium), transform 0.35s var(--ease-premium), visibility 0s linear 0.35s;
}
.mobile-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease-premium), transform 0.35s var(--ease-premium), visibility 0s;
}
.mobile-nav a { color: var(--color-white); text-decoration: none; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-nav > ul > li > a,
.mobile-nav > ul > li > button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0.35rem 0;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.mobile-nav > ul > li > button svg { transition: transform 0.25s var(--ease-premium); }
.mobile-nav .has-children[data-expanded="true"] > button svg { transform: rotate(180deg); }
.mobile-nav .dropdown { display: none; padding: 0 0 0.75rem; }
.mobile-nav .dropdown a { display: block; padding: 0.55rem 0; font-size: 1.05rem; color: var(--color-slate-light); }
.mobile-nav .dropdown a:hover { color: var(--color-white); }
.mobile-nav .has-children[data-expanded="true"] .dropdown { display: block; }
.mobile-nav__close {
  position: absolute;
  top: calc(var(--header-offset) + 0.6rem);
  right: calc(var(--gutter) - 0.25rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  cursor: pointer;
}
.mobile-nav__footer { display: grid; gap: 0.6rem; margin-top: var(--space-6); }
.mobile-nav__footer .btn { width: 100%; }
.mobile-nav__footer p { margin: 0.4rem 0 0; text-align: center; }
.mobile-nav__footer p a { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-slate-light); }

body.nav-open { overflow: hidden; }

/* Phone action bar: a floating glass capsule, Book as the one primary. */
.mobile-action-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--glass-fill-dark);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge-dark);
  box-shadow: 0 14px 40px rgba(6, 17, 56, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.mobile-action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 48px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-spring);
}
.mobile-action-bar a:active { transform: scale(0.96); }
.mobile-action-bar a:not(.mobile-action-bar__primary):hover { background: rgba(255, 255, 255, 0.1); }
.mobile-action-bar__primary { background: var(--color-gold); color: var(--color-navy) !important; }
@media (min-width: 1024px) { .mobile-action-bar { display: none; } }
body.has-mobile-action-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.has-mobile-action-bar { padding-bottom: 0; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  color: var(--color-white);
  /* Starts where .section--navy ends (#050d2c) so a navy section above
     runs into the footer without a seam. */
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(213, 174, 130, 0.08) 0%, rgba(213, 174, 130, 0) 50%),
    linear-gradient(180deg, #050d2c 0%, #030921 100%);
  background-color: var(--color-navy);
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-4);
}
.site-footer a { color: var(--color-slate-light); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--color-white); }
/* A footer link rule once beat .btn--primary on specificity and turned
   the button white-on-gold (2.05:1). Keep these. */
.site-footer .btn--primary,
.site-footer .btn--primary:hover,
.site-footer .btn--primary:focus-visible { color: var(--color-navy); }
.site-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.site-footer__cta h2 { margin: 0; color: var(--color-white); font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.site-footer__cta p { margin: 0.35em 0 0; color: var(--color-slate-light); }
.site-footer__logo { margin-bottom: 1rem; }
.footer-grid {
  display: grid;
  gap: var(--space-6) var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}
.footer-grid p { color: var(--color-slate-light); font-size: 0.95rem; }
.footer-grid h3 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-2);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.15em; }
.footer-grid li a { display: inline-flex; min-height: 36px; align-items: center; font-size: 0.95rem; }
@media (pointer: coarse) {
  .footer-grid li a { min-height: 44px; }
  .site-footer__bottom a { display: inline-flex; min-height: 44px; align-items: center; }
}
.site-footer__bottom {
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--color-slate-light);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
}

/* ==========================================================================
   Tiles (fleet, articles, services). Photo-led, rounded, no borders: the
   image carries the weight and the text sits on a quiet tile surface.
   ========================================================================== */

.card-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-tile);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium), background-color 0.3s ease;
}
.section--mist .card { background: var(--color-white); box-shadow: var(--shadow-soft); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-mist); position: relative; border-radius: var(--radius-lg); }
/* Inside a tile the tile does the rounding. */
.card > .card__media, .featured-article > .card__media { border-radius: 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-premium); }
@media (prefers-reduced-motion: no-preference) {
  .card:hover .card__media img { transform: scale(1.05); }
}
.card__body { padding: var(--space-3) var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: 0.45em; flex: 1; }
.card__body h2, .card__body h3 { font-weight: 600; letter-spacing: -0.015em; }
.card__body h2 a, .card__body h3 a { text-decoration: none; transition: color 0.15s ease; }
.card__body h2 a:hover, .card__body h3 a:hover { color: var(--color-gold-text); }
.card__body p { font-size: 0.98rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 0.35em 1em; font-size: 0.85rem; color: var(--color-slate); }
.card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: var(--space-2); }

.price-tag { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--color-navy); margin: 0; }
.price-tag__note { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; letter-spacing: 0; color: var(--color-slate); margin-top: 0.2em; }

/* Fleet tile: specs as glass chips over the photo, name on the photo,
   price and actions below; the whole tile opens the yacht (main.js). */
.yacht-card { cursor: pointer; }
.yacht-card .card__media { aspect-ratio: 5 / 4; }
.yacht-card .card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 56, 0) 52%, rgba(6, 17, 56, 0.72) 100%);
  pointer-events: none;
}
.yacht-card__badges {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  right: var(--space-2);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}
.yacht-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2em 0.75em;
  border-radius: var(--radius-pill);
  background: rgba(6, 17, 56, 0.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}
.yacht-card__badge--promo { background: var(--color-gold); border-color: transparent; color: var(--color-navy); }
.yacht-card__name {
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-2);
  z-index: 1;
  margin: 0;
  color: var(--color-white);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.yacht-card__name a { text-decoration: none; color: inherit; }
.yacht-card__name a::after { content: ""; position: absolute; inset: 0; }
.yacht-card .card__body { padding-top: var(--space-3); }
.yacht-card .card__actions { justify-content: space-between; position: relative; z-index: 2; }

/* Article tiles. */
.article-card .card__media { position: relative; }
.article-card .card__body h2 { font-size: 1.2rem; line-height: 1.3; }
.article-card__excerpt { color: var(--color-slate); font-size: 0.98rem; }
/* The whole tile opens the post; photo-credit links stay clickable above. */
.article-card .card__body h2 a::after { content: ""; position: absolute; inset: 0; }
.article-card .card__body .form-note a, .article-card .card__actions { position: relative; z-index: 1; }

.featured-article {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-tile);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
}
@media (min-width: 768px) { .featured-article { grid-template-columns: 1.15fr 1fr; align-items: stretch; } }
.featured-article .card__media { aspect-ratio: 16 / 10; height: 100%; }
@media (min-width: 768px) { .featured-article .card__media { aspect-ratio: auto; min-height: 380px; } }
.featured-article__body {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6em;
}
.featured-article__body h2 { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem); margin-bottom: 0.1em; }

/* Occasion tiles: full-bleed photo, whole tile is the link. */
.occasion-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .occasion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .occasion-grid { grid-template-columns: repeat(3, 1fr); } }

.occasion-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  color: var(--color-white);
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium);
}
.occasion-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-premium);
}
.occasion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 56, 0) 35%, rgba(6, 17, 56, 0.86) 100%);
  z-index: 1;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .occasion-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .occasion-card:hover img { transform: scale(1.06); }
}
.occasion-card__body { position: relative; z-index: 2; padding: var(--space-4) var(--space-3); }
.occasion-card__body h3 { color: var(--color-white); font-size: 1.55rem; font-weight: 300; letter-spacing: -0.025em; margin-bottom: 0.3em; }
.occasion-card__body p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; margin: 0; max-width: 32ch; }
.occasion-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.9em;
  padding: 0.45em 0.95em;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-white);
}

/* Photo band: an inset, rounded panel of water photography with the
   text over its darkest side. Also the hero of several subpages. */
.feature-band {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  margin-inline: var(--header-offset);
  border-radius: var(--radius-xl);
  color: var(--color-white);
  background: var(--color-navy);
}
.feature-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* z-index:1 so the gradient paints over the <img> (::before is the first
   box and would otherwise sit behind it), under the content (2). */
.feature-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 17, 56, 0.92) 0%, rgba(6, 17, 56, 0.84) 38%, rgba(6, 17, 56, 0.5) 66%, rgba(6, 17, 56, 0.12) 100%);
}
/* A normal centered container so the text lines up with the column below;
   the narrow measure goes on the children (--band-text-width). */
.feature-band > .container { width: 100%; margin-inline: auto; }
.feature-band__content { position: relative; z-index: 2; padding-block: var(--space-8); }
.feature-band__content > * { max-width: var(--band-text-width, 46ch); }
.feature-band__content p:last-child { margin-bottom: 0; }
/* Buttons under a band's text (e.g. includes/components/holiday-band.php). */
.band-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.feature-band__content > .band-actions { max-width: none; }

/* Corporate request form (includes/components/corporate-form.php). */
.corporate-form .form-field { margin-bottom: var(--space-2); }
.corporate-form__lede { color: var(--color-slate); margin: -0.4em 0 var(--space-3); }
.corporate-form__addons { border: 0; padding: 0; margin: 0 0 var(--space-2); }
.corporate-form__addons legend { font-size: 0.92rem; font-weight: 500; margin-bottom: 0.45em; padding: 0; }
/* Scoped past the generic .form-field label/input rules, which would make
   each checkbox a full-width, 50px-tall block with its label underneath. */
.corporate-form .corporate-form__addons label { display: inline-flex; align-items: center; gap: 0.45em; min-height: 40px; margin: 0 var(--space-3) 0 0; font-size: 0.98rem; font-weight: 400; }
.corporate-form .corporate-form__addons input { width: 1.15em; height: 1.15em; min-height: 0; padding: 0; flex-shrink: 0; }
.corporate-form__submit { margin-top: var(--space-3); }

/* "Aboard the Westport 100" (includes/components/event-yacht.php). */
.event-yacht__photos { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin: var(--space-4) 0 var(--space-5); }
@media (min-width: 640px) { .event-yacht__photos { grid-template-columns: repeat(3, 1fr); } }
.event-yacht__photos .card__media { aspect-ratio: 3 / 2; }
.event-yacht__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 960px) { .event-yacht__grid { grid-template-columns: 1fr 1.3fr; gap: var(--space-8); } }
.event-yacht__list { margin-top: 0; }
.event-yacht__note { color: var(--color-slate); font-size: 0.95rem; }
.event-yacht__table { min-width: 0; }
.event-yacht__table td:last-child { font-weight: 600; color: var(--color-navy); }
.feature-band__content p { color: rgba(255, 255, 255, 0.86); font-size: 1.1rem; }
/* Base heading color is navy; on the photo band it's white. */
.feature-band h1, .feature-band h2 { color: var(--color-white); }
/* Backstop for bright hulls or sky under the text. */
.feature-band__content h1,
.feature-band__content h2,
.feature-band__content > p {
  text-shadow: 0 2px 14px rgba(6, 17, 56, 0.6), 0 1px 2px rgba(6, 17, 56, 0.6);
}
/* The band is inset, so it needs air where it meets a colored section. */
.section--navy + .feature-band, .section--mist + .feature-band { margin-top: var(--section-space); }
.feature-band:has(+ .section--navy), .feature-band:has(+ .section--mist) { margin-bottom: var(--section-space); }
@media (max-width: 640px) {
  .feature-band { min-height: 380px; border-radius: var(--radius-lg); }
  .feature-band::before { background: linear-gradient(0deg, rgba(6, 17, 56, 0.94) 0%, rgba(6, 17, 56, 0.7) 55%, rgba(6, 17, 56, 0.35) 100%); }
  .feature-band { align-items: flex-end; }
}

/* Two-column narrative + photo block ("Why CDM Yachts"). */
.narrative {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .narrative { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .narrative--media-right .narrative__media { order: 2; }
}
.narrative__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); }
.narrative__media img { width: 100%; height: 100%; object-fit: cover; }
.narrative__list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.narrative__list li { padding-left: 2rem; position: relative; }
.narrative__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(213, 174, 130, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%237a6144' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* ==========================================================================
   Forms: 50px fields, 14px corners, a soft gold focus ring.
   ========================================================================== */

.form-field { margin-bottom: var(--space-3); }
.form-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.45em;
  color: var(--color-navy);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75em 1em;
  border: 1px solid rgba(6, 17, 56, 0.14);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #8a94a3; }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: rgba(6, 17, 56, 0.26); }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--color-gold-deep);
  box-shadow: var(--focus-ring);
}
.form-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75em;
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23061138' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 1.05em center / 0.8em no-repeat;
}
.form-field textarea { min-height: 130px; resize: vertical; }
/* Side-by-side fields. minmax(0, 1fr) lets date/time inputs, which have
   a wide intrinsic size, shrink to their column. Single column on phones. */
.form-row { display: grid; gap: 0 var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field, .form-field input, .form-field select { min-width: 0; }
@media (max-width: 479px) {
  .form-row:not(.form-row--3) { grid-template-columns: minmax(0, 1fr); }
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-navy); width: 1.15em; height: 1.15em; }
.form-field--error input,
.form-field--error select,
.form-field--error textarea { border-color: var(--color-alert); }
.form-field__error { color: var(--color-alert); font-size: 0.88rem; margin-top: 0.35em; }
.form-error-summary {
  border: 1px solid rgba(190, 25, 53, 0.3);
  background: #fdf1f3;
  color: var(--color-alert);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
}
.form-error-summary p { margin: 0; font-weight: 600; }
.form-error-summary ul { margin: 0.4em 0 0; padding-left: 1.25em; }
.form-note { font-size: 0.88rem; color: var(--color-slate); }

/* Homepage hero: full-bleed water, the glass header capsule and booking
   panel floating over it. */
.hero__stage {
  position: relative;
  min-height: max(640px, min(940px, 100svh));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy);
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Two scrims: a light one at the top so the clear-glass header's white
   type holds over bright sky, a heavy one at the base under the text. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 56, 0.5) 0%, rgba(6, 17, 56, 0) 22%),
    linear-gradient(0deg, rgba(6, 17, 56, 0.92) 0%, rgba(6, 17, 56, 0.45) 50%, rgba(6, 17, 56, 0.12) 100%);
}
.hero-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
  padding-block: calc(var(--header-height) + var(--header-offset) + var(--space-8)) clamp(2.5rem, 6vw, 4.5rem);
}
.hero-grid .display-xl { text-shadow: 0 2px 24px rgba(6, 17, 56, 0.35); }
@media (min-width: 960px) {
  .hero-grid { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
  .hero-grid__text { flex: 1 1 auto; max-width: 60%; }
}
.hero-lede { max-width: 42ch; font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem); line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 639px) {
  /* Phones: the floating action bar already offers Call and View Fleet. */
  .hero-actions { display: none; }
}

/* Hero booking panel: regular light glass floating over the water, so
   navy labels stay at least 9:1 whatever the video shows behind it. */
.hero-quote {
  position: relative;
  width: 100%;
  max-width: 400px;
  flex: 0 0 auto;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 28px;
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.hero-quote__title { margin: 0 0 0.2em; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; color: var(--color-navy); }
.hero-quote__sub { margin: 0 0 1em; font-size: 0.92rem; color: var(--color-slate); }
.hero-quote .form-field label { color: var(--color-navy); font-weight: 500; font-size: 0.85rem; }
.hero-quote__form { display: grid; gap: 0.8rem; }
.hero-quote__form .form-field { margin-bottom: 0; }
.hero-quote__form .form-field input,
.hero-quote__form .form-field select {
  min-height: 48px;
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(6, 17, 56, 0.1);
}
.hero-quote__pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.7rem; }
.hero-quote__pair .form-field { margin-bottom: 0; }
.hero-quote__submit .btn { width: 100%; margin-top: 0.2rem; }
.hero-quote__note { margin: 0.9em 0 0; font-size: 0.82rem; color: var(--color-slate); }
@media (max-width: 959px) { .hero-quote { max-width: 100%; } }

/* Reusable quick-quote form (includes/components/quick-quote-form.php). */
.quick-quote {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.quick-quote__title { margin: 0 0 0.75em; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.quick-quote--dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.quick-quote--dark .quick-quote__title { color: var(--color-white); }
.quick-quote--dark .quick-quote__consent { color: var(--color-slate-light); }
.quick-quote__form { display: block; }
.quick-quote__form .form-field { margin-bottom: 0; }
.quick-quote__form .form-field input { min-height: 48px; width: 100%; }
.quick-quote__row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.quick-quote__row .form-field { flex: 1 1 150px; }
.quick-quote__submit { flex: 0 0 auto; }
.quick-quote__submit .btn { white-space: nowrap; min-height: 48px; }
.quick-quote__consent {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-slate);
  margin-top: var(--space-2);
}
.quick-quote__consent input { margin-top: 0.2em; flex-shrink: 0; }
.form-success {
  border: 1px solid rgba(213, 174, 130, 0.5);
  background: var(--color-tile);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item__question {
  width: 100%;
  min-height: 56px;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  padding: var(--space-2) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-item__question svg { flex-shrink: 0; transition: transform 0.3s var(--ease-premium); }
.faq-item__question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-item__answer { padding-bottom: var(--space-3); color: var(--color-slate); }
.faq-item__answer[hidden] { display: none; }

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center { text-align: center; }
.text-center p, .text-center .section-lead { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.flow > * + * { margin-top: var(--space-3); }
/* Headings inside long-form prose (articles, experience and Mission Bay
   guides) sit one step below a section title, so they don't break into
   two oversized lines in a 68ch column. */
.flow > h2 { font-size: clamp(1.55rem, 0.8vw + 1.2rem, 2rem); font-weight: 400; letter-spacing: -0.022em; margin-top: 1.5em; }
.flow > h3 { font-size: 1.2rem; margin-top: 1.4em; }
.flow > ul, .flow > ol { padding-left: 1.25em; }
.flow > ul > li + li, .flow > ol > li + li { margin-top: 0.45em; }
/* Tables inside trusted article HTML. */
.flow table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.flow th, .flow td { text-align: left; padding: 0.7em 0.8em; border-bottom: 1px solid var(--color-line); }
.flow th { color: var(--color-navy); font-weight: 600; }
.flow tr:first-child th { border-top: 0; border-bottom: 1px solid rgba(6, 17, 56, 0.25); }

/* Spec/rate tables on yacht pages. */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-slate);
  padding: 0.6em 0;
  border-bottom: 1px solid rgba(6, 17, 56, 0.2);
}
.spec-table th:last-child, .spec-table td:last-child { text-align: right; }
.spec-table td { padding: 0.75em 0; border-bottom: 1px solid var(--color-line); transition: background-color 0.2s ease; }
.spec-table tbody tr:hover td { background: rgba(6, 17, 56, 0.03); }
.spec-table td:first-child { padding-left: 0.5em; }
.spec-table td:last-child { padding-right: 0.5em; font-weight: 600; color: var(--color-navy); }

/* Retired (York's rule: no small label above a headline). The templates
   no longer print it; this keeps any stray instance from showing. */
.eyebrow { display: none !important; }

/* Secondary headings inside a page (Amenities, Questions, …): smaller
   than a section h2, so a heavier weight than the display cut. */
.subhead { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 0.6em; }
* + .subhead { margin-top: 1.6em; }
.section > .container > .subhead:first-child, .section > .container > .reveal.subhead:first-child { margin-top: 0; }

/* "Private charters, not party boats" beside fishing call buttons
   (includes/components/private-charter-note.php). */
.private-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65em;
  max-width: var(--max-prose);
  margin: 0 0 var(--space-4);
  padding: 0.8em 1em;
  border-radius: var(--radius);
  background: var(--color-tile);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-slate);
}
.private-note svg { flex-shrink: 0; margin-top: 0.12em; color: var(--color-gold-text); }
.private-note strong { color: var(--color-navy); font-weight: 600; }

/* Panel heading (e.g. "Charter Rates" on yacht pages). */
.panel-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 0.6em; }

/* ==========================================================================
   Yacht detail: content column + a sticky glass rates panel on desktop.
   ========================================================================== */

.yacht-layout { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-top: var(--space-6); }
.yacht-rates {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  align-self: start;
}
@media (min-width: 1024px) {
  .yacht-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2.5rem, 4vw, 4rem); }
  /* Rates stay in view beside the long description. */
  .yacht-rates { position: sticky; top: calc(var(--header-height) + var(--header-offset) * 2 + 8px); box-shadow: var(--shadow-lift); }
}
.yacht-rates .btn { width: 100%; margin-top: var(--space-2); }
.yacht-rates__price { font-family: var(--font-display); font-weight: 300; font-size: 2.5rem; letter-spacing: -0.035em; color: var(--color-navy); }

.yacht-title { margin-top: var(--space-6); }
.yacht-title h1 { max-width: none; }
.yacht-aka { font-weight: 400; font-size: 0.45em; letter-spacing: -0.01em; color: var(--color-slate); white-space: nowrap; }
.yacht-tagline { font-size: 1.3rem; margin-top: -0.1em; color: var(--color-gold-text); }

/* Spec strip under the yacht title: four or five quiet tiles. */
.yacht-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
  margin: 0;
}
.yacht-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-tile);
}
.yacht-stats dd { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1.15; color: var(--color-navy); }
.yacht-stats dt { font-size: 0.88rem; color: var(--color-slate); }

/* "Perfect for these occasions" links on yacht pages. */
.occasion-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.occasion-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.35rem 1.1rem 0.35rem 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  color: var(--color-navy);
  font-weight: 500;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-spring);
}
.occasion-chip:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.occasion-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(213, 174, 130, 0.18);
  color: var(--color-gold-text);
  flex-shrink: 0;
}

/* "Or call" line under a quick-quote form on navy. */
.quick-quote-call { text-align: center; margin: var(--space-3) auto 0; }
.quick-quote-call a { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-white); }

/* Homepage planning steps on navy: four quiet translucent tiles. */
.steps { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.steps__number { font-family: var(--font-display); font-weight: 250; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; color: var(--color-gold); }
.steps__text { font-size: 1.05rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }

/* Homepage location: details beside the map. */
.location-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1fr 1.5fr; gap: var(--space-8); } }
.location-grid__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.location-grid__map { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-tile); box-shadow: var(--shadow-soft); }
.location-grid__map iframe { display: block; }

/* "See all" button under a grid. */
.section-more { margin: var(--space-5) 0 0; text-align: center; max-width: none; }

/* ==========================================================================
   Yacht photo gallery + lightbox. Controls are clear glass over the photo.
   ========================================================================== */

.yacht-gallery__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-navy);
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.yacht-gallery__main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.yacht-gallery__nav,
.yacht-gallery__expand,
.yacht-lightbox__close,
.yacht-lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s ease, transform 0.2s var(--ease-spring);
}
.yacht-gallery__nav:hover, .yacht-gallery__nav:focus-visible,
.yacht-gallery__expand:hover, .yacht-gallery__expand:focus-visible,
.yacht-lightbox__close:hover, .yacht-lightbox__nav:hover { background: rgba(255, 255, 255, 0.3); }
.yacht-gallery__nav:active, .yacht-lightbox__nav:active { transform: translateY(-50%) scale(0.94); }
.yacht-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.yacht-gallery__nav--prev { left: var(--space-3); }
.yacht-gallery__nav--next { right: var(--space-3); }
.yacht-gallery__expand {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
}
.yacht-gallery__counter {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-pill);
  background: rgba(6, 17, 56, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 500;
}
.yacht-gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.2rem 0.1rem 0.4rem;
  scroll-snap-type: x proximity;
}
.yacht-gallery__thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  scroll-snap-align: start;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-spring);
}
.yacht-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.yacht-gallery__thumb:hover { opacity: 0.9; }
.yacht-gallery__thumb.is-active { opacity: 1; border-color: var(--color-gold); }

.yacht-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 8, 28, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.yacht-lightbox[aria-hidden="true"] { display: none; }
body.lightbox-open { overflow: hidden; }
.yacht-lightbox__img {
  max-width: min(100%, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.yacht-lightbox__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
}
.yacht-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.yacht-lightbox__nav--prev { left: var(--space-3); }
.yacht-lightbox__nav--next { right: var(--space-3); }
.yacht-lightbox__counter {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .yacht-gallery__stage { aspect-ratio: 21 / 9; }
  .yacht-gallery__thumb { width: 112px; height: 74px; }
}
@media (max-width: 639px) {
  .yacht-gallery__stage { border-radius: var(--radius-lg); }
  .yacht-gallery__nav { width: 44px; height: 44px; }
  .yacht-gallery__nav--prev { left: var(--space-2); }
  .yacht-gallery__nav--next { right: var(--space-2); }
}

/* A quiet scroll cue at the base of the hero; one gentle float, off
   under reduced motion. */
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-3);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0.85;
  animation: hero-scroll-float 2.6s ease-in-out infinite;
}
.hero-scroll-cue:hover, .hero-scroll-cue:focus-visible { opacity: 1; }
@keyframes hero-scroll-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (max-width: 959px) { .hero-scroll-cue { display: none; } }

/* ==========================================================================
   Homepage hero background video
   ========================================================================== */

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-video.is-loaded { opacity: 1; }
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Charter price estimator (includes/components/charter-estimator.php). */
.estimator {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.estimator__title { font-size: clamp(1.5rem, 1vw + 1rem, 2rem); font-weight: 300; margin-bottom: 0.25em; }
.estimator__lede { color: var(--color-slate); }
.estimator__inputs {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: var(--space-3);
}
.estimator__inputs .form-field { margin-bottom: 0; }
.estimator__inputs select,
.estimator__inputs input { width: 100%; min-height: 48px; }
.estimator__result {
  margin: var(--space-3) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-tile);
  border-radius: var(--radius-lg);
}
.estimator__result p { margin-bottom: 0.35em; }
.estimator__price { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.25rem, 3vw + 1rem, 3rem); letter-spacing: -0.035em; color: var(--color-navy); line-height: 1.05; }
.estimator__unit { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; letter-spacing: 0; color: var(--color-slate); }
.estimator__promo { font-weight: 600; color: var(--color-gold-text); }
.estimator__warning { font-weight: 600; color: var(--color-alert); }
.estimator__step { font-weight: 600; margin-bottom: var(--space-1); }
.estimator .quick-quote__row .form-field input { min-height: 48px; width: 100%; }
@media (max-width: 640px) {
  .estimator__inputs { grid-template-columns: 1fr 1fr; }
  .estimator__inputs .form-field:first-child { grid-column: 1 / -1; }
}

/* Fleet comparison table (fleet.php); scrolls in its own box when narrow. */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
}
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { text-align: left; padding: 0.85em 1em; border-bottom: 1px solid var(--color-line); }
.compare-table thead th {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-slate);
  background: var(--color-tile);
  white-space: nowrap;
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th { font-weight: 600; white-space: nowrap; }
.compare-table tbody tr:hover { background: rgba(6, 17, 56, 0.03); }
.compare-table .compare-table__promo { display: block; font-size: 0.78rem; font-weight: 600; color: var(--color-gold-text); }

/* Inline mid-article call to action (templates/article.php). */
.article-cta {
  margin: var(--space-6) 0;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  color: var(--color-white);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(213, 174, 130, 0.16) 0%, rgba(213, 174, 130, 0) 50%),
    linear-gradient(135deg, #0a1a52 0%, #050d2c 100%);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  justify-content: space-between;
}
.article-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.article-cta strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--color-white); }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ==========================================================================
   Accessibility fallbacks for glass. Each glass surface becomes an opaque
   one when the browser can't blur, when the visitor asks for less
   transparency, or for more contrast (HIG liquid-glass.md › checklist 5).
   ========================================================================== */

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header__bar::before { background: var(--color-white); }
  .site-header--transparent.hero-active .site-header__bar::before { background: rgba(6, 17, 56, 0.82); }
  .primary-nav .dropdown { background: var(--color-white); }
  .mobile-nav { background: #050d2c; }
  .mobile-action-bar { background: var(--color-navy); }
  .hero-quote { background: var(--color-white); }
  .yacht-gallery__nav, .yacht-gallery__expand, .yacht-lightbox__close, .yacht-lightbox__nav { background: rgba(6, 17, 56, 0.72); }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header__bar::before,
  .primary-nav .dropdown,
  .hero-quote { background: var(--color-white) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header--transparent.hero-active .site-header__bar::before { background: var(--color-navy) !important; }
  .mobile-nav { background: #050d2c; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mobile-action-bar { background: var(--color-navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .yacht-card__badge, .occasion-card__cta, .btn--glass, .yacht-gallery__counter,
  .yacht-gallery__nav, .yacht-gallery__expand, .yacht-lightbox__close, .yacht-lightbox__nav { background: rgba(6, 17, 56, 0.85); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --color-line: rgba(6, 17, 56, 0.3); --color-slate: #4a5563; }
  .site-header__bar::before { background: var(--color-white); border-color: var(--color-navy); }
  .site-header--transparent.hero-active .site-header__bar::before { background: var(--color-navy); }
  .primary-nav .dropdown, .hero-quote, .yacht-rates { background: var(--color-white) !important; border: 1px solid var(--color-navy); }
  .btn--outline { border-color: var(--color-navy); }
  .form-field input, .form-field select, .form-field textarea { border-color: var(--color-navy); }
}

/* ==========================================================================
   Editorial lap (2026-11-11). York: "cleaner and more agency feeling, this
   feels a little AI slop still." One layer, last in the file, so it can be
   tuned or reverted as a unit. What it changes:
   - Flat: no tile backgrounds, card shadows, button glows or gradient
     grounds. A hairline is the structural device.
   - Small corners (6-8px) on photos, fields and panels. Pills stay only on
     buttons and the glass header capsule.
   - Type-led section heads, more air, wider layouts on big screens.
   - No chips or glass over photos. Glass stays where it does a job: the
     header, its menus, the phone bar, the hero booking panel.
   ========================================================================== */

:root {
  --max-content: 1680px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-space: clamp(4.5rem, 8vw, 8.5rem);
  --radius: 6px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --shadow-soft: none;
  --shadow-lift: none;
  --color-line: rgba(6, 17, 56, 0.12);
}

/* Type-led section heads, opening on a hairline. */
h2 { font-size: clamp(1.75rem, 1.5vw + 1rem, 2.6rem); letter-spacing: -0.03em; }
.section-lead { font-size: 1.125rem; max-width: 58ch; }
.section > .container > h2:first-child { padding-top: var(--space-3); border-top: 1px solid var(--color-line); }
.section--navy > .container > h2:first-child { border-top-color: rgba(255, 255, 255, 0.18); }

/* Flat grounds. */
.section--mist, .section--mist + .section--mist { background: #f3f5f8; }
.section--navy { background: var(--color-navy); }
.site-footer { background: #040b28; }
.article-cta { background: var(--color-navy); }

/* Buttons: flat. Secondary is an outline, not a grey tint or glass. */
.btn--primary, .btn--primary:hover, .btn--primary:focus-visible { box-shadow: none; }
.btn--primary:hover, .btn--primary:focus-visible { background: #cfa676; }
.btn--outline { background: transparent; border-color: rgba(6, 17, 56, 0.24); }
.btn--outline:hover, .btn--outline:focus-visible { background: transparent; border-color: var(--color-navy); }
.btn--glass,
.section--navy .btn--outline,
.feature-band .btn--outline,
.site-footer .btn--outline,
.article-cta .btn--outline,
.quick-quote--dark .btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn--glass:hover, .btn--glass:focus-visible,
.section--navy .btn--outline:hover, .section--navy .btn--outline:focus-visible,
.feature-band .btn--outline:hover, .feature-band .btn--outline:focus-visible,
.site-footer .btn--outline:hover,
.article-cta .btn--outline:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--color-white); }

/* Text link with an arrow that nudges: the secondary action in cards. */
.link-arrow { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; transition: text-decoration-color 0.2s ease, color 0.2s ease; }
.link-arrow span { display: inline-block; transition: transform 0.25s var(--ease-premium); }
.link-arrow:hover, .link-arrow:focus-visible { color: var(--color-navy); text-decoration-color: var(--color-gold); }
.link-arrow:hover span { transform: translateX(3px); }

/* Hero: one quiet line of facts, a flatter booking panel. */
.hero-facts { margin: var(--space-5) 0 0; padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.22); max-width: none; font-size: 1rem; color: rgba(255, 255, 255, 0.86); }
.hero-facts span[aria-hidden] { margin: 0 0.5em; color: rgba(255, 255, 255, 0.5); }
.hero-facts__item { white-space: nowrap; }
.hero-quote { border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8); }

/* Cards: photo and text, no tile. Text-only cards sit on a hairline. */
.card-grid { gap: clamp(2.25rem, 3vw, 3.25rem) clamp(1.25rem, 2vw, 2rem); }
.card, .section--mist .card { background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: none; box-shadow: none; }
  .card:hover .card__media img { transform: scale(1.03); }
}
.card > .card__media, .featured-article > .card__media { border-radius: var(--radius-lg); }
.card__body { padding: var(--space-3) 0 0; gap: 0.35em; }
.card:not(:has(> .card__media)) { border-top: 1px solid var(--color-line); }
.card__body h2, .card__body h3 { font-weight: 500; }

/* Fleet card (includes/components/yacht-card.php). */
.yacht-card .card__media { aspect-ratio: 4 / 3; }
.yacht-card .card__media::after { display: none; }
.yacht-card__name { position: static; margin: 0; color: var(--color-navy); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.yacht-card__name a { color: inherit; text-decoration: none; }
.yacht-card__aka { margin: 0; font-size: 0.95rem; color: var(--color-slate); }
.yacht-card__specs { margin: 0; font-size: 0.95rem; color: var(--color-slate); }
.yacht-card__specs span { margin: 0 0.3em; }
.yacht-card__flags { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--color-gold-text); }
.yacht-card .price-tag { margin-top: 0.4em; }
.yacht-card .card__actions { justify-content: flex-start; padding-top: 0.4em; }
@media (hover: hover) {
  .yacht-card:hover .yacht-card__name a { text-decoration: underline; text-decoration-color: var(--color-gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
}

/* Blog. */
.article-card .card__body h2 { font-size: 1.25rem; }
.featured-article { background: transparent; border-radius: 0; overflow: visible; gap: var(--space-5); padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-line); }
.featured-article__body { padding: var(--space-2) 0; }

/* Occasion tiles: photo, title, a text link. */
.occasion-card::before { background: linear-gradient(180deg, rgba(6, 17, 56, 0) 42%, rgba(6, 17, 56, 0.8) 100%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .occasion-card:hover { transform: none; box-shadow: none; }
  .occasion-card:hover img { transform: scale(1.03); }
}
.occasion-card__body h3 { font-size: 1.65rem; }
.occasion-card__cta {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 0.35em;
}

/* Photo bands run full width. */
.feature-band { margin-inline: 0; border-radius: 0; min-height: 520px; }
.section--navy + .feature-band, .section--mist + .feature-band { margin-top: 0; }
.feature-band:has(+ .section--navy), .feature-band:has(+ .section--mist) { margin-bottom: 0; }
.feature-band::before { background: linear-gradient(90deg, rgba(6, 17, 56, 0.9) 0%, rgba(6, 17, 56, 0.66) 42%, rgba(6, 17, 56, 0.08) 100%); }
@media (max-width: 640px) {
  .feature-band { border-radius: 0; }
}

/* Lists and steps on hairlines, no icons or boxes. */
.narrative__list { gap: 0; }
.narrative__list li { padding: var(--space-2) 0; border-top: 1px solid var(--color-line); }
.narrative__list li::before { display: none; }
.steps { gap: var(--space-5) var(--space-4); }
.steps__item { padding: var(--space-3) 0 0; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0; }

/* Yacht page spec strip and occasion links. */
.yacht-stats { gap: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.yacht-stats > div { padding: var(--space-3) var(--space-2) var(--space-3) 0; background: none; border-radius: 0; }
.occasion-chip { background: transparent; border: 1px solid var(--color-line); box-shadow: none; }
.occasion-chip:hover { box-shadow: none; transform: none; border-color: var(--color-navy); }
.yacht-gallery__thumb { border-radius: 4px; }

/* Panels: a hairline frame, no shadow. */
.quick-quote, .estimator, .yacht-rates { box-shadow: none; border: 1px solid var(--color-line); }
@media (min-width: 1024px) { .yacht-rates { box-shadow: none; } }

/* ==========================================================================
   Design lap 2 (2026-11-11). York: "design it more." Agency moves on top of
   the editorial layer: split section heads with the "see all" link on the
   right, a featured fleet slot for the Westport 100 (the big-group yacht),
   oversized closing statements, editorial numerals and bigger page titles.
   ========================================================================== */

/* Split section head: title and lead left, a link right, on a hairline. */
.section-head {
  display: grid;
  gap: var(--space-2) var(--space-6);
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: clamp(2rem, 3.5vw, 3.25rem);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
}
.section-head h2 { margin-bottom: 0.3em; }
.section-head .section-lead { margin-bottom: 0; }
.section-head__link { justify-self: start; white-space: nowrap; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) auto; }
  .section-head__link { justify-self: end; margin-bottom: 0.35em; }
}
.section--navy .section-head { border-top-color: rgba(255, 255, 255, 0.18); }

/* Featured fleet: the first yacht takes a double slot on wide screens. */
@media (min-width: 1024px) {
  .fleet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fleet-grid > :first-child { grid-column: span 2; grid-row: span 2; }
  .fleet-grid > :first-child .card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 360px; }
  .fleet-grid > :first-child .yacht-card__name { font-size: clamp(1.75rem, 1vw + 1rem, 2.25rem); font-weight: 300; letter-spacing: -0.03em; }
}

/* Oversized closing statements: the homepage close and the footer prompt. */
.closing-statement h2 {
  max-width: 14ch;
  margin-bottom: 0.25em;
  font-size: clamp(2.5rem, 4.2vw, 5rem);
  font-weight: 250;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.closing-statement .section-lead { margin: var(--space-3) 0 var(--space-4); }
.site-footer__cta h2 { font-size: clamp(2rem, 2.8vw, 3.25rem); font-weight: 250; letter-spacing: -0.04em; line-height: 1; }
.site-footer__cta { align-items: flex-end; }

/* Editorial numerals for the planning steps. */
.steps__number { font-size: clamp(3rem, 3.6vw, 4.25rem); font-weight: 200; letter-spacing: -0.05em; }

/* Bigger page titles on subpages. */
.page-header h1 { max-width: 20ch; font-size: clamp(2.25rem, 2.6vw + 1rem, 3.75rem); font-weight: 250; letter-spacing: -0.04em; line-height: 1.02; }
