:root {
  --navy: #0f2a47;
  --navy-2: #173b60;
  --ink: #1b2733;
  --muted: #5b6b7a;
  --paper: #faf8f4;
  --white: #ffffff;
  --deck: #e8ecef;
  --line: #d9dee3;
  --brass: #a8782a;
  --brass-dark: #85601f;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 71, .12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--brass-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--brass-dark); margin: 0 0 .6rem;
}
section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: .6rem 0 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 244, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--brass-dark); }
.nav { display: flex; gap: 1.2rem; margin-left: auto; font-size: .93rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--brass); color: var(--ink); }
.lang { display: flex; gap: 2px; font-size: .82rem; font-weight: 700; }
.lang a, .lang strong {
  padding: .3rem .55rem; border-radius: 6px; text-decoration: none; color: var(--muted);
}
.lang strong { background: var(--navy); color: #fff; }
.lang a:hover { background: var(--deck); color: var(--navy); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 520px) { .brand { font-size: 1rem; } .brand span { display: none; } }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -.01em; }
.nb { white-space: nowrap; }
.hero .boat-name { font-family: var(--serif); font-size: 1.35rem; color: var(--brass-dark); margin: .35rem 0 1rem; font-style: italic; }
.lead { font-size: 1.12rem; color: var(--ink); max-width: 34em; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.hero-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { order: -1; } }

.facts {
  list-style: none; padding: 0; margin: 1.6rem 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.facts li { background: var(--white); padding: .8rem 1rem; }
.facts b { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.facts span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.price-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 1.4rem; }
.price { font-family: var(--serif); }
.price small { display: block; font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price strong { font-size: 1.9rem; color: var(--navy); }
.btn {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 8px; font-weight: 700; border: 0; cursor: pointer; font-size: 1rem;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brass-dark); color: #fff; transform: translateY(-1px); }
.loc { margin-top: 1rem; color: var(--muted); font-size: .95rem; }

/* Highlights */
.highlights { background: var(--navy); color: #e8eef4; }
.highlights h2 { color: #fff; }
.highlights .eyebrow { color: #e0b765; }
.highlights .section-head p { color: #b9c6d3; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem; }
.card h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.card p { margin: 0; color: #c3cfda; font-size: .96rem; }
.card .k { font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e0b765; margin-bottom: .5rem; display: block; }

/* Gallery */
.gal-group { margin-bottom: 2.4rem; }
.gal-group h3 { margin-bottom: .9rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.thumb { padding: 0; border: 0; background: var(--deck); cursor: zoom-in; border-radius: 8px; overflow: hidden; width: 100%; display: block; }
.thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 65%; transition: transform .25s; }
.thumb:hover img { transform: scale(1.04); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
dialog.lightbox::backdrop { background: rgba(8, 18, 30, .92); }
.lb-inner { height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 16px; }
.lb-inner img { max-height: 78vh; min-height: min(60vh, 520px); object-fit: contain; max-width: min(100%, 1100px); width: auto; height: auto; border-radius: 6px; background: #000; }
.lb-cap { color: #dbe4ec; text-align: center; padding-top: 10px; font-size: .95rem; }
.lb-btn {
  position: fixed; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 46px; height: 46px;
  border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Specs */
.specs { background: var(--white); }
.spec-grid { columns: 3 310px; column-gap: 22px; }
.spec { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: var(--paper); break-inside: avoid; margin: 0 0 22px; }
.spec h3 { margin-bottom: .6rem; }
.spec dl { margin: 0; display: grid; grid-template-columns: minmax(9.5em, 38%) 1fr; gap: .45rem 1rem; font-size: .95rem; }
.spec dt { color: var(--muted); overflow-wrap: anywhere; }
.spec dd { margin: 0; }
.spec .new { display: inline-block; font-size: .72rem; font-weight: 700; background: #efe3cb; color: var(--brass-dark); padding: 0 .4rem; border-radius: 4px; margin-left: .25rem; white-space: nowrap; }

.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--deck); border-radius: 999px; padding: .25rem .8rem; font-size: .9rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.3rem; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 1.8rem 1.4rem; }
.timeline > li::before {
  content: ""; position: absolute; left: -1.3rem; top: .45rem; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--paper);
}
.timeline h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.timeline ul { margin: 0; padding-left: 1.1rem; }
.timeline li li { margin: .15rem 0; }

/* Contact */
.contact { background: var(--deck); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 56px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { margin: .4rem 0; }
.contact-info .price { margin-top: 1.2rem; }
form.enquiry { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
form.enquiry label { display: grid; gap: .3rem; font-weight: 600; font-size: .93rem; }
form.enquiry .opt { font-weight: 400; color: var(--muted); }
form.enquiry input, form.enquiry textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid #b9c3cc; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
form.enquiry textarea { min-height: 130px; resize: vertical; }
form.enquiry .consent { display: flex; gap: .6rem; font-weight: 400; font-size: .88rem; align-items: flex-start; }
form.enquiry .consent input { width: auto; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; }

/* Footer & legal */
.site-footer { background: var(--navy); color: #b9c6d3; padding: 2rem 0; font-size: .9rem; }
.site-footer a { color: #e8eef4; }
.foot { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.legal { padding: clamp(32px, 6vw, 72px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 1.2rem; }
.legal h2 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.legal .todo { background: #fff4d6; border: 1px solid #e3c36b; padding: .1rem .35rem; border-radius: 4px; }
.thanks { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumb img, .btn { transition: none; }
}
