:root {
  --navy: #0a2744;
  --navy2: #123a5f;
  --gold: #c4a35a;
  --sand: #f4f0e8;
  --ink: #1b2430;
  --muted: #5c6b7a;
  --line: #e2e6ea;
  --bg: #f6f7f9;
  --white: #ffffff;
  --radius: 6px;
  --max: 1120px;
  --shadow: 0 8px 28px rgba(10, 39, 68, 0.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy2); }
a:hover { color: var(--gold); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.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;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.topbar .avail {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

/* Hero slider */
.hero {
  position: relative;
  background: #061828;
  color: #fff;
  overflow: hidden;
  width: 100%;
}
.hero-slides {
  position: relative;
  width: 100%;
  /* Keep full width: do NOT pair aspect-ratio with max-height (that shrinks width). */
  height: min(72vh, 56.25vw); /* 16:9 of viewport width, capped */
  min-height: 280px;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none; /* override global img { max-width:100% } */
  object-fit: cover;
  object-position: 50% 60%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-slides img.is-active { opacity: 1; z-index: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg,
    rgba(10,39,68,0.12) 0%,
    rgba(10,39,68,0.08) 35%,
    rgba(10,39,68,0.55) 62%,
    rgba(10,39,68,0.88) 100%);
  pointer-events: none;
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 2.25rem 0 1.85rem;
}
.hero-copy h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-copy .meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.hero-copy .price {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--gold);
}
.hero-copy .loc { opacity: 0.95; font-weight: 500; }
.cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.cta:hover { background: #d4b56a; color: var(--navy); }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  background: rgba(255,255,255,0.85);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1;
}
.hero-nav.prev { left: 0.75rem; }
.hero-nav.next { right: 0.75rem; }
.hero-dots {
  position: absolute; bottom: 0.65rem; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: flex; gap: 0.4rem;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.45);
  cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: var(--gold); }

/* Spec strip */
.facts {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.fact {
  padding: 1rem 0.6rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.facts-grid .fact:last-child { border-right: none; }
.fact .label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.fact .value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
@media (max-width: 900px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .fact:nth-child(4n) { border-right: none; }
  .fact { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2n) { border-right: none; }
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; position: static !important; }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(10,39,68,0.04);
}
.card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.45rem;
  display: inline-block;
}
.lead p { margin: 0 0 0.85rem; }
.lead p:last-child { margin-bottom: 0; }

/* Features */
.feat-group { margin-bottom: 1.25rem; }
.feat-group:last-child { margin-bottom: 0; }
.feat-group h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--navy2);
}
.feat-sub {
  margin: -0.25rem 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.feat-group .provider {
  display: inline;
  color: var(--muted);
  font-size: 0.86em;
  font-weight: 400;
  white-space: nowrap;
}
.feat-group .provider::before {
  content: "· ";
  color: var(--line);
}
.feat-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: feat;
}
.feat-group li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.85rem;
  border-bottom: 1px solid #f0f2f4;
  font-size: 0.95rem;
  counter-increment: feat;
}
.feat-group li::before {
  content: counter(feat);
  position: absolute;
  left: 0; top: 0.5rem;
  width: 1.35rem; height: 1.35rem;
  background: var(--sand);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.feat-group li:last-child { border-bottom: none; }
.note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Specs table */
table.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.specs th, table.specs td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.specs th {
  width: 42%;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Propulsion cards */
.prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 560px) { .prop-grid { grid-template-columns: 1fr; } }
.prop-card {
  background: var(--sand);
  border: 1px solid #e2d9c8;
  border-radius: var(--radius);
  padding: 1rem;
}
.prop-card h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--navy);
}
.prop-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; font-size: 0.88rem; }
.prop-card dt { color: var(--muted); font-weight: 600; }
.prop-card dd { margin: 0; font-weight: 600; color: var(--navy); }
.genset {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.genset strong { color: var(--gold); }

/* Identity */
.identity {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1rem;
}
@media (max-width: 520px) { .identity { grid-template-columns: 1fr; } }
.id-item {
  background: var(--bg);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.id-item .k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.id-item .v {
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.15rem;
  font-size: 0.95rem;
}

/* Gallery */
.gallery-intro { color: var(--muted); font-size: 0.9rem; margin: -0.35rem 0 1rem; }
.g-section { margin-bottom: 1.35rem; }
.g-section h3 {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
@media (max-width: 700px) { .g-grid { grid-template-columns: repeat(2, 1fr); } }
.g-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #d8dde3;
  aspect-ratio: 4 / 3;
  text-decoration: none;
}
.g-grid a img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.g-grid a:hover img { transform: scale(1.04); }
.g-grid a.stock::after {
  content: "Factory";
  position: absolute; top: 0.4rem; left: 0.4rem;
  background: rgba(10,39,68,0.88);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
}
.stock-caption {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin: 0.15rem 0 0;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 18, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.9);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--navy);
}
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.85rem; max-width: 90%; text-align: center;
  background: rgba(0,0,0,0.45); padding: 0.4rem 0.75rem; border-radius: 4px;
}

/* Sidebar CTA */
.sidebar { position: sticky; top: 1rem; }
.cta-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}
.cta-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #fff;
  border: none;
  padding: 0;
  display: block;
}
.cta-card .role { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.85rem; }
.cta-card .phone {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
}
.cta-card .phone:hover { color: var(--gold); }
.cta-card p { margin: 0 0 0.75rem; font-size: 0.88rem; opacity: 0.92; line-height: 1.45; }
.cta-card .cta { width: 100%; text-align: center; margin-top: 0.35rem; }
.badge-fsbo {
  display: inline-block;
  background: rgba(196,163,90,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 2px;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 1.25rem 0;
  text-align: center;
}
.footer strong { color: #fff; }
