/* ============================================================
   JUST LIVIN THE DREAM CHARTERS — "Open Water" design system
   Edit the tokens below to re-theme the whole site.
   ============================================================ */

:root {
  /* Color tokens */
  --abyss: #04222F;        /* darkest ocean — page footer / hero overlays */
  --ocean: #0A3954;        /* deep ocean blue — primary dark surface */
  --ocean-soft: #11506F;   /* lifted ocean — cards on dark */
  --sunset: #FF6B2C;       /* sunset orange — CTAs, accents */
  --sunset-deep: #E04E12;  /* hover/pressed orange */
  --sand: #F2E9DC;         /* warm sand — light section background */
  --foam: #F7FBFC;         /* near-white */
  --ink: #0F2A38;          /* body text on light */
  --ink-soft: #44606F;     /* secondary text on light */
  --foam-soft: #B8D2DD;    /* secondary text on dark */
  --teal: #15788C;         /* secondary accent — links, details */
  --line: rgba(15, 42, 56, 0.12);
  --line-dark: rgba(247, 251, 252, 0.14);

  /* Type */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Rhythm */
  --space-1: 8px; --space-2: 16px; --space-3: 24px;
  --space-4: 32px; --space-5: 48px; --space-6: 64px; --space-7: 96px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 2px 10px rgba(4, 34, 47, .08);
  --shadow-2: 0 14px 40px rgba(4, 34, 47, .16);
  --header-h: 76px;
  --container: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--foam);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--sunset-deep); }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: 1.08;
  margin: 0 0 var(--space-3);
  color: var(--ocean);
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 0 0 var(--space-1); }
p { margin: 0 0 var(--space-2); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
section { padding: clamp(56px, 9vw, 110px) 0; }

/* Kicker — small orange label above headings */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .82rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sunset-deep);
  margin-bottom: var(--space-2);
}
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--sunset); border-radius: 2px; }
.on-dark .kicker { color: var(--sunset); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--foam); }
.on-dark p { color: var(--foam-soft); }
.on-dark { background: var(--ocean); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 16px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; min-height: 52px;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sunset); color: #fff; }
.btn-primary:hover { background: var(--sunset-deep); color: #fff; }
.btn-ghost { border-color: var(--ocean); color: var(--ocean); background: transparent; }
.btn-ghost:hover { background: var(--ocean); color: #fff; }
.on-dark .btn-ghost, .btn-ghost-light { border-color: rgba(247,251,252,.7); color: var(--foam); }
.on-dark .btn-ghost:hover, .btn-ghost-light:hover { background: var(--foam); color: var(--ocean); border-color: var(--foam); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
  background: linear-gradient(to bottom, rgba(4,34,47,.72), rgba(4,34,47,0));
}
.site-header.is-scrolled { background: var(--abyss); box-shadow: 0 6px 24px rgba(4,34,47,.35); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--foam); }
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.1;
}
.brand-name small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .3em; color: var(--sunset); }

.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.main-nav a {
  color: var(--foam); font-weight: 600; font-size: .95rem; padding: 8px 2px;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--sunset); }
.main-nav a[aria-current="page"] { color: var(--sunset); border-bottom-color: var(--sunset); }
.nav-cta { margin-left: 8px; }
.nav-call { display: inline-flex; align-items: center; gap: 8px; color: var(--foam); font-weight: 700; }
.nav-call svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  width: 48px; height: 48px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--foam); position: relative; transition: transform .25s, opacity .25s;
  content: "";
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--abyss); padding: 10px 22px 28px;
    transform: translateY(-110%); transition: transform .3s ease;
    box-shadow: 0 30px 50px rgba(4,34,47,.45);
  }
  .nav-open .main-nav { transform: translateY(0); }
  .main-nav a { padding: 15px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--line-dark); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line-dark); }
  .nav-cta { margin: 18px 0 0; justify-content: center; }
  .nav-call { display: none; }
}

/* Sticky mobile action bar — call + book, always reachable on phones */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: none; gap: 1px; background: var(--abyss);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 30px rgba(4,34,47,.4);
}
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 10px; font-weight: 800; font-size: .98rem; min-height: 54px;
}
.mobile-bar .bar-call { background: var(--ocean); color: var(--foam); }
.mobile-bar .bar-book { background: var(--sunset); color: #fff; }
.mobile-bar svg { width: 19px; height: 19px; }
@media (max-width: 920px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 70px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 56px; color: var(--foam);
  background: var(--ocean);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover; background-position: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,34,47,.92) 0%, rgba(4,34,47,.45) 55%, rgba(4,34,47,.35) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--foam); margin-bottom: 10px; }
.page-hero .lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--foam-soft); max-width: 640px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--foam-soft); margin-bottom: 16px; }
.breadcrumbs a { color: var(--sunset); }
.breadcrumbs span[aria-hidden] { opacity: .55; }

/* ---------- Quick answer (AEO) ---------- */
.quick-answer {
  background: var(--sand); border-left: 5px solid var(--sunset);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-4);
}
.quick-answer h2, .quick-answer h3 { font-size: 1.1rem; margin-bottom: 8px; }
.quick-answer p { margin: 0; font-size: 1.02rem; }

.key-facts { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-4); font-size: .98rem; }
.key-facts th, .key-facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.key-facts th { width: 38%; color: var(--ocean); font-weight: 700; }
.key-facts tr:nth-child(odd) { background: rgba(242, 233, 220, .45); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: var(--space-3) var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin-bottom: 0; font-size: 1.3rem; }
.card-body p { color: var(--ink-soft); margin: 0; }
.card-link { font-weight: 700; color: var(--sunset-deep); margin-top: auto; }
.grid { display: grid; gap: clamp(18px, 3vw, 30px); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- Pricing cards ---------- */
.price-card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
  padding: var(--space-4); display: flex; flex-direction: column; gap: 14px;
}
.price-card.is-featured { border: 2px solid var(--sunset); box-shadow: var(--shadow-2); }
.price-flag {
  position: absolute; top: -14px; left: 26px; background: var(--sunset); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { margin-bottom: 0; }
.price-meta { color: var(--ink-soft); font-weight: 600; font-size: .92rem; display: flex; gap: 14px; flex-wrap: wrap; }
.price-amount { font-family: var(--font-display); font-size: 2.7rem; color: var(--ocean); line-height: 1; }
.price-amount small { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; text-transform: none; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.price-list li { padding-left: 26px; position: relative; font-size: .96rem; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 3px solid var(--sunset); border-bottom: 3px solid var(--sunset);
  transform: rotate(-45deg);
}
.price-card .btn { margin-top: auto; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 4px; font-family: var(--font-body); font-weight: 700;
  font-size: 1.06rem; color: var(--ocean); min-height: 56px;
}
.faq-q .chev { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sand);
  display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.faq-q .chev svg { width: 13px; height: 13px; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); background: var(--sunset); color: #fff; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-a > div { padding: 0 4px 22px; color: var(--ink-soft); max-width: 760px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ocean); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--line);
  font: inherit; color: var(--ink); background: #fff; min-height: 50px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sunset); box-shadow: 0 0 0 3px rgba(255,107,44,.18);
}
.field .error-msg { display: none; color: #C8341B; font-size: .85rem; font-weight: 600; margin-top: 6px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #C8341B; }
.field.has-error .error-msg { display: block; }
.form-success {
  display: none; background: #E8F6EC; border: 1.5px solid #2F9E55; color: #1C6136;
  border-radius: var(--radius); padding: var(--space-3); font-weight: 600;
}
.form-success.is-visible { display: block; }

/* ---------- Review badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: rgba(247,251,252,.08); border: 1px solid var(--line-dark);
  border-radius: 12px; padding: 10px 18px; color: var(--foam);
  backdrop-filter: blur(6px);
}
.badge .stars { color: #FFB300; letter-spacing: 2px; font-size: .95rem; }
.badge strong { font-size: .95rem; }
.badge small { display: block; font-size: .75rem; color: var(--foam-soft); }
.badges.on-light .badge { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
.badges.on-light .badge small { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--abyss); color: var(--foam-soft); padding: var(--space-7) 0 0; }
.site-footer h3 { color: var(--foam); font-size: 1.05rem; letter-spacing: .08em; margin-bottom: var(--space-2); }
.footer-grid { display: grid; gap: var(--space-5); grid-template-columns: 1.4fr 1fr 1fr 1.2fr; padding-bottom: var(--space-5); }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--foam-soft); }
.site-footer a:hover { color: var(--sunset); }
.footer-brand img { height: 64px; margin-bottom: 14px; }
.footer-phone { font-family: var(--font-display); font-size: 1.7rem; color: var(--foam); letter-spacing: .03em; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: inline-flex; align-items: center; justify-content: center; color: var(--foam);
  transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--sunset); border-color: var(--sunset); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0; font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* Utility */
.text-center { text-align: center; }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: clamp(30px, 5vw, 54px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--sunset); color: #fff; padding: 12px 20px; font-weight: 700; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Gallery page ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-grid img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; font-size: .82rem; font-weight: 600; color: var(--foam);
  background: linear-gradient(to top, rgba(4,34,47,.85), transparent); opacity: 0; transition: opacity .3s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }

/* ---------- Fleet cards ---------- */
.fleet-card { display: grid; grid-template-columns: 1fr 1.2fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.fleet-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.fleet-card .fleet-body { padding: var(--space-4); }
.fleet-specs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.fleet-specs span { background: var(--sand); border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; color: var(--ocean); }
@media (max-width: 700px) { .fleet-card { grid-template-columns: 1fr; } }

/* ---------- Map embed ---------- */
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); display: block; }

/* ---------- Table of contents (AEO) ---------- */
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.toc strong { display: block; margin-bottom: 10px; color: var(--ocean); text-transform: uppercase; font-size: .8rem; letter-spacing: .14em; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-weight: 600; }

/* ?qa screenshot mode — pin viewport-relative sections to fixed heights */
.qa-mode .hero { min-height: 780px; }
.qa-mode .page-hero { min-height: 420px; }

/* The client's logo is black script — render it white on dark surfaces */
.brand img, .footer-brand img { filter: brightness(0) invert(1); }
.qa-mode .reveal, .qa-mode .reveal-stagger > * { transition: none !important; }
