/* CVMA Chapter 50-2 — site styles */
:root {
  --black: #111214;
  --charcoal: #1c1e22;
  --steel: #2a2d33;
  --line: #3a3e46;
  --text: #e9e9ea;
  --muted: #a9adb5;
  --red: #b3202a;
  --red-dark: #8c1820;
  --gold: #c9a13b;
  --paper: #f5f4f0;
  --ink: #1b1c1f;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
}
.brand img { height: 46px; width: auto; }
.brand .brand-text { line-height: 1.1; }
.brand strong { display: block; font-size: 1.1rem; letter-spacing: .04em; }
.brand span { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.brand:hover { color: #fff; }

.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600;
  font-size: .92rem; letter-spacing: .03em;
  padding: 8px 12px; border-radius: 4px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--steel); color: #fff; }
.nav a.cta { background: var(--red); color: #fff; }
.nav a.cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: #fff; font-size: 1.3rem; padding: 4px 10px; border-radius: 4px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 71px;
    background: var(--black); flex-direction: column; padding: 8px 20px 16px;
    border-bottom: 3px solid var(--red);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(17,18,20,.75), rgba(17,18,20,.9)),
    url("../img/hero.jpg") center/cover no-repeat,
    var(--charcoal);
  color: #fff; text-align: center;
  padding: 110px 0 100px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 .3em;
  letter-spacing: .03em; text-transform: uppercase;
}
.hero p { font-size: 1.15rem; color: #d6d7da; max-width: 680px; margin: 0 auto 1.6em; }
.hero .tag {
  display: inline-block; color: var(--gold); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px;
}

.page-hero {
  background: var(--charcoal); color: #fff; padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: .03em; }
.page-hero p { margin: .4em 0 0; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 4px;
  font-weight: 700; text-decoration: none; letter-spacing: .03em;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: #e9e7e1; }
section.dark { background: var(--charcoal); color: var(--text); }
section.dark a { color: #ff6b73; }
h2 { font-size: 1.8rem; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .03em; }
h2::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--red); margin-top: 10px;
}
.center { text-align: center; }
.center h2::after { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.1rem; max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: #fff; border-radius: 6px; padding: 26px;
  border-top: 4px solid var(--red);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.card h3 { margin: 0 0 .4em; }
section.dark .card { background: var(--steel); color: var(--text); }

.notice {
  border-left: 4px solid var(--gold); background: #fff8e6;
  padding: 14px 18px; border-radius: 4px; margin: 24px 0;
}
.placeholder {
  background: #fff3cd; border: 1px dashed #c9a13b; padding: 0 4px; border-radius: 3px;
}

/* ---------- Events ---------- */
.event {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  background: #fff; border-radius: 6px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 16px;
}
.event-date {
  background: var(--black); color: #fff; border-radius: 4px; text-align: center;
  padding: 10px 6px; align-self: start;
}
.event-date .mo { display: block; color: var(--red); font-weight: 800; letter-spacing: .1em; font-size: .85rem; }
.event-date .dy { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.event h3 { margin: 0 0 .2em; }
.event .meta { color: #666; font-size: .92rem; margin-bottom: .5em; }
@media (max-width: 520px) { .event { grid-template-columns: 1fr; } .event-date { width: 96px; } }

/* ---------- Officers ---------- */
.officer { text-align: center; }
.officer .role { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }
.officer .name { font-size: 1.15rem; font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; background: #ddd; aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid #bbb; border-radius: 4px;
  font: inherit; background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--red); border-color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted); padding: 44px 0 24px; font-size: .92rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: .82rem; }

/* ---------- Calendar ---------- */
.calendar-wrap { background:#fff; border-radius:6px; padding:8px; box-shadow:0 2px 10px rgba(0,0,0,.06); }
.calendar-wrap iframe { width:100%; border:0; display:block; }
#chapter-cal { height:640px; }
#chapter-cal.cal-agenda { height:540px; }
@media (max-width: 700px) { #chapter-cal { height:520px; } }
.cal-views { display:flex; gap:8px; margin:0 0 12px; flex-wrap:wrap; }
.cal-view { font:inherit; font-weight:700; padding:9px 18px; border-radius:4px; border:2px solid var(--ink); background:#fff; color:var(--ink); cursor:pointer; min-height:44px; }
.cal-view[aria-pressed="true"] { background:var(--red); border-color:var(--red); color:#fff; }

/* ---------- Sponsors ---------- */
.tier ul { padding-left:1.2em; margin:.6em 0 0; }
.tier .amt { font-size:1.5rem; font-weight:800; color:var(--red); }
.sponsor-grid { display:grid; gap:18px; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); margin-top:22px; }
.sponsor { display:flex; align-items:center; justify-content:center; min-height:130px; background:#fff; border-radius:6px;
  padding:18px; box-shadow:0 2px 10px rgba(0,0,0,.06); text-decoration:none; color:var(--ink); font-weight:700; text-align:center; }
.sponsor img { max-height:90px; width:auto; }

/* ---------- Application fields ---------- */
.apply-fields { border:1px solid #ccc; border-radius:6px; padding:16px 16px 12px; margin:0 0 16px; background:#fafaf7; }
.apply-fields legend { font-weight:700; padding:0 6px; }

/* ---------- Zeffy / Support ---------- */
.campaign { display:flex; flex-direction:column; }
.campaign .btn { align-self:flex-start; margin-top:auto; }
.zeffy-box { min-height:120px; margin:8px 0 16px; }
.zeffy-store { background:#fff; border-radius:6px; padding:8px; box-shadow:0 2px 10px rgba(0,0,0,.06); min-height:200px; }
.req { padding-left:1.2em; margin:.4em 0 0; }
.bike-note { font-weight:600; margin:4px 0 12px; }

/* ---------- Resources ---------- */
.crisis { background:var(--red-dark); color:#fff; }
.crisis h2::after { background:#fff; }
.crisis .btn-ghost { border-color:#fff; color:#fff; }
.crisis a:not(.btn) { color:#fff; }
.res h3 { font-size:1.1rem; }
.res-addr { color:#555; font-size:.93rem; margin:.3em 0; }
.res-phone a { font-weight:700; font-size:1.05rem; text-decoration:none; }
.res-link { font-weight:600; }
.crisis-foot { margin-top:26px; padding:12px 14px; background:var(--steel); border-radius:4px; color:var(--text); }
.crisis-foot a { color:#fff; text-decoration:underline; }

.officer-group { margin:28px 0 14px; color:#fff; text-transform:uppercase; letter-spacing:.08em; font-size:.9rem; }
.officer-mail { display:inline-block; margin-top:6px; font-size:.9rem; color:#ff9aa0; word-break:break-all; }
.officer-note { color:var(--muted); font-size:.92rem; margin-top:14px; }

.hero-logo { width:clamp(140px,22vw,200px); height:auto; margin:0 auto 18px; }

.site-footer { padding-top:0; }
.footer-banner { margin:0 0 40px; border-bottom:3px solid var(--red); }
.footer-banner { background:#000; }
.footer-banner img { width:100%; max-width:1400px; height:auto; display:block; margin:0 auto; }

/* =====================================================================
   v2 design layer (Phase 1 polish): wider layout, typography, bands
   ===================================================================== */
:root { --max: 1440px; --head: "Oswald", "Arial Narrow", Arial, sans-serif; --body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif; }
body { font-family: var(--body); font-size: 17px; line-height: 1.65; }
h1, h2, h3, .brand strong, .nav a, .btn, .tag, .role, .event-date, .officer-group { font-family: var(--head); }
h1, h2 { font-weight: 600; letter-spacing: .02em; }
h3 { font-weight: 600; letter-spacing: .01em; font-size: 1.3rem; }
.wrap { padding: 0 clamp(20px, 4vw, 48px); }
section { padding: clamp(56px, 7vw, 96px) 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.lead { font-size: 1.15rem; max-width: 820px; }
.nav a { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.brand strong { font-size: 1.3rem; font-weight: 600; letter-spacing: .05em; }
.btn { text-transform: uppercase; letter-spacing: .08em; font-weight: 500; padding: 14px 28px; }
.card { border-radius: 8px; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover, .card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.grid { gap: clamp(18px, 2vw, 28px); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Two-column split sections */
.split { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .lead { max-width: none; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Home hero v2 */
.hero2 { background: radial-gradient(ellipse at 75% 40%, rgba(179,32,42,.35), transparent 60%), var(--black); color: #fff; padding: clamp(56px, 8vw, 112px) 0; }
.hero2 .split { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
.hero2 .tag { display:inline-block; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .9rem; margin-bottom: 14px; }
.hero2 h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 .35em; text-transform: uppercase; }
.hero2 p { font-size: 1.2rem; color: #d6d7da; max-width: 620px; margin: 0 0 1.8em; }
.hero2 .btn-row { justify-content: flex-start; }
.hero2 .hero-art { display:flex; justify-content:center; }
.hero2 .hero-art img { width: min(100%, 440px); height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.5)); }
@media (max-width: 900px) { .hero2 { text-align:center; } .hero2 .btn-row { justify-content:center; } .hero2 p { margin-left:auto; margin-right:auto; } .hero2 .hero-art { order:-1; } .hero2 .hero-art img { width: 220px; } }

/* Feature icons strip */
.feature { background:#fff; border-radius:8px; padding: 28px; border-top: 4px solid var(--red); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.feature .num { font-family: var(--head); color: var(--red); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }
.feature h3 { margin: .3em 0 .4em; }
.feature p { margin: 0; color: #444; }

/* Event callout band */
.callout { background: var(--red-dark); color:#fff; }
.callout .split { grid-template-columns: auto minmax(0,1fr) auto; align-items:center; }
.callout .date-big { font-family: var(--head); text-align:center; background: var(--black); border-radius: 8px; padding: 18px 26px; line-height:1; }
.callout .date-big .m { display:block; color: var(--gold); letter-spacing:.15em; font-size: 1rem; }
.callout .date-big .d { display:block; font-size: 3.4rem; font-weight:700; }
.callout .date-big .y { display:block; font-size: .95rem; color: var(--muted); letter-spacing:.1em; }
.callout h2 { margin:0 0 .2em; color:#fff; } .callout h2::after { display:none; }
.callout p { margin:0; color:#f1d6d8; font-size:1.1rem; }
.callout .btn-ghost { border-color:#fff; color:#fff; }
@media (max-width: 900px) { .callout .split { grid-template-columns: 1fr; text-align:center; justify-items:center; } }

/* Help band */
.help-band { background: var(--charcoal); color: var(--text); }
.help-band h2 { color:#fff; }
.help-band .lead { color: #cfd1d6; }
.help-band .crisis-box { background: var(--black); border: 2px solid var(--red); border-radius: 8px; padding: 28px; }
.help-band .crisis-box h3 { color:#fff; margin-top:0; }
.help-band .crisis-box a.big { display:block; font-family: var(--head); font-size: 2rem; color:#fff; text-decoration:none; margin: 6px 0; }
.help-band .crisis-box p { margin: 6px 0 0; color: var(--muted); }

/* Sponsor strip */
.sponsor-strip { display:flex; flex-wrap:wrap; gap:24px; align-items:center; }
.sponsor-strip .sponsor { min-height:110px; min-width: 180px; }
.sponsor-grid .sponsor img, .sponsor-strip .sponsor img { max-height: 110px; width:auto; }

/* Join CTA band */
.join-band { background: var(--black); color:#fff; text-align:center; }
.join-band h2 { color:#fff; } .join-band h2::after { margin-left:auto; margin-right:auto; }
.join-band p { color:#cfd1d6; max-width: 720px; margin: 0 auto 1.6em; font-size:1.15rem; }

/* Page hero v2: taller, left aligned with accent */
.page-hero { padding: clamp(48px, 6vw, 84px) 0; background: radial-gradient(ellipse at 85% 30%, rgba(179,32,42,.28), transparent 55%), var(--charcoal); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero p { font-size: 1.15rem; }
@media (max-width: 900px) { .hero2 .split { grid-template-columns: 1fr; } }
.sponsor { flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
.sponsor-name { font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-align: center; line-height: 1.2; padding-bottom: 10px; border-bottom: 2px solid var(--red); width: 100%; }
.sponsor:hover .sponsor-name { color: var(--red); }
.sponsor { transition: transform .15s ease, box-shadow .15s ease; }
.sponsor:hover, .sponsor:focus-visible { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.sponsor:active { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.zeffy-fallback { font-size: .92rem; color: #555; margin: 10px 0 0; }

/* Photos (Phase 2) */
.hero-photo { background: linear-gradient(90deg, rgba(17,18,20,.96) 0%, rgba(17,18,20,.86) 45%, rgba(17,18,20,.55) 100%), url("../img/photos/state-meeting-2026.jpg") center/cover no-repeat, var(--black); }
.photo-grid { display:grid; gap: clamp(16px,2vw,24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 24px; }
.photo { margin:0; background:#fff; border-radius:8px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.08); transition: transform .15s ease, box-shadow .15s ease; }
.photo:hover { transform: translateY(-3px); box-shadow:0 10px 26px rgba(0,0,0,.14); }
.photo img { width:100%; aspect-ratio: 4/3; object-fit: cover; display:block; }
.photo figcaption { padding: 14px 16px 16px; }
.photo figcaption strong { display:block; font-family: var(--head); font-weight:600; letter-spacing:.02em; }
.photo figcaption span { display:block; color:#555; font-size:.95rem; margin-top:2px; }
