/* St. Croix Marine Center — draft design system (v3)
   Direction: Safe Harbor-style restraint. Solid navy header, aerial photography, light display type,
   very little copy per section (title, one line, one button), overlapping photo pairs.
   Navy + sky blue per the navtronics brief. One family (Inter). Hairlines, no shadows, no icons. */

:root {
  --paper: #ffffff;
  --bone: #e3e6e9;
  --mist: #f1f3f4;
  --ink: #0b1620;
  --ink-2: #4d5761;
  --navy: #0c1d2b;
  --navy-2: #13293b;
  --sky: #8ccbea;
  --on-navy: #ffffff;
  --on-navy-2: rgba(255, 255, 255, 0.7);
  --line-navy: rgba(255, 255, 255, 0.16);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-ctl: 3px;
  --r-img: 6px;
  --max: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(56px, 7vw, 104px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ---------- Type ---------- */
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 16px;
}
.display { font-size: clamp(44px, 7.6vw, 112px); line-height: 1; letter-spacing: -0.04em; }
.h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; letter-spacing: -0.025em; }
.h3 { font-size: 21px; line-height: 1.33; letter-spacing: -0.012em; font-weight: 400; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: var(--r-ctl);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; background: transparent; color: var(--ink); text-shadow: none;
  cursor: pointer; transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill:hover { background: transparent; color: var(--ink); }
/* Light buttons, for navy and photo backgrounds. Kept specific so nothing can turn them white-on-white. */
.btn.btn-light { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn.btn-light.btn-fill { background: var(--paper); color: var(--ink); }
.btn.btn-light.btn-fill:hover { background: transparent; color: var(--paper); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link:hover { opacity: 0.65; }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--navy-2); color: var(--on-navy-2); font-size: 12.5px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility a { color: var(--on-navy); text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility .u-left, .utility .u-right { display: flex; gap: 22px; align-items: center; white-space: nowrap; }
@media (max-width: 720px) {
  .utility .wrap { justify-content: center; }
  .utility .u-left, .utility .u-hide-sm { display: none; }
}

.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--on-navy); border-bottom: 1px solid var(--line-navy); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.wordmark {
  font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.primary-nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--sky); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: none; }
.site-header .btn-sm { border-color: var(--paper); color: var(--paper); }
.site-header .btn-sm:hover, .site-header .btn-sm[aria-current="page"] { background: var(--paper); color: var(--ink); }

.menu-toggle {
  display: none; align-items: center; gap: 12px; height: 42px; padding: 0 14px;
  background: transparent; color: var(--on-navy); border: 1px solid rgba(255,255,255,0.55); border-radius: var(--r-ctl);
  font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { top: 0; transform: rotate(45deg); }
.menu-open .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: none;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 0;
    padding: 8px var(--gutter) 32px; background: var(--navy); overflow-y: auto;
  }
  .menu-open .primary-nav { display: flex; }
  .menu-open { overflow: hidden; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    font-size: 26px; font-weight: 300; letter-spacing: -0.015em; text-transform: none;
    padding: 16px 0; border-bottom: 1px solid var(--line-navy);
  }
  .nav-links a[aria-current="page"] { color: var(--sky); border-bottom-color: var(--line-navy); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 28px; }
  .nav-phone { display: block; font-size: 22px; font-weight: 300; text-decoration: none; }
  .nav-actions .btn-sm { min-height: 48px; font-size: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
.band-mist { background: var(--mist); }
.band-deep { background: var(--navy); color: var(--on-navy); }
.band-deep .label { color: var(--sky); }
.band-deep .muted, .band-deep .lead { color: var(--on-navy-2); }
.band-deep .btn:not(.btn-fill) { border-color: var(--paper); color: var(--paper); }
.band-deep .btn:not(.btn-fill):hover { background: var(--paper); color: var(--ink); }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 5fr 4fr; align-items: end; gap: 72px; }
  .section-head .lead { justify-self: end; }
}

/* ---------- Photo sections: the photo stays still while the page scrolls over it ---------- */
.hero, .page-hero, .photo-band {
  position: relative; display: flex; align-items: flex-end; color: var(--paper); background: var(--navy);
  clip-path: inset(0);
}
.hero > img, .page-hero > img, .photo-band > img {
  position: fixed; top: 0; left: 0; width: 100%;
  /* lvh = the tallest the viewport gets, so the photo does not resize (zoom) when mobile toolbars show/hide */
  height: 100vh; height: 100lvh; object-fit: cover;
}
.hero::after, .page-hero::after, .photo-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 20, 30, 0.9) 0%, rgba(8, 20, 30, 0.6) 40%, rgba(8, 20, 30, 0.25) 75%, rgba(8, 20, 30, 0.3) 100%);
}
.hero > .wrap, .page-hero > .wrap, .photo-band > .wrap { position: relative; z-index: 1; }
.hero h1, .page-hero h1, .photo-band h2 { text-shadow: 0 1px 20px rgba(8, 20, 30, 0.35); }
.hero .label, .page-hero .label, .photo-band .label { color: var(--sky); }

.hero { min-height: calc(100svh - var(--header-h) - 36px); }
.hero-content { padding-top: 96px; padding-bottom: clamp(40px, 7vw, 88px); }
.hero .display { max-width: 9em; margin-bottom: 22px; }
.hero p.hero-sub { font-size: 18px; max-width: 26em; color: rgba(255, 255, 255, 0.92); margin-bottom: 30px; }

.page-hero { min-height: clamp(320px, 52svh, 540px); }
.page-hero-content { padding-top: 96px; padding-bottom: clamp(32px, 5vw, 60px); }
.page-hero .h1 { max-width: 12em; margin-bottom: 14px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.9); margin: 0; }

.photo-band { min-height: clamp(320px, 46svh, 480px); align-items: center; }
.photo-band::after { background: linear-gradient(90deg, rgba(8, 20, 30, 0.88) 0%, rgba(8, 20, 30, 0.55) 60%, rgba(8, 20, 30, 0.35) 100%); }
.photo-band .cta { padding: 48px 0; }

/* ---------- Home: photo strip + link list (Safe Harbor-style dark band) ---------- */
.strip { display: grid; grid-template-columns: 1.1fr 1.5fr 0.9fr 1.2fr; gap: 14px; align-items: start; margin-bottom: clamp(48px, 6vw, 80px); }
.strip .frame:nth-child(1) { aspect-ratio: 4 / 3; margin-top: 48px; }
.strip .frame:nth-child(2) { aspect-ratio: 4 / 3; }
.strip .frame:nth-child(3) { aspect-ratio: 3 / 4; margin-top: 24px; }
.strip .frame:nth-child(4) { aspect-ratio: 4 / 3; margin-top: 72px; }
@media (max-width: 760px) {
  .strip { grid-template-columns: 1.4fr 1fr; gap: 10px; }
  .strip .frame:nth-child(3), .strip .frame:nth-child(4) { display: none; }
  .strip .frame:nth-child(1) { margin-top: 0; }
  .strip .frame:nth-child(2) { aspect-ratio: 3 / 4; margin-top: 28px; }
}

.offer { display: grid; gap: 32px; }
@media (min-width: 900px) { .offer { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; } }
.offer .h2 { margin-bottom: 16px; }
.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-navy); }
.linklist a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line-navy); text-decoration: none;
}
.linklist strong { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.linklist span { grid-column: 1; font-size: 14px; color: var(--on-navy-2); }
.linklist a::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 2; font-size: 18px; transition: transform 120ms linear; }
.linklist a:hover::after { transform: translateX(4px); }
.linklist a:hover strong { color: var(--sky); }

/* ---------- Overlapping photo pair ---------- */
.pair { position: relative; padding: 0 0 18% 14%; }
.pair .big { aspect-ratio: 5 / 4; }
.pair .small {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1;
  border: 8px solid var(--paper); border-radius: calc(var(--r-img) + 8px);
}
.band-mist .pair .small { border-color: var(--mist); }

/* ---------- Image frames ---------- */
.frame { border-radius: var(--r-img); overflow: hidden; background: var(--bone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-cine { aspect-ratio: 21 / 9; }
.ratio-card { aspect-ratio: 4 / 3; }
.ratio-tall { aspect-ratio: 4 / 5; }
@media (max-width: 700px) { .ratio-cine { aspect-ratio: 4 / 3; } }
figcaption { font-size: 13px; color: var(--ink-2); margin-top: 12px; }

/* ---------- Split ---------- */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split.reverse > :first-child { order: 2; }
}
.split .h2 { margin-bottom: 16px; }
.split .lead { margin-bottom: 28px; }

.ticklist { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--bone); }
.ticklist li { padding: 12px 0; border-bottom: 1px solid var(--bone); }

/* ---------- Rows (news) ---------- */
.rows { border-top: 1px solid var(--bone); }
.row { display: grid; gap: 6px 32px; padding: 24px 0; border-bottom: 1px solid var(--bone); }
.row .meta { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.row .h3 { margin-bottom: 4px; }
.row p { margin: 0; color: var(--ink-2); max-width: 44em; }
@media (min-width: 900px) { .row { grid-template-columns: 220px 1fr; } }
@media (max-width: 640px) { .rows.compact .row p:not(.meta) { display: none; } }

/* ---------- Spec sheet (label left, content right) ---------- */
.spec { border-top: 1px solid var(--bone); }
.spec-row { display: grid; gap: 10px 48px; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--bone); }
.spec-row > :first-child .h3 { margin-bottom: 4px; }
.spec-row > :first-child p { color: var(--ink-2); font-size: 14px; max-width: 22em; margin: 0; }
.spec-row ul { margin: 0; padding-left: 1.1em; }
.spec-row ul li { margin: 0 0 6px; }
.spec-row ul li::marker { color: var(--ink-2); }
.spec-row .cols-2 { columns: 2 200px; column-gap: 40px; }
.spec-row .cols-2 li { break-inside: avoid; }
@media (min-width: 900px) { .spec-row { grid-template-columns: 4fr 8fr; } }

/* Collapsible rows (long lists, mostly so phones are not a wall of text) */
details.spec-row { display: block; }
details.spec-row > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.spec-row > summary::-webkit-details-marker { display: none; }
details.spec-row > summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; color: var(--ink-2); }
details.spec-row[open] > summary::after { content: "\2212"; }
details.spec-row > div { padding-top: 14px; max-width: 46em; }

/* ---------- Rate table ---------- */
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th, .rates td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--bone); vertical-align: top; }
.rates thead th { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); padding-top: 0; }
.rates td:last-child, .rates th:last-child { text-align: right; padding-left: 20px; }
.rates .price { font-size: 22px; font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; }
.rates small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }

.note { border-left: 2px solid var(--sky); padding: 2px 0 2px 16px; color: var(--ink-2); font-size: 14px; max-width: 40em; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .gallery.three { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 640px) { .gallery.three > :first-child { grid-column: 1 / -1; } }

/* ---------- Two-up info blocks ---------- */
.duo { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--bone); }
.duo > div { padding: 32px 0; }
.duo > div + div { border-top: 1px solid var(--bone); }
@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; }
  .duo > div { padding: 44px 48px 44px 0; }
  .duo > div + div { border-top: 0; border-left: 1px solid var(--bone); padding-left: 48px; }
}
.duo .h3 { margin-bottom: 10px; }
.duo p { color: var(--ink-2); max-width: 30em; }

/* ---------- Hours ---------- */
.hours { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--bone); font-variant-numeric: tabular-nums; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--bone); }
.hours li span:first-child { color: var(--ink-2); }
.hours li span:last-child { text-align: right; }

/* ---------- Team ---------- */
.team-group { padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--bone); display: grid; gap: 24px; }
@media (min-width: 900px) { .team-group { grid-template-columns: 3fr 9fr; gap: 48px; } }
.people { display: grid; gap: 28px 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .people { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; } }
.person .ph {
  aspect-ratio: 4 / 5; border-radius: var(--r-img); background: var(--mist);
  display: flex; align-items: flex-end; padding: 16px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #8a929a;
  margin-bottom: 14px;
}
.person h3 { font-size: 17px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 2px; }
.person p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .two { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid #c6ccd2; border-radius: var(--r-ctl);
  padding: 13px 14px; min-height: 50px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form-status { font-size: 14px; color: var(--ink-2); margin: 0; min-height: 1.5em; }

/* ---------- Closing CTA ---------- */
.cta { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }
.cta .h2 { max-width: 14em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding: clamp(56px, 7vw, 96px) 0 36px; }
.site-footer a { color: inherit; }
.site-footer .label { color: var(--sky); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line-navy); }
.footer-mark { font-size: 14px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; margin: 0; }
.footer-grid { display: grid; gap: 28px; padding: 40px 0; grid-template-columns: 1fr; font-size: 15px; }
.footer-grid p { color: var(--on-navy-2); margin: 0; }
.footer-grid p a { color: var(--on-navy); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 24px 0; border-top: 1px solid var(--line-navy); }
.footer-links a { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover { color: var(--sky); }
.fineprint { font-size: 12px; color: var(--on-navy-2); margin: 8px 0 0; }

/* ---------- Phones: less text, tighter rhythm ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .lead { font-size: 16.5px; }
  .hero p.hero-sub { font-size: 16.5px; margin-bottom: 26px; }
  .hide-sm { display: none !important; }
  .btn-row .btn { flex: 1 1 auto; }
  .spec-row .cols-2 { columns: 2; column-gap: 20px; font-size: 14.5px; }
  .pair { padding: 0 0 22% 10%; }
}

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mb-lg { margin-bottom: clamp(28px, 4vw, 52px); }

@media (max-width: 440px) {
  .header-inner { gap: 12px; }
  .wordmark { font-size: 11.5px; letter-spacing: 0.14em; }
  .menu-toggle { padding: 0 12px; gap: 10px; }
}
