:root {
  --navy: #0c1f3d;
  --navy-deep: #061428;
  --navy-mid: #14325c;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --sand: #f4f0e8;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #5c6778;
  --border: rgba(12, 31, 61, 0.12);
  --shadow: 0 24px 60px rgba(6, 20, 40, 0.18);
  --radius: 4px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container { width: min(1200px, 92vw); margin: 0 auto; }
.narrow { max-width: 640px; }
.mt-lg { margin-top: 2.5rem; }
.text-center { text-align: center; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
.lead { font-size: 1.125rem; color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-mid);
  margin: 0 0 0.75rem;
}
.eyebrow-gold { color: var(--gold); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.45s ease, backdrop-filter 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.site-header.header-solid {
  background: rgba(6, 20, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
  box-shadow: 0 4px 24px rgba(6, 20, 40, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 16px rgba(255, 255, 255, 0.75),
    0 0 28px rgba(255, 255, 255, 0.45),
    0 1px 4px rgba(0, 0, 0, 0.35);
  transition: color 0.2s, text-shadow 0.45s;
}
.site-header.header-solid .main-nav a {
  text-shadow: none;
}
.main-nav a:hover { color: var(--gold-light); }
.site-header:not(.header-solid) .main-nav a:hover {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 22px rgba(255, 255, 255, 0.85),
    0 0 36px rgba(255, 255, 255, 0.55);
}
.site-header:not(.header-solid) .btn-nav {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.8),
    0 0 18px rgba(255, 255, 255, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a88b3f 100%);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.4);
}
.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover { background: var(--navy-mid); color: var(--white); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-nav { padding: 0.6rem 1.25rem; }
.btn-block { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
}

main { padding-top: var(--header-h); }
body.home-page main { padding-top: 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}
body.home-page .hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  min-height: calc(100vh + var(--header-h));
  min-height: calc(100dvh + var(--header-h));
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6,20,40,0.88) 0%, rgba(6,20,40,0.45) 55%, rgba(6,20,40,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 6rem;
  color: var(--white);
  max-width: 720px;
}
.hero-content h1 { color: var(--white); margin: 0 0 1rem; }
.hero-content h1 em { font-style: italic; color: var(--gold-light); }
.hero-lead { font-size: 1.2rem; opacity: 0.92; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-content .eyebrow { color: var(--gold); }

/* Stats */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0;
  margin-top: -1px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
}
.stats-grid span { font-size: 0.85rem; opacity: 0.8; letter-spacing: 0.05em; }

/* Sections */
.section { padding: 5rem 0; }
.section-dark {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.9);
}
.section-dark h2 { color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.check-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Boat grid */
.boat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.boat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(6,20,40,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.boat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.boat-card-link { color: inherit; display: block; }
.boat-card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.boat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.boat-card:hover .boat-card-media img { transform: scale(1.05); }
.boat-card-length {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--navy);
  color: var(--gold);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.boat-card-body { padding: 1.5rem; }
.boat-card-body h3 { margin: 0 0 0.5rem; }
.boat-card-body p { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; }
.boat-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.boat-card-price {
  color: var(--navy);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* Page hero */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0 4rem;
}
.page-hero h1 { color: var(--white); }
.page-hero p { opacity: 0.85; max-width: 560px; }
.page-hero-sm { padding: 4rem 0 3rem; }

.page-hero-has-img {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.page-hero-has-img .page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}
.page-hero-has-img .page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 40, 0.92) 0%, rgba(6, 20, 40, 0.35) 55%, rgba(6, 20, 40, 0.15) 100%);
}
.page-hero-has-img .page-hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 0 3rem;
  box-sizing: border-box;
}
body.fleet-page main { padding-top: 0; }
/* Full viewport hero (same math as home): extend behind header, fill screen on desktop + mobile */
body.fleet-page .page-hero-fleet.page-hero-has-img {
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  height: calc(100vh + var(--header-h));
  height: calc(100svh + var(--header-h));
  height: calc(100dvh + var(--header-h));
  min-height: calc(100vh + var(--header-h));
  min-height: calc(100svh + var(--header-h));
  min-height: calc(100dvh + var(--header-h));
  max-height: none;
  justify-content: center;
  align-items: stretch;
}
@media (max-width: 900px) {
  body.fleet-page .page-hero-fleet.page-hero-has-img {
    height: calc(100svh + var(--header-h));
    min-height: calc(100svh + var(--header-h));
  }
}
body.fleet-page .page-hero-fleet .hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 0 6rem;
  color: var(--white);
  max-width: 720px;
  box-sizing: border-box;
}
body.fleet-page .page-hero-fleet .hero-content h1 { color: var(--white); margin: 0 0 1rem; }
body.fleet-page .page-hero-fleet .hero-content .eyebrow { color: var(--gold); }

/* Boat detail */
.boat-hero {
  position: relative;
  min-height: 75vh;
  min-height: 75dvh;
  min-height: 75svh;
  display: flex;
  align-items: flex-end;
}
.boat-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.boat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,20,40,0.9) 0%, transparent 60%);
}
.boat-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3rem;
  color: var(--white);
}
.boat-hero-content h1 { color: var(--white); }
.boat-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.boat-hero-specs span::before {
  content: '◆ ';
  color: var(--gold);
  font-size: 0.6rem;
}

.boat-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.pricing-panel {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.pricing-panel h3 { margin-top: 0; }
.pricing-note { font-size: 0.85rem; color: var(--muted); }
.pricing-controls label {
  display: block;
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.pricing-controls input[type="range"] {
  width: 100%;
  margin: 0.5rem 0;
  accent-color: var(--gold);
}
.pricing-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}
.pricing-total strong {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy);
}
.surcharge-details { margin-top: 1rem; font-size: 0.85rem; }
.surcharge-details summary { cursor: pointer; color: var(--navy-mid); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }
.spec-table.compact td { font-size: 0.85rem; }

/* Gallery */
.section-gallery { background: var(--white); padding-top: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 0.5rem;
}
.gallery-item {
  overflow: hidden;
  display: block;
}
.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,20,40,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 90vw; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
}

/* Inquiry form */
.inquiry-form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo { opacity: 0.95; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.95rem; }
.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .boat-detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .pricing-panel { position: static; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item.featured { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  .main-nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
