/*
Theme Name: SV Endeavour One-Page Theme
Theme URI: https://sailsvendeavour.com/
Author: Endeavour Owner
Description: A custom one-page WordPress theme for the sale of a 2019 Lagoon 42 Owners Version catamaran.
Version: 1.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sv-endeavour
*/

:root {
  --sv-navy: #061524;
  --sv-ink: #111827;
  --sv-muted: #566172;
  --sv-blue: #1769e0;
  --sv-blue-dark: #0f4fb4;
  --sv-bg: #f5f7fa;
  --sv-card: #ffffff;
  --sv-border: #e3e8ef;
  --sv-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--sv-ink);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.sv-page { overflow-x: hidden; }
.sv-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.sv-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: rgba(6, 21, 36, .58);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
}
.sv-nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sv-brand,
.sv-nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 750;
}
.sv-brand { letter-spacing: .01em; }
.sv-nav-links { display: flex; gap: 22px; font-size: 14px; }
.sv-nav-links a { opacity: .86; }
.sv-nav-links a:hover { opacity: 1; }

.sv-hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.sv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2,8,23,.82) 0%, rgba(2,8,23,.62) 38%, rgba(2,8,23,.24) 72%, rgba(2,8,23,.20) 100%),
    linear-gradient(180deg, rgba(2,8,23,.38) 0%, rgba(2,8,23,.04) 48%, rgba(2,8,23,.48) 100%);
}
.sv-hero-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 68px;
  transform: translateX(-205px);
}
.sv-kicker {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.sv-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 6.7vw, 78px);
  line-height: .97;
  letter-spacing: -.055em;
  font-weight: 900;
}
.sv-hero-subhead {
  margin: 24px 0 0;
  max-width: 700px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 650;
  color: rgba(255,255,255,.94);
}
.sv-hero-proof {
  margin: 18px 0 0;
  max-width: 700px;
  color: rgba(255,255,255,.84);
  font-size: clamp(15px, 1.3vw, 18px);
}
.sv-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin-top: 28px;
}
.sv-price {
  font-size: clamp(30px, 3.7vw, 44px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.035em;
}
.sv-price-note {
  margin-bottom: 5px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.sv-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.sv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.sv-button:hover { transform: translateY(-1px); }
.sv-button-primary { color: #fff; background: var(--sv-blue); box-shadow: 0 14px 34px rgba(23,105,224,.35); }
.sv-button-primary:hover { background: var(--sv-blue-dark); }
.sv-button-secondary { color: #fff; border: 1px solid rgba(255,255,255,.48); background: rgba(255,255,255,.08); }
.sv-button-secondary:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.78); }
.sv-section { padding: 86px 0; }
.sv-section-alt { background: var(--sv-bg); }
.sv-section h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.sv-section-lede { max-width: 880px; margin: 0 0 32px; color: var(--sv-muted); font-size: 20px; line-height: 1.45; }
.sv-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.sv-card { background: var(--sv-card); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 24px; box-shadow: 0 12px 32px rgba(15,23,42,.07); }
.sv-card h3 { margin: 0 0 8px; font-size: 20px; }
.sv-card p { margin: 0; color: var(--sv-muted); }
.sv-spec-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 28px; padding: 0; margin: 0 0 28px; list-style: none; }
.sv-spec-list li { padding: 14px 0; border-bottom: 1px solid var(--sv-border); }
.sv-spec-list strong { display: block; }
.sv-spec-list span { color: var(--sv-muted); }
.sv-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.sv-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15,23,42,.12);
  background: #e5e7eb;
  cursor: zoom-in;
}
.sv-gallery-item img,
.sv-gallery-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: inherit;
  transition: transform .22s ease, filter .22s ease;
  display: block;
}
.sv-gallery-item:hover img,
.sv-gallery-item:hover video,
.sv-gallery-item:focus-visible img,
.sv-gallery-item:focus-visible video {
  transform: scale(1.035);
  filter: brightness(.94);
}
.sv-gallery-item:focus-visible { outline: 3px solid var(--sv-blue); outline-offset: 3px; }
.sv-lightbox-lock { overflow: hidden; }
.sv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 86px;
  background: rgba(2, 8, 23, .94);
  backdrop-filter: blur(10px);
}
.sv-lightbox.is-open { display: flex; }
.sv-lightbox-figure {
  margin: 0;
  width: min(1240px, 100%);
  max-height: calc(100vh - 144px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.sv-lightbox-figure img,
.sv-lightbox-figure video {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  background: rgba(255,255,255,.04);
}
.sv-lightbox-caption { color: rgba(255,255,255,.78); font-size: 14px; }
.sv-lightbox-close,
.sv-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  background: rgba(255,255,255,.10);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.sv-lightbox-close:hover,
.sv-lightbox-nav:hover { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.44); transform: translateY(-1px); }
.sv-lightbox-close:focus-visible,
.sv-lightbox-nav:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sv-lightbox-close {
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}
.sv-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  font-size: 46px;
  line-height: .8;
}
.sv-lightbox-nav:hover { transform: translateY(-50%) translateY(-1px); }
.sv-lightbox-prev { left: 24px; }
.sv-lightbox-next { right: 24px; }
.sv-contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.sv-form { display: grid; gap: 14px; }
.sv-form label { display: block; font-weight: 800; font-size: 14px; }
.sv-form input,
.sv-form textarea { width: 100%; margin-top: 6px; border: 1px solid var(--sv-border); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; }
.sv-form button { border: 0; cursor: pointer; width: fit-content; }
.sv-success { color: #047857; font-weight: 800; }
.sv-error { color: #b91c1c; font-weight: 800; }
.sv-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sv-footer-note { color: var(--sv-muted); font-size: 13px; }

@media (max-width: 1220px) { .sv-hero-content { transform: none; } }
@media (max-width: 820px) {
  .sv-nav { position: absolute; }
  .sv-nav-inner { min-height: 58px; }
  .sv-nav-links { display: none; }
  .sv-hero { align-items: flex-end; }
  .sv-hero-content { padding: 112px 0 48px; }
  .sv-grid-3, .sv-contact-box, .sv-spec-list { grid-template-columns: 1fr; }
  .sv-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sv-lightbox { padding: 56px 16px 40px; }
  .sv-lightbox-figure { max-height: calc(100vh - 96px); }
  .sv-lightbox-figure img,
  .sv-lightbox-figure video { max-height: calc(100vh - 150px); border-radius: 10px; }
  .sv-lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 28px; }
  .sv-lightbox-nav { width: 44px; height: 44px; font-size: 34px; background: rgba(2,8,23,.42); }
  .sv-lightbox-prev { left: 8px; }
  .sv-lightbox-next { right: 8px; }
}
