/* HYN Marine site styles. Brand navy is #193349. */
:root {
  --navy: #193349;
  --navy-deep: #0f2232;
  --sea: #2a7fa8;
  --sand: #f4f1ea;
  --ink: #1d2833;
  --muted: #5d6b78;
  --line: #dde3e8;
  --white: #ffffff;
  --accent: #d9822b;
  --radius: 10px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.topbar { background: var(--navy-deep); color: #c9d6e2; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; color: var(--navy); text-decoration: none; }
.brand span { font-weight: 400; letter-spacing: .18em; font-size: .8em; }
.brand-light { color: var(--white); }
.menu-toggle { display: none; background: var(--navy); color: var(--white); border: 0; border-radius: 6px; padding: 8px 14px; font-size: 1rem; }
#site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
#site-nav a, #site-nav button { display: block; padding: 10px 12px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; border-radius: 6px; line-height: 1.6; margin: 0; text-align: left; }
#site-nav a:hover, #site-nav button:hover, #site-nav .is-active > a, #site-nav .is-active > button { background: var(--sand); }
.has-sub { position: relative; }
.has-sub ul { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; list-style: none; margin: 0; padding: 6px; min-width: 210px; box-shadow: 0 8px 24px rgba(15,34,50,.12); }
.has-sub:hover ul, .has-sub.open ul { display: block; }
.has-sub ul a { font-weight: 500; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  #site-nav.open { display: block; }
  #site-nav > ul { flex-direction: column; align-items: stretch; }
  .has-sub ul { position: static; box-shadow: none; border: 0; padding-left: 12px; }
  .has-sub:hover ul { display: none; }
  .has-sub.open ul { display: block; }
  .topbar-loc { display: none; }
}

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: var(--white); padding: 12px 22px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 2px solid var(--navy); cursor: pointer; font-size: 1rem; font-family: inherit; text-align: center; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--sand); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }
.btn-stack { display: grid; gap: 10px; margin: 1.2em 0; }

/* Sections */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #dbe5ee; padding: 64px 0 56px; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero .btn-ghost { color: var(--white); border-color: var(--white); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: #9fc3dc; margin-bottom: .6em; }
.lead { font-size: 1.15rem; max-width: 760px; }
.creds { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.creds li { border-left: 3px solid var(--sea); padding-left: 12px; font-size: .92rem; }
.creds strong { display: block; color: var(--white); font-size: 1.05rem; }
.page-head { background: var(--sand); padding: 44px 0 28px; }
.section { padding: 56px 0; }
.section-alt { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-intro { max-width: 720px; color: var(--muted); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card a { font-weight: 700; text-decoration: none; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .card-grid-3 { grid-template-columns: 1fr; } }
.point h3 { margin-bottom: .3em; }
.point p { color: var(--muted); }
.cta { background: var(--navy); color: #dbe5ee; padding: 56px 0; text-align: center; }
.cta h2 { color: var(--white); }
.cta .btn-row { justify-content: center; }
.notice { background: var(--sand); border-radius: var(--radius); padding: 28px; }

/* Content pages: full width bands inside a page must not cause sideways scrolling */
.content-page{overflow-x:clip}

/* Virtual tours */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tour-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); background: var(--white); transition: box-shadow .15s; }
.tour-card:hover { box-shadow: 0 10px 28px rgba(15,34,50,.14); }
.tour-card strong { color: var(--navy); font-size: 1.1rem; }
.tour-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sand); color: var(--navy); font-weight: 800; font-size: .85rem; }
.tour-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); margin: 16px 0; }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) { .tour-frame { aspect-ratio: 3 / 4; } }
.tour-note { color: var(--muted); margin-top: 24px; }

/* Inventory */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 24px; }
.filters label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.filters select { padding: 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; min-width: 150px; background: var(--white); }
.count { color: var(--muted); }
.boat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.boat-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--white); transition: box-shadow .15s, transform .15s; }
.boat-card:hover { box-shadow: 0 10px 28px rgba(15,34,50,.14); transform: translateY(-2px); }
.boat-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--sand); }
.boat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.boat-card-body { padding: 14px 16px 16px; }
.boat-card-body h3 { margin-bottom: .2em; }
.meta { color: var(--muted); font-size: .92rem; margin-bottom: .4em; }
.price { font-weight: 800; color: var(--navy); font-size: 1.2rem; margin: 0; }
.price-lg { font-size: 1.9rem; }
.boat-card-img .tag, .tag-inline { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--white); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-inline { position: static; display: inline-block; }

/* Boat detail */
.crumbs { font-size: .9rem; color: var(--muted); }
.boat-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery-main { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 6px; }
.thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.thumbs button.on { border-color: var(--navy); }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; }
.boat-aside { position: sticky; top: 90px; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.engines { padding-left: 18px; }
.description { margin-top: 40px; max-width: 860px; }
.video { margin-top: 40px; max-width: 860px; }
.boat-tour { margin-top: 40px; max-width: 1000px; scroll-margin-top: 90px; }
.boat-tour .meta { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.description img { height: auto; }
@media (max-width: 860px) {
  .boat-top { grid-template-columns: 1fr; }
  .boat-aside { position: static; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: #b8c7d4; padding: 48px 0 20px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer h3 { color: var(--white); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: .85rem; }

/* ---------- Blog (/blog/, posts come from YachtPushr through src/blog.js) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-grid.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.post-card:hover { box-shadow: 0 6px 20px rgba(15, 34, 50, .12); }
.post-card img, .post-card-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card-ph { background: var(--navy); color: rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .1em; font-size: 1.6rem; }
.post-card > div { padding: 16px 18px 20px; }
.post-card h2 { font-size: 1.15rem; margin: 0 0 .4em; }
.post-grid.small h2 { font-size: 1rem; }
.post-grid.small .post-card p:not(.post-date) { display: none; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-date { font-size: .85rem; color: var(--muted); margin: 0 0 .4em; }
.post h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-top: .2em; }
.post-hero { width: 100%; height: auto; border-radius: var(--radius); margin: 8px 0 24px; }
.post-body { font-size: 1.08rem; line-height: 1.7; overflow-wrap: break-word; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body h2 { margin-top: 1.6em; }
.post-body blockquote { margin: 1.2em 0; padding: 4px 20px; border-left: 4px solid var(--navy); background: var(--sand); }
.post-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; border-radius: 8px; overflow: hidden; background: var(--navy-deep); }
.post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.post-tags span { background: var(--sand); color: var(--navy); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.post-cta { background: var(--navy); color: #dbe5ee; border-radius: var(--radius); padding: 24px 28px; margin: 32px 0 40px; }
.post-cta h2 { color: var(--white); margin-top: 0; }
.post-cta a { color: var(--white); font-weight: 700; }

/* ---------- YOT model pages (src/content/yot-models.js) ---------- */
.hyn-yotm { padding-bottom: 20px; }
.yotm-head { text-align: center; margin-bottom: 24px; }
.yotm-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--sea); margin: 0 0 6px; }
.yotm-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0; }
.yotm-tag { font-size: 1.15rem; color: var(--muted); margin: 6px 0 0; }
.car-stage { position: relative; background: #0f2232; border-radius: var(--radius); overflow: hidden; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; }
.car-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.car-prev, .car-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--navy); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.car-prev { left: 12px; } .car-next { right: 12px; }
.car-prev:hover, .car-next:hover { background: #fff; }
.car-count { position: absolute; right: 12px; bottom: 12px; background: rgba(15,34,50,.75); color: #fff; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.car-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 6px; scrollbar-width: thin; }
.car-thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: .7; }
.car-thumbs button.on { border-color: var(--navy); opacity: 1; }
.car-thumbs img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; display: block; }
.yotm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 32px; align-items: start; }
.yotm-intro { font-size: 1.12rem; line-height: 1.7; margin-top: 0; }
.yotm-note { background: var(--sand); border-left: 4px solid var(--navy); padding: 10px 16px; border-radius: 0 8px 8px 0; font-weight: 600; }
.yotm-list { padding-left: 1.2em; line-height: 1.7; }
.yotm-list li { margin-bottom: 4px; }
.yotm-cta { background: var(--navy); color: #dbe5ee; border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.yotm-cta h2 { color: #fff; margin-top: 0; font-size: 1.3rem; }
.yotm-cta .btn { display: block; text-align: center; margin-top: 10px; }
.yotm-cta .btn:not(.btn-ghost) { background: #fff; color: var(--navy); border-color: #fff; }
.yotm-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.yotm-config { display: block; margin-top: 14px; color: #fff; font-weight: 600; text-align: center; }
.yotm-video { max-width: none; margin-top: 44px; }
.yotm-chapters { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.yotm-chapters button { display: flex; gap: 8px; background: none; border: 0; padding: 6px 0; font: inherit; color: var(--navy); cursor: pointer; text-align: left; }
.yotm-chapters button:hover { text-decoration: underline; }
.yotm-chapters span { flex: 0 0 2.8em; font-weight: 700; color: var(--sea); }
.yotm-specs { margin-top: 44px; }
.yotm-specs table { width: 100%; border-collapse: collapse; }
.yotm-specs th, .yotm-specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.yotm-specs th { width: 34%; color: var(--muted); font-weight: 600; }
.yotm-specs tr:nth-child(odd) { background: var(--sand); }
.yotm-fine { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.yotm-partner { display: flex; align-items: center; gap: 28px; margin-top: 44px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.yotm-partner img { width: 220px; height: auto; flex: 0 0 auto; }
.yotm-partner p { margin: 0; line-height: 1.65; }
.yotm-more { text-align: center; margin-top: 28px; }
@media (max-width: 860px) {
  .yotm-grid { grid-template-columns: 1fr; gap: 24px; }
  .yotm-cta { position: static; }
  .yotm-partner { flex-direction: column; text-align: center; }
  .yotm-specs th { width: 45%; }
  .car-prev, .car-next { width: 38px; height: 38px; font-size: 24px; }
}

/* Newsletter signup banner (layout.js newsletterBlock): a centered card. */
.nl-banner { background: var(--sand); padding: 28px 0; border-top: 1px solid var(--line); }
.nl-inner { max-width: 680px; margin: 0 auto; background: var(--white); border: 2px solid var(--navy); border-top-width: 6px; border-radius: 12px; padding: 22px 24px; text-align: center; box-shadow: 0 10px 28px rgba(15,34,50,.14); }
.nl-title { margin: 0 0 4px; font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--navy); }
.nl-text { margin: 0 0 14px; color: var(--ink); }
.nl-form { display: flex; gap: 8px; justify-content: center; }
.nl-form input { flex: 1 1 0; min-width: 0; padding: 11px 12px; border: 1px solid #c4ccd4; border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; }
.nl-form input::placeholder { color: #7a8794; }
.nl-form input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.nl-form button { flex: 0 0 auto; padding: 11px 20px; border: 0; border-radius: 6px; background: var(--navy); color: var(--white); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.nl-form button:hover { background: var(--navy-deep); }
.nl-form button[disabled] { opacity: .6; cursor: default; }
.nl-msg { margin: 10px 0 0; font-size: 1rem; color: var(--navy); font-weight: 600; }
.nl-msg:empty { display: none; }
.nl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .nl-inner { padding: 18px 16px; }
  .nl-form { flex-wrap: wrap; }
  .nl-form input, .nl-form button { flex: 1 1 100%; }
}
