/* ═══════════════════════════════════════════════════════════════════
   Angelina Yachting — shared design-system layer
   Loaded AFTER each page's inline <style>; equal-specificity rules here
   win by cascade order. This file is the single source of truth for
   tokens, accessibility, and cross-page consistency fixes.
   (See DESIGN.md. Brand-specific vars like --dufour-* are never touched.)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --navy: #001D51;
  --navy-dark: #000F2E;
  --teal: #004780;
  --teal-light: #1A5F9A;
  --accent-light-teal: #7DC4CF;
  --aqua: #D6E4F0;
  --bg: #F2F2F2;
  --white: #FFFFFF;
  --grey-50: #EAECEF;
  --grey-100: #D4D8DD;
  --grey-200: #BCC2C9;
  --grey-300: #9EA6B0;
  --grey-500: #5A6473;  /* darkened from #6B7585: clears WCAG AA (4.5:1) for muted body text on --bg #F2F2F2 */
  --grey-700: #3D4655;
  --teal-dim: rgba(0,71,128,0.07);
  --radius-sm: 2px;
  /* Premium polish: two-layer diffused shadows (crisp contact + soft ambient)
     and a refined ease-out curve replace the flat single-blur / `ease` defaults.
     These tokens are used ~700× site-wide, so refining them here lifts every
     card shadow, hover elevation, and transition at once. */
  --shadow-card: 0 1px 2px rgba(0,29,81,0.04), 0 8px 24px -10px rgba(0,29,81,0.10);
  --shadow-hover: 0 2px 8px rgba(0,29,81,0.06), 0 20px 48px -16px rgba(0,29,81,0.18);
  --transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);   /* shared premium ease-out */
  /* Semantic colors — single source so per-page positive/negative/error
     shades stay unified and accessible. */
  --positive: #1D8348;          /* success / positive (text-safe on white) */
  --negative: #C0392B;          /* error / negative (text-safe on white) */
  --negative-bg: #FBEAE8;       /* light error background tint */
  --negative-on-dark: #FFC4B8;  /* error text on navy/dark surfaces */
  --negative-ink: #922B21;      /* error text on --negative-bg tint */
  /* Legacy aliases so older per-page hex usages resolve to the system. */
  --green: var(--positive);
  --bg-alt: var(--grey-50);
}

/* ── Typography: crisp serif display (kills the airy +0.03em drift) ── */
h1, h2, h3, h4 { letter-spacing: -0.01em; text-wrap: balance; }

/* ── Accessibility: visible keyboard focus everywhere (WCAG 2.4.7) ── */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.navbar :focus-visible,
.nav-dropdown :focus-visible,
.navbar__mobile :focus-visible,
.charter-econ :focus-visible,
.hero :focus-visible,
.final-cta :focus-visible,
.footer :focus-visible,
footer :focus-visible { outline-color: var(--accent-light-teal); }

/* ── Keyboard access: reveal nav dropdowns on focus, not just hover (WCAG 2.1.1) ── */
/* Mirrors each page's `.nav-item:hover .nav-dropdown` open state so keyboard and
   touch users can open submenus. Loaded after page CSS, so it wins by cascade order. */
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

/* ── Touch targets: interactive nav items meet 44px (WCAG 2.5.5 / 2.5.8) ── */
.nav-dropdown__item { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.navbar__lang, .footer__lang { min-height: 44px; display: inline-flex; align-items: center; }

/* ── Contrast fixes on navy surfaces (dark teal #004780 vanishes on navy) ── */
.navbar__link:hover, .navbar__link--active { color: var(--accent-light-teal); }
.navbar__link--active::after { background: var(--accent-light-teal); }
.navbar__logo-sub { color: var(--accent-light-teal); }
.nav-dropdown__label { color: var(--accent-light-teal); }
.mobile-sub { color: var(--accent-light-teal); }
.navbar__lang { white-space: nowrap; }
.navbar__lang:hover { color: var(--accent-light-teal); border-color: var(--accent-light-teal); }

/* ── Badge legibility: navy bg + white text (was navy + teal) ── */
.badge--new { background: var(--navy); color: var(--white); }

/* ── Mockup artefacts never ship ── */
.mockup-badge { display: none !important; }

/* ── Lighter palette: newsletter strip is a light band, not a navy one ── */
.newsletter-strip { background: var(--grey-50); border-top: 1px solid var(--grey-100); }
.newsletter-strip__title { color: var(--navy); }
.newsletter-strip__sub { color: var(--grey-700); }
.newsletter-strip__input { background: var(--white); border-color: var(--grey-200); color: var(--navy); }
.newsletter-strip__input::placeholder { color: var(--grey-500); }
.newsletter-strip__input:focus { border-color: var(--teal); }
.newsletter-strip__thanks { color: var(--grey-700); }
.newsletter-strip__thanks strong { color: var(--teal); }
.newsletter-strip__error { color: var(--negative); }

/* ── Reduced motion: every animation gets a calm alternative ── */
@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;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   Premium polish — high-end-visual-design skill, selectively applied.
   Brand-compatible micro-interactions ONLY: refined motion curves,
   magnetic buttons, livelier card hovers. No font / color / structure
   changes — Playfair + Inter and the light palette are untouched.
   CSS-only and additive; the reduced-motion block above neutralises it.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Buttons: physical lift on hover, press on active, kinetic trailing icon ── */
.btn {
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(0) scale(0.985); transition-duration: 0.12s; }
/* Trailing arrow/icon drifts forward on hover — kinetic tension, no reflow */
.btn > svg, .btn > .btn__icon, .btn > .arrow { transition: transform 0.35s var(--ease); }
.btn:hover > svg, .btn:hover > .btn__icon, .btn:hover > .arrow { transform: translateX(3px); }

/* Secondary CTA on dark surfaces (navbar, hero). Universal fallback so the P0-5
   nav "Start a Conversation" demotion renders on every page, not only the ones
   that define this variant inline. Pages with an inline definition still win. */
.btn--outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ── Flagship inventory grid: retarget literal `ease` to the premium curve ── */
/* .boat-card declares its own transition with `ease`, so the token swap can't
   reach it. Match the curve here; its -4px lift + 1.04 image zoom stay as-is. */
.boat-card { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s var(--ease); }
.boat-card__img img { transition: transform 0.6s var(--ease); }

/* ── Listing cards: give the near-dead hover a real lift (was shadow-only) ── */
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Current-category marker in nav dropdowns — set by the listings page for
   In Stock categories; brand pages carry it statically for the current brand. */
.nav-dropdown__item--active { background: rgba(0, 71, 128, 0.07); box-shadow: inset 3px 0 0 var(--teal, #004780); }

/* ═══════════════════════════════════════════════════════════════════
   SITE FOOTER — canonical, one footer on every page (2026-08-09)

   Deliberately SELF-CONTAINED: literal colour values, no design tokens,
   no dependency on a page's .container or type styles. Minimal legal
   pages define neither, and page-by-page CSS injection failed exactly
   there — the injector's substring probe matched ".footer" inside
   ".footer__links a" and skipped the background rule, shipping an
   unstyled footer. Selectors are prefixed `footer.footer` (element +
   class) so these rules beat any legacy .footer__… rule still sitting
   in a page's inline <style>.

   Markup parity is enforced by check-footer-parity.js.
   ═══════════════════════════════════════════════════════════════════ */

footer.footer {
  background: #000F2E;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 40px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
}

footer.footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

footer.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color 0.3s; }
footer.footer a:hover { color: #7DC4CF; }

footer.footer .footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 40px;
}

footer.footer .footer__desc { font-size: 14.5px; line-height: 1.75; max-width: 260px; }

footer.footer .footer__certifications { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
footer.footer .footer__cert {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65); border-radius: 2px;
}

footer.footer .footer__col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #FFFFFF; margin-bottom: 18px;
}

footer.footer .footer__links { list-style: none; margin: 0; padding: 0; }
footer.footer .footer__links li { margin-bottom: 10px; }
footer.footer .footer__links a { font-size: 14.5px; margin: 0; }

footer.footer .footer__contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14.5px; }
footer.footer .footer__contact-label {
  color: rgba(255, 255, 255, 0.65); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; width: 72px; flex-shrink: 0; padding-top: 1px;
}

footer.footer .footer__group {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px;
}
footer.footer .footer__group-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65); margin-right: 4px;
}
footer.footer .footer__group a { color: rgba(255, 255, 255, 0.65); }
footer.footer .footer__group a:hover { color: rgba(255, 255, 255, 0.9); }
footer.footer .footer__group-sep { color: rgba(255, 255, 255, 0.8); }

footer.footer .footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, 0.65);
}
footer.footer .footer__legal { display: flex; gap: 20px; }
footer.footer .footer__legal a { color: rgba(255, 255, 255, 0.65); margin: 0; }

@media (max-width: 900px) {
  footer.footer .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer.footer .container { padding: 0 24px; }
}
@media (max-width: 600px) {
  footer.footer .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  footer.footer .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer.footer .container { padding: 0 20px; }
}

/* Touch targets: at 13px the link boxes measure ~17px tall, under the 24px
   minimum, and they sit stacked — easy to hit the wrong one one-handed.
   Padding (not font size) does the work, so the desktop look is unchanged
   where the pointer is precise. */
@media (hover: none), (max-width: 600px) {
  footer.footer .footer__links a,
  footer.footer .footer__group a,
  footer.footer .footer__legal a,
  footer.footer .footer__contact-item a {
    display: inline-block;
    padding: 4px 0;
    min-height: 24px;
  }
  footer.footer .footer__links li { margin-bottom: 6px; }
  footer.footer .footer__group { gap: 10px; row-gap: 2px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Listing price breakdown (2026-08-09) — pre-configured yachts show the
   yard list price, the Charter Management discount and the resulting CM
   Price as three plain rows. Deliberately NOT a struck-through "was/now"
   device: each figure is labelled and legible, which is both clearer and
   safer under DACH price-comparison rules. Rendered by build-yachts.js
   only when list − discount reconciles to the Price.
   ═══════════════════════════════════════════════════════════════════ */
.contact-card__pricing {
  list-style: none; margin: 0; padding: 14px 22px 4px;
  border-bottom: 1px solid var(--grey-100, #D4D8DD);
}
.contact-card__pricing-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 7px 0; font-size: 14.5px; color: var(--grey-500, #5A6473);
}
.contact-card__pricing-row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.contact-card__pricing-row--save span:last-child { color: var(--teal, #004780); font-weight: 600; }
.contact-card__pricing-row--total {
  border-top: 1px solid var(--grey-100, #D4D8DD); margin-top: 4px; padding-top: 11px;
  font-size: 15.5px; color: var(--navy, #001D51); font-weight: 600;
}
.contact-card__pricing-row--total span:last-child { font-size: 16px; }


/* Responsive content tables (2026-08-11): a wide data table scrolls inside its own box on narrow screens instead of widening the whole page. Desktop (>860px) keeps normal full-width table layout. */
@media (max-width: 860px){ table{ display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; } }

/* ── MOTION POLISH (2026-08-13, design-critique pass, CEO-approved) ──────
   Three highest-leverage fixes. This file loads after every page's inline
   styles, so equal-specificity rules here win by cascade order.
   1) Press compression: buttons visibly acknowledge the click.
   2) Hover-speed split: control feedback at 180ms; 300ms stays for surfaces.
   3) Touch gating: hover-lift effects can't stick on tap devices. */
.btn, .oi .btn { transition-duration: 180ms; }
.btn:active, .oi .btn:active { transform: scale(0.97); }
.nav-dropdown { transition-timing-function: var(--ease); }
/* Non-clickable option cards must not promise a click */
.path:hover { transform: none; box-shadow: none; }
@media (hover: none), (pointer: coarse) {
  .oi .btn:hover, .wa-float:hover { transform: none; }
}
