/* ============================================================
   DAV Department of Nevada (nvdav12.org)
   Colors per DAV Brand Stylebook v4.0 (2021)
   Typography: web-friendly substitutes for Klavika/Minion Pro
   ADA target: WCAG 2.1 Level AA
   ============================================================ */

:root {
  /* PRIMARY DAV palette */
  --gunmetal: #5B5C5A;            /* Gunmetal Grey, primary */
  --gunmetal-deep: #2E2F2D;       /* darker for body text / footer */
  --gunmetal-darker: #1B1C1B;     /* very dark surface */
  --nightvision: #BED12B;         /* Nightvision Green, accent ONLY */
  --nightvision-soft: #d8e166;    /* lightened for subtle accents */

  /* SECONDARY DAV palette */
  --dav-blue: #005D7D;
  --dav-blue-deep: #00415A;
  --dav-blue-soft: #1B7AA0;
  --tan: #AA985E;
  --olive: #2D430C;

  /* TERTIARY DAV palette */
  --red: #B30838;
  --red-deep: #840628;
  --orange: #EF7623;

  /* Neutral surfaces */
  --paper: #F7F4EC;
  --paper-2: #ECE6D5;
  --line: #d8d3c4;
  --ink: #181818;
  --ink-2: #383838;                /* body text on white, 10.5:1 contrast */
  --muted: #595959;                /* meta text, 7:1 contrast */

  --shadow-card: 0 1px 2px rgba(27, 28, 27, 0.07), 0 8px 24px rgba(27, 28, 27, 0.10);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.08);

  /* Typography, free substitutes for Klavika / Minion Pro / Helvetica Neue */
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-subhead: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(1rem, 3vw, 2rem);

  --radius: 4px;
  --radius-sm: 3px;
  --focus-ring: 0 0 0 3px #fff, 0 0 0 6px var(--dav-blue);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) {
  body { font-size: 19px; }
}

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

/* ============ Accessibility primitives ============ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--dav-blue);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-subhead);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus {
  left: 1rem;
  top: 0;
  outline: 3px solid var(--nightvision);
  outline-offset: 2px;
}

/* Visible, high-contrast focus ring on every interactive element */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cta-button:focus-visible {
  outline: 3px solid var(--nightvision);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.site-header a:focus-visible,
.join a:focus-visible,
.chapter-spotlight a:focus-visible,
.priorities a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--nightvision);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hide content visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============ Links & buttons base ============ */
a {
  color: var(--dav-blue);   /* 7.6:1 contrast on white, passes AA & AAA */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
a:hover { color: var(--red); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ Type ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  color: var(--gunmetal-deep);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); text-transform: uppercase; }
h3 {
  font-family: var(--font-subhead);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
h4 {
  font-family: var(--font-subhead);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-subhead);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);             /* on paper, 7:1 contrast */
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.eyebrow-onDark { color: var(--nightvision); }  /* Nightvision green on dark, 9:1 contrast */

/* ============ Proposal banner ============ */
.proposal-banner {
  background: #FEF3C7;
  color: #5b2010;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.proposal-banner .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #b45309;
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
.proposal-banner .sep { color: #92400e; opacity: 0.7; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ Veterans Crisis Line bar ============ */
.crisis-bar {
  background: var(--red);
  color: #fff;
  font-size: 0.92rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid var(--red-deep);
}
.crisis-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.crisis-label {
  font-family: var(--font-subhead);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.crisis-icon { color: var(--nightvision); font-size: 1.1em; }
.crisis-actions { display: inline-flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.crisis-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 3px;
  font-weight: 500;
  padding: 0.25rem 0;
}
.crisis-link:hover {
  color: #fff;
  text-decoration-color: var(--nightvision);
}
.crisis-link strong {
  font-family: var(--font-display);
  font-size: 1.05em;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.crisis-sep { color: rgba(255,255,255,0.5); }
@media (max-width: 600px) {
  .crisis-inner { justify-content: center; text-align: center; }
  .crisis-label { font-size: 0.85rem; }
}

/* ============ Header ============
   White background per DAV Stylebook page 4, full-color logo is
   authorized only on white backgrounds. Department association lockup
   (logo + vertical green rule + Department text) per page 13. */
.site-header {
  background: #fff;
  color: var(--gunmetal-deep);
  border-bottom: 4px solid var(--nightvision);
  box-shadow: 0 1px 0 var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  min-height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--gunmetal-deep);
  text-decoration: none;
  flex-shrink: 0;
  min-height: 64px;
}
.brand:hover { color: var(--gunmetal-deep); }

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .brand-logo { height: 64px; }
}

/* Per stylebook p.13: vertical rule between DAV logo and association text,
   matching the color of the "V" (Nightvision Green). The space on both
   sides of the line must equal the width of the straight bar in the "D". */
.brand-rule {
  display: block;
  width: 2px;
  height: 44px;
  background: var(--nightvision);
  flex-shrink: 0;
  margin: 0 0.25rem;
}
@media (min-width: 1024px) {
  .brand-rule { height: 52px; }
}

.brand-dept {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-subhead);
}
.brand-dept-1 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gunmetal);
  text-transform: uppercase;
}
.brand-dept-2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gunmetal-deep);
  text-transform: uppercase;
  margin-top: 0.15rem;
}
@media (min-width: 1024px) {
  .brand-dept-2 { font-size: 1.75rem; }
}

/* Nav disclosure: <details><summary> hamburger pattern.
   Desktop = inline nav, hamburger hidden. Mobile = hamburger,
   nav drops down absolute when [open]. JS-free, keyboard-native. */
.nav-disclosure {
  margin-left: auto;
  position: relative;
}
.nav-disclosure > summary { display: none; }
.nav-disclosure > .site-nav { display: flex !important; }
.site-nav-join { display: none; }

.site-nav {
  gap: 0.25rem;
  align-items: center;
}
.site-nav a {
  color: var(--gunmetal-deep);
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 0.95rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--dav-blue-deep);
  border-bottom-color: var(--nightvision);
}
.site-nav a[aria-current] {
  color: var(--dav-blue-deep);
  border-bottom-color: var(--dav-blue);
}

.cta-button {
  background: var(--red);
  color: #fff;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.cta-button:hover,
.cta-button:focus-visible { background: var(--red-deep); color: #fff; }

@media (max-width: 880px) {
  .header-inner { gap: 1rem; }
  .cta-button { padding: 0.75rem 1rem; font-size: 0.85rem; }

  /* Hamburger button */
  .nav-disclosure > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--gunmetal-deep);
    background: transparent;
    border: 2px solid var(--gunmetal-deep);
    border-radius: var(--radius-sm);
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s, color 0.2s;
  }
  .nav-disclosure > summary::-webkit-details-marker { display: none; }
  .nav-disclosure > summary::marker { content: ""; }
  .nav-disclosure > summary:hover,
  .nav-disclosure > summary:focus-visible {
    background: var(--gunmetal-deep);
    color: #fff;
  }
  .nav-toggle .bars {
    display: block;
    position: relative;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: background-color 0.2s;
  }
  .nav-toggle .bars::before,
  .nav-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s, top 0.2s;
  }
  .nav-toggle .bars::before { top: -7px; }
  .nav-toggle .bars::after { top: 7px; }
  .nav-disclosure[open] .nav-toggle .bars { background: transparent; }
  .nav-disclosure[open] .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
  .nav-disclosure[open] .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

  /* Nav: hidden until [open], dropdown panel below header */
  .nav-disclosure > .site-nav { display: none !important; }
  .nav-disclosure[open] > .site-nav {
    display: flex !important;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--nightvision);
    box-shadow: var(--shadow-card);
    padding: 0.4rem;
    min-width: 240px;
    z-index: 60;
    border-radius: var(--radius-sm);
  }
  .nav-disclosure[open] > .site-nav a {
    width: 100%;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0.85rem 1rem;
    justify-content: flex-start;
  }
  .nav-disclosure[open] > .site-nav a:last-child { border-bottom: 0; }
  .nav-disclosure[open] > .site-nav a[aria-current] { border-bottom-color: var(--line); }
  .site-nav-join {
    display: inline-flex;
    background: var(--red);
    color: #fff !important;
    margin: 0.3rem 0 0;
  }
  .site-nav-join:hover,
  .site-nav-join:focus-visible { background: var(--red-deep); color: #fff !important; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}
.btn-ghost { background: transparent; color: var(--gunmetal-deep); border-color: var(--gunmetal-deep); }
.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--gunmetal-deep); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover,
.btn-ghost-light:focus-visible { background: #fff; color: var(--dav-blue-deep); border-color: #fff; }
.btn-light { background: #fff; color: var(--dav-blue-deep); border-color: #fff; }
.btn-light:hover,
.btn-light:focus-visible {
  background: var(--nightvision);
  color: var(--gunmetal-darker);
  border-color: var(--nightvision);
}
.btn-large { padding: 1rem 1.85rem; font-size: 1rem; min-height: 52px; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(190, 209, 43, 0.12) 0%, transparent 55%),
    linear-gradient(170deg, var(--dav-blue) 0%, var(--dav-blue-deep) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
.hero-copy .eyebrow { color: var(--nightvision); }
.hero h1 { color: #fff; }
.hero h1 strong { color: var(--nightvision); }
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: #e2eaf0;            /* 12:1 contrast on dav-blue */
  max-width: 38rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 1.5rem;
}
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--nightvision);
  font-weight: 700;
  line-height: 1;
}
.hero-meta span {
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d2dde6;            /* AA on dav-blue */
  margin-top: 0.35rem;
  font-weight: 600;
}

.hero-figure {
  margin: 0;
  position: relative;
}
.hero-figure img {
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(190, 209, 43, 0.45),
    0 30px 60px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--nightvision);
}
.hero-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-subhead);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.98rem;
  color: #fff;
}
.figcap-eyebrow {
  display: block;
  font-family: var(--font-subhead);
  color: var(--nightvision);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; margin: 0 auto; }
  .hero-meta { flex-wrap: wrap; gap: 1.25rem 2rem; }
}

/* ============ Section heads ============ */
.section-head { max-width: 36rem; margin-bottom: 2.5rem; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 0; }

/* ============ Commander letter ============ */
.commander {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  position: relative;
}
.commander h2 { color: var(--gunmetal-deep); max-width: 28ch; }
.letter {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--nightvision);
  padding: clamp(1.8rem, 4vw, 3rem);
  max-width: 56rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.letter::before {
  content: "\201C";   /* left double quote */
  position: absolute;
  top: -0.5rem;
  right: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--nightvision);
  opacity: 0.35;
  pointer-events: none;
}
.letter p { font-size: 1.05rem; color: var(--ink-2); }
.letter .salute { font-weight: 600; color: var(--gunmetal-deep); }
.letter .pull {
  font-size: 1.2rem;
  font-family: var(--font-subhead);
  font-weight: 600;
  color: var(--gunmetal-deep);
  border-left: 3px solid var(--red);
  padding: 0.3rem 0 0.3rem 1rem;
  margin: 1.5rem 0;
  text-transform: none;
  line-height: 1.4;
}
.letter .pull em { font-style: italic; color: var(--ink); }
.letter .signoff {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.letter .signoff strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--gunmetal-deep); }
.letter .signoff-title {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}
.commander-officers-cta {
  max-width: 56rem;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--dav-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.commander-officers-cta .eyebrow { color: var(--nightvision); }
.commander-officers-cta h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}
.commander-officers-cta p:last-child {
  max-width: 38rem;
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}
.commander-officers-cta .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 720px) {
  .commander-officers-cta { align-items: flex-start; flex-direction: column; }
  .commander-officers-cta .btn { width: 100%; text-align: center; }
}

/* ============ Priorities ============ */
.priorities { padding: clamp(3.5rem, 7vw, 5rem) 0; background: var(--gunmetal-deep); color: #fff; }
.priorities h2 { color: #fff; }

.priorities-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.priority {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.75rem;
  border-radius: var(--radius);
  position: relative;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.priority:hover {
  background: rgba(190, 209, 43, 0.08);
  border-color: var(--nightvision);
  transform: translateY(-2px);
}
.priority-num {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--nightvision);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.priority h3 { color: #fff; margin-bottom: 0.5rem; }
.priority p { color: #d8dad6; font-size: 0.95rem; margin: 0; }   /* AA on gunmetal */
.priority-feature {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border-color: var(--red);
}
.priority-feature:hover { background: linear-gradient(135deg, var(--red-deep) 0%, #5d041d 100%); }
.priority-feature .priority-num { color: #fff; opacity: 0.75; }
.priority-feature p { color: #fff; }

/* ============ Chapter spotlight ============ */
.chapter-spotlight {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: linear-gradient(135deg, var(--dav-blue) 0%, var(--dav-blue-deep) 100%);
  color: #fff;
}
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.chapter-intro h2 { color: #fff; }
.chapter-lede { color: #e2eaf0; font-size: 1.1rem; margin-bottom: 2rem; max-width: 32rem; }

.chapter-card {
  background: #fff;
  color: var(--ink-2);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border-top: 5px solid var(--nightvision);
}
.chapter-card-head { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.chapter-card-eyebrow {
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}
.chapter-card h3 { font-size: 1.55rem; color: var(--gunmetal-deep); margin: 0; }
.chapter-card-dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.chapter-card-dl dt {
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.chapter-card-dl dd { margin: 0.2rem 0 0; color: var(--ink); font-size: 0.98rem; line-height: 1.5; }
.chapter-card-dl dd a { color: var(--dav-blue); font-weight: 600; }

@media (max-width: 860px) { .chapter-grid { grid-template-columns: 1fr; } }

/* ============ Officers ============ */
.officers {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(190, 209, 43, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.officer-profiles {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.officer-profile {
  --officer-accent: var(--dav-blue);
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
  min-height: 500px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--officer-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.officer-profile-feature { --officer-accent: var(--red); }
.officer-profile:nth-child(even) .officer-profile-media { order: 2; }
.officer-profile-media {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--gunmetal-darker);
}
.officer-profile-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(16, 25, 29, 0.28));
  pointer-events: none;
}
.officer-profile-media img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.officer-profile-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.25rem, 5vw, 4.75rem);
}
.officer-profile-copy::before {
  content: "";
  width: 4.5rem;
  height: 0.3rem;
  margin-bottom: 1.5rem;
  background: var(--officer-accent);
}
.officer-role {
  margin: 0 0 0.65rem;
  font-family: var(--font-subhead);
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--red-deep);
  font-weight: 700;
}
.officer-profile-copy h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--gunmetal-deep);
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 0.98;
}
.officer-profile-copy > p:last-child {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}
.officer-secondary {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.section-head-compact { margin-bottom: 1.75rem; }
.section-head-compact h2 { margin-bottom: 0; }
.officer-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.officer-secondary-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 150px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--dav-blue);
  border-radius: var(--radius-sm);
}
.officer-secondary-open {
  border-left-color: var(--gunmetal);
  background: var(--paper);
}
.officer-secondary-mark {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dav-blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.officer-secondary-open .officer-secondary-mark { background: var(--gunmetal); }
.officer-secondary-card h3 {
  margin: 0;
  color: var(--gunmetal-deep);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}
.officer-secondary-card p:last-child { margin: 0.45rem 0 0; }
.officer-secondary-card a { color: var(--dav-blue); font-weight: 700; }
.officer-footnote {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}
@media (max-width: 780px) {
  .officer-profile {
    display: block;
    min-height: 0;
  }
  .officer-profile-media {
    min-height: 0;
    height: auto;
  }
  .officer-profile-media img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: cover;
    display: block;
  }
  .officer-profile-copy { padding: 2rem 1.5rem 2.4rem; }
  .officer-profile-copy h2 { max-width: none; font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .officer-secondary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .officer-secondary-card { align-items: flex-start; }
  .officer-secondary-mark { width: 60px; height: 60px; flex-basis: 60px; font-size: 1.15rem; }
}

/* ============ Community / Gallery ============ */
.community {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gunmetal-darker);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  flex: 1;
  min-height: 0;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #f0efea;
  background: var(--gunmetal-deep);
  flex-shrink: 0;
}
.gallery-item .figcap-eyebrow {
  display: block;
  font-family: var(--font-subhead);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nightvision);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* Magazine-style grid placement */
.gallery-feature {
  grid-column: span 4;
  grid-row: span 2;
}
.gallery-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }

.gallery-flyer {
  background: #fff;
  border-color: var(--line);
}
.gallery-flyer img {
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
}

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery-feature { grid-column: span 4; grid-row: span 1; }
  .gallery-item:nth-child(n) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-feature, .gallery-item:nth-child(n) { grid-column: span 1; }
}

/* ============ Events ============ */
.events { padding: clamp(3.5rem, 7vw, 5rem) 0; background: var(--paper); }
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.event {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gunmetal);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: border-left-color 0.2s, transform 0.15s;
}
.event:hover { border-left-color: var(--red); transform: translateX(2px); }
.event-partner { border-left-color: var(--nightvision); background: linear-gradient(180deg, #fff 0%, #fbfae6 100%); }
.event-partner:hover { border-left-color: var(--nightvision); }
.event-partner .event-date { background: var(--dav-blue); }
.event-partner .event-date .event-month { color: var(--nightvision); }
.event-tag {
  display: inline-block;
  font-family: var(--font-subhead);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--nightvision);
  color: var(--gunmetal-darker);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gunmetal-deep);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.event-month {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nightvision);
  font-weight: 700;
}
.event-day {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.event-year { font-size: 0.72rem; letter-spacing: 0.12em; color: #c8c8c4; font-weight: 600; }
.event-body h3 { margin: 0 0 0.25rem; color: var(--gunmetal-deep); font-size: 1.1rem; }
.event-meta { font-size: 0.92rem; color: var(--muted); margin: 0 0 0.4rem; font-weight: 600; }
.event-body p:last-child { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.event-footnote {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(91, 92, 90, 0.06);
  border-left: 3px solid var(--nightvision);
  font-size: 0.92rem;
  color: var(--ink-2);
}

@media (max-width: 480px) {
  .event { grid-template-columns: 80px 1fr; gap: 1rem; padding: 1rem 1.1rem; }
  .event-day { font-size: 1.9rem; }
}

/* ============ Services ============ */
.services { padding: clamp(3.5rem, 7vw, 5rem) 0; background: #fff; }
.section-intro {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 52rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}
.section-intro strong { color: var(--gunmetal-deep); font-weight: 700; }

.service-feature {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-feature-content { padding: 2rem 2rem 2rem 2.25rem; }
.service-feature-content .eyebrow { margin-bottom: 0.4rem; }
.service-feature-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gunmetal-deep);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.service-feature-content p { color: var(--ink-2); font-size: 1.02rem; }
.service-feature-cta { margin: 1.4rem 0 0; }
.service-feature-aside {
  background: var(--gunmetal-deep);
  color: #f0efea;
  padding: 1.75rem 1.75rem 1.5rem;
}
.service-feature-aside h4 {
  color: var(--nightvision);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  margin-top: 0;
}
.nso-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.nso-list li { padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.nso-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nso-list strong {
  display: block;
  font-family: var(--font-subhead);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.4rem;
}
.nso-list address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d2d2cf;
}
.nso-list address a { color: var(--nightvision); font-weight: 600; }
.nso-list address a:hover { color: var(--nightvision-soft); }

@media (max-width: 820px) {
  .service-feature { grid-template-columns: 1fr; }
  .service-feature-aside { padding: 1.5rem 1.75rem; }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--nightvision);
}
.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--dav-blue);
  color: var(--nightvision);
  border-radius: 50%;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.service-with-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-with-photo .service-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--nightvision);
}
.service-with-photo h3 { margin: 1.4rem 1.4rem 0.4rem; }
.service-with-photo p { margin: 0 1.4rem 1.4rem; }
.service h3 { color: var(--gunmetal-deep); margin-bottom: 0.6rem; font-size: 1.1rem; }
.service p { color: var(--ink-2); margin: 0; }
.placeholder-flag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b2010;
  background: #FEF3C7;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  border: 1px solid #fbbf24;
  font-weight: 700;
}

/* ============ Chapters list ============ */
.chapters-list { padding: clamp(3.5rem, 7vw, 5rem) 0; background: var(--paper-2); }
.chapter-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.chapter-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gunmetal);
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: var(--radius-sm);
  position: relative;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chapter-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.chapter-mini header { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.5rem; }
.chapter-mini .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dav-blue);
  letter-spacing: 0.02em;
}
.chapter-mini h3 { margin: 0; font-size: 1rem; color: var(--gunmetal-deep); line-height: 1.25; }
.chapter-mini p { font-size: 0.9rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.chapter-mini-active {
  border-top-color: var(--red);
  background: linear-gradient(180deg, #fff 0%, #fff8eb 100%);
}
.chapter-mini-active .num { color: var(--red); }
.active-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-subhead);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  font-weight: 700;
}

/* ============ Join CTA ============ */
.join {
  background:
    linear-gradient(135deg, var(--gunmetal-deep) 0%, var(--gunmetal-darker) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.join::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(190, 209, 43, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.join-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.join h2 { color: #fff; }
.join-copy p { color: #e1e2de; font-size: 1.1rem; max-width: 32rem; }
.join-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (max-width: 760px) { .join-inner { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.site-footer {
  background: var(--gunmetal-darker);
  color: #d2d2cf;
  padding: 3rem 0 0;
  border-top: 4px solid var(--nightvision);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
/* Footer logo: full-color is only authorized on white, so we wrap it
   in a small white container per stylebook clear-space rules. */
.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  background: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  box-shadow: 0 0 0 1px var(--gunmetal);
}
.footer-tagline {
  font-family: var(--font-subhead);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nightvision);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.footer-fineprint { font-size: 0.85rem; color: #989792; line-height: 1.6; }
.footer-col h4 {
  color: var(--nightvision);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.footer-col address { font-style: normal; line-height: 1.7; color: #d2d2cf; font-size: 0.95rem; }
.footer-col address a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.footer-col address a:hover { color: var(--nightvision); text-decoration-color: var(--nightvision); }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 1.95; }
.footer-links a { color: #d2d2cf; font-size: 0.95rem; text-decoration: none; }
.footer-links a:hover { color: var(--nightvision); text-decoration: underline; }

.footer-bottom {
  background: #000;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: #989792;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.footer-bottom p { margin: 0; }
.footer-wireframe-note { color: #efb846; font-weight: 600; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* Phone: drop the standalone CTA, Join/Volunteer is in the dropdown.
     Also drop brand-rule + dept text so logo + hamburger fit comfortably. */
  .site-header .cta-button { display: none; }
  .brand-rule, .brand-dept { display: none; }
  .brand-logo { height: 48px; }
  .header-inner { gap: 0.75rem; min-height: 72px; }
}

/* High contrast / forced-colors mode (Windows High Contrast) */
@media (forced-colors: active) {
  .btn, .cta-button {
    border: 2px solid currentColor !important;
  }
  .chapter-card, .chapter-mini, .event, .service, .priority, .letter {
    border: 1px solid CanvasText;
  }
}

/* Print-friendly */
@media print {
  .site-header, .proposal-banner, .join, .cta-button, .btn { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: #fff; color: #000; padding: 1rem 0; }
  .hero-figure img { border: 1px solid #ccc; box-shadow: none; }
  .priorities, .chapter-spotlight { background: #fff; color: #000; }
  .priorities h2, .chapter-intro h2 { color: #000; }
  a { color: #000; }
}

/* ============================================================
   Multi-page additions (public site)
   ============================================================ */

/* ============ Inner-page hero band ============ */
.page-hero {
  background:
    radial-gradient(circle at 88% 15%, rgba(190, 209, 43, 0.12) 0%, transparent 55%),
    linear-gradient(170deg, var(--dav-blue) 0%, var(--dav-blue-deep) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--nightvision); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); }
.page-hero p {
  color: #e2eaf0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 46rem;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb { margin: 0 0 1rem; font-size: 0.85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; color: #cfe0ea; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: rgba(255,255,255,0.4); }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--nightvision); }
.breadcrumb [aria-current] { color: var(--nightvision); }

/* Generic content section wrapper for inner pages */
.page-section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.page-section.bg-paper { background: var(--paper); }
.page-section.bg-white { background: #fff; }
.page-section.bg-paper2 { background: var(--paper-2); }

/* ============ Contact page ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--nightvision);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-family: var(--font-subhead);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gunmetal-deep);
  margin-bottom: 0.4rem;
}
.form-row .req { color: var(--red); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--dav-blue);
  box-shadow: 0 0 0 3px rgba(0, 93, 125, 0.15);
}
.form-row input.invalid,
.form-row select.invalid,
.form-row textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(179, 8, 56, 0.12); }

/* Contact intent cards */
.intent-cards {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.intent-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.25rem;
}
.intent-card-primary {
  border-color: var(--dav-blue);
  border-left: 4px solid var(--dav-blue);
}
.intent-card h2 {
  font-family: var(--font-subhead);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: var(--dav-blue-deep);
}
.intent-card p { margin: 0; font-size: 0.95rem; color: var(--gunmetal-deep); }
.field-err { color: var(--red-deep); font-size: 0.85rem; margin-top: 0.35rem; font-weight: 600; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  background: #fdecef;
  border: 1px solid var(--red);
  color: var(--red-deep);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-success { text-align: center; padding: 1.5rem 0.5rem; }
.form-success h3 { color: var(--dav-blue-deep); font-size: 1.5rem; }
.form-success p { color: var(--ink-2); margin: 0; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact sidebar */
.contact-aside { display: grid; gap: 1.25rem; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--dav-blue);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem;
}
.contact-card h3 { color: var(--gunmetal-deep); font-size: 1.05rem; margin-bottom: 0.6rem; }
.contact-card address { font-style: normal; line-height: 1.65; color: var(--ink-2); font-size: 0.98rem; }
.contact-card address a { color: var(--dav-blue); font-weight: 600; }
.contact-card.is-crisis { border-left-color: var(--red); }

/* ============ Legal pages ============ */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 7vw, 5rem); background: var(--paper); }
.legal .container { max-width: 52rem; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.5rem; color: var(--gunmetal-deep); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); font-size: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal .legal-updated { color: var(--muted); font-style: italic; font-size: 0.9rem; }

/* ============ Footer plug + legal row ============ */
.footer-plug { font-size: 0.82rem; color: #989792; margin: 0; }
.footer-legal-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal-links a { color: #989792; font-size: 0.82rem; text-decoration: none; }
.footer-legal-links a:hover { color: var(--nightvision); text-decoration: underline; }

@media print {
  .page-hero { background: #fff; color: #000; }
  .page-hero h1, .page-hero p { color: #000; }
}

/* Hero supporting paragraphs (light text on dark hero) */
.hero-copy .lede { margin-bottom: 1.1rem; }
.hero-body {
  color: #e2eaf0;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 0 1.1rem;
}
.hero-body + .hero-actions { margin-top: 1.4rem; }

/* Hero headline: set "Helping" apart so the repeated line reads as intentional */
.hero h1 .h1-line { display: block; }
.hero h1 .h1-helping {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.6vw, 1rem);
  margin: 0.12em 0;
  color: var(--nightvision);
  font-style: italic;
  text-transform: lowercase;
  font-size: 0.7em;
  letter-spacing: 0.02em;
}
.hero h1 .h1-helping::before,
.hero h1 .h1-helping::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(1.5rem, 5vw, 3.4rem);
  height: 0.12em;
  min-height: 3px;
  background: var(--nightvision);
  border-radius: 2px;
}
@media (forced-colors: active) {
  .hero h1 .h1-helping::before,
  .hero h1 .h1-helping::after { background: CanvasText; }
}

/* Cut-out hero portrait: float on the hero with an alpha-following shadow
   (overrides the framed .hero-figure box treatment) */
.hero-figure-cutout img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

/* Center the "helping" accent line under the headline text */
.hero h1 { width: fit-content; max-width: 100%; }
.hero h1 .h1-helping { justify-content: center; }

/* FAQ accordion (Services page) */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.75rem;
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-subhead);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dav-blue-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item > summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--dav-blue-soft);
  flex: none;
}
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item > summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}
.faq-item > p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--gunmetal-deep);
}

/* Orlando convention gallery */
.convention-hero{position:relative;overflow:hidden;padding:clamp(2.25rem,4vw,3.5rem) 0 clamp(3rem,5vw,4rem);background:radial-gradient(circle at 82% 12%,rgba(190,209,43,.12),transparent 34%),linear-gradient(145deg,#041d30 0%,#073c55 100%);color:#fff}
.convention-hero::before{content:"";position:absolute;inset:0;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.018) 0 2px,transparent 2px 18px);pointer-events:none}
.convention-hero-shell{position:relative}
.convention-hero-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);gap:clamp(2.5rem,5vw,4.5rem);align-items:center}
.convention-hero-copy{padding:clamp(.5rem,1vw,1rem) 0}
.convention-hero-copy h1{max-width:680px;margin:.55rem 0 1.25rem;color:#fff;font-size:clamp(3rem,4.8vw,4.5rem);line-height:.94;letter-spacing:-.025em}
.convention-hero-copy>p:not(.eyebrow){max-width:590px;margin:0 0 1.75rem;color:#e7eff3;font-size:clamp(1.08rem,1.6vw,1.25rem);line-height:1.6}
.convention-hero-actions{display:flex;flex-wrap:wrap;gap:1rem 1.35rem;align-items:center}
.convention-hero-actions span{color:#c8d8e0;font-size:.95rem;font-weight:600;letter-spacing:.025em}
.convention-hero-media{position:relative;margin:0;border-top:5px solid var(--nightvision);background:#02141f;box-shadow:0 24px 60px rgba(0,0,0,.34)}
.convention-hero-media img{display:block;width:100%;height:auto}
.convention-hero-media figcaption{position:absolute;right:0;bottom:0;max-width:80%;margin:0;padding:.7rem 1rem;background:rgba(4,29,48,.9);color:#eaf1f4;font-size:.84rem;line-height:1.35}
.breadcrumb-on-dark{margin-bottom:clamp(1.5rem,2.5vw,2.5rem)}
.breadcrumb-on-dark ol,.breadcrumb-on-dark a{color:rgba(255,255,255,.84)}
.breadcrumb-on-dark li+li:before{color:rgba(255,255,255,.5)}
.convention-intro{background:#fff}
.convention-intro-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(2rem,8vw,7rem);align-items:start}
.convention-intro h2{max-width:620px;margin-top:.45rem;font-size:clamp(2.5rem,5vw,4.5rem);line-height:.95}
.convention-intro-copy{padding-top:1.65rem;border-top:4px solid var(--gold)}
.convention-intro-copy p{font-size:1.13rem;line-height:1.75;color:var(--text-muted)}
.convention-intro-copy p+p{margin-top:1rem}
.convention-gallery{background:#eaf0f3}
.convention-gallery-head{max-width:780px;margin-bottom:2.5rem}
.convention-photo-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1.25rem;list-style:none;margin:0;padding:0;counter-reset:gallery}
.convention-photo{grid-column:span 4;background:#fff;box-shadow:0 8px 26px rgba(5,36,54,.1);transition:transform .2s ease,box-shadow .2s ease}
.convention-photo:nth-child(7n+1),.convention-photo:nth-child(7n+5){grid-column:span 6}
.convention-photo:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(5,36,54,.17)}
.convention-photo-button{position:relative;display:block;width:100%;padding:0;border:0;background:#0a2d40;cursor:zoom-in;overflow:hidden}
.convention-photo-button img{display:block;width:100%;height:clamp(15rem,27vw,23rem);object-fit:cover;transition:transform .35s ease,opacity .25s ease}
.convention-photo:nth-child(7n+1) .convention-photo-button img,.convention-photo:nth-child(7n+5) .convention-photo-button img{height:clamp(18rem,36vw,31rem)}
.convention-photo-button:hover img,.convention-photo-button:focus-visible img{transform:scale(1.025);opacity:.88}
.convention-photo-button:focus-visible{outline:4px solid var(--gold);outline-offset:3px;z-index:2}
.convention-photo-number{position:absolute;right:.75rem;bottom:.65rem;padding:.25rem .48rem;background:rgba(4,29,48,.88);color:#fff;font-family:var(--font-heading);font-size:.9rem;letter-spacing:.08em}
.convention-photo-caption{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 1.05rem;border-top:4px solid var(--gold)}
.convention-photo-caption span{font-family:var(--font-heading);font-size:1.1rem;font-weight:700;text-transform:uppercase;color:var(--navy)}
.convention-photo-caption small{white-space:nowrap;color:var(--text-muted)}
.gallery-lightbox{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;background:rgba(2,17,27,.97);color:#fff}
.gallery-lightbox::backdrop{background:rgba(2,17,27,.97)}
.gallery-lightbox-inner{position:relative;width:100%;height:100%;display:grid;place-items:center;padding:4rem 5rem 2rem}
.gallery-lightbox figure{display:grid;place-items:center;gap:1rem;width:100%;height:100%;margin:0}
.gallery-lightbox figure img{display:block;max-width:min(1200px,100%);max-height:calc(100vh - 8rem);width:auto;height:auto;object-fit:contain;box-shadow:0 12px 55px rgba(0,0,0,.45)}
.gallery-lightbox figcaption{font-family:var(--font-heading);font-size:1.05rem;letter-spacing:.03em;text-align:center}
.gallery-lightbox-close,.gallery-lightbox-nav{position:absolute;z-index:2;border:1px solid rgba(255,255,255,.45);background:rgba(4,29,48,.72);color:#fff;cursor:pointer}
.gallery-lightbox-close{top:1rem;right:1rem;width:3rem;height:3rem;font-size:2rem;line-height:1}
.gallery-lightbox-nav{top:50%;width:3.5rem;height:4.5rem;transform:translateY(-50%);font-size:3rem;line-height:1}
.gallery-lightbox-prev{left:1rem}.gallery-lightbox-next{right:1rem}
.gallery-lightbox-close:hover,.gallery-lightbox-nav:hover,.gallery-lightbox-close:focus-visible,.gallery-lightbox-nav:focus-visible{background:var(--gold);color:var(--navy);outline:2px solid #fff;outline-offset:2px}
.home-gallery-feature{padding:clamp(3rem,6vw,5rem) 0;background:#fff}
.home-gallery-feature-card{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);overflow:hidden;background:#f3f6f7;border-top:5px solid var(--gold);box-shadow:0 12px 35px rgba(5,36,54,.12)}
.home-gallery-feature-card>img{display:block;width:100%;height:100%;min-height:24rem;object-fit:cover;object-position:center 30%}
.home-gallery-feature-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(2rem,5vw,4rem)}
.home-gallery-feature h2{margin:.45rem 0 1rem;font-size:clamp(2.4rem,4.5vw,4rem);line-height:.95}
.home-gallery-feature-copy>p:not(.eyebrow){margin:0 0 1.5rem;color:var(--text-muted);font-size:1.1rem;line-height:1.65}
.home-gallery-feature .btn{align-self:flex-start}
@media(max-width:900px){.convention-hero-grid{grid-template-columns:1fr}.convention-hero-copy{padding:0}.convention-hero-media{max-width:760px}.convention-intro-grid{grid-template-columns:1fr}.convention-intro-copy{padding-top:1.25rem}.convention-photo,.convention-photo:nth-child(7n+1),.convention-photo:nth-child(7n+5){grid-column:span 6}.home-gallery-feature-card{grid-template-columns:1fr}.home-gallery-feature-card>img{height:auto;min-height:0;aspect-ratio:16/9}.gallery-lightbox-inner{padding:4.5rem 1rem 5rem}.gallery-lightbox-nav{top:auto;bottom:.75rem;transform:none}.gallery-lightbox-prev{left:calc(50% - 4rem)}.gallery-lightbox-next{right:calc(50% - 4rem)}}
@media(max-width:560px){.convention-hero{padding-top:1.5rem;padding-bottom:3rem}.convention-hero-grid{gap:2rem}.convention-hero-copy h1{font-size:clamp(2.5rem,12vw,3.5rem)}.convention-hero-actions{align-items:flex-start;flex-direction:column}.convention-hero-media figcaption{position:static;max-width:none}.convention-photo,.convention-photo:nth-child(7n+1),.convention-photo:nth-child(7n+5){grid-column:1/-1}.convention-photo-button img,.convention-photo:nth-child(7n+1) .convention-photo-button img,.convention-photo:nth-child(7n+5) .convention-photo-button img{height:auto;max-height:none;object-fit:contain}.convention-photo-caption{padding:.85rem}.gallery-lightbox figure img{max-height:calc(100vh - 10rem)}.home-gallery-feature-copy{padding:1.75rem}.home-gallery-feature h2{font-size:2.4rem}}
@media(prefers-reduced-motion:reduce){.convention-photo,.convention-photo-button img{transition:none}}
