/* ==========================================================================
   THE VI CAT — 2026 SITE REDESIGN
   Tropical Teal & Coral / modern, elegant, FareHarbor-friendly
   Fonts: Outfit (display/headings) + Inter (body) — loaded in head.incl.php
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette — Tropical Teal & Coral */
  --teal-900: #063C41;
  --teal-800: #0A4F55;
  --teal-700: #0E6870;
  --teal-600: #128089;
  --teal-500: #17A2AA;
  --teal-400: #4CC1C4;
  --teal-100: #E3F6F5;
  --teal-50:  #F2FBFA;

  --coral-600: #E24C3F;
  --coral-500: #FF6F59;
  --coral-400: #FF8E7A;
  --coral-100: #FFE7E1;

  --sand-50:  #FFFBF6;
  --sand-100: #FDF1E1;
  --sand-200: #F7E4C9;

  --gold-500: #E8A93D;

  --ink-900: #0B2027;
  --ink-700: #1F3A3D;
  --ink-500: #4B6367;
  --ink-300: #8A9DA0;

  --white: #FFFFFF;

  /* Semantic aliases */
  --color-primary: var(--teal-600);
  --color-primary-dark: var(--teal-900);
  --color-accent: var(--coral-500);
  --color-bg: var(--sand-50);
  --color-surface: var(--white);
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-500);

  /* Type */
  --font-display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Radius / shadow */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(11,32,39,0.08);
  --shadow-md: 0 12px 32px rgba(11,32,39,0.14);
  --shadow-lg: 0 24px 60px rgba(11,32,39,0.22);

  --header-height: 88px;
  --container-w: 1240px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}
h1 { font-size: clamp(2.4rem, 4.2vw, 3.8rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--space-sm); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-500);
  margin-bottom: var(--space-xs);
}
.text-center { text-align: center; }
.section-head { max-width: 680px; margin: 0 auto var(--space-lg); text-align: center; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
/* Wider variant — for content that should feel bigger/more dominant
   than the standard 1240px container (e.g. a large map embed). */
.wrap-wide {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--space-2xl) 0; }
.section--tight { padding: var(--space-xl) 0; }
.section--surface { background: var(--color-surface); }
.section--sand { background: var(--sand-100); }
.section--deep {
  position: relative;
  overflow: hidden;
  /* Confines the icon-overlay's mix-blend-mode to blending against just
     this section's own background, rather than every painted layer in
     the page's shared stacking context (which otherwise washes out
     unrelated content elsewhere on the page). */
  isolation: isolate;
  background: linear-gradient(160deg, var(--teal-900), var(--teal-700));
  color: var(--white);
}
.section--deep h2, .section--deep .eyebrow { color: var(--white); }
.section--deep .eyebrow { color: var(--coral-400); }
/* Content sits above the big icon-overlay circle (below). */
.section--deep > .wrap { position: relative; z-index: 3; }
.clearfloat { clear: both; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--coral-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--coral-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--teal-600);
  color: var(--teal-700);
}
.btn-outline-dark:hover { background: var(--teal-600); color: var(--white); }
.btn-sm { padding: 0.6em 1.3em; font-size: 0.9rem; }

/* Restyle FareHarbor's injected button to match brand (non-destructive override) */
.fh-button {
  font-family: var(--font-display) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}
.fh-fixed--side {
  background: var(--coral-500) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow .3s ease;
}
/* Blur/background live on a pseudo-element rather than .site-header itself.
   Reason: backdrop-filter on an element establishes a new containing block
   for its position:fixed descendants (the full-screen mobile nav panel is
   one) — putting it here keeps that panel positioned against the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6,60,65,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .3s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header.is-scrolled::before {
  background: rgba(6,60,65,0.96);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 0;
}
/* Optional text lockup (unused while the badge logo carries the name, kept
   for any page that wants a text-only variant of .brand). */
.brand .brand-word { overflow: hidden; text-overflow: ellipsis; }
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-100);
  opacity: .85;
}

/* Client badge-style logo: a circular mark with its own white backdrop, so
   it reads clean against both the translucent header and the dark footer. */
.brand img.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  /* No border-radius here: the artwork is already a round badge on its own
     canvas, and the canvas isn't square (it has extra head/foot room for
     the arced text), so clipping it to a circle to would crop it into an
     oval instead. */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform .3s ease;
}
.brand img.footer-logo { height: 56px; }

/* Hover-to-enlarge: badge/logo art on this site is printed small (nav
   logo, trust-strip certificates, footer badges), so on hover we blow it
   up 3x in place — transform doesn't reflow layout, it just floats the
   enlarged image above whatever's next to it — so guests can actually
   read the fine print without anything jumping around. */
.brand img.brand-logo:hover,
.trust-strip img:hover,
.footer-badges img:hover {
  transform: scale(3);
  position: relative;
  z-index: 60;
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; align-items: center; gap: 0.2rem; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: inline-block;
  padding: 0.8rem 1rem;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius-pill);
  transition: background-color .2s ease, color .2s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.is-open > a { background: rgba(255,255,255,0.14); color: var(--white); }
.main-nav > ul > li.current > a { background: var(--coral-500); color: var(--white); }

.main-nav .has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.4em;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
  vertical-align: middle;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.main-nav li.has-dropdown:hover .dropdown,
.main-nav li.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.dropdown li a:hover { background: var(--teal-50); color: var(--teal-700); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header-cta .btn { padding: 0.7em 1.5em; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.12);
  border: 0;
  cursor: pointer;
  position: relative;
}
/* The middle bar (span) is positioned relative to the 44px button, so it
   needs left/right:11px to become the 22px centered bar. Its ::before/
   ::after top & bottom bars are positioned relative to THAT span (since
   an absolutely-positioned element is itself a containing block for its
   own pseudo-elements) — so they need left/right:0 to fill the span's
   already-22px-wide box, not another 11px inset on top of it (which
   previously collapsed them to 0 width and made the icon look like a
   single line instead of a hamburger). */
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px; top: 21px;
  height: 2px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  /* min-height (not a fixed height) so the section can grow taller than
     the viewport when its content doesn't fit — on a short mobile screen
     the eyebrow + h1 + lede + buttons + badges stack can easily exceed
     100vh once the fixed header's space is reserved below, and a rigid
     height:100vh combined with align-items:flex-end would rather clip
     that content up underneath the header than let the section grow. */
  min-height: max(640px, 100vh);
  /* Reserves space for the fixed header (same pattern as .page-hero's
     padding-top below) so hero-content, which is bottom-anchored via
     align-items:flex-end, can never be pushed up underneath the header
     on shorter viewports — without this, tall content (eyebrow + h1 +
     lede + buttons + badges) on a short mobile screen collides with
     the fixed nav bar instead of clearing it. */
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  /* Fallback base so the hero still looks intentional before the photos
     load, between crossfades, or if an image fails. */
  background: linear-gradient(160deg, var(--teal-900), var(--teal-600));
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 28s infinite;
}
.hero-slides img:nth-child(1) { animation-delay: 0s; }
.hero-slides img:nth-child(2) { animation-delay: 7s; }
.hero-slides img:nth-child(3) { animation-delay: 14s; }
.hero-slides img:nth-child(4) { animation-delay: 21s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; }
  100% { opacity: 0; }
}
/* Simple dark scrim over the photo, for nav/text contrast — same
   treatment as the WaterSportsVI hero, as a plain overlay div rather
   than layered gradients/textures. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,30,33,0.55) 0%, rgba(6,30,33,0.22) 32%, rgba(6,30,33,0.4) 62%, rgba(6,30,33,0.92) 100%);
}

/* Oversized soft-edge circle, cropped by the frame, sitting over the
   right two-thirds of the hero — a single enlarged "icon" at low opacity
   rather than a small distinct graphic. This is the elegant overlay
   treatment from the reference site: it reads as a subtle lightening/
   veiling of the photo in that area, not as a logo or badge. */
.hero-icon-overlay {
  position: absolute;
  top: 50%;
  left: 82%;
  width: 230vh;
  height: 230vh;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  mix-blend-mode: soft-light;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 0 var(--space-2xl);
}
.hero-content .wrap { max-width: 860px; }
.hero-content .eyebrow { color: var(--coral-400); }
.hero-content h1 { color: var(--white); margin-bottom: var(--space-sm); text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero-content .lede { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,0.92); margin-bottom: var(--space-md); text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- 5b. Page hero (inner pages) ---------- */
/* Compact banner for every page that isn't the homepage — same teal
   gradient + big soft icon-overlay circle as the homepage hero/deep
   sections, just shorter, and sitting behind the fixed header rather
   than filling the viewport. */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--teal-900), var(--teal-700));
  color: var(--white);
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
}
.page-hero > .wrap { position: relative; z-index: 3; max-width: 760px; }
.page-hero .eyebrow { color: var(--coral-400); }
.page-hero h1 { color: var(--white); margin-bottom: var(--space-sm); }
.page-hero .lede { font-size: 1.1rem; max-width: 580px; color: rgba(255,255,255,0.88); margin: 0; }
/* Same gap the homepage hero uses between its paragraph and its
   buttons (.hero-content .lede's margin-bottom: var(--space-md)) —
   scoped to only apply when a .lede is immediately followed by
   .hero-actions, so page-heroes without buttons are unaffected. */
.page-hero .lede + .hero-actions { margin-top: var(--space-md); }

/* Extra text-shadow for the photo/collage variants — a plain gradient
   background never needed this, but real photos underneath (especially
   brighter ones) can eat into contrast otherwise. Same treatment as the
   homepage's .hero-content text. */
.page-hero--photo .eyebrow, .page-hero--collage .eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.page-hero--photo h1, .page-hero--collage h1 { text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.page-hero--photo .lede, .page-hero--collage .lede { text-shadow: 0 1px 12px rgba(0,0,0,0.35); }

/* Photo variant — same compact banner, but with a real photo set as the
   section's own background (so it sits behind the text automatically,
   no extra layering needed), full width via background-size: cover.
   The same .hero-overlay scrim and .hero-icon-overlay circle from the
   homepage sit on top of it for legibility. Photo is set per-page via
   an inline background-image style on the element itself; the flat
   gradient above stays as the fallback color while it loads. */
.page-hero--photo {
  background-size: cover;
  background-position: center;
}

/* Collage variant — a strip of real photos side by side instead of one
   background image, for pages (like the gallery) where several shots
   tell the story better than one. Sits in the same z-index:0 slot a
   single background-image would occupy; the .hero-overlay scrim and
   .hero-icon-overlay circle layer on top exactly as with .page-hero--photo. */
.page-hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.page-hero-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* !important here because the base grid-template-columns / img display
   are set inline on the page itself (so the layout still works even if
   this stylesheet is stale) — the mobile column count needs to win over
   that inline style, which only !important can do at this breakpoint. */
@media (max-width: 640px) {
  .page-hero-collage { grid-template-columns: repeat(3, 1fr) !important; }
  .page-hero-collage img:nth-child(4),
  .page-hero-collage img:nth-child(5) { display: none !important; }
}

/* Grid variant — a 4x2 wall of square-ish tiles with thin gaps, reading
   as an actual social feed rather than a cinematic strip. Used on the
   News & Social page. Same z-index:0 slot / overlay stack as the other
   two variants. */
.page-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  background: var(--teal-900);
}
.page-hero-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Same !important reasoning as .page-hero-collage above — this needs to
   beat the inline grid-template-columns / display set on the page. */
@media (max-width: 640px) {
  .page-hero-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .page-hero-grid img:nth-child(7),
  .page-hero-grid img:nth-child(8) { display: none !important; }
}

.hero-badges {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: var(--space-lg);
}
.hero-badges img { height: 64px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25)); }

/* Simple white/transparent "award winner" marks for Viator + Tripadvisor —
   generic laurel-award glyph + name, not the brands' actual logos (we don't
   have white/transparent versions of those on hand), styled subtly so they
   read as trust signals without competing with the hero photo/CTA. */
.award-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.award-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: rgba(255,255,255,0.85);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* ---------- 7. Trust / awards strip ---------- */
/* Same dark navy treatment as the stat bar, so the run-up into the footer
   feels like one continuous band — shimmer line echoes the stat bar's,
   just along the bottom edge here instead of the top. */
.trust-strip {
  position: relative;
  background: linear-gradient(160deg, var(--ink-900), var(--teal-900));
  padding: var(--space-md) 0;
  /* No overflow:hidden here on purpose — the shimmer ::after below is
     fully self-contained and doesn't need clipping, and this section's
     images pop 3x on hover (see .trust-strip img:hover) which needs to
     spill past the strip's own top/bottom edge to be visible at all. */
}
.trust-strip::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--coral-400), var(--gold-500), transparent);
  background-size: 220% 100%;
  animation: statShimmer 7s linear infinite;
}
.trust-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.trust-strip img {
  height: 72px; width: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 6px;
  transition: transform .3s ease;
}

/* ---------- 7b. Stat bar (JimboatTrips-style) ---------- */
.stat-bar {
  position: relative;
  background: linear-gradient(160deg, var(--ink-900), var(--teal-900));
  overflow: hidden;
}
.stat-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--coral-400), var(--gold-500), transparent);
  background-size: 220% 100%;
  animation: statShimmer 7s linear infinite;
}
@keyframes statShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -220% 0; }
}
.stat-bar .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg) var(--space-md);
  padding: var(--space-lg) 0;
}
.stat-item {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-300);
}
.stat-item strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-500);
  margin-bottom: 0.2rem;
}
.stat-item strong svg { width: 18px; height: 18px; fill: var(--gold-500); }

/* ---------- 8. Welcome / About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-media .float-card {
  position: absolute;
  bottom: -28px; left: -28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  max-width: 240px;
}
.split-media .float-card strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--coral-500); }
.split-media .float-card span { font-size: 0.85rem; color: var(--color-text-muted); }
.split-body p { color: var(--color-text-muted); }
/* Reversed variant — photo right, copy left — for alternating rhythm
   when a page stacks more than one split section. */
.split--alt .split-media { order: 2; }
.split--alt .split-body { order: 1; }
.check-list { margin-top: var(--space-md); display: grid; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 500; color: var(--ink-700); }
.check-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 0.15em;
  border-radius: 50%;
  background: var(--teal-100);
  border: 2px solid var(--teal-500);
}
/* Numbered variant of check-list — for sequential/policy content
   (booking steps, cancellation terms) where order matters. */
.policy-list { margin-top: var(--space-md); display: grid; gap: 0.85rem; counter-reset: policy; }
.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-weight: 500;
  color: var(--ink-700);
  counter-increment: policy;
}
.policy-list li::before {
  content: counter(policy);
  flex: none;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-600);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- 8c. FAQ accordion ---------- */
/* Native <details>/<summary> — no JS needed, works with the same
   .check-list/.policy-list content patterns used inside each answer. */
.faq-group { margin-top: var(--space-xl); }
.faq-group:first-child { margin-top: 0; }
.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-900);
  margin: 0 0 var(--space-sm);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--teal-100);
}
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(11,32,39,0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item-body { padding: 0 1.4rem 1.3rem; color: var(--color-text-muted); }
.faq-item-body p { margin: 0; }
.faq-item-body p + p { margin-top: 0.75rem; }
.faq-item-body .check-list,
.faq-item-body .policy-list { margin-top: 0.85rem; }
.faq-item-body ul.plain-list {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
  list-style: disc;
}

/* ---------- 8d. Map embed ---------- */
.map-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 8;
  margin: var(--space-lg) auto 0;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
  .map-embed { aspect-ratio: 4 / 5; }
}
/* Large variant — a bigger, viewport-scaled map that's the clear focal
   point of the page rather than one card among several. */
.map-embed--lg {
  aspect-ratio: auto;
  height: 65vh;
  min-height: 480px;
  max-height: 720px;
}
@media (max-width: 640px) {
  .map-embed--lg { height: 55vh; min-height: 360px; max-height: 520px; }
}

/* ---------- 8e. Helpful links grid ---------- */
/* Each .link-card has exactly two element children (label + arrow) so
   flex never has to wrap a bare text run into its own anonymous item —
   the same hazard fixed on .policy-list earlier. */
.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin-top: var(--space-md); }
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--ink-900);
  transition: transform .2s ease, box-shadow .2s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.link-card-label { color: var(--ink-900); }
.link-card-arrow {
  flex: none;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 1rem;
}
@media (max-width: 640px) {
  .link-grid { grid-template-columns: 1fr; }
}

/* ---------- 9. Social icons row ---------- */
.social-row { display: flex; gap: 0.9rem; margin-top: var(--space-md); }
.social-row a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--teal-100);
  transition: background-color .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--coral-500); transform: translateY(-2px); }
.social-row img { width: 20px; height: 20px; }

/* ---------- 10. Tour / experience cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.tour-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tour-card-media { position: relative; height: 190px; overflow: hidden; }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card:hover .tour-card-media img { transform: scale(1.06); }
.tour-card-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--coral-500);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
}
.tour-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.tour-card-body h3 { margin-bottom: 0.4rem; }
.tour-card-body p { color: var(--color-text-muted); font-size: 0.94rem; flex: 1; }
.tour-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.tour-card-foot .btn { padding: 0.55em 1.2em; font-size: 0.86rem; }

/* ---------- 10b. Store / product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--sand-200);
}
.product-card-media img { width: 100%; height: 240px; object-fit: cover; display: block; }
.product-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--coral-500);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.product-card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { margin-bottom: 0.5rem; }
.product-card-body p { color: var(--color-text-muted); font-size: 0.94rem; margin: 0; }
.product-card-size { margin-top: 0.85rem; font-size: 0.88rem; color: var(--ink-700); }
.product-card-size strong { color: var(--ink-900); }
.product-price { display: flex; align-items: baseline; gap: 0.65rem; margin: 0.75rem 0 0.25rem; }
.product-price .was { text-decoration: line-through; color: var(--ink-300); font-size: 1.05rem; }
.product-price .now { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--coral-500); }
.product-price.no-sale .now { color: var(--ink-900); }
.product-card-foot { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; margin-top: 0.5rem; }
.product-card-ship { font-size: 0.8rem; color: var(--ink-300); margin-top: auto; padding-top: 1rem; }

/* ---------- 11. Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.review-stars { display: flex; gap: 3px; }
.review-stars svg { width: 18px; height: 18px; fill: var(--gold-500); }
.review-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0; color: var(--ink-900); }
.review-card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }
.review-card .review-source { margin-top: auto; font-size: 0.82rem; font-weight: 600; color: var(--teal-600); }

/* ---------- 12. FareHarbor affiliate cross-sell ---------- */
.affiliate-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.affiliate-panel-media { position: relative; min-height: 320px; }
.affiliate-panel-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.affiliate-panel-body { padding: var(--space-lg); display: flex; flex-direction: column; justify-content: center; }
.affiliate-panel-body .eyebrow { color: var(--teal-600); }
.affiliate-panel-body p { color: var(--color-text-muted); }
.affiliate-panel-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }

/* Stack of full-size partner panels below the main featured one — same
   card treatment (photo + Featured Partner copy), just reversed so the
   photo sits on the right and the text on the left. */
.affiliate-cards { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-lg); }
.affiliate-panel--alt .affiliate-panel-media { order: 2; }
.affiliate-panel--alt .affiliate-panel-body { order: 1; }

/* ---------- 12b. Video grid (gallery page) ---------- */
/* Same spread as the photo gallery above it — several smaller tiles
   across the row rather than two large ones stacked tall. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.video-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink-900);
}
.video-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 13. Resource / link columns (location, directory, etc.) ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.resource-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.resource-card img { width: 100%; height: 100%; object-fit: cover; }
.resource-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,30,33,0) 40%, rgba(6,30,33,0.82) 100%);
}
.resource-card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1rem 1.2rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

/* ---------- 14. Share strip ---------- */
.share-strip { text-align: center; }
.share-strip .social-row { justify-content: center; margin: var(--space-md) auto 0; }
/* This icon set reads too faint on the pale teal-100 chip against a white
   section — swap in a solid, saturated chip so the icons actually show up. */
.share-strip .social-row a {
  background: var(--teal-600);
  box-shadow: var(--shadow-sm);
}
.share-strip .social-row a:hover { background: var(--coral-500); }
.share-strip .social-row img { width: 22px; height: 22px; opacity: 1; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.82); }
.footer-top { padding: var(--space-xl) 0 var(--space-lg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--space-lg);
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.footer-grid ul { display: grid; gap: 0.6rem; }
.footer-grid a { color: rgba(255,255,255,0.72); font-size: 0.94rem; transition: color .2s ease; }
.footer-grid a:hover { color: var(--coral-400); }
.footer-brand .brand { color: var(--white); margin-bottom: 0.75rem; }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 0.92rem; max-width: 320px; }
.footer-badges { display: flex; align-items: center; gap: 1.2rem; margin-top: var(--space-md); flex-wrap: wrap; }
.footer-badges img { height: 60px; width: auto; background: var(--white); border-radius: 8px; padding: 4px; transition: transform .3s ease; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }

/* ---------- 16. Utilities / animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--coral-500); color: var(--white);
  padding: 0.8rem 1.2rem; border-radius: var(--radius-sm);
  z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .affiliate-panel { grid-template-columns: 1fr; }
  .affiliate-panel-media { min-height: 220px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-media img { height: 280px; }
}

/* Switches to the hamburger menu earlier (1150px) rather than at a typical
   tablet breakpoint — with 8 top-level nav items plus the brand and CTA
   button, the desktop nav needs ~1060px of its own to avoid crowding. */
@media (max-width: 1150px) {
  .main-nav, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .brand img.brand-logo { height: 52px; }
  .header-cta { gap: 0.5rem; }
  .header-cta .btn-primary { padding: 0.6em 1.1em; font-size: 0.84rem; }
  .split { grid-template-columns: 1fr; }
  .split-media .float-card { position: static; margin-top: -40px; margin-left: 20px; width: fit-content; }
  .hero-badges { gap: 1.5rem; }
  .hero-badges img { height: 46px; }
  .award-badge { font-size: 0.76rem; }
  .award-badge svg { width: 22px; height: 22px; }
  .hero-icon-overlay { left: 90%; width: 190vh; height: 190vh; }
  .affiliate-cards { grid-template-columns: 1fr; }
  .stat-bar .wrap { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }

  .site-header.nav-open .main-nav {
    display: block;
    position: fixed;
    top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: var(--teal-900);
    padding: var(--space-md) 0;
    overflow-y: auto;
  }
  .site-header.nav-open .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.nav-open .main-nav > ul > li > a { padding: 1rem 24px; border-radius: 0; font-size: 1.05rem; }
  .site-header.nav-open .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; background: rgba(255,255,255,0.06); margin: 0 24px 0.5rem; min-width: 0;
  }
  .site-header.nav-open .dropdown li a { color: rgba(255,255,255,0.85); }
  .site-header.nav-open .dropdown li a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
  .site-header.nav-open .nav-toggle span { background: transparent; }
  .site-header.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .card-grid, .review-grid, .resource-grid, .footer-grid, .video-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-content { padding-bottom: var(--space-xl); }
  .hero-icon-overlay { left: 96%; width: 150vh; height: 150vh; }
  .trust-strip img { height: 52px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .brand img.brand-logo { height: 44px; }
  .site-header .wrap { padding: 0 16px; gap: 0.5rem; }
  .header-cta .btn-primary { padding: 0.55em 0.9em; font-size: 0.8rem; }
  .stat-bar .wrap { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); padding: var(--space-md) 0; }
  .stat-item { font-size: 0.85rem; }
  .stat-item strong { font-size: 1.15rem; }
  .product-card-media img { height: 200px; }
  .product-card-body { padding: 1.3rem; }
}

@media (max-width: 360px) {
  .header-cta .btn-primary { display: none; }
  .stat-bar .wrap { grid-template-columns: 1fr; }
}
