/* ============================================================
   TIDE DESIGN SYSTEM — v3 Stylesheet
   Built from TIDE_DESIGN_SYSTEM.md token spec
   ============================================================ */

/* 1. Reset & Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Honeypot field for form spam protection — visually hidden, off-screen.
   See docs/forms-email-spec.md §9. */
.tide-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 2. Design Tokens
   ------------------------------------------------------------ */
:root {
  /* Brand palette */
  --tide-ocean-dark:    #003D5D;
  --tide-cyan-bright:   #36D2F5;
  --tide-cyan-hover:    #2BBEDD;
  --tide-cyan-active:   #2099B5;
  --tide-coral:         #F94877;
  --tide-error:         #F94877;
  --tide-white:         #FFFFFF;

  /* Functional backgrounds */
  --bg-1: #FFFFFF;
  --bg-2: #F9FAFB;
  --bg-3: #EFFAFF;
  --bg-dark: #003D5D;

  /* Foreground / text */
  --fg-1: #003D5D;
  --fg-2: #1A1A1A;
  --fg-3: #4A4A4A;
  --fg-muted: #828282;
  --fg-inverse: #FFFFFF;

  /* Borders */
  --border-1: #A9A9A9;
  --border-2: #E2E8F0;
  --border-strong: #003D5D;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --fs-h1:      3rem;
  --fs-h2:      2.25rem;
  --fs-h3:      1.5rem;
  --fs-h4:      1.125rem;
  --fs-body:    1rem;
  --fs-body-lg: 1.25rem;
  --fs-body-sm: 0.875rem;
  --fs-label:   0.75rem;
  --lh-heading: 1.2;
  --lh-body:    1.6;

  /* Spacing */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 48px;  --s-10: 64px; --s-11: 80px; --s-12: 96px;

  /* Radii */
  --radius-0:    0;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 999px;

  /* Elevation */
  --elev-1:          0 1px 3px rgba(0,0,0,0.08);
  --elev-2:          0 4px 12px rgba(0,0,0,0.10);
  --elev-card:       0 2px 8px rgba(0,0,0,0.06);
  --elev-card-hover: 0 6px 20px rgba(0,0,0,0.10);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(54,210,245,0.45);

  /* Overlays */
  --overlay-navy-soft:  rgba(0,61,93,0.35);
  --overlay-black-soft: rgba(0,0,0,0.25);
  --overlay-navy-heavy: rgba(0,61,93,0.75);

  /* Layout */
  --content-max: 1200px;
  --padding-x:   var(--s-6);

  /* Motion */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
}

/* 3. Semantic Element Defaults
   ------------------------------------------------------------ */
html, body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--fg-1);
  line-height: var(--lh-heading);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 400; margin-bottom: var(--s-6); }
h2 { font-size: var(--fs-h2); font-weight: 400; margin-bottom: var(--s-5); }
h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--s-4); }
h4 { font-size: var(--fs-h4); font-weight: 600; margin-bottom: var(--s-3); }

p  { margin-bottom: var(--s-4); }
a  { color: var(--tide-cyan-bright); text-decoration: none; transition: color var(--duration-fast) var(--ease-default); }
a:hover { color: var(--tide-cyan-hover); }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

ul, ol { margin-bottom: var(--s-4); padding-left: var(--s-6); }
li { margin-bottom: var(--s-2); }

blockquote {
  border-left: 3px solid var(--tide-cyan-bright);
  padding: var(--s-4) var(--s-6);
  margin: var(--s-6) 0;
  font-size: var(--fs-body-lg);
  color: var(--fg-1);
  font-style: italic;
}

strong { font-weight: 600; }
em { font-style: italic; }

img { max-width: 100%; height: auto; display: block; }

/* Responsive type */
@media (max-width: 1023px) {
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 1.875rem;
    --fs-h3: 1.375rem;
  }
}
@media (max-width: 767px) {
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.25rem;
    --fs-body-lg: 1.125rem;
  }
}

/* 4. Layout
   ------------------------------------------------------------ */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* All sections within main get vertical padding by default */
main > section {
  padding: 72px 0;
}
.section {
  padding: 72px 0;
}
.section-light, .hero + section.section-light, .hero + .section-light  { background: var(--bg-2); padding: 72px 0; }
.section-cyan, .hero + section.section-cyan, .hero + .section-cyan   { background: var(--bg-3); padding: 72px 0; }
.section-dark, .hero + section.section-dark, .hero + .section-dark   { background: var(--bg-dark); color: var(--fg-inverse); padding: 72px 0; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--fg-inverse); }
.section-dark a { color: var(--tide-cyan-bright); }

@media (max-width: 1023px) {
  main > section, .section, .section-light, .section-cyan, .section-dark { padding: 48px 0; }
}
@media (max-width: 767px) {
  main > section, .section, .section-light, .section-cyan, .section-dark { padding: 32px 0; }
}

/* Wave divider — standalone element between sections */
.wave-divider {
  height: 48px;
  margin-top: -1px;
}
.wave-divider--light {
  background: var(--bg-2);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,28 C1340,36 1200,25 1080,22 C900,18 720,32 540,40 C360,48 180,42 0,28 Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,28 C1340,36 1200,25 1080,22 C900,18 720,32 540,40 C360,48 180,42 0,28 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
@media (max-width: 1023px) { .wave-divider { height: 36px; } }
@media (max-width: 767px)  { .wave-divider { height: 28px; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-8); }

@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* 5. Navbar
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  height: 68px;
}
.nav-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 0 auto;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Desktop: nav-panel is invisible wrapper, children flex alongside logo */
.nav-panel {
  display: contents;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-left  { flex: 1; order: -1; }  /* before logo */
.nav-right { flex: 1; justify-content: flex-end; order: 1; } /* after logo */

.nav-item { position: relative; }
.nav-item > a {
  color: var(--fg-1);
  font-size: var(--fs-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--s-3) 0;
  display: block;
}
.nav-item > a:hover { color: var(--tide-cyan-bright); }

/* Dropdown (desktop: hover) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-1);
  box-shadow: var(--elev-2);
  border-radius: 0;
  min-width: 220px;
  padding: var(--s-3) 0;
  z-index: 200;
}
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: var(--s-2) var(--s-5);
  color: var(--fg-2);
  font-size: var(--fs-body);
  font-weight: 400;
}
.dropdown-menu a:hover { background: var(--bg-3); color: var(--fg-1); }
.dropdown-toggle { display: none; } /* hidden on desktop, shown in mobile media query */

/* Nav CTA */
.nav-cta a {
  display: inline-block;
  background: var(--tide-cyan-bright);
  color: var(--tide-white);
  font-weight: 500;
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-default);
}
.nav-cta a:hover { background: var(--tide-cyan-hover); color: var(--tide-white); }
.nav-cta a:active { background: var(--tide-cyan-active); }
.nav-cta a:focus-visible { box-shadow: var(--focus-ring); outline: none; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 300;
  background: none;
  border: none;
  padding: var(--s-2);
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg-1);
  transition: all var(--duration-base) var(--ease-default);
}

/* --- Mobile nav (< 768px) --- */
@media (max-width: 767px) {
  .site-header { height: 56px; }

  /* Header bar: toggle left, logo centered, using the full header height */
  .nav-wrapper { height: 56px; }

  .mobile-toggle {
    display: flex;
    position: absolute;
    left: var(--padding-x);
    top: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
  }

  .logo {
    margin: 0 auto;
  }

  /* Mobile: nav-panel becomes a real positioned dropdown */
  .nav-panel {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border-1);
    box-shadow: var(--elev-2);
    padding: var(--s-2) 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 200;
  }
  .nav-panel.is-open { display: flex; }

  .nav-left, .nav-right {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: unset;
    width: 100%;
    order: unset;
  }
  .nav-right {
    border-top: 1px solid var(--border-2);
    margin-top: var(--s-2);
    padding-top: var(--s-2);
  }

  .nav-item > a {
    padding: var(--s-3) var(--padding-x);
    font-size: var(--fs-body);
  }

  /* Split tap target: link + separate chevron toggle */
  .has-dropdown {
    display: flex;
    flex-wrap: wrap;
  }
  .has-dropdown > .dropdown-trigger {
    flex: 1;
  }
  .has-dropdown > .dropdown-toggle {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--s-3) var(--padding-x);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .has-dropdown > .dropdown-toggle::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--fg-2);
    border-bottom: 2px solid var(--fg-2);
    transform: rotate(45deg);
    transition: transform var(--duration-fast) var(--ease-default);
  }
  .has-dropdown.dropdown-open > .dropdown-toggle::after {
    transform: rotate(-135deg);
  }
  .has-dropdown > .dropdown-menu {
    flex-basis: 100%;
  }

  /* Dropdown (mobile: tap to toggle) */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    display: none;
    background: var(--bg-2);
  }
  .nav-item:hover .dropdown-menu { display: none; } /* disable hover on mobile */
  .has-dropdown.dropdown-open .dropdown-menu { display: block; }

  .dropdown-menu a {
    padding: var(--s-3) var(--padding-x);
    padding-left: calc(var(--padding-x) + var(--s-4));
    font-size: var(--fs-body);
    color: var(--fg-2);
    border-bottom: 1px solid var(--border-2);
  }
  .dropdown-menu a:last-child { border-bottom: none; }
  .dropdown-menu a:hover { background: var(--bg-3); }

  /* Nav CTA in mobile menu */
  .nav-cta { padding: var(--s-3) var(--padding-x); }
  .nav-cta a {
    display: block;
    text-align: center;
    width: 100%;
  }

  /* Hamburger → X animation */
  .mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* 6. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-lg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast) var(--ease-default), color var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default);
  line-height: 1.4;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn-primary {
  background: var(--tide-cyan-bright);
  color: var(--tide-white);
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-size: var(--fs-body);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-primary:hover { background: var(--tide-cyan-hover); color: var(--tide-white); }
.btn-primary:active { background: var(--tide-cyan-active); }

.btn-primary.btn-large { padding: 16px 28px; font-size: var(--fs-body-lg); }

.btn-outline {
  background: transparent;
  color: var(--tide-ocean-dark);
  border: 2px solid var(--tide-ocean-dark);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: var(--fs-body);
}
.btn-outline:hover { background: var(--tide-ocean-dark); color: var(--tide-white); }

.btn-dark {
  background: var(--tide-ocean-dark);
  color: var(--tide-white);
  border: none;
  border-radius: var(--radius-pill);
}
.btn-dark:hover { background: #002d45; color: var(--tide-white); }
.btn-dark:active { background: #001f30; }

.btn-small { font-size: var(--fs-body); padding: 8px 16px; }

.btn-group, .hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-5); }
.text-center .hero-ctas, .text-center .btn-group { justify-content: center; }

/* White outline variant for hero */
.btn-outline-white { border-color: var(--fg-inverse); color: var(--fg-inverse); }
.btn-outline-white:hover { background: var(--fg-inverse); color: var(--fg-1); }

/* 7. Hero Sections
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 130px;
  color: var(--fg-inverse);
  margin-bottom: -48px;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,30,50,0.25);
  z-index: 1;
}
/* Wave sits on the NEXT section so it picks up that section's background automatically.
   Default to white for sections with no explicit background. Sections with their own
   background (section-light, section-cyan, etc.) override this naturally. */
.hero + section,
.hero + div {
  position: relative;
  padding-top: calc(48px + 72px);
  background: var(--bg-1);
}
.hero + section::before,
.hero + div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: inherit;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C180,42 360,48 540,40 C720,32 900,18 1080,22 C1200,25 1340,36 1440,32 L1440,48 L0,48 Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0,28 C180,42 360,48 540,40 C720,32 900,18 1080,22 C1200,25 1340,36 1440,32 L1440,48 L0,48 Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 2;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--fg-inverse); font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero p  { color: var(--fg-inverse); font-size: var(--fs-body-lg); font-weight: 500; max-width: 650px; opacity: 0.95; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.hero a  { color: var(--fg-inverse); }
.hero .btn-primary { color: var(--tide-white); }
.hero .btn-outline { border-color: var(--fg-inverse); color: var(--fg-inverse); }
.hero .btn-outline:hover { background: var(--fg-inverse); color: var(--fg-1); }

@media (max-width: 1023px) {
  .hero { padding: 80px 0 100px; margin-bottom: -36px; }
  .hero + section,
  .hero + div { padding-top: calc(36px + 48px); }
  .hero + section::before,
  .hero + div::before { height: 36px; }
}
@media (max-width: 767px) {
  .hero { padding: 60px 0 80px; margin-bottom: -28px; }
  .hero + section,
  .hero + div { padding-top: calc(28px + 32px); }
  .hero + section::before,
  .hero + div::before { height: 28px; }
}

/* 8. Cards
   ------------------------------------------------------------ */
.card {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-default);
  text-decoration: none;
  color: var(--fg-2);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--elev-card-hover); color: var(--fg-2); }
a.card, a.card:hover { color: var(--fg-2); text-decoration: none; }
.card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: var(--s-6) var(--s-7); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { color: var(--fg-1); }
.card-body p  { color: var(--fg-3); }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-icon { width: 32px; height: 32px; margin-bottom: var(--s-3); flex-shrink: 0; }
.card-dark { background: rgba(255,255,255,0.08); box-shadow: none; }
.card-dark:hover { box-shadow: none; }
.card-dark h3 { color: var(--fg-inverse); }
.card-dark p { color: rgba(255,255,255,0.75); }
.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer { margin-top: auto; }

/* Card Image Tags (pill overlays) */
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  line-height: 1.4;
  min-height: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Card Image Carousel */
.card-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 300ms var(--ease-default);
}
.card-carousel img {
  flex-shrink: 0;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-default);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(0,0,0,0.55); }
.carousel-btn--prev { left: 8px; }
.carousel-btn--next { right: 8px; }
.card:hover .carousel-btn { opacity: 1; }
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.carousel-dots span.active { background: #fff; }
/* Touch devices: always show carousel controls */
@media (hover: none) {
  .carousel-btn { opacity: 1; }
}

/* --- Peek Carousel (boat detail pages) --- */
.peek-carousel {
  position: relative;
  width: 100%;
  padding: 48px 0 0;
}
.peek-carousel-clip {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  overflow: hidden;
}
.peek-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
.peek-carousel-slide {
  position: relative;
  flex-shrink: 0;
  width: 50%;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: scale(0.96);
  transform-origin: center center;
}
.peek-carousel-slide.is-active {
  cursor: default;
  transform: scale(1);
}
.peek-carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.peek-carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  transition: opacity 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}
.peek-carousel-slide.is-active::after { opacity: 0; }

/* Controls bar */
.peek-carousel-controls {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px var(--padding-x) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.peek-carousel-caption {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
}
.peek-carousel-arrows {
  display: flex;
  gap: 8px;
}
.peek-carousel-arrows button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--tide-coral);
  background: var(--bg-1);
  color: var(--tide-coral);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.peek-carousel-arrows button:hover {
  background: var(--tide-coral);
  border-color: var(--tide-coral);
  color: #fff;
}
.peek-carousel-arrows button.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}
.peek-carousel-arrows button svg { width: 18px; height: 18px; }

/* Dots */
.peek-carousel-dots {
  display: flex;
  gap: 8px;
}
.peek-carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.peek-carousel-dots span.active {
  background: var(--tide-coral);
  transform: scale(1.25);
}

/* Zoom button on each slide */
.peek-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: var(--tide-ocean-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 200ms ease, background 200ms ease;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}
.peek-zoom-btn svg { width: 18px; height: 18px; }
.peek-carousel-slide.is-active .peek-zoom-btn { opacity: 1; }
.peek-zoom-btn:hover { background: rgba(255, 255, 255, 1); }

/* Lightbox modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  touch-action: pinch-zoom pan-x pan-y;
  overflow: hidden;
}
.lightbox-img-wrap img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transform-origin: center center;
  transition: transform 200ms ease;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10000;
  transition: background 200ms ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10000;
  transition: background 200ms ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  z-index: 10000;
}

/* Tighter gap between carousel and first content section */
.section-boat-intro { padding-top: 18px !important; }

/* Inclusion pills */
.inclusion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s-4);
}
.inclusion-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--tide-ocean-dark);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}
.inclusion-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--tide-coral);
}

/* Mini carousel (single-image, square) */
.mini-carousel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.mini-carousel-header h3 { margin-bottom: 0; }
.mini-carousel-counter {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg-muted);
}
.mini-carousel { position: relative; }
.mini-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.mini-carousel-track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
.mini-carousel-track img {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.mini-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-default), background var(--duration-fast) var(--ease-default);
}
.mini-carousel-viewport:hover .mini-carousel-arrow { opacity: 1; }
.mini-carousel-arrow:hover { background: rgba(0, 0, 0, 0.6); }
.mini-carousel-arrow.is-disabled { opacity: 0 !important; pointer-events: none; }
.mini-carousel-arrow svg { width: 16px; height: 16px; }
.mini-carousel-arrow--prev { left: 10px; }
.mini-carousel-arrow--next { right: 10px; }
.mini-carousel-viewport { position: relative; }
.mini-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--duration-fast) var(--ease-default);
}
.mini-zoom-btn:hover { background: rgba(0, 0, 0, 0.6); }
.mini-zoom-btn svg { width: 18px; height: 18px; }

/* Info box */
.info-box {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
}
.info-box h4 { margin-top: var(--s-4); margin-bottom: var(--s-2); }
.info-box ul { padding-left: var(--s-5); margin-bottom: var(--s-3); }
.info-box li { margin-bottom: var(--s-1); }
.info-box .btn { margin-top: auto; align-self: flex-start; }
.grid-2-top { align-items: start; }
.grid-2-match > * { display: flex; flex-direction: column; }
.grid-2-match .info-box { flex: 1; }

/* Peek carousel mobile */
@media (max-width: 768px) {
  .peek-carousel { padding-top: 32px; }
  .peek-carousel-slide { width: 75%; transform: scale(0.97); }
  .peek-carousel-slide.is-active { transform: scale(1); }
  .peek-zoom-btn { opacity: 1; }
  .lightbox-nav--prev { left: 10px; }
  .lightbox-nav--next { right: 10px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* 9. Feature Tiles
   ------------------------------------------------------------ */
.feature-item, .badge-item {
  background: transparent;
  padding: var(--s-7);
  text-align: left;
}
.feature-item h3, .badge-item h3 {
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: var(--s-2);
}
.feature-item p {
  color: var(--fg-3);
}

/* 9b. Value Props (Why Choose Tide)
   ------------------------------------------------------------ */
.value-item {
  padding: var(--s-6);
  text-align: left;
}
.value-icon {
  width: 32px;
  height: 32px;
  color: var(--tide-coral);
  margin-bottom: var(--s-3);
}
.value-icon svg {
  width: 100%;
  height: 100%;
}
.value-item h3 {
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.value-item p {
  opacity: 0.85;
  margin-bottom: 0;
}

/* 10. Steps / Process
   ------------------------------------------------------------ */
.steps { margin: var(--s-7) 0; }
.step {
  display: flex;
  align-items: flex-start;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
  position: relative;
}
.step:last-child { margin-bottom: 0; }
.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tide-cyan-bright);
  color: var(--tide-white);
  font-size: 1.125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h3 { margin-bottom: var(--s-2); }
.step-content h2 { margin-bottom: var(--s-3); }

/* Connector line (vertical list layout) */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 44px;
  width: 1px;
  height: calc(100% - 12px);
  background: var(--border-1);
}

/* Horizontal steps (homepage 4-up) */
.steps-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7);
  margin-top: var(--s-6);
}
.step-card {
  text-align: left;
  padding: var(--s-6);
}
.step-card .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tide-coral);
  color: var(--tide-white);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 var(--s-5);
}
.step-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--s-3);
}
.step-card p {
  font-size: var(--fs-body);
  color: var(--fg-3);
}
@media (max-width: 1023px) { .steps-horizontal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .steps-horizontal { grid-template-columns: 1fr; } }

/* 11. FAQ Pills
   ------------------------------------------------------------ */
.faq-list { margin: var(--s-6) 0; }
.faq-item, details {
  margin-bottom: var(--s-3);
}

/* Default pill style — cyan bg, works on white sections */
details summary {
  background: var(--bg-3);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--radius-pill);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg-1);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration-fast) var(--ease-default);
}
details summary::-webkit-details-marker { display: none; }

/* Plus/minus icon with spin-morph animation */
details summary::after {
  content: '';
  flex-shrink: 0;
  margin-left: var(--s-4);
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Horizontal bar (always visible — forms the minus) */
details summary::after {
  background:
    linear-gradient(var(--fg-1), var(--fg-1)) center / 14px 2px no-repeat,
    linear-gradient(var(--fg-1), var(--fg-1)) center / 2px 14px no-repeat;
  border-radius: 1px;
}
/* Spin and collapse the vertical bar on open */
details[open] summary::after {
  transform: rotate(180deg);
  background:
    linear-gradient(var(--fg-1), var(--fg-1)) center / 14px 2px no-repeat,
    linear-gradient(var(--fg-1), var(--fg-1)) center / 2px 0px no-repeat;
}
details summary:hover { background: #DBEEF7; }

/* Answer text — no box, no background, just text */
details > *:not(summary) {
  padding: var(--s-4) var(--s-6) var(--s-2);
  background: transparent;
}

/* On gray/cyan backgrounds — white pills */
.section-light details summary,
.section-cyan details summary,
.seal-section details summary {
  background: var(--bg-1);
  box-shadow: var(--elev-card);
}
.section-light details summary:hover,
.section-cyan details summary:hover,
.seal-section details summary:hover {
  background: var(--bg-1);
  box-shadow: var(--elev-card-hover);
}

/* On navy backgrounds — transparent pills with white border */
.section-dark details summary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg-inverse);
}
.section-dark details summary::after {
  background:
    linear-gradient(#fff, #fff) center / 14px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 14px no-repeat;
}
.section-dark details[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 14px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 0px no-repeat;
}
.section-dark details summary:hover { background: rgba(255,255,255,0.14); }
.section-dark details > *:not(summary) { color: rgba(255,255,255,0.85); }

/* 12. Tables
   ------------------------------------------------------------ */
.table-responsive { overflow-x: auto; margin: var(--s-4) 0; }

/* --- Base table reset --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--elev-card);
  box-shadow: var(--elev-card);
  margin: var(--s-6) 0;
}
th, td {
  padding: var(--s-4) var(--s-6);
  text-align: left;
  border: none;
  font-size: var(--fs-body);
}
th {
  background: var(--tide-ocean-dark);
  color: var(--fg-inverse);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: var(--s-4) var(--s-6);
}
tbody tr { background: var(--bg-1); }
tbody tr:nth-child(even) { background: var(--bg-2); }
tbody tr:last-child td { border-bottom: none; }
tbody td { border-bottom: 1px solid var(--border-2); }
tbody tr:last-child td { border-bottom: none; }

/* Price cells — right-align last column when it's a price */
td:last-child { font-weight: 500; }

/* On section-light, swap even-row colour so it reads well */
.section-light table { box-shadow: var(--elev-1); }
.section-light tbody tr { background: var(--bg-2); }
.section-light tbody tr:nth-child(even) { background: var(--bg-1); }

/* --- Spec table (key-value pairs on boat pages) --- */
.spec-table {
  margin: var(--s-6) 0;
  box-shadow: none;
  border: 1px solid var(--border-2);
}
.spec-table th {
  width: 40%;
  background: var(--bg-3);
  color: var(--fg-1);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-body);
  border-right: 1px solid var(--border-2);
}
.spec-table td {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-2);
}
.spec-table tr:last-child td,
.spec-table tr:last-child th { border-bottom: none; }
.section-light .spec-table th { background: var(--bg-1); }
.section-light .spec-table td { background: var(--bg-2); }

/* --- Pricing table (prominent price styling) --- */
.pricing-table td:last-child,
.pricing-table th:last-child {
  text-align: right;
  white-space: nowrap;
}
.pricing-table td:last-child {
  color: var(--fg-1);
  font-weight: 700;
  font-size: 1.05em;
}

/* --- Tier matrix tables (pricing page) --- */
.tier-table th:not(:first-child),
.tier-table td:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}
.tier-table .check { color: #16a34a; font-weight: 600; }
.tier-table .dash  { color: var(--fg-muted); }
.tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-3);
  color: var(--fg-1);
  margin-left: var(--s-2);
  vertical-align: middle;
}

/* --- Add-on cards (pricing page) --- */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin: var(--s-6) 0;
}
.addon-card {
  background: var(--bg-dark);
  color: var(--fg-inverse);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.addon-card-icon {
  width: 36px;
  height: 36px;
  color: var(--tide-cyan-bright);
  margin-bottom: var(--s-2);
}
.addon-card-icon svg {
  width: 100%;
  height: 100%;
}
.addon-card h4 {
  color: var(--fg-inverse);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0;
}
.addon-card p {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-body);
  margin-bottom: 0;
}
.contact-cards { grid-template-columns: repeat(3, 1fr); }
.contact-cards .addon-card-icon { color: var(--tide-coral); }

/* Light variant for contact page */
.contact-cards-light .addon-card {
  background: var(--bg-1);
  color: var(--fg-2);
  box-shadow: var(--elev-card);
}
.contact-cards-light .addon-card h4 { color: var(--fg-1); }
.contact-cards-light .addon-card p { color: var(--fg-3); }
.contact-cards-light .addon-card a { color: var(--tide-ocean-dark); text-decoration: none; }
.contact-cards-light .addon-card a:hover { color: var(--tide-cyan-hover); }

/* White form box on grey background */
.contact-form-box {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-card);
  padding: var(--s-7);
}

@media (max-width: 1023px) {
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .addon-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}

/* --- Spacing between stacked tables and subheadings --- */
table + h3,
table + .table-subheading,
.table-responsive + h3,
.table-responsive + p + h3 {
  margin-top: var(--s-8);
}

/* --- Mobile table adjustments --- */
@media (max-width: 767px) {
  th, td {
    padding: var(--s-3) var(--s-4);
    font-size: var(--fs-body-sm);
  }
  th {
    font-size: var(--fs-label);
  }
  /* Let wide tables scroll horizontally instead of crushing columns */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-responsive table {
    min-width: 480px;
  }
}

/* 13. Forms
   ------------------------------------------------------------ */
.form-section { margin-top: var(--s-6); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-4);
}
@media (max-width: 767px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: var(--s-4); }
.form-group label {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--fg-1);
  margin-bottom: var(--s-2);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  height: 48px;
  padding: 0 var(--s-4);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--fg-2);
  background: var(--bg-1);
  transition: border-color var(--duration-fast) var(--ease-default), box-shadow var(--duration-fast) var(--ease-default);
}
textarea { height: 120px; padding: var(--s-3) var(--s-4); resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--fg-muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--focus-ring);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23828282' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.required { color: #E53E3E; }
.enquiry-form { margin-top: var(--s-4); }
form .grid-2 { gap: var(--s-4); margin-bottom: var(--s-4); }
form .grid-2 > .form-group { margin-bottom: 0; }

/* Phone country code + number */
.phone-input-group {
  display: flex;
  gap: var(--s-2);
}
.phone-input-group select {
  width: 110px;
  flex-shrink: 0;
  padding-right: 28px;
}
.phone-input-group input {
  flex: 1;
}

/* Form validation — only show errors after JS adds .has-error on submit */
.field-error {
  color: var(--tide-error);
  font-size: var(--fs-body-sm);
  margin: var(--s-1) 0 0;
  display: none;
  line-height: 1.3;
}
.form-group.has-error .field-error { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--tide-error);
  box-shadow: 0 0 0 1px var(--tide-error);
}

/* Form submission states — set by js/form-handler.js */
.form.is-submitting,
form[id^="tide-form-"].is-submitting {
  opacity: 0.65;
  pointer-events: none;
}
.form-success {
  background: var(--bg-3);
  border-left: 4px solid var(--tide-cyan-bright);
  border-radius: var(--radius-md);
  padding: var(--s-6) var(--s-7);
  color: var(--fg-1);
  outline: none;
}
.form-success-title {
  margin: 0 0 var(--s-3);
  color: var(--fg-1);
}
.form-success-body {
  margin: 0;
  color: var(--fg-3);
  line-height: 1.5;
}
.form-error-banner {
  background: rgba(249, 72, 119, 0.08);
  border-left: 4px solid var(--tide-error);
  border-radius: var(--radius-sm);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
  color: var(--tide-error);
  font-size: var(--fs-body-sm);
  line-height: 1.4;
}

.file-upload {
  border: 2px dashed var(--border-1);
  border-radius: var(--radius-sm);
  padding: var(--s-7);
  text-align: center;
  color: var(--fg-muted);
  cursor: pointer;
}
.file-upload:hover { border-color: var(--tide-cyan-bright); }

/* 14. Testimonials
   ------------------------------------------------------------ */
.testimonial-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: var(--fg-inverse);
}
.testimonial-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-navy-heavy);
}
.testimonial-section .container { position: relative; z-index: 2; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  margin-top: var(--s-6);
}
@media (max-width: 1023px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .testimonials { grid-template-columns: 1fr; } }

.testimonial {
  background: rgba(255,255,255,0.08);
  padding: var(--s-7);
  border-left: 3px solid var(--tide-cyan-bright);
}
.testimonial p {
  font-size: var(--fs-body-lg);
  font-weight: 400;
  font-style: italic;
  color: var(--fg-inverse);
  margin-bottom: var(--s-4);
}
.testimonial blockquote {
  border: none;
  padding: 0;
  margin: 0;
  color: var(--fg-inverse);
}
.testimonial blockquote p {
  color: var(--fg-inverse);
}
.testimonial .author,
.testimonial .testimonial-author,
.testimonial cite {
  font-size: var(--fs-body-sm);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.testimonial-section h2 {
  color: var(--fg-inverse);
  text-align: center;
  margin-bottom: var(--s-6);
}

/* 14b. Google Reviews Carousel
   ------------------------------------------------------------ */
.review-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: var(--fg-inverse);
}
.review-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-navy-heavy);
}
.review-section .container { position: relative; z-index: 2; }
.review-section h2 {
  color: var(--fg-inverse);
  margin-bottom: var(--s-6);
}

.review-carousel-wrap {
  position: relative;
}

.review-carousel {
  display: flex;
  gap: var(--s-5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: var(--s-2);
}
.review-carousel::-webkit-scrollbar { display: none; }

.review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
  color: var(--fg-inverse);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--duration-fast) var(--ease-default),
              border-color var(--duration-fast) var(--ease-default);
  appearance: none;
}
.review-nav:hover {
  background: rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.7);
}
.review-nav--prev { left: -22px; }
.review-nav--next { right: -22px; }

.review-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.review-stars {
  color: #f4b400;
  font-size: 1.125rem;
  letter-spacing: 2px;
  line-height: 1;
}
.review-stars--lg {
  font-size: 1.5rem;
}

.review-card blockquote {
  border: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--fg-inverse);
  flex: 1;
}

.review-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-body-sm);
  color: rgba(255,255,255,0.7);
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.review-summary {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.review-rating {
  font-size: var(--fs-body);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.review-footer .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--fg-inverse);
}
.review-footer .btn-outline:hover {
  border-color: var(--fg-inverse);
  background: rgba(255,255,255,0.1);
}

@media (max-width: 767px) {
  .review-card { flex: 0 0 280px; padding: var(--s-5); }
  .review-footer { flex-direction: column; align-items: flex-start; }
  .review-nav--prev { left: -8px; }
  .review-nav--next { right: -8px; }
  .review-nav { width: 36px; height: 36px; font-size: 1rem; }
}

/* 15. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--bg-dark);
  color: var(--fg-inverse);
  padding: var(--s-9) 0;
  border-top: 1px solid rgba(54,210,245,0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7);
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  color: var(--fg-inverse);
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.footer-col a,
.footer-col p {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-body);
  line-height: 1.4;
  padding: var(--s-1) 0;
  margin-bottom: 0;
  text-decoration: none;
}
.footer-col a:hover { color: var(--tide-cyan-bright); }
.footer-col svg {
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-logo {
  display: block;
  height: 48px;
  width: auto;
  margin: 0 auto var(--s-4);
}
.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-body);
  margin-bottom: var(--s-1);
}

/* 16. Utility Classes
   ------------------------------------------------------------ */
.text-center { text-align: center; }
.text-muted  { color: var(--fg-muted); }
.lead { font-size: var(--fs-body-lg); color: var(--fg-3); }
.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.display { font-size: 3.5rem; font-weight: 300; line-height: 1.1; }

/* Spacing helpers */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mb-6 { margin-bottom: var(--s-6); }

/* Placeholder images */
.placeholder-img {
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--fg-muted);
  font-size: var(--fs-body-sm);
}
.placeholder-img span { padding: var(--s-4); text-align: center; }

/* Location links */
.location-links { list-style: none; padding: 0; }
.location-links li { margin-bottom: var(--s-3); }
.location-links a { font-weight: 500; }

/* Seal section */
.seal-section {
  background: var(--bg-3);
  padding: 72px 0;
}
@media (max-width: 1023px) { .seal-section { padding: 48px 0; } }
@media (max-width: 767px)  { .seal-section { padding: 32px 0; } }

/* Callout pair (2/3 + 1/3, equal height) */
.callout-pair {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-8);
}
.callout-pair .seal-callout { flex: 1; }
@media (max-width: 767px) {
  .callout-pair { grid-template-columns: 1fr; }
}

/* Seal / intro callout box */
.seal-callout {
  background: var(--bg-3);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.seal-callout-icon {
  width: 40px;
  height: 40px;
}
.seal-callout h3 {
  margin-bottom: 0;
}
.seal-callout p {
  color: var(--fg-3);
}

/* Zigzag alternating layout
   ------------------------------------------------------------ */
.zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}
.zigzag-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: 10px;
}
.zigzag-text {
  padding: var(--s-8) var(--s-6);
}
.zigzag-text .step-heading {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.zigzag-text .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tide-cyan-bright);
  color: var(--tide-white);
  font-size: 1.125rem;
  font-weight: 500;
}
.zigzag-text .step-heading h2 { margin-bottom: 0; }
.zigzag-text p { color: var(--fg-3); }
.zigzag-text ul { color: var(--fg-3); }

/* Corner accent brackets around image */
.zigzag-img-wrap {
  position: relative;
  padding: 12px;
}
.zigzag-img-wrap::before,
.zigzag-img-wrap::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--tide-cyan-bright);
  border-style: solid;
}
.zigzag-img-wrap::before {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
  border-radius: 10px 0 0 0;
}
.zigzag-img-wrap::after {
  bottom: 0;
  right: 0;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 10px 0;
}

/* Subtle shadow on image wrapper */
.zigzag-img-wrap img {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Reverse: image right, text left */
.zigzag-reverse .zigzag-img-wrap { order: 2; }
.zigzag-reverse .zigzag-text { order: 1; }

@media (max-width: 767px) {
  .zigzag {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .zigzag-text {
    padding: var(--s-4) 0;
  }
  .zigzag-reverse .zigzag-img-wrap { order: -1; }
  .zigzag-reverse .zigzag-text { order: 0; }
}

/* 17. Tabbed Panels
   ------------------------------------------------------------ */
.tab-nav {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-7);
  border-bottom: 2px solid var(--border-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav button {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default), border-color var(--duration-fast) var(--ease-default);
  white-space: nowrap;
}
.tab-nav button:hover { color: var(--fg-1); }
.tab-nav button[aria-selected="true"] {
  color: var(--fg-1);
  font-weight: 600;
  border-bottom-color: var(--tide-cyan-bright);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Section-light variant */
.section-light .tab-nav { border-bottom-color: var(--border-2); }

@media (max-width: 767px) {
  .tab-nav button { padding: var(--s-2) var(--s-4); font-size: var(--fs-body-sm); }
}

/* 18. Responsive Breakpoints
   ------------------------------------------------------------ */
/* Covered inline above per component */

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

/* Ensure minimum touch targets */
button, .btn, a, summary, input, select, textarea {
  min-height: 44px;
}
summary { min-height: 44px; }

/* Web Component wrappers */
tide-header, tide-footer, tide-boat-card, tide-service-card {
    display: contents;
}
