/* ==========================================================================
   Elmwood Township Marina - shared styles
   Nautical editorial look: deep harbor navy, weathered brass, sail white.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  /* ---- raw brand palette (sticky note) ---- */
  --c-yellow:  #FFC700;
  --c-red:     #851919;
  --c-cyan:    #5CE1E6;   /* blue 1 */
  --c-teal:    #30A2A5;   /* blue 2 */
  --c-gray-lt: #E8E8E8;
  --c-gray-dk: #404040;
  --c-black:   #000000;
  --c-white:   #FFFFFF;

  /* ---- semantic tokens (mapped onto the palette) ---- */
  --navy:      var(--c-gray-dk);  /* primary dark surface + headings */
  --navy-deep: var(--c-black);    /* deepest dark: footer, hero base */
  --bay:       var(--c-teal);     /* primary blue accent / links */
  --bay-light: var(--c-cyan);     /* bright highlight */
  --sail:      var(--c-white);    /* light surface / light text on dark */
  --sand:      var(--c-gray-lt);  /* tinted section bg + borders */
  --brass:     var(--c-yellow);   /* CTA / gold accent */
  --brass-lt:  var(--c-cyan);     /* accent on dark (eyebrows, nav hover) */
  --accent:    var(--c-red);      /* secondary accent: kickers on light bg */
  --ink:       var(--c-gray-dk);  /* body text */
  --mist:      #6b6b6b;           /* muted neutral for small labels */

  --yellow-lt: #FFD84D;           /* lighter yellow for CTA hover */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Archivo', system-ui, sans-serif;

  --maxw: 1180px;
  --shadow: 0 18px 50px -22px rgba(10, 29, 40, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sail);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(64, 64, 64, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 199, 0, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sail);
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--brass-lt);
  display: grid; place-items: center;
  color: var(--brass-lt);
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin-top: 3px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  color: var(--sail);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-list > li > a:hover,
.nav-list > li.current > a {
  color: var(--brass-lt);
}
.nav-list > li.has-menu > a::after {
  content: '';
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

/* dropdowns */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--sail);
  border: 1px solid var(--sand);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.has-menu:hover .submenu,
.has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(4px); }
.submenu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.85rem;
  color: var(--navy);
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.submenu a:hover { background: var(--navy); color: var(--sail); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  color: var(--sail);
  width: 44px; height: 40px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--sail);
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border-radius: 4px;
  cursor: pointer;
  border: 1.5px solid var(--brass);
  transition: transform 0.18s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-solid { background: var(--brass); color: var(--navy-deep); }
.btn-solid:hover { background: var(--yellow-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--sail); transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: var(--sail); border-color: var(--navy); }
.btn-dark:hover { background: var(--bay); border-color: var(--bay); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--sail);
  overflow: hidden;
  /* fallback shown before the video loads, if it fails, or on reduced motion */
  background:
    radial-gradient(circle at 30% 20%, #30a2a5 0%, transparent 55%),
    linear-gradient(160deg, #000000 0%, #1a4d4f 55%, #30a2a5 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.68) 100%);
}
/* subtle wave texture */
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0 64l60 10.7C120 85 240 107 360 101.3 480 96 600 64 720 53.3 840 43 960 53 1080 64s240 21 300 26.7l60 5.3V120H0z'/%3E%3C/svg%3E") no-repeat bottom / cover;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 90px; }
.hero .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero p {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.9);
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
h2.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 18ch;
}
.lede { font-size: 1.05rem; color: #404040; max-width: 60ch; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

.intro-band {
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

/* teal feature band: a colored anchor for key CTAs (used sparingly) */
.band-feature {
  background: linear-gradient(135deg, #0c3b3d 0%, #2b9396 100%);
  color: var(--sail);
}
.band-feature .section-title { color: var(--sail); }
.band-feature .kicker { color: var(--brass-lt); }
.band-feature .lede { color: rgba(255,255,255,0.9); }

/* dockage cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px -20px rgba(10,29,40,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
/* cycling color accent bar distributes the palette across card grids */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bay);
  z-index: 3;
}
.card:nth-child(4n+2)::before { background: var(--brass); }
.card:nth-child(4n+3)::before { background: var(--accent); }
.card:nth-child(4n+4)::before { background: var(--bay-light); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 11/10; background: var(--bay-light); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 22px; }
.card .body small { color: var(--mist); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.card .body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--navy); margin: 6px 0 14px; }
.card .body a.read { color: var(--bay); font-weight: 600; font-size: 0.86rem; }
.card .body a.read::after { content: ' \2192'; }

/* amenities grid */
.amen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.amen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  color: var(--sail);
  background: var(--bay);
}
.amen:nth-child(4n+2) { background: var(--bay-light); }
.amen:nth-child(4n+3) { background: var(--brass); }
.amen:nth-child(4n+4) { background: var(--accent); }
.amen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,29,40,0.85)); }
.amen span { position: relative; z-index: 2; padding: 18px 20px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery a { border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery a:hover img { transform: scale(1.08); }

/* feature stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--bay); line-height: 1; }
.stat .lbl { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { font-size: 0.9rem; transition: color 0.15s; }
.footer-grid a:hover { color: var(--brass-lt); }
.footer-brand .brand-name { color: var(--sail); }
.footer-brand p { font-size: 0.9rem; margin-top: 14px; max-width: 30ch; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--brass); color: var(--navy-deep); border-color: var(--brass); }
.footer-base {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* page banner for interior pages */
.page-banner {
  background: linear-gradient(160deg, #0a2e30 0%, #1f7d80 100%);
  color: var(--sail);
  text-align: center;
  padding: 70px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 10%, rgba(92,225,230,0.4), transparent 60%);
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner .kicker { color: var(--brass-lt); }
.page-banner h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibility helpers ---------- */
/* Skip link: hidden until focused via keyboard */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 200;
  background: var(--brass);
  color: var(--navy-deep);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* Visible, high-contrast focus indicator on any background (508 / WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--c-black);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--brass);
}

.primary-nav { display: flex; align-items: center; }

/* ---------- Hero video + pause/play control ---------- */
.hero-video-toggle {
  position: absolute;
  right: 18px;
  bottom: 26px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.62);
  border: 1.5px solid rgba(255,255,255,0.75);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.hero-video-toggle:hover { background: rgba(0,0,0,0.82); transform: translateY(-1px); }
.hero-video-toggle svg { flex: none; }
/* Icon reflects state: aria-pressed=true => playing => show pause icon */
.hero-video-toggle .icon-play { display: none; }
.hero-video-toggle[aria-pressed="false"] .icon-pause { display: none; }
.hero-video-toggle[aria-pressed="false"] .icon-play { display: inline; }


@media (max-width: 900px) {
  .split, .stats, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > :first-child { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }
  .nav-list {
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,199,0,0.3);
    padding: 10px 14px 26px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-list.open { transform: none; }
  .nav-list > li > a { padding: 14px 10px; }
  .submenu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 6px 14px;
  }
  .submenu a { color: rgba(255,255,255,0.8); }
  .submenu a:hover { background: transparent; color: var(--brass-lt); }
  .has-menu > a::after { float: right; margin-top: 8px; }
}
