/* ============================================================
   queenstownmarina.com - shared stylesheet
   Queenstown Marina brand: navy / cyan / orange, Playfair Display
   + Open Sans, and the wave motif.
   Order: tokens → base → typography → components (A–Z)
   → sections → utilities.
   ============================================================ */

/* ---------- 0. Fonts ---------- */
/* A single "Q" whose tail matches the Queenstown Marina logo (see assets/fonts/README.md).
   unicode-range limits it to Q, so every other character still comes from Playfair Display. */
@font-face {
  font-family: 'QM Q';
  src: url("../fonts/qm-q.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0051;
}

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #083957;        /* brand navy - headings, dark sections */
  --navy-deep: #052a41;   /* footer, panel seams */
  --navy-soft: #0e4a6f;
  --cyan: #009fe3;        /* brand cyan - decorative accents, waves */
  --cyan-ink: #0073a8;    /* cyan for text on light backgrounds (AA) */
  --cyan-btn: #007bb5;    /* button fill with white text (AA) */
  --cyan-light: #5cc6f2;  /* cyan for text on navy (AA) */
  --orange: #ec6608;      /* brand orange - decorative */
  --orange-btn: #bf5004;  /* orange button fill with white text (AA) */

  --paper: #ffffff;
  --mist: #eef5f9;        /* alternating section background */
  --ink: #083957;         /* body text */
  --muted: #4a6578;       /* secondary text on light */
  --muted-on-navy: rgba(255,255,255,.78);
  --line: #d5e3ec;

  --serif: 'QM Q', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(8, 57, 87, .14);
  --slant: 5vw;           /* diagonal panel seam offset (desktop) */
  --ease: cubic-bezier(.33,.9,.25,1);
  --pad-x: clamp(20px, 6vw, 96px);   /* global horizontal gutter */
  --max: 1320px;                     /* content max width */
  --gutter: max(var(--pad-x), calc((100% - var(--max)) / 2));
  --wave: url("../images/wave-tile.svg");       /* one wave period, tiled sideways */
  --wave-period: max(120px, 13.333vw);         /* width of one wave */
  --wave-h: clamp(18px, 2.4vw, 40px);          /* hero / panel wave edge height */
  --footer-wave-h: clamp(40px, 5vw, 80px);     /* footer wave height */
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

[id] { scroll-margin-top: 96px; } /* anchors land clear of the fixed header */

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--navy); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Typography ---------- */
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.005em; }
h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.25; }

.section {
  padding-block: clamp(64px, 9vh, 120px);
  padding-inline: var(--gutter);
  position: relative;
}
.section--alt { background: var(--mist); }
.section--navy { background: var(--navy); color: #fff; }
.section--narrow > * { max-width: 860px; }

.section__head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 760px; }
.section__kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan-ink); margin-bottom: 12px;
}
.section__title { font-size: clamp(30px, 3.6vw, 50px); text-wrap: balance; color: var(--navy); }
/* the marina's signature: a small cyan wave under every section heading */
.section__title::after {
  content: ""; display: block; width: 74px; height: 15px; margin-top: 18px;
  background: url("../images/wave-small.svg") no-repeat left center / contain;
}
.section__intro { margin-top: 20px; color: var(--muted); max-width: 64ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; }
.section__intro p + p { margin-top: 12px; }

.section--navy .section__kicker { color: var(--cyan-light); }
.section--navy .section__title { color: #fff; }
.section--navy .section__intro { color: var(--muted-on-navy); }

.prose p { color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.8; }
.prose p + p { margin-top: 16px; }
.prose a { color: var(--cyan-ink); }
.prose ul { margin-top: 12px; padding-left: 1.2em; color: var(--muted); }
.prose--lead p { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink); line-height: 1.7; }
.prose--small p { font-size: 15px; }

/* ============================================================
   4. Components (alphabetical)
   ============================================================ */

/* ---------- .actions (button row) ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.actions--center { justify-content: center; }

/* ---------- .btn (pill buttons) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--cyan-btn); text-decoration: none;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: #00699b; transform: translateY(-1px); }
.btn--accent { background: var(--orange-btn); }
.btn--accent:hover { background: #a84603; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- .callout (navy strip with a CTA) ---------- */
.callout {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 40px; padding: 30px clamp(24px, 3vw, 40px);
  background: var(--navy); color: #fff; border-radius: var(--radius);
}
.callout__text { max-width: 64ch; font-size: 17px; line-height: 1.65; }
.callout__text p + p { margin-top: 8px; }

/* ---------- .card (facility card) ---------- */
.cards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); padding: 30px 28px 28px; border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cyan); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--navy); }
.card__text { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.card__link {
  margin-top: auto; padding-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan-ink); text-decoration: none;
}
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1020px) { .cards__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cards__grid { grid-template-columns: 1fr; } }

/* ---------- .cslider (card slider / grid: businesses, promotions) ----------
   Swipeable row (native touch scrolling, click-drag + arrows from assets/js/site.js) or, with
   .cslider--grid, a static grid. Cards: image, title, text, button, social icons. */
.cslider__carousel { position: relative; margin-inline: calc(50% - 50vw); } /* full bleed; the track re-adds the gutter */
.cslider__viewport {
  overflow-x: auto; overflow-y: hidden; cursor: grab; user-select: none;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.cslider__viewport::-webkit-scrollbar { display: none; }
.cslider__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cslider__track { display: flex; gap: 22px; width: max-content; padding: 6px var(--gutter) 24px; }
.ccard {
  position: relative; flex: 0 0 clamp(260px, 78vw, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 10px 26px rgba(8,57,87,.08);
}
.ccard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cyan); z-index: 1; }
.ccard__img { aspect-ratio: 4/3; background: var(--mist) center / cover no-repeat; pointer-events: none; }
.ccard__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.ccard__title { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--navy); }
.ccard__text { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.ccard__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ccard__link { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); text-decoration: none; }
.ccard__link:hover, .ccard__link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.cslider__nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%;
  background: var(--navy); color: #fff; cursor: pointer; box-shadow: var(--shadow);
  transition: background-color .2s ease, opacity .25s ease, visibility .25s ease;
}
.cslider__nav:hover { background: var(--cyan-btn); }
.cslider__nav.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; } /* JS: at the end, or all cards fit */
.cslider__nav svg { width: 22px; height: 22px; }
.cslider__nav--prev { left: clamp(8px, 2vw, 24px); }
.cslider__nav--next { right: clamp(8px, 2vw, 24px); }
.cslider__hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cslider__hint svg { width: 20px; height: 20px; color: var(--cyan); animation: swipe-nudge 1.8s ease-in-out infinite; }
.cslider__hint.is-hidden { display: none; } /* JS: nothing to swipe */
@keyframes swipe-nudge { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
/* grid layout: every card on show, no arrows */
.cslider--grid .cslider__carousel { margin-inline: 0; }
.cslider--grid .cslider__viewport { overflow: visible; cursor: auto; -webkit-mask-image: none; mask-image: none; }
.cslider--grid .cslider__track { display: grid; grid-template-columns: repeat(3, 1fr); width: auto; padding: 0; }
.cslider--grid .ccard { flex: none; }
@media (max-width: 1020px) { .cslider--grid .cslider__track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cslider--grid .cslider__track { grid-template-columns: 1fr; } .cslider__nav { display: none; } }

/* ---------- .data-table (berth fees) ---------- */
.fee-table { margin-top: 36px; }
.fee-table:first-of-type { margin-top: 0; }
.fee-table__title { font-size: 18px; color: var(--navy); margin-bottom: 14px; }
.fee-table__wrap { overflow-x: auto; border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; text-align: left; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 15px 20px; font-size: 15px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th {
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; border-bottom: 0;
}
.data-table tbody th { font-weight: 700; color: var(--navy); }
.data-table tbody td { color: var(--muted); }
.data-table tbody td:last-child { color: var(--navy); font-weight: 700; }
.data-table tbody tr:nth-child(even) { background: #f6fafc; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.fees__notes { margin-top: 24px; max-width: 80ch; }
.fees__notes ul { list-style: none; }
.fees__notes li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.fees__notes li::before { content: "*"; position: absolute; left: 0; color: var(--cyan-ink); font-weight: 700; }
@media (max-width: 760px) {
  .fee-table__wrap { overflow: visible; background: none; box-shadow: none; }
  .data-table { min-width: 0; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table tr { background: var(--paper) !important; border-radius: var(--radius-sm); margin-bottom: 14px; padding: 6px 0; box-shadow: 0 1px 0 var(--line); }
  .data-table th, .data-table td { display: flex; justify-content: space-between; gap: 16px; white-space: normal; padding: 10px 18px; }
  .data-table tbody th { font-family: var(--serif); font-weight: 400; font-size: 22px; border-bottom: 1px solid var(--line); }
  .data-table td[data-label]::before { content: attr(data-label); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .data-table tbody tr td:last-child { border-bottom: 0; }
}

/* ---------- .exp (image + copy split) ---------- */
.exp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.exp__img {
  aspect-ratio: 4/3; background-size: cover; background-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.exp--flip .exp__img { order: 2; }
.exp--text { grid-template-columns: 1fr; max-width: 860px; }
@media (max-width: 1020px) {
  .exp { grid-template-columns: 1fr; }
  .exp--flip .exp__img { order: 0; }
}

/* ---------- .feature-tile (home "Visit the Marina" icons) ---------- */
.features__grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: var(--paper); border-radius: var(--radius); padding: 30px 18px 26px;
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-tile img { width: clamp(84px, 8vw, 118px); height: auto; }
.feature-tile__label { font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); line-height: 1.45; max-width: 18ch; }
.feature-tile__detail { margin-top: -6px; font-size: 13px; color: var(--muted); }
@media (max-width: 1020px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .features__grid { gap: 12px; } .feature-tile { padding: 22px 12px 20px; } .feature-tile__label { font-size: 12.5px; } }

/* ---------- .form (enquiry form) ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__row--3 { grid-template-columns: repeat(3, 1fr); }
.form label, .form legend {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 8px;
}
.form abbr { text-decoration: none; color: var(--orange-btn); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid #c3d4e0; border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,159,227,.18); }
.form [aria-invalid="true"] { border-color: #c62828; }
.form textarea { min-height: 140px; resize: vertical; }
.form__checks { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.form__checks legend { margin-bottom: 12px; }
.check { display: flex !important; align-items: flex-start; gap: 10px; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: 15px !important; color: var(--ink) !important; margin: 0 !important; line-height: 1.45; }
.check input { width: 19px; height: 19px; margin-top: 1px; flex: none; accent-color: var(--cyan-btn); cursor: pointer; }
.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.form__small { font-size: 13px; color: var(--muted); max-width: 46ch; }
.form__small a { color: var(--cyan-ink); }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 15px; line-height: 1.5; }
.form__note--error { background: #fdecea; border: 1px solid #f3b4ae; color: #8e1c12; }
.form__err { display: block; margin-top: 6px; color: #b3261e; font-size: 13px; font-weight: 600; }
@media (max-width: 860px) { .form__row--3 { grid-template-columns: 1fr 1fr; } .form__row--3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .form__row, .form__row--3, .form__checks { grid-template-columns: 1fr; } }

/* ---------- .gallery (photo grid + lightbox) ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item {
  aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: var(--radius-sm);
  border: 0; padding: 0; width: 100%; cursor: zoom-in; display: block;
  transition: transform .35s var(--ease), box-shadow .35s ease, filter .35s ease;
}
.gallery__item:hover, .gallery__item:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); filter: saturate(1.08); }
@media (max-width: 640px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: transparent; overflow: hidden; }
.lightbox::backdrop { background: rgba(3, 22, 34, .94); }
.lightbox__stage { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 6vh 7vw; cursor: zoom-out; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; cursor: default; -webkit-user-drag: none; user-select: none; }
.lightbox__nav, .lightbox__close {
  position: fixed; z-index: 2; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 30px; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.28); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__close { top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; font-size: 26px; }
.lightbox__count { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 13px; z-index: 2; }
.lightbox--single .lightbox__nav, .lightbox--single .lightbox__count { display: none; }
@media (max-width: 640px) { .lightbox__nav { width: 44px; height: 44px; font-size: 24px; } .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; } }

/* ---------- .legal (policy prose) ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: clamp(22px, 2.2vw, 30px); color: var(--navy); margin: 48px 0 6px; }
.legal h3 { font-size: 17px; margin: 28px 0 0; }
.legal p { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.legal a { color: var(--cyan-ink); }
.legal__lead { font-weight: 700; color: var(--navy) !important; border-left: 4px solid var(--cyan); padding-left: 16px; margin-top: 0 !important; }

/* ---------- .newsflash (pill in the home hero) ---------- */
.newsflash {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  margin-bottom: 26px; padding: 7px 18px 7px 7px; border-radius: 999px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; text-decoration: none; font-size: 14px; line-height: 1.4;
  border: 1px solid rgba(255,255,255,.28); transition: background .2s ease;
}
a.newsflash:hover { background: rgba(255,255,255,.24); }
.newsflash__tag { background: var(--orange); color: var(--navy-deep); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.newsflash__more { font-weight: 700; color: var(--cyan-light); }

/* ---------- .panel (diagonal feature panels, home) ---------- */
.panels {
  position: relative; display: flex;
  height: min(78vh, 52vw);
  min-height: min(560px, 90svh, 56vw);
  background: var(--navy-deep); /* shows through the 3px gaps as seams */
}
.panel {
  position: relative; flex: 1; display: block; overflow: hidden;
  text-decoration: none; color: #fff; outline: none;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  margin-left: calc(-1 * var(--slant) + 3px);
  transition: flex-grow .65s var(--ease);
  background: linear-gradient(200deg, var(--navy-soft), var(--navy) 60%);
}
.panel:first-child { clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); margin-left: 0; }
.panel:last-of-type  { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.panels:hover .panel, .panels:focus-within .panel { flex-grow: .85; }
.panel:hover, .panel:focus-visible { flex-grow: 2 !important; }
.panel__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.03); filter: saturate(.9) brightness(.9);
  transition: transform .9s var(--ease), filter .6s ease;
}
.panel:hover .panel__bg, .panel:focus-visible .panel__bg { transform: scale(1.12); filter: saturate(1.05) brightness(.95); }
.panel__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,42,65,.88) 0%, rgba(5,42,65,.4) 50%, rgba(5,42,65,.05) 85%);
}
.panel__content { position: absolute; inset: auto 0 0 0; padding: 0 calc(var(--slant) + clamp(16px, 2vw, 40px)) 9vh clamp(24px, 3vw, 56px); }
.panel:first-child .panel__content { padding-left: var(--pad-x); }
.panel__eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan-light); margin-bottom: 10px; }
.panel__title { font-size: clamp(26px, 2.4vw, 42px); color: #fff; text-wrap: balance; }
.panel__reveal {
  max-height: 0; opacity: 0; overflow: hidden; transform: translateY(10px);
  transition: max-height .55s var(--ease), opacity .45s ease .08s, transform .55s var(--ease);
}
.panel:hover .panel__reveal, .panel:focus-visible .panel__reveal { max-height: 240px; opacity: 1; transform: none; }
.panel__tag { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.9); margin-top: 14px; max-width: 38ch; }
.panel__cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--cyan-btn); padding: 12px 22px; border-radius: 999px;
}
.panel__cta svg { transition: transform .3s ease; }
.panel:hover .panel__cta svg { transform: translateX(4px); }
.panel:focus-visible .panel__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--cyan); }
@media (max-width: 820px) {
  .panels { display: block; height: auto; min-height: 0; background: var(--navy-deep); --mslant: 26px; }
  .panel, .panel:first-child, .panel:last-of-type {
    display: block; width: 100%;
    clip-path: polygon(0 var(--mslant), 100% 0, 100% 100%, 0 100%);
    margin: calc(-1 * var(--mslant) + 3px) 0 0 0;
  }
  .panel:first-child { clip-path: none; margin-top: 0; }
  .panel__content, .panel:first-child .panel__content { position: relative; inset: auto; padding: clamp(96px, 18vh, 140px) 24px 64px; }
  .panel__reveal { max-height: none; opacity: 1; transform: none; overflow: visible; }
  .panel__bg { transform: none; }
}

/* ---------- .plan (berth layout plan) ---------- */
.plan { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.plan__btn { display: block; width: 100%; border: 0; padding: 0; background: var(--paper); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.plan__btn img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.plan__btn:hover img { transform: scale(1.02); }
@media (max-width: 1020px) { .plan { grid-template-columns: 1fr; } }

/* ---------- .mplan (interactive site plan, Berths page) ---------- */
.section__head--wide { max-width: 860px; }
.mplan__tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--mist); border-radius: 999px; }
.mplan__tab {
  border: 0; background: transparent; cursor: pointer; padding: 9px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy);
  transition: background-color .2s ease, color .2s ease;
}
.mplan__tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.mplan__tab[hidden] { display: none; }
.mplan__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 36px); align-items: start; }
.mplan__map {
  position: relative; aspect-ratio: 924 / 960; max-height: 86vh; margin: 0 auto; width: 100%;
  background: #0b5a80; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none;
}
.mplan.is-zoomed .mplan__map { touch-action: none; cursor: grab; }
.mplan.is-zoomed .mplan__map:active { cursor: grabbing; }
.mp-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mplan__zoom { position: absolute; right: 12px; top: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.mplan__zoom button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--navy);
  font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(8,57,87,.12);
}
.mplan__zoom button:hover { border-color: var(--navy); }
.mplan__zoom [data-zoom="reset"] { font-size: 11px; letter-spacing: .04em; }
.mplan__hint { position: absolute; right: 12px; bottom: 10px; z-index: 2; margin: 0; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.88); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.mplan__tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  background: var(--navy); color: #fff; font-size: 13px; padding: 7px 11px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(3,22,34,.25);
}
.mplan__side { display: flex; flex-direction: column; gap: 14px; }
.mplan__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-ink); }
.mplan__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mplan__chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.mplan__chip i { width: 12px; height: 12px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.mplan__chip small { font-weight: 400; color: var(--muted); font-size: 12px; }
.mplan__chip:hover { border-color: var(--navy); }
.mplan__chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.mplan__chip[aria-pressed="true"] small { color: rgba(255,255,255,.75); }
.mplan__select {
  width: 100%; margin-top: 8px; font: inherit; font-size: 15px; color: var(--navy); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 12px;
}
.mplan__card { background: var(--mist); border-radius: 14px; padding: 18px 20px 20px; min-height: 120px; }
.mplan__card-empty { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.mplan__card-kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); }
.mplan__card-kicker i { width: 12px; height: 12px; border-radius: 3px; }
.mplan__card-title { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--navy); margin: 6px 0; }
.mplan__card-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.mplan__card-btn { margin-top: 14px; padding: 11px 18px; font-size: 11px; }
.mplan__key { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.mplan__key li { display: flex; align-items: center; gap: 10px; }
.mplan__key i { width: 22px; height: 12px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(8,57,87,.18); }
.mplan__panel--plan .plan__img { max-width: 900px; margin: 0 auto; }
/* the drawing */
.mp-land { fill: #ebe6da; }
.mp-water-label { font-family: var(--serif); font-style: italic; font-size: 19px; fill: rgba(255,255,255,.88); text-anchor: middle; }
.mp-water-label--sm { font-size: 12px; fill: rgba(255,255,255,.7); }
.mp-water-tag { font: 700 8px var(--sans); letter-spacing: .2em; fill: rgba(255,255,255,.82); text-anchor: middle; }
.mp-water-tag--left { text-anchor: start; }
.mp-shadow { opacity: .26; }
.mp-shadow, .mp-shadow * { fill: #021c2b; stroke: none; }
.mp-shadow--land { opacity: .18; }
.mp-shadow--land, .mp-shadow--land * { fill: #2a2418; }
.mp-shadow-att { fill: none; stroke: #021c2b; stroke-opacity: .24; stroke-width: 14; stroke-linecap: round; }
/* land */
.mp-gravel { fill: #e0d9cb; }
.mp-hardstand { fill: #e4dfd3; }
.mp-wharf { fill: #d6d0c4; stroke: #b9b1a3; stroke-width: .6; }
.mp-revetment { fill: #d3cdc1; }
.mp-seawall { fill: none; stroke: #b7ae9f; stroke-width: 2.4; }
.mp-paving { fill: #e2d2bc; }
.mp-lawn { fill: #8fb46e; }
.mp-hedge { fill: none; stroke: #5d7f45; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.mp-verge { fill: #a6b37f; }
.mp-shrubs circle { fill: #5f8648; stroke: #4c6e39; stroke-width: .5; }
.mp-path { fill: none; stroke: #f3f0ea; stroke-linejoin: round; }
.mp-kerbs path { fill: none; stroke: #d6d0c4; stroke-linejoin: round; }
.mp-kerbs polygon { fill: #d6d0c4; stroke: #d6d0c4; stroke-width: 3.2; stroke-linejoin: round; }
.mp-asphalt path { fill: none; stroke: #8f979e; stroke-linejoin: round; }
.mp-asphalt polygon { fill: #8f979e; }
.mp-road-line { fill: none; stroke: rgba(255,255,255,.85); stroke-width: .9; stroke-dasharray: 8 8; }
.mp-road-label { font: 700 7.5px var(--sans); letter-spacing: .26em; fill: rgba(255,255,255,.92); text-anchor: middle; }
.mp-zebra { fill: #fff; }
.mp-bay-lines { fill: none; stroke: rgba(255,255,255,.92); stroke-width: .75; }
.mp-bay-green { fill: #63b886; }
.mp-bed { fill: #6f9a57; }
.mp-hatch { fill: url(#mp-hatch); stroke: #fff; stroke-width: .8; }
.mp-divider { fill: none; stroke: #fff; stroke-width: 1; }
.mp-arrow { fill: #fff; }
.mp-cars rect { stroke: rgba(0,0,0,.18); stroke-width: .25; }
.mp-car-glass { fill: #26313b; }
.mp-tree { fill: #3f6b3a; }
.mp-tree-lit { fill: #5e8d4c; }
.mp-building { fill: #f7f8f8; stroke: #b9c0c6; stroke-width: .6; }
.mp-building-shade { fill: #dfe3e6; }
.mp-building-ridge { stroke: #b9c0c6; stroke-width: .8; }
.mp-unit { fill: #a9b3bc; stroke: #8a959f; stroke-width: .6; }
.mp-unit--small { fill: #7d9184; }
.mp-unit-shade { fill: #87929c; }
.mp-unit-ridge { stroke: #7c8791; stroke-width: 1; }
/* marina */
.mp-deck { fill: #f6f3ed; }
.mp-deck--gangway { fill: #e3e7ea; }
.mp-deck--jetty { fill: #ece6da; }
.mp-float { fill: #e8ecef; }
.mp-float--empty { fill: #f3f5f6; }
.mp-shed-deck { fill: #6f7a83; }
.mp-shed-front { stroke: none; }
.mp-shed-roof { fill: #4c535a; }
.mp-shed-roof--shade { fill: #3a4046; }
.mp-ramp { fill: #c9d0d5; stroke: #8796a3; stroke-width: .5; }
.mp-attenuator-edge { fill: none; stroke: #b3ab9e; stroke-width: 16; stroke-linecap: round; }
.mp-attenuator { fill: none; stroke: #e4dfd5; stroke-width: 13; stroke-linecap: round; }
.mp-attenuator-joints { fill: none; stroke: #c9c2b5; stroke-width: 13; stroke-dasharray: .7 13; }
.mp-fuel rect { fill: var(--orange); stroke: #fff; stroke-width: 1; }
.mp-label { font: 700 9px var(--sans); letter-spacing: .16em; text-transform: uppercase; fill: #5b6e7c; text-anchor: middle; }
.mp-label--land { font-size: 8px; fill: #5d6673; paint-order: stroke; stroke: rgba(245,242,235,.85); stroke-width: 2.4px; stroke-linejoin: round; }
.mp-label--park { font-size: 11px; letter-spacing: .3em; fill: rgba(255,255,255,.9); }
/* berths */
.mp-tint { fill-opacity: .16; transition: fill-opacity .2s ease; }
.mp-tab { stroke: rgba(255,255,255,.55); stroke-width: .5; }
.mp-hit { fill: transparent; stroke: none; }
.mp-berth { cursor: pointer; transition: opacity .2s ease; }
.mp-berth.is-dim { opacity: .16; }
.mp-berth.is-hover .mp-tint, .mp-berth.is-sel .mp-tint { fill-opacity: .55; }
.mp-berth.is-hover .mp-hit, .mp-berth.is-sel .mp-hit { stroke: #fff; stroke-width: 2; }
.mp-berth.is-sel .mp-hit { stroke-width: 2.6; }
.mp-boat { pointer-events: none; }
.mp-boat-shadow { fill: #021c2b; fill-opacity: .35; pointer-events: none; }
.mp-boat-hull { fill: #fbfbf9; stroke: #c9d1d7; stroke-width: .35; }
.mp-boat-teak { fill: #c49a6c; }
.mp-boat-cabin { fill: #e3e9ed; stroke: #c3ccd3; stroke-width: .3; }
.mp-boat-glass { fill: #2a3d4a; }
.mp-boat-fly { fill: #f3f6f8; stroke: #c3ccd3; stroke-width: .3; }
.mp-nums { display: none; pointer-events: none; font: 700 4.4px var(--sans); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(4,32,48,.85); stroke-width: 1.1px; stroke-linejoin: round; }
.mplan.is-close .mp-nums { display: block; }
.mp-pier { pointer-events: none; }
.mp-pier rect { fill: #fff; filter: drop-shadow(0 2px 4px rgba(2,28,43,.35)); }
.mp-pier text { font: 700 8px var(--sans); letter-spacing: .16em; fill: var(--navy); text-anchor: middle; }
/* map overlays: compass and scale */
.mplan__compass { position: absolute; left: 14px; bottom: 40px; z-index: 2; width: 40px; height: 46px; pointer-events: none; }
.mplan__compass svg { width: 100%; height: 100%; overflow: visible; }
.mplan__compass circle { fill: rgba(255,255,255,.94); stroke: #c9c3b8; }
.mplan__compass path { fill: var(--navy); }
.mplan__compass text { font: 700 9px var(--sans); fill: var(--navy); text-anchor: middle; }
.mplan__scale { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.mplan__scale i { display: block; height: 5px; border: 1px solid var(--navy); background: linear-gradient(90deg, var(--navy) 50%, #fff 50%); border-radius: 1px; }
.mplan__scale span { font: 700 11px var(--sans); color: var(--navy); background: rgba(255,255,255,.85); padding: 1px 6px; border-radius: 999px; }
.mplan__side { min-width: 0; }
@media (max-width: 980px) {
  .mplan__layout { grid-template-columns: minmax(0, 1fr); }
  .mplan__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 24px; }
  .mplan__side > :is(.mplan__label, .mplan__chips) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .mplan__side { display: flex; }
  .mplan__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .mplan__chips::-webkit-scrollbar { display: none; }
  .mplan__hint { display: none; }
}

/* ---------- .rule-list (policy lists) ---------- */
.rule-list { list-style: none; margin-top: 16px; }
.rule-list li { position: relative; padding: 8px 0 8px 30px; color: var(--muted); line-height: 1.7; border-bottom: 1px solid var(--line); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 18px; height: 8px;
  background: url("../images/wave-small.svg") no-repeat left center / contain;
}

/* ---------- .social (round icon links: footer, home "Follow the Marina", cards) ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--mist); color: var(--navy); transition: background-color .2s ease, color .2s ease; }
.social a:hover, .social a:focus-visible { background: var(--cyan-btn); color: #fff; }
.social svg { width: 15px; height: 15px; }
.social--lg { justify-content: center; gap: 16px; margin-top: 30px; }
.social--lg a { width: 54px; height: 54px; background: var(--navy); color: #fff; }
.social--lg svg { width: 22px; height: 22px; }

/* ---------- .wave-edge (moving wavy edge at the bottom of heroes and the home panels) ----------
   The wave is a single-period tile repeated sideways on a strip one period wider than the
   edge on each side; sliding it by exactly one period loops seamlessly. Transform-only, so it
   runs on the compositor. Switched off for visitors who prefer reduced motion. */
.wave-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  height: var(--wave-h); overflow: hidden; pointer-events: none;
}
.wave-edge::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(-1 * var(--wave-period)); width: calc(100% + 2 * var(--wave-period));
  background: var(--wave-color, var(--paper));
  -webkit-mask: var(--wave) repeat-x left top / var(--wave-period) 100%;
  mask: var(--wave) repeat-x left top / var(--wave-period) 100%;
  animation: wave-drift 10s linear infinite; will-change: transform;
}
.panels > .wave-edge::before { animation-duration: 13s; animation-direction: reverse; }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(var(--wave-period)); } }

/* ============================================================
   5. Sections
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  background: linear-gradient(to bottom, rgba(5,42,65,.75), rgba(5,42,65,0));
  transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.is-solid { background: var(--navy); padding-block: 12px; box-shadow: 0 6px 24px rgba(5,42,65,.25); }
.wordmark { display: block; line-height: 0; flex-shrink: 0; }
.wordmark img { width: clamp(190px, 17vw, 270px); height: auto; transition: width .3s ease; }
.site-header.is-solid .wordmark img { width: clamp(170px, 14vw, 220px); }
.site-header nav { display: flex; align-items: center; }
.site-header nav a {
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: 14px; font-weight: 600; margin-left: 28px; letter-spacing: .06em; text-transform: uppercase;
  padding-block: 6px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--cyan); }
.site-header nav .nav-btn {
  margin-left: 28px; padding: 11px 22px; border: 0; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: #fff; background: var(--cyan-btn);
}
.site-header nav .nav-btn:hover { background: #00699b; }

/* Burger toggle - hidden on desktop */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin-left: 14px;
  background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Slide-out drawer (from the right) + scrim */
.nav-scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(3,22,34,.6);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(330px, 86vw); height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--navy); color: #fff;
  padding: 20px 28px 32px;
  transform: translateX(100%); transition: transform .45s var(--ease);
  visibility: hidden;
}
body.nav-open .nav-drawer { transform: none; visibility: visible; }
body.nav-open { overflow: hidden; }
.nav-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.nav-drawer__title { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan-light); }
.nav-drawer__close { width: 44px; height: 44px; margin-right: -10px; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.8); }
.nav-drawer__close:hover { color: #fff; }
.nav-drawer nav { display: flex; flex-direction: column; }
.nav-drawer nav a {
  margin: 0; padding: 16px 0; font-family: var(--serif); font-size: 24px;
  color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav-drawer nav a:hover, .nav-drawer nav a[aria-current="page"] { color: var(--cyan-light); }
.nav-drawer__actions { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 32px; }

@media (max-width: 1100px) {
  .site-header > nav a:not(.nav-btn) { display: none; } /* menu links live in the drawer */
  .site-header > nav { margin-left: auto; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .site-header > nav .nav-btn { display: none; } /* the drawer has it */
}

/* ---------- Home hero ---------- */
.home-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden;
  background: linear-gradient(200deg, #0e5a86, var(--navy) 55%, var(--navy-deep));
  color: #fff;
}
.home-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.home-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgb(0 0 0 / 31%) 0%, rgb(5 42 65 / 0%) 70%),
    linear-gradient(to top, rgba(5, 42, 65, .85) 0%, rgba(5, 42, 65, .42) 50%, rgba(5, 42, 65, .18) 100%);
}
.home-hero__content { position: relative; z-index: 2; width: 100%; padding: 140px var(--pad-x) clamp(90px, 15vh, 150px); max-width: calc(1000px + 2 * var(--pad-x)); }
.home-hero__badge { width: clamp(96px, 10vw, 150px); height: auto; margin-bottom: 22px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
@media (max-width: 600px) { .home-hero__badge { display: none; } } /* the header logo is enough on phones */
.home-hero__kicker { font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan-light); margin-bottom: 14px; }
.home-hero__title { font-size: clamp(44px, 7vw, 96px); line-height: 1; color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.home-hero__sub { margin-top: 20px; font-size: clamp(16px, 1.45vw, 20px); color: rgba(255,255,255,.88); max-width: 54ch; line-height: 1.6; }
.home-hero .actions { margin-top: 34px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(36px, 5vw, 64px); z-index: 2; transform: translateX(-50%);
  color: rgba(255,255,255,.7); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }
@media (max-width: 820px) { .scroll-cue { display: none; } }

/* small light text over photos: a soft shadow keeps it legible on bright skies */
.home-hero__kicker, .home-hero__sub, .page-hero__eyebrow, .page-hero__sub, .panel__eyebrow, .panel__tag { text-shadow: 0 1px 10px rgba(3,22,34,.55); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: 58vh;
  display: flex; align-items: flex-end; overflow: hidden;
  background: linear-gradient(200deg, #0e5a86, var(--navy) 55%, var(--navy-deep));
  color: #fff;
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(5,42,65,.4) 0%, rgba(5,42,65,0) 70%), linear-gradient(to top, rgba(5,42,65,.82) 0%, rgba(5,42,65,.38) 55%, rgba(5,42,65,.15) 100%); }
.page-hero__content { position: relative; z-index: 2; width: 100%; padding: 150px var(--gutter) clamp(72px, 10vh, 110px); }
.page-hero__eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan-light); margin-bottom: 14px; }
.page-hero__title { font-size: clamp(40px, 5.6vw, 76px); color: #fff; text-wrap: balance; max-width: 18ch; }
.page-hero__sub { margin-top: 16px; font-size: clamp(16px, 1.4vw, 20px); color: rgba(255,255,255,.88); max-width: 56ch; }
.page-hero--plain { min-height: 0; }
.page-hero--plain .page-hero__scrim { display: none; }
.page-hero--plain .page-hero__content { padding-top: clamp(130px, 18vh, 170px); padding-bottom: clamp(64px, 9vh, 96px); }
.page-hero--plain .page-hero__title { font-size: clamp(36px, 4.6vw, 60px); }

/* ---------- Home: mission quote ---------- */
.mission { text-align: center; }
.mission .section__title::after { margin-inline: auto; }
.mission__text { max-width: 900px; margin: 26px auto 0; }
.mission__text p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.45; color: var(--navy); }

/* ---------- Home: follow the marina (social links) ---------- */
.follow { text-align: center; }
.follow .section__title::after { margin-inline: auto; }
.follow .section__intro { margin-inline: auto; }

/* ---------- Enquiry (navy band, form on a white card) ---------- */
.enquiry { background: var(--navy); color: #fff; }
/* optional photo behind the band (Site > Enquiry Form > Background Photo), tinted navy -
   darker on the left where the heading sits, lighter on the right behind the white form card */
.enquiry__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.enquiry--photo .enquiry__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,42,65,.84) 0%, rgba(8,57,87,.70) 45%, rgba(8,57,87,.40) 100%);
}
.enquiry::before { /* soft cyan glow, top right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 100% 0%, rgba(0,159,227,.22), transparent 60%);
}
.enquiry__inner { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.enquiry .section__kicker { color: var(--cyan-light); }
.enquiry .section__title { color: #fff; }
.enquiry .section__intro { color: var(--muted-on-navy); }
.enquiry .section__intro a { color: #fff; }
.enquiry__inner > .form, .enquiry__inner > .form__note { grid-column: 2; }
.enquiry__inner > .form__note { margin-bottom: 0; }
.enquiry .form { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.enquiry__head { grid-row: 1 / span 2; position: sticky; top: 110px; }
@media (max-width: 1020px) {
  .enquiry__inner { grid-template-columns: 1fr; }
  .enquiry__inner > .form, .enquiry__inner > .form__note { grid-column: 1; }
  .enquiry__head { grid-row: auto; position: static; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-grid .prose { margin-bottom: 30px; }
.contact-grid__form { background: var(--mist); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 3vw, 40px); }
.form-title { font-size: clamp(26px, 2.4vw, 34px); color: var(--navy); margin-bottom: 10px; }
.contact-grid__form .prose { margin-bottom: 24px; }
.c-block { margin-top: 26px; }
.c-block__h { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: 8px; }
.c-block a { display: block; color: var(--navy); text-decoration: none; font-size: 17px; font-weight: 600; line-height: 1.8; }
.c-block a:hover { color: var(--cyan-ink); }
.c-block p { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 52ch; }
@media (max-width: 1020px) { .contact-grid { grid-template-columns: 1fr; } }

/* Map: the footer wave rolls over its bottom edge,
   so there's no hard line or white strip between the map and the footer */
.map-full { position: relative; width: 100%; }
.map-full .js-map { position: relative; width: 100%; height: calc(clamp(340px, 50vh, 560px) + var(--footer-wave-h)); background: var(--mist); z-index: 0; }
.map-full .leaflet-bottom { bottom: calc(var(--footer-wave-h) * .5); }  /* attribution sits just above the footer wave */
.map-full .leaflet-control-attribution { border-radius: 6px 0 0 6px; background: rgba(255,255,255,.85); font-size: 11px; }
.tpl--contact .site-footer__wave { margin-top: calc(-1 * var(--footer-wave-h)); z-index: 2; }
.leaflet-container { font-family: var(--sans); }
.leaflet-marker-icon { filter: drop-shadow(0 6px 10px rgba(5,42,65,.35)); }

/* ---------- Thank you / 404 ---------- */
.thanks { text-align: center; }
.thanks .section__title::after { margin-inline: auto; }
.thanks .section__intro { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: #fff; }
/* single navy wave rolling into the footer */
.site-footer__wave { position: relative; overflow: hidden; height: var(--footer-wave-h); }
.site-footer__wave::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(-1 * var(--wave-period)); width: calc(100% + 2 * var(--wave-period));
  background: url("../images/wave-tile-navy.svg") repeat-x left bottom / var(--wave-period) 100%;
  animation: wave-drift 12s linear infinite reverse; will-change: transform;
}
.site-footer__body { background: var(--navy); padding: clamp(32px, 6vh, 64px) var(--gutter) 28px; margin-top: -1px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__about { margin-top: 18px; font-size: 14px; line-height: 1.75; color: var(--muted-on-navy); max-width: 42ch; }
.footer__h { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-light); margin-bottom: 16px; }
.footer__grid a { display: block; color: rgba(255,255,255,.88); text-decoration: none; font-size: 15px; margin-bottom: 10px; line-height: 1.55; }
.footer__grid a:hover { color: var(--cyan-light); }
.footer__grid .wordmark img { width: 240px; }
.footer__social { display: flex; gap: 14px; margin-top: 14px; }
.footer__social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); margin: 0; }
.footer__social a:hover { background: var(--cyan-btn); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
.footer__bar {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.7);
}
.footer__bar a { color: inherit; }
.footer__bar a:hover { color: #fff; }
/* pages that end with the enquiry band: the footer wave rolls over the bottom of it
   (over the photo when there is one), instead of floating on a strip of flat navy */
.tpl--home .site-footer__wave, .tpl--berths .site-footer__wave,
.tpl--commercial .site-footer__wave, .tpl--about .site-footer__wave { margin-top: calc(-1 * var(--footer-wave-h)); z-index: 2; }
.tpl--home .enquiry, .tpl--berths .enquiry, .tpl--commercial .enquiry, .tpl--about .enquiry {
  /* the wave's visible crest sits about halfway down its strip, so this leaves the same
     gap below the form as above the heading */
  padding-bottom: calc(clamp(64px, 9vh, 120px) + var(--footer-wave-h) * .45);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   6. Utilities
   ============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
