:root {
  --bg: #f5f8fb;
  --panel: #ffffff;
  --navy: #071b2e;
  --navy-2: #0a2a46;
  --blue: #0d5f90;
  --aqua: #4dc0d4;
  --text: #102033;
  --muted: #5f7282;
  --line: #dbe4ea;
  --shadow: 0 18px 50px rgba(7, 27, 46, 0.14);
  --container: min(1120px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: #fff; color: var(--navy); padding: 12px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 27, 46, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; }
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,0.06);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong {
  font: 800 18px/1 "Manrope", sans-serif;
  letter-spacing: .08em;
}
.brand-copy span {
  font-size: 11px; letter-spacing: .22em; opacity: .78; margin-top: 5px;
}
.primary-nav { display: flex; align-items: center; gap: 24px; color: rgba(255,255,255,0.9); }
.primary-nav a { font-size: 15px; }
.primary-nav a:hover { color: white; }
.nav-cta {
  padding: 11px 18px; border-radius: 999px;
  background: white; color: var(--navy) !important; font-weight: 700;
}
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.15); background: transparent;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: white; margin: 4px auto;
}
.hero {
  position: relative; min-height: 86svh; display: flex; align-items: center;
  background: url('/assets/hero-bg.png') center center / cover no-repeat;
  color: white;
}
.hero-overlay, .trade-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,27,46,.85), rgba(7,27,46,.58) 45%, rgba(7,27,46,.25) 100%);
}
.hero-inner, .trade-layout { position: relative; z-index: 1; }
.hero-inner { max-width: 660px; padding: 110px 0 80px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  color: rgba(255,255,255,.82); text-transform: uppercase; letter-spacing: .18em;
  font-weight: 700; font-size: 12px;
}
.eyebrow.dark { color: var(--blue); }
h1, h2, h3 { margin: 0; font-family: "Manrope", sans-serif; line-height: 1.05; }
h1 { font-size: clamp(44px, 7vw, 72px); }
h1 span { color: #c8f6ff; }
h2 { font-size: clamp(32px, 4vw, 48px); color: var(--navy); }
h3 { font-size: 24px; color: var(--navy); }
p { margin: 0; }
.hero-lede {
  margin-top: 20px; max-width: 620px; font-size: 19px; color: rgba(255,255,255,.86);
}
.hero-actions, .empty-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.hero-badges span {
  padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14); font-size: 14px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  border: 0; cursor: pointer; font-weight: 700;
}
.button-primary { background: white; color: var(--navy); }
.button-secondary {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,.25);
}
.button-dark { background: var(--navy); color: white; }
.button-light { background: white; color: var(--navy); }
.button.full { width: 100%; }
.section { padding: 92px 0; }
.simple-section { background: var(--bg); }
.section-heading { max-width: 740px; margin-bottom: 34px; }
.section-heading p:last-child { margin-top: 14px; color: var(--muted); font-size: 18px; }
.inventory-toolbar {
  display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 14px; margin-bottom: 24px;
}
.search-field, .inventory-toolbar select, .contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--panel);
  border-radius: 16px; padding: 14px 16px; color: var(--text);
}
.search-field { display: flex; align-items: center; gap: 10px; }
.search-field svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search-field input { width: 100%; border: 0; padding: 0; outline: none; background: transparent; }
.inventory-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.boat-card {
  background: var(--panel); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; border: 1px solid rgba(8,28,46,.05);
}
.boat-card-image { position: relative; aspect-ratio: 4 / 3; background: #dce7ee; }
.boat-card-image img { width: 100%; height: 100%; object-fit: cover; }
.boat-status {
  position: absolute; top: 14px; right: 14px; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--navy); font-size: 12px; font-weight: 700;
}
.boat-status.pending { background: #fff1d8; }
.boat-status.sold { background: #e9eef2; }
.boat-card-body { padding: 20px; }
.boat-card-body h3 { font-size: 24px; margin-bottom: 10px; }
.boat-meta {
  display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px;
  margin-bottom: 14px;
}
.boat-meta span { position: relative; padding-right: 12px; }
.boat-meta span:not(:last-child)::after {
  content: '•'; position: absolute; right: 0; top: 0;
}
.boat-price {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 14px;
}
.boat-price strong { font-size: 22px; color: var(--navy); }
.inventory-empty {
  background: white; border-radius: 24px; padding: 40px; box-shadow: var(--shadow);
  text-align: center;
}
.empty-icon {
  width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px;
  border-radius: 50%; background: #eaf7fb;
}
.empty-icon svg { width: 42px; height: 42px; fill: none; stroke: var(--blue); stroke-width: 2; }
.inventory-empty h3 { margin-bottom: 10px; }
.inventory-empty p:last-of-type { color: var(--muted); max-width: 620px; margin: 10px auto 0; }
.text-link { color: var(--navy); font-weight: 700; }
.trade-section {
  position: relative; color: white; background: url('/assets/tradein-bg.png') center center / cover no-repeat;
}
.trade-layout {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 30px;
}
.trade-copy h2 { color: white; }
.trade-copy p:last-child { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.86); }
.trade-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.trade-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 20px;
  padding: 24px; backdrop-filter: blur(4px);
}
.trade-card span {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.18); font-weight: 700; margin-bottom: 14px;
}
.trade-card h3 { color: white; font-size: 20px; margin-bottom: 10px; }
.trade-card p { color: rgba(255,255,255,.83); font-size: 15px; }
.about-layout {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center;
}
.about-lede { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 600px; }
.about-points {
  display: grid; gap: 16px;
}
.about-points div {
  background: white; border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow);
}
.about-points strong {
  display: block; font: 800 18px/1 "Manrope", sans-serif; color: var(--navy); margin-bottom: 7px;
}
.about-points span, .contact-copy p { color: var(--muted); }
.contact-section { background: #f0f5f8; }
.contact-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 32px; align-items: start; }
.contact-copy h2 { margin-bottom: 16px; }
.contact-details { display: grid; gap: 16px; margin-top: 28px; }
.contact-details div {
  background: white; border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow);
}
.contact-details span {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue);
}
.contact-details strong, .contact-details a { display: block; margin-top: 6px; font-size: 20px; font-weight: 700; color: var(--navy); }
.contact-form {
  background: white; border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 10px; margin-bottom: 16px; }
.contact-form label span { font-size: 14px; font-weight: 600; color: var(--navy); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-note { color: #71808d; font-size: 12px; margin-top: 12px; }
.hidden-field { position: absolute; left: -9999px; }
.site-footer { background: #061623; color: white; padding: 42px 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-links, .social-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: white; }
.social-links a {
  min-width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); font-size: 12px;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px; padding-top: 18px;
  color: rgba(255,255,255,.58); font-size: 12px;
}
.boat-modal {
  width: min(980px, calc(100vw - 28px)); max-height: 90vh; padding: 0; border: 0;
  border-radius: 18px; overflow: auto; color: var(--text); box-shadow: 0 40px 100px rgba(0,0,0,.28);
}
.boat-modal::backdrop { background: rgba(7,27,46,.78); }
.modal-close {
  position: sticky; float: right; top: 16px; margin: 16px 16px -52px 0; z-index: 4;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(7,27,46,.9); color: white; font-size: 26px; line-height: 1;
}
.boat-modal-gallery { aspect-ratio: 16 / 8.5; background: #dce7ee; overflow: hidden; }
.boat-modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
.boat-modal-body { padding: 28px; }
.modal-heading {
  display: flex; justify-content: space-between; gap: 20px; align-items: start;
}
.modal-price { font: 800 26px "Manrope", sans-serif; color: var(--navy); white-space: nowrap; }
.modal-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); margin: 24px 0; border-radius: 16px; overflow: hidden;
}
.modal-specs div { background: white; padding: 16px; }
.modal-specs span { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .1em; }
.modal-specs strong { display: block; margin-top: 6px; font-size: 15px; }
.modal-description { color: var(--muted); white-space: pre-line; }
.feature-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px;
  padding: 0; margin: 22px 0 0; list-style: none;
}
.feature-list li {
  position: relative; padding-left: 18px; font-size: 14px;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--aqua);
}
.modal-cta {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.modal-cta p { color: var(--muted); font-size: 14px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 980px) {
  :root { --container: calc(100% - 32px); }
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 84px; left: 16px; right: 16px; display: none; flex-direction: column;
    align-items: stretch; gap: 0; background: #082139; border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px; padding: 10px; box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 10px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .hero { min-height: 76svh; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .trade-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 680px) {
  :root { --container: calc(100% - 24px); }
  .section { padding: 72px 0; }
  .hero-inner { padding: 92px 0 64px; }
  .hero-lede { font-size: 17px; }
  .inventory-toolbar, .field-row, .inventory-grid, .modal-specs, .feature-list { grid-template-columns: 1fr; }
  .hero-actions, .empty-actions, .footer-bottom, .modal-heading, .modal-cta { flex-direction: column; align-items: flex-start; }
  .button { width: 100%; }
  .brand-copy strong { font-size: 16px; }
  .modal-price { white-space: normal; }
}

/* Inventory gallery */
.modal-thumbnails {
  display: flex;
  gap: 10px;
  padding: 14px 18px 0;
  overflow-x: auto;
  background: #fff;
  scrollbar-width: thin;
}
.modal-thumb {
  flex: 0 0 92px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #e8eef2;
  cursor: pointer;
}
.modal-thumb.active { border-color: var(--blue); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) {
  .modal-thumb { flex-basis: 78px; height: 58px; }
}
