/* ==========================================================================
   Frank Hall Boat Yard — frankhallboatyard.com
   Design tokens derived from the existing green-diamond identity.
   ========================================================================== */

:root {
  /* Palette — deep marine greens anchored to the logo diamond */
  --green-950: #0a261d;
  --green-900: #0e3529;
  --green-800: #134535;
  --green-700: #17573f;
  --green-600: #1c6b4e;
  --green-500: #22835f;
  --green-050: #e9f0ec;

  --paper:      #f7f4ec;   /* warm off-white */
  --paper-deep: #efe9da;   /* sanded tone */
  --ink:        #1b2721;   /* near-black, green-tinted */
  --muted:      #5c6c63;
  --line:       #d9d2c0;   /* hairline on paper */
  --brass:      #a07f45;   /* restrained nautical accent */
  --brass-deep: #86682f;
  --white:      #ffffff;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 72rem;
  --container-narrow: 54rem;
  --radius: 4px;
  --shadow-soft: 0 1px 2px rgba(16, 32, 26, .06), 0 8px 28px -12px rgba(16, 32, 26, .18);
  --shadow-lift: 0 2px 4px rgba(16, 32, 26, .08), 0 18px 44px -16px rgba(16, 32, 26, .28);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration-color: rgba(23, 87, 63, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--green-900); color: var(--white); padding: .6rem 1rem; font-size: .85rem;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 236, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 32, 26, .4); }
.header-inner {
  max-width: 80rem; margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .6rem 1.25rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); min-width: 0; flex: none; }
.brand img { width: 76px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; letter-spacing: .005em; white-space: nowrap; }
.brand-sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-800); font-weight: 600; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.main-nav nav { display: flex; align-items: center; gap: 1.35rem; }
.main-nav nav a {
  font-size: .9rem; font-weight: 550; color: var(--ink); text-decoration: none;
  padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav nav a:hover { border-bottom-color: var(--brass); }
.main-nav nav a[aria-current="page"] { border-bottom-color: var(--green-600); color: var(--green-800); }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.staff-link { opacity: .4; }
.staff-link:hover { opacity: 1; }

/* Header social icons */
.social-links { display: inline-flex; align-items: center; gap: .55rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--paper); background: var(--green-800);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.social-links a:hover { background: var(--brass); color: var(--green-950); transform: translateY(-1px); }
.social-links svg { width: 20px; height: 20px; }
.mobile-social { display: flex; gap: .6rem; margin-bottom: .6rem; }
.mobile-social a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .55rem .8rem; border: 1px solid rgba(247, 244, 236, .28); border-radius: 8px;
  color: rgba(247, 244, 236, .9); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.mobile-social a:hover { border-color: var(--brass); color: var(--brass); }
.mobile-social svg { width: 15px; height: 15px; flex: none; }

/* Partners / affiliations strip */
.partners { padding: 2.75rem 0 1rem; }
.partners-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2.25rem 3rem;
}
/* linked logos wrap an img — contents keeps the img as the direct flex
   item so linked logos lay out identically to unlinked ones */
.partners-row a { display: contents; }
.partners-row img {
  height: 50px; width: auto; max-width: 175px; object-fit: contain;
  transition: transform .25s ease;
}
.partners-row img:hover { transform: translateY(-2px); }
@media (max-width: 760px) { .partners-row { gap: 1.5rem 1.75rem; } .partners-row img { height: 40px; max-width: 140px; } }
.nav-phone svg { width: 14px; height: 14px; flex: none; }

/* Nav dropdown (Watch Hill → Reserve Dockage) */
.nav-item { position: relative; display: flex; align-items: center; padding-bottom: .6rem; margin-bottom: -.6rem; }
.nav-item > a::after { content: "▾"; font-size: .6rem; margin-left: .3rem; opacity: .55; }
.nav-drop {
  position: absolute; top: 100%; left: 0; z-index: 90;
  min-width: 15.5rem;
  background: var(--green-900); border-radius: .6rem; padding: .4rem;
  box-shadow: 0 20px 40px -18px rgba(16, 32, 26, .55), 0 0 0 1px rgba(247,244,236,.08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.main-nav nav .nav-drop a {
  display: block; padding: .55rem .8rem; border: 0; border-radius: .45rem;
  color: var(--paper); font-size: .88rem; white-space: nowrap; line-height: 1.3;
}
.main-nav nav .nav-drop a b { display: block; font-weight: 600; font-size: .88rem; }
.main-nav nav .nav-drop a small { display: block; font-size: .72rem; font-weight: 400; color: rgba(247,244,236,.6); margin-top: .15rem; }
.main-nav nav .nav-drop a:hover { background: rgba(247, 244, 236, .1); border: 0; }
.main-nav nav .nav-drop a.nav-drop-cta {
  border-top: 1px solid rgba(247,244,236,.14); border-radius: 0 0 .45rem .45rem;
  margin-top: .3rem; padding-top: .65rem;
}
.main-nav nav .nav-drop a.nav-drop-cta b { color: #d4b47c; }
.main-nav nav .nav-drop a.nav-drop-cta small { color: rgba(212,180,124,.75); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.5rem; font-size: .92rem; font-weight: 600; line-height: 1; letter-spacing: .015em; white-space: nowrap;
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--green-700); color: var(--white); }
.btn-solid:hover { background: var(--green-800); color: var(--white); }
.btn-brass { background: #8a6d38; color: #fffdf7; }
.btn-brass:hover { background: var(--brass-deep); color: #fffdf7; }
.btn-outline-light { border-color: rgba(255,255,255,.75); color: var(--white); background: rgba(10,38,29,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: var(--white); }
.btn-outline-dark { border-color: var(--green-700); color: var(--green-800); background: transparent; }
.btn-outline-dark:hover { background: var(--green-050); }
.btn-sm { padding: .55rem 1rem; font-size: .82rem; }
.btn-block { width: 100%; }
.external-tag { font-size: .72rem; font-weight: 500; opacity: .8; letter-spacing: .03em; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--green-900); transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) rotate(-90deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { opacity: 0; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; background: var(--green-950); color: var(--paper);
  display: flex; flex-direction: column; padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-nav-close {
  width: 46px; height: 46px; border: 1.5px solid rgba(247,244,236,.55); border-radius: var(--radius);
  background: rgba(247,244,236,.08); color: var(--paper); font-size: 1.4rem; line-height: 1;
}
.mobile-nav .brand img { width: 56px; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  color: var(--paper); text-decoration: none; font-family: var(--font-display);
  font-size: 1.55rem; padding: .85rem 0; border-bottom: 1px solid rgba(247,244,236,.12);
}
.mobile-nav nav a small { display: block; font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,244,236,.55); }
.mobile-nav nav a[aria-current="page"] { color: #d9c79a; }
.mobile-nav-actions { margin-top: auto; display: grid; gap: .75rem; }
.mobile-nav-phone {
  text-align: center; color: var(--paper); text-decoration: none;
  font-size: 1.05rem; font-weight: 600; padding: .5rem;
}
.mobile-nav-note { text-align: center; font-size: .72rem; color: rgba(247,244,236,.5); letter-spacing: .06em; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.surface-paper { background: var(--paper); }
.surface-white { background: var(--white); }
.surface-sand { background: var(--paper-deep); }
.surface-green { background: var(--green-950); color: var(--paper); }
.surface-green .eyebrow { color: #c9ab6b; }
.surface-green h1, .surface-green h2, .surface-green h3 { color: var(--white); }
.surface-green p { color: rgba(247,244,236,.82); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1.5px; background: currentColor; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; color: var(--green-950); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.005em; margin-bottom: 1.1rem; }
h3 { font-size: 1.3rem; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(78vh, 46rem);
  display: flex; align-items: flex-end; color: var(--white);
  isolation: isolate; overflow: hidden; background: var(--green-950);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; filter: brightness(1.12) saturate(1.06); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,38,29,.30) 0%, rgba(10,38,29,0) 26%),
              linear-gradient(200deg, rgba(10,38,29,0) 32%, rgba(10,38,29,.42) 68%, rgba(10,38,29,.74) 100%),
              linear-gradient(90deg, rgba(10,38,29,.38) 0%, rgba(10,38,29,0) 55%);
}
.hero-inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 6rem 1.25rem clamp(2.75rem, 6vw, 4.5rem); }
.hero .eyebrow { color: #d9c79a; }
.hero h1 { color: var(--white); max-width: 30ch; }
.hero .lede { color: rgba(247,244,236,.88); max-width: 36rem; margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-meta {
  margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid rgba(247,244,236,.25);
  font-size: .8rem; letter-spacing: .05em; color: rgba(247,244,236,.75);
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
}
.hero-meta span, .hero-meta a { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta span::before, .hero-meta a::before { content: ""; width: 5px; height: 5px; background: #c9ab6b; border-radius: 50%; }
.hero-meta a { color: rgba(247,244,236,.75); text-decoration: none; }
.hero-meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Compact hero for interior pages */
.hero-compact { min-height: 0; }
.hero-compact .hero-inner { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.hero-compact .hero-media img { object-position: 50% 55%; }

/* ---------- Stats strip ---------- */
.stats { background: var(--green-950); color: var(--paper); }
.stats-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: rgba(247,244,236,.12); border-left: 1px solid rgba(247,244,236,.12); border-right: 1px solid rgba(247,244,236,.12);
}
.stat { background: var(--green-950); padding: 1.6rem 1.25rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; color: #e8dcc0; line-height: 1.1; }
.stat span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(247,244,236,.62); }

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.split-media .photo-caption {
  position: absolute; left: .9rem; bottom: .9rem;
  background: rgba(10, 38, 29, .82); color: rgba(247,244,236,.92);
  font-size: .72rem; letter-spacing: .06em; padding: .45rem .8rem; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.split-body > * + * { margin-top: 1rem; }
.split-body p { color: var(--muted); }
.check-list { list-style: none; padding: 0; display: grid; gap: .55rem; margin-top: 1.25rem; }
.check-list li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .9rem; height: .45rem;
  border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(-45deg); transform-origin: left top; margin-left: .05rem;
}
.surface-green .check-list li::before { border-color: #c9ab6b; }
.split-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  container-type: inline-size;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: #c8bfa6; }
/* every card photo lives in .card-media — a fixed, clipped slot. A CMS
   transform (Sam's 1.25x zoom, a rotate, a nudge) paints as a stacking
   context ABOVE the card text and used to bleed ~22px into it; clipping
   the slot is the structural fix — the photo can no longer escape it. */
.card-media { display: block; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin-inline: auto; }
@supports (height: 1cqw) {
  /* slot height is tied to the CARD width, not the image's rendered
     width — a CMS width setting (e.g. 90%) narrows the photo but can no
     longer shorten the slot and shift the kicker/heading out of alignment */
  .card-media { height: 62.5cqw; }
  .card-media img { height: 100%; aspect-ratio: auto; }
}
/* Sam: zoom the Fiberglass & Specialty Woodworking card photo — presentation only,
   image file untouched; the .card-media slot clips the scaled overflow */
a.service-card[href="fiberglass-carpentry.html"] .card-media img { transform: scale(1.25); transform-origin: 50% 60%; }
.card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; background: var(--white); }
.card-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.card-body h3 { font-size: 1.22rem; }
.card-body p { font-size: .92rem; color: var(--muted); }
.card-link {
  margin-top: auto; padding-top: .9rem;
  font-size: .85rem; font-weight: 650; color: var(--green-700); text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
.card-link::after { content: "→"; transition: transform .18s ease; }
.service-card:hover .card-link { text-decoration: underline; text-underline-offset: 3px; }
.service-card:hover .card-link::after { transform: translateX(4px); }
/* Brokerage listing cards — no photo, so the top border carries the card edge */
.listing-card { border-top: 3px solid var(--brass); }
.listing-card .card-kicker { font-size: .95rem; letter-spacing: .06em; color: var(--green-800); }
.card-footnote { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }

/* ---------- Amenity grid ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.amenity {
  background: var(--white); padding: 1.5rem 1.35rem;
  font-size: .95rem; font-weight: 550; color: var(--ink);
}
.amenity small { display: block; font-weight: 450; color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.amenity::before {
  content: ""; display: block; width: 1.6rem; height: 2.5px; background: var(--brass); margin-bottom: .85rem;
}

/* ---------- Watch Hill band ---------- */
.wh-photo { position: relative; overflow: hidden; }
.wh-media { position: absolute; inset: 0; }
.wh-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.wh-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,38,29,.88) 0%, rgba(10,38,29,.62) 45%, rgba(10,38,29,.30) 100%);
}
.wh-panel {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.wh-card {
  background: rgba(247,244,236,.06); border: 1px solid rgba(247,244,236,.16);
  border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1.1rem;
}
.wh-card h3 { font-size: 1.1rem; color: #e8dcc0; }
.wh-card p { font-size: .9rem; margin-top: .2rem; }
.wh-card a { color: #c9ab6b; }
.wh-card a:hover { color: #e8dcc0; }
.wh-card .row { border-top: 1px solid rgba(247,244,236,.12); padding-top: 1.1rem; }

/* ---------- Quote / heritage block ---------- */
.heritage { text-align: center; max-width: 46rem; margin: 0 auto; }
.heritage blockquote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.35; color: var(--green-900); font-style: italic;
}
.heritage blockquote::before { content: "“"; color: var(--brass); }
.heritage blockquote::after { content: "”"; color: var(--brass); }
.heritage cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-950); color: var(--paper); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-size: cover; background-position: center;
}
.cta-mooring::before { background-image: url("../assets/img/mooring-field-1600.jpg"); }
.cta-docks::before   { background-image: url("../assets/img/golden-hour-docks-1600.jpg"); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); margin-bottom: .4rem; }
.cta-inner p { color: rgba(247,244,236,.8); max-width: 34rem; }
.cta-phone { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #e8dcc0; text-decoration: none; white-space: nowrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: #12231d; color: rgba(247,244,236,.72); font-size: .9rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer-brand img { width: 112px; height: auto; background: var(--paper); padding: .55rem .7rem; border-radius: 10px; margin-bottom: .9rem; }
.footer-tagline { display: block; color: #c9ab6b; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin: .2rem 0 .5rem; }
.footer-entity a { color: rgba(247,244,236,.72); text-decoration: none; }
.footer-entity a:hover { color: #fff; text-decoration: underline; }
.footer-brand strong { display: block; color: var(--paper); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .3rem; }
.footer-col .footer-h { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #c9ab6b; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: rgba(247,244,236,.78); text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; }
.footer-entity { border-top: 1px solid rgba(247,244,236,.12); padding-top: .9rem; margin-top: .9rem; }
.footer-entity strong { color: var(--paper); font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(247,244,236,.1); padding: 1.4rem 0 1.8rem;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  font-size: .76rem; color: rgba(247,244,236,.45);
}


/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 1.25rem;
}
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 38, 29, .72); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; background: var(--paper); border-radius: 6px;
  width: 100%; max-width: 34rem; max-height: 88vh; overflow: auto;
  padding: 2rem; box-shadow: var(--shadow-lift);
}
.modal-panel.wide { max-width: 44rem; }
.modal-close {
  position: absolute; top: .9rem; right: .9rem;
  width: 40px; height: 40px; border: none; border-radius: var(--radius);
  background: transparent; font-size: 1.4rem; color: var(--muted); line-height: 1;
}
.modal-close:hover { background: var(--paper-deep); color: var(--ink); }
.modal-panel h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.modal-panel > p { color: var(--muted); font-size: .94rem; margin-bottom: 1.4rem; }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .82rem; font-weight: 650; color: var(--green-900); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: .95rem; padding: .7rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--green-600); outline-offset: 1px; border-color: var(--green-600);
}
.form-field textarea { resize: vertical; min-height: 6rem; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; margin-top: .4rem; flex-wrap: wrap; }
.form-note { font-size: .74rem; color: var(--muted); }
.cert-upload { border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; background: #fbfaf6; }
.cert-upload .req { color: #9c5b1f; font-weight: 650; }
.cert-upload input[type="file"] { padding: .55rem; border: 1px dashed var(--line); border-radius: 6px; background: #fff; }
.cert-upload input[type="file"]::file-selector-button {
  background: var(--green-900); color: #fff; border: 0; border-radius: 4px;
  padding: .5rem .9rem; margin-right: .7rem; font: inherit; cursor: pointer;
}
.cert-name { font-size: .82rem; font-weight: 650; color: var(--green-900); }
.form-success { text-align: center; padding: 2rem 1rem; }
.form-success .mark {
  width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%;
  border: 2px solid var(--green-600); display: flex; align-items: center; justify-content: center;
}
.form-success .mark svg { width: 26px; height: 26px; stroke: var(--green-700); }
.form-success h3 { margin-bottom: .5rem; }
.form-success p { color: var(--muted); font-size: .92rem; }
.form-error { color: #9c3b2e; font-size: .8rem; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ---------- Yard forms page ---------- */
.form-page-note { max-width: 46rem; margin: 1.4rem auto 0; font-size: .88rem; color: var(--muted); text-align: center; line-height: 1.65; }
.picker-card { text-decoration: none; color: inherit; }
.picker-hint { font-size: .8rem; color: var(--muted); margin: 0 0 .9rem; }
/* One form at a time — only when JS is on; without JS all forms render. */
.js-forms .form-section { display: none; }
.js-forms .form-section.active { display: block; }
.picker-card.active { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass); }
.picker-card.active .card-link { visibility: hidden; position: relative; }
.picker-card.active .card-link::after { content: "Form open below \2193"; visibility: visible; position: absolute; left: 0; white-space: nowrap; color: var(--brass); }
.form-back { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--green-700); text-decoration: none; margin-bottom: 1rem; }
.form-back:hover { text-decoration: underline; }
.form-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 14px 40px -28px rgba(16, 32, 26, .35);
}
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding-bottom: 1.6rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.panel-head h2 { margin: .15rem 0 .3rem; }
.panel-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.yard-form fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.yard-form fieldset:last-of-type { margin-bottom: 1.2rem; }
.yard-form legend {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--green-800);
  padding: 0 0 .7rem; margin-bottom: 1rem; width: 100%; border-bottom: 1px solid var(--line);
}
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.4rem; }
.check-row {
  display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; line-height: 1.4;
  color: var(--ink); cursor: pointer; font-weight: 400;
}
.check-row input { margin-top: .2rem; accent-color: var(--green-700); flex: none; }
.check-row small { color: var(--muted); font-size: .76rem; }
.check-row.agree { font-size: .9rem; background: var(--green-050); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; padding-top: .55rem; }
.check-pair { display: flex; flex-direction: column; min-width: 0; }
.check-sub { margin: .35rem 0 .4rem 1.45rem; padding: .55rem .9rem; border-left: 2px solid var(--line); display: grid; gap: .45rem; }
.check-sub[hidden] { display: none; }
.check-sub-note { margin: 0; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.form-alert { margin: 1.4rem 0 0; padding: .85rem 1.1rem; font-weight: 700; color: #b3261e; background: #fdf1ef; border: 1px solid #ecc7c2; border-radius: var(--radius); font-size: .95rem; line-height: 1.5; }
.opt-details { margin-top: 1.1rem; }
.half-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.half-pair label { font-size: .82rem; font-weight: 650; color: var(--green-900); display: block; margin-bottom: .35rem; }
.half-pair input { font: inherit; font-size: .95rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; }
@media (max-width: 700px) { .check-grid { grid-template-columns: 1fr; } }



/* ---------- Marina page specifics ---------- */
.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--white); padding: 1.4rem 1.3rem; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--green-800); line-height: 1.15; }
.fact span { font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.dockage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.dockage-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 2rem; display: flex; flex-direction: column; gap: .7rem;
}
.dockage-card.featured { border-color: var(--green-700); box-shadow: var(--shadow-soft); }
.dockage-card .tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-deep); background: #f1e9d6;
  padding: .3rem .65rem; border-radius: 2px;
}
.dockage-card p { color: var(--muted); font-size: .93rem; }
.dockage-card ul { margin: .3rem 0 .6rem; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; display: grid; gap: .3rem; }
.dockage-card .btn { margin-top: auto; align-self: flex-start; }

.faq-item { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq-item h3 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 650; color: var(--green-900); margin-bottom: .35rem; }
.faq-item p { color: var(--muted); font-size: .93rem; max-width: 52rem; }

.location-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.location-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.location-card dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; font-size: .94rem; margin-top: 1rem; }
.location-card dt { font-weight: 700; color: var(--green-800); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .15rem; }
.location-card dd { color: var(--muted); }

.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.photo-strip img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }

/* ---------- Responsive ---------- */
/* Full nav + call button + reserve button needs ~1250px — below that the
   links collapse into the menu while both buttons stay visible. Between
   1250–1420px the header social icons hide (still in the menu + footer)
   and spacing tightens so the brand never collides with the nav. */
@media (max-width: 1420px) {
  .main-nav .social-links { display: none; }
  .main-nav { gap: 1rem; }
  .main-nav nav { gap: 1rem; }
  .brand img { width: 64px; }
}
@media (max-width: 1250px) {
  .main-nav nav { display: none; }
  .nav-toggle { display: block; margin-left: .75rem; }
}
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .brand img { width: 60px; }
  .brand-name { font-size: .98rem; }
  .brand-sub { font-size: .6rem; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: 5rem; }
  .split, .wh-panel, .location-band, .dockage-grid, .photo-strip { grid-template-columns: 1fr; }
  .split.flip > .split-media { order: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.2rem 1rem; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn, .split-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: 1fr; }
}

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
