/* S/V Remedy — shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #0b1220;
  --white: #111a2c;
  --ink: #f3efe6;
  --ink-2: #c9c4b8;
  --muted: #8b8f98;
  --line: rgba(243, 239, 230, 0.10);
  --line-2: rgba(243, 239, 230, 0.22);
  --navy: #f3efe6;
  --navy-hover: #ffffff;
  --sea: #172238;
  --gold: #c9a961;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: 40px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark small {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 0.02em;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav .phone { color: var(--ink); font-variant-numeric: tabular-nums; }
.site-nav a.btn { color: #0b1220; border-bottom: 1px solid var(--navy); }
.site-nav a.btn:hover { color: #0b1220; border-color: var(--navy-hover); }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--navy); border-radius: 3px;
  background: var(--navy); color: #0b1220;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn.ghost { background: rgba(11,18,32,0.35); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: rgba(11,18,32,0.6); border-color: var(--ink); }
.btn.sm { padding: 9px 14px; font-size: 13px; }

/* ── Cinematic hero ─────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 640px; max-height: 960px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--sea);
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.10) 0%, rgba(11,18,32,0.05) 40%, rgba(11,18,32,0.55) 72%, rgba(11,18,32,0.96) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 56px; }
.hero-title {
  display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero .meta {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 6px 0;
  font-size: 16px; color: var(--ink-2);
}
.hero .meta span + span::before { content: '·'; margin: 0 12px; color: var(--gold); }
.hero .meta strong { color: var(--ink); font-weight: 600; font-size: 18px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Secondary photo strip under the hero */
.hero-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.hero-strip a { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sea); position: relative; }
.hero-strip img { width: 100%; height: 100%; object-fit: cover; }
.hero-strip .count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(11, 18, 32, 0.78); color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 7px 12px; border-radius: 3px;
}

/* ── Key facts ──────────────────────────────────── */
.facts {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.facts div { padding: 16px 14px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 11px; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.facts dd { font-family: var(--serif); font-size: 24px; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts dd small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 2px; }

/* ── Two-column body ────────────────────────────── */
.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 64px;
  padding: 56px 0 24px;
  align-items: start;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.prose p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }
.prose p + p { margin-top: 16px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.note {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); max-width: 66ch;
}
.note a { color: var(--ink-2); }

/* ── Inquiry card ───────────────────────────────── */
.inquiry {
  position: sticky; top: 84px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 26px 24px;
}
.inquiry h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 4px; }
.inquiry .sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.broker {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.broker .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #0b1220;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px;
  flex: none;
}
.broker .who { font-size: 14px; line-height: 1.45; }
.broker .who strong { display: block; font-size: 15px; }
.broker .who a { color: var(--ink-2); text-decoration: none; }
.broker .who a:hover { text-decoration: underline; }

form.inq { display: grid; gap: 12px; }
form.inq .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form.inq label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
form.inq input, form.inq textarea {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 10px 12px;
  outline: none;
}
form.inq input:focus, form.inq textarea:focus { border-color: var(--gold); background: #0b1220; }
form.inq textarea { resize: vertical; min-height: 96px; }
form.inq .btn { width: 100%; margin-top: 4px; }
form.inq .fine { font-size: 12px; color: var(--muted); line-height: 1.45; }
form.inq .status { font-size: 14px; padding: 10px 12px; border-radius: 3px; display: none; }
form.inq .status.ok { display: block; background: rgba(76,175,110,0.15); color: #9fe0b4; }
form.inq .status.err { display: block; background: rgba(220,80,80,0.15); color: #f0a3a3; }
form.inq .hp { position: absolute; left: -9999px; }

/* ── Sections ───────────────────────────────────── */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head .section-title { margin: 0; }
.section-head a { font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--sea); overflow: hidden; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0) 55%, rgba(11,18,32,0.75) 100%); pointer-events: none; }
.video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid rgba(243,239,230,0.7); background: rgba(11,18,32,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video:hover .play { background: rgba(11,18,32,0.7); transform: translate(-50%, -50%) scale(1.04); }
.video .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ink); }
.video .tag {
  position: absolute; left: 20px; bottom: 18px; z-index: 1;
  font-size: 13px; color: var(--ink-2);
}
.video .tag strong { color: var(--ink); font-weight: 500; margin-right: 10px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }
.video.playing::after, .video.playing .play, .video.playing .tag { display: none; }

/* Walkthrough grid */
.walk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 6px; }
.walk { margin: 0; cursor: pointer; }
.walk-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sea); }
.walk-media img, .walk-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.walk-media video { position: absolute; inset: 0; z-index: 2; object-fit: contain; background: #000; }
.walk.playing .walk-media img { visibility: hidden; }
.walk-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(243,239,230,0.7); background: rgba(11,18,32,0.5);
}
.walk-play::after { content: ''; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--ink); }
.walk:hover .walk-play { background: rgba(11,18,32,0.75); }
.walk-dur { position: absolute; right: 10px; bottom: 10px; font-size: 12px; color: var(--ink); background: rgba(11,18,32,0.7); padding: 3px 7px; border-radius: 3px; }
.walk.playing .walk-play, .walk.playing .walk-dur { display: none; }
.walk figcaption { font-size: 14px; color: var(--ink-2); padding: 8px 2px 0; }
@media (max-width: 720px) { .walk-grid { grid-template-columns: 1fr 1fr; gap: 14px 6px; } .walk figcaption { font-size: 13px; } }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sea); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.photo-grid a:hover img { transform: scale(1.02); }
.photo-grid figcaption { font-size: 13px; color: var(--muted); padding: 8px 2px 10px; }

/* Refit */
.refit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.refit-grid h4 {
  font-family: var(--serif); font-weight: 400; font-size: 26px;
  padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--gold);
}
.refit-grid ul { list-style: none; }
.refit-grid li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.refit-grid li:last-child { border-bottom: 0; }

/* Specs */
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.spec-group { margin-bottom: 34px; }
.spec-group h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); padding-bottom: 8px; border-bottom: 1px solid var(--gold);
}
.spec-group table { width: 100%; border-collapse: collapse; }
.spec-group td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.spec-group td:first-child { color: var(--muted); width: 38%; padding-right: 12px; }
.spec-group td:last-child { color: var(--ink); }

/* Bottom CTA band */
.cta-band {
  background: var(--sea); color: var(--ink); border-top: 1px solid var(--line);
  padding: 56px 0;
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; }
.cta-band p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }


/* Footer */
.site-footer { padding: 32px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { max-width: 70ch; line-height: 1.5; }
.site-footer a { color: var(--ink-2); }

/* ── Page head (gallery / contact) ──────────────── */
.page-head { padding: 44px 0 24px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; }
.page-head p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* Gallery */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 64px; }
.masonry figure { margin: 0; cursor: zoom-in; background: var(--sea); aspect-ratio: 4 / 3; overflow: hidden; }
.masonry img { width: 100%; height: 100%; object-fit: cover; }

#lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 10, 18, 0.96);
  display: none; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
#lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: inherit; font-size: 15px; padding: 14px 18px; opacity: 0.8;
}
#lightbox button:hover { opacity: 1; }
#lbClose { top: 10px; right: 12px; font-size: 26px; line-height: 1; }
#lbPrev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 34px; }
#lbNext { right: 8px; top: 50%; transform: translateY(-50%); font-size: 34px; }
#lbCount { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 13px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding-bottom: 72px; align-items: start; }
.contact-grid .inquiry { position: static; }
.details dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 15px; }
.details dt { color: var(--muted); }
.details dd { color: var(--ink); }
.details dd a { color: var(--ink); text-decoration: none; }
.details dd a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .body-grid { grid-template-columns: 1fr; gap: 40px; }
  .inquiry { position: static; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts div:nth-child(5) { border-left: 0; }
  .facts div:nth-child(n+5) { border-top: 1px solid var(--line); }
  .refit-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .site-header .wrap { height: 58px; }
  .wordmark small { display: none; }
  .site-nav { gap: 16px; }
  .site-nav .hide-m { display: none; }
  .hero { height: 86vh; min-height: 520px; }
  .hero img { object-position: 78% 45%; }
  .hero .wrap { padding-bottom: 28px; }
  .hero-title { grid-template-columns: 1fr; }
  .hero .meta { font-size: 13.5px; gap: 0 14px; flex-wrap: nowrap; white-space: nowrap; }
  .hero .meta span + span::before { content: none; margin: 0; }
  .hero .meta strong { font-size: 14px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip a:nth-child(3) { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(odd) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts dd { font-size: 21px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .spec-cols { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .masonry { grid-template-columns: 1fr 1fr; }
  form.inq .row { grid-template-columns: 1fr; }
  .cta-band h2 { font-size: 28px; }
}
