/* ============================================================
   CBSIA — Chesapeake Bay Seafood Industries Association
   Modern, minimal, maritime. Static single-page site.
   ============================================================ */

:root {
  /* Palette */
  --navy:      #0c2733;
  --navy-2:    #103240;
  --bay:       #1d6e87;
  --bay-2:     #2a93ad;
  --rust:      #c0512f;
  --rust-2:    #a8452a;
  --sand:      #f7f2e9;
  --sand-2:    #efe6d6;
  --cream:     #fffdf9;
  --ink:       #15252e;
  --muted:     #4f5d66;
  --line:      rgba(21, 37, 46, 0.12);
  --line-light:rgba(255, 255, 255, 0.16);
  --white:     #ffffff;

  /* Type */
  --display: "Montserrat", system-ui, -apple-system, sans-serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -24px rgba(12, 39, 51, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(12, 39, 51, 0.4);

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--bay); text-decoration: none; }
a:hover { color: var(--rust-2); }

/* Display headings use Montserrat SemiBold; small component titles use Inter */
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--bay-2); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--rust); color: #fff; box-shadow: 0 10px 24px -12px rgba(201, 91, 59, 0.7); }
.btn-primary:hover { background: var(--rust-2); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -16px rgba(12,39,51,0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.site-header.is-scrolled .brand { color: var(--navy); }
.brand-mark { display: grid; place-items: center; color: inherit; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-abbr { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.01em; color: inherit; }
.brand-full { font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.78; color: inherit; font-weight: 500; }

.nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 28px); }
.nav > a {
  color: rgba(255,255,255,0.92); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0;
}
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav > a:hover { color: #fff; }
.nav > a:hover::after { transform: scaleX(1); }
.site-header.is-scrolled .nav > a { color: var(--ink); }
.site-header.is-scrolled .nav > a:hover { color: var(--rust-2); }
.nav-cta {
  background: var(--rust); color: #fff !important; padding: 9px 20px !important; border-radius: 999px; font-weight: 600;
  box-shadow: 0 10px 22px -14px rgba(201,91,59,0.8);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--rust-2); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease, background .3s; }
.site-header.is-scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: var(--navy); padding: 8px var(--gutter) 24px;
  display: flex; flex-direction: column;
  transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-nav a { color: rgba(255,255,255,0.92); padding: 14px 4px; border-bottom: 1px solid var(--line-light); font-weight: 500; font-size: 1.05rem; }
.mobile-nav a:last-child { border-bottom: 0; color: var(--bay-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,28,38,0.72) 0%, rgba(8,28,38,0.55) 45%, rgba(8,28,38,0.9) 100%),
    linear-gradient(90deg, rgba(8,28,38,0.7) 0%, rgba(8,28,38,0.05) 70%);
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(120px, 18vh, 200px) clamp(56px, 9vh, 96px); max-width: 860px; }
.hero h1, .hero .eyebrow { color: #fff; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 600;
  color: var(--sand); margin-bottom: 22px; display: inline-block;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; text-shadow: 0 2px 30px rgba(0,0,0,0.3); text-wrap: balance; }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.32rem); max-width: 620px; color: rgba(255,255,255,0.92); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 48px); padding-block: clamp(36px, 5vw, 56px);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--display); font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.stat-num .plus { color: var(--bay-2); }
.stat-label { font-size: 0.92rem; color: rgba(255,255,255,0.72); line-height: 1.45; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 10vw, 130px); }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 700;
  color: var(--rust-2); margin-bottom: 16px;
}
.kicker-light { color: var(--bay-2); }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.section-lede { margin-top: 18px; font-size: 1.12rem; color: var(--muted); text-wrap: balance; }

/* ---------- About (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split-text h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 24px; }
.split-text p { color: var(--muted); margin-bottom: 18px; max-width: 46ch; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media figcaption { margin-top: 14px; font-size: 0.86rem; color: var(--muted); font-style: italic; text-wrap: pretty; }

/* ---------- Mission ---------- */
.mission { background: var(--navy); color: #fff; }
.mission .section-head h2 { color: #fff; }
.mission .section-lede { color: rgba(255,255,255,0.74); }
/* Editorial hairline rows, no boxes */
.mission-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(40px, 6vw, 80px); }
.mission-grid li { display: flex; gap: 16px; align-items: flex-start; padding: 26px 0 24px; border-top: 1px solid var(--line-light); }
.mission-grid h3 { font-size: 1.15rem; color: #fff; margin-bottom: 7px; }
.mission-grid p { color: rgba(255,255,255,0.72); font-size: 0.97rem; line-height: 1.55; }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bay); display: grid; place-items: center; margin-top: 3px; }
.check::after { content: ""; width: 10px; height: 5px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg) translateY(-1px); }

/* ---------- Leadership ---------- */
.bio { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; margin-bottom: clamp(48px, 7vw, 80px); padding: clamp(24px, 4vw, 44px); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.bio-photo { margin: 0; }
.bio-photo img { width: 100%; max-width: 220px; border-radius: var(--radius-sm); object-fit: cover; aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm); }
.bio-text h3 { font-size: 1.7rem; }
.bio-role { color: var(--rust-2); font-weight: 600; margin-bottom: 16px; font-size: 0.95rem; letter-spacing: 0.02em; }
.bio-text p { color: var(--muted); margin-bottom: 14px; }
.bio-text p:last-child { margin-bottom: 0; }

.roster { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); }
.roster-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--rust-2); margin-bottom: 20px; font-family: var(--sans); font-weight: 700; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.people { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.people li { display: flex; flex-direction: column; }
.person-name { font-family: var(--display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.person-title { font-size: 0.88rem; color: var(--muted); }

/* ---------- Challenges ---------- */
.challenges { color: #fff; background: var(--navy-2); }
.challenges .section-head h2 { color: #fff; }
.challenges .section-lede { color: rgba(255,255,255,0.78); }

/* Featured advocacy photo */
.challenge-feature { margin: 0 0 clamp(44px, 6vw, 68px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.challenge-feature img { width: 100%; height: auto; display: block; }
.challenge-feature figcaption { padding: 16px 22px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-light); border-top: 0; color: rgba(255,255,255,0.82); font-size: 0.92rem; line-height: 1.5; text-wrap: pretty; }

/* Numbered hairline rows, no boxes */
.challenge-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(40px, 6vw, 80px); margin-bottom: clamp(44px, 6vw, 64px); }
.challenge-card { padding: 26px 0 24px; border-top: 1px solid var(--line-light); }
.challenge-num { font-family: var(--display); font-size: 1.4rem; color: var(--bay-2); font-weight: 600; letter-spacing: 0; display: block; margin-bottom: 8px; line-height: 1; }
.challenge-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.challenge-card p { color: rgba(255,255,255,0.72); font-size: 0.97rem; line-height: 1.55; max-width: 42ch; }

.resources { border-top: 1px solid var(--line-light); padding-top: clamp(32px, 4vw, 44px); }
.resources h3 { color: #fff; font-size: 1.2rem; margin-bottom: 22px; }
.resource-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; max-width: 760px; }
.resource-links a { color: rgba(255,255,255,0.9); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; transition: color .2s, gap .2s; }
.resource-links a:hover { color: var(--bay-2); gap: 12px; }

/* ---------- Work / Timeline ---------- */
.timeline { list-style: none; padding: 0; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--bay), var(--sand-2)); }
.timeline li { position: relative; padding-left: 48px; padding-bottom: clamp(28px, 4vw, 40px); }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); border: 3px solid var(--bay); box-shadow: 0 0 0 5px var(--sand); }
.timeline-body h3 { font-size: 1.28rem; margin-bottom: 8px; }
.timeline-body p { color: var(--muted); max-width: 62ch; }

/* ---------- Join ---------- */
.join { background: linear-gradient(135deg, var(--bay) 0%, var(--navy) 100%); color: #fff; }
.join-inner { max-width: 760px; }
.join .section-head, .join-text { }
.join-text h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 22px; }
.join-text p { color: rgba(255,255,255,0.86); margin-bottom: 18px; }
.join-tradition { border-left: 3px solid var(--rust); padding-left: 20px; font-style: italic; color: rgba(255,255,255,0.92) !important; }
.join-text .btn { margin-top: 14px; }

/* ---------- Contact ---------- */
.contact { background: var(--sand-2); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 18px; }
.contact-lede { color: var(--muted); margin-bottom: 32px; }
.contact-details { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-details li { display: flex; flex-direction: column; gap: 6px; }
.contact-label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700; color: var(--rust-2); }
.contact-details a { color: var(--ink); font-weight: 600; }
.contact-details a:hover { color: var(--rust-2); }
.contact-note { color: var(--muted); font-weight: 400; font-size: 0.9rem; }

.contact-form-wrap { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.req { color: var(--rust-2); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bay); box-shadow: 0 0 0 3px rgba(29,110,135,0.14); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-ok { color: #2f7d4f; font-weight: 600; }
.form-status.is-err { color: var(--rust-2); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding-top: clamp(48px, 7vw, 80px); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer-brand { max-width: 360px; }
.footer-abbr { color: #fff; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 0.95rem; color: rgba(255,255,255,0.72); }
.footer-addr { margin-top: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--bay-2); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 30px; font-size: 0.84rem; color: rgba(255,255,255,0.55); }

/* ---------- Reveal animation (progressive enhancement) ----------
   Only hide content when JS is active (html.js). With no JS, everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .mission-grid { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .roster { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-full { display: none; }
  .bio { grid-template-columns: 1fr; }
  .bio-photo img { max-width: 180px; }
  .challenge-grid { grid-template-columns: 1fr; }
  .resource-links { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .people-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .hero { min-height: 86vh; }
  .hero-actions .btn { flex: 1 1 auto; }
}
