:root {
  --blue-primary: #00539B;
  --blue-light: #4FA3D1;
  --navy-deep: #0A2E52;
  --sage: #5C7C5A;
  --sage-dark: #47613F;
  --bg-light: #F7F9FB;
  --bg-tint: #EAF2F8;
  --text-dark: #1E2328;
  --text-body: #3B4148;
  --border-light: #E1E5EA;
  --white: #FFFFFF;
  --font: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: var(--blue-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Links inside running text are underlined so they don't rely on color alone */
p a:not(.btn),
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* One consistent, high-contrast focus ring; white on dark sections */
:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; }
.utility-bar :focus-visible,
.hero-panel :focus-visible,
.donate-banner :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: 12px; outline-color: var(--white); }
main:focus { outline: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text-dark);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--blue-primary); color: var(--white); }
.btn-primary:hover { background: #003f77; }

.btn-secondary { background: var(--sage); color: var(--white); }
.btn-secondary:hover { background: var(--sage-dark); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-outline-blue { background: transparent; color: var(--blue-primary); border-color: var(--blue-primary); }
.btn-outline-blue:hover { background: var(--bg-tint); }

/* Utility bar */
.utility-bar {
  background: var(--navy-deep);
  color: #cfe0ef;
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.utility-bar a { color: #cfe0ef; }
.utility-bar a:hover { color: var(--white); }

/* Main header */
.site-header {
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 56px; height: 56px; }
.brand-text { line-height: 1.1; }
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  display: block;
}
.brand-text .name em,
.footer-brand .name em {
  font-style: italic;
  font-weight: 600;
  color: var(--sage-dark);
}
.brand-text .sub {
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--sage-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a:not(.btn) {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a:not(.btn):hover { color: var(--blue-primary); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue-primary); box-shadow: inset 0 -2px 0 var(--blue-primary); }

/* Mobile menu toggle (shown only under 860px, and only when JS is running) */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-deep);
  transition: transform 0.2s ease, background 0.2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  display: flex;
  min-height: 460px;
  background: var(--navy-deep);
}
.hero-photo {
  flex: 1 1 62%;
  background-image: url('../assets/hero.jpg');
  background-size: cover;
  background-position: center;
  min-height: 320px;
}
.hero-panel {
  flex: 1 1 38%;
  background: var(--navy-deep);
  color: var(--white);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.hero-panel-block h2 { color: var(--white); font-size: 1.2rem; margin-bottom: 6px; }
.hero-panel-block p { color: #cfe0ef; margin: 0 0 14px; font-size: 0.95rem; }
.hero-panel-block .insurance-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.hero-panel-block .insurance-note::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero-panel hr { border: none; border-top: 1px solid rgba(255,255,255,0.2); margin: 0; }

/* CTA row */
.cta-row {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}
.cta-row .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.cta-row .buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-row .phone { text-align: right; }
.cta-row .phone .label { font-size: 0.82rem; color: var(--text-body); display: block; }
.cta-row .phone a { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); }
.cta-row .phone a:hover { color: var(--blue-primary); }

/* Two column: approach + mission */
.split-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
.split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
}
.approach-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.approach-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  background: var(--white);
}
.approach-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-primary);
  display: inline-block;
  margin-bottom: 10px;
}
.approach-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.approach-card p { font-size: 0.88rem; margin: 0; color: var(--text-body); }

.mission-panel {
  background: var(--bg-tint);
  border-left: 5px solid var(--blue-primary);
  border-radius: 10px;
  padding: 32px 28px;
  margin-top: 24px;
  align-self: start;
}
.mission-panel p { font-size: 1.02rem; color: var(--text-dark); }
.mission-panel p:last-child { margin-bottom: 0; }

/* Intro */
.intro {
  padding-top: 56px;
  text-align: left;
  max-width: 760px;
}
.intro p { font-size: 1.08rem; color: var(--text-body); }

/* Donate banner */
.donate-banner {
  background: var(--sage);
  color: var(--white);
  padding: 48px 0;
}
.donate-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.donate-banner h2 { color: var(--white); margin-bottom: 6px; }
.donate-banner p { margin: 0; color: var(--white); }

.text-link { font-weight: 700; display: inline-block; margin-top: 22px; }

/* Interior page header */
.page-hero {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border-light);
  padding: 56px 0 48px;
}
.page-hero .eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 10px;
}
.page-hero h1 { max-width: 760px; }
.page-hero .lead { max-width: 720px; font-size: 1.12rem; margin: 0; }
.page-hero .hero-action { margin-top: 24px; }
#sign-up { scroll-margin-top: 80px; }

.section { padding-top: 64px; padding-bottom: 64px; }
.section-tint { background: var(--bg-light); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-intro { max-width: 760px; margin-bottom: 36px; }
.section-intro p { font-size: 1.05rem; }

/* Services detail list */
.service-list { display: grid; gap: 22px; }
.service-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--white);
  scroll-margin-top: 110px;
}
.service-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--blue-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-item h2 { font-size: 1.4rem; margin-bottom: 8px; }
.service-item p { margin: 0 0 12px; max-width: 75ch; }
.service-item .helps {
  margin: 0;
  font-size: 0.92rem;
  color: var(--sage-dark);
}
.service-item .helps strong { color: var(--text-dark); }

/* Numbered steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 0.93rem; }

/* Navy call-to-action band */
.cta-band {
  background: var(--navy-deep);
  color: #cfe0ef;
  padding: 52px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-band p a { color: var(--white); font-weight: 700; }

/* Volunteer roles */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.role-card {
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--sage);
  border-radius: 10px;
  padding: 22px;
  background: var(--white);
}
.role-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.role-card p { margin: 0; font-size: 0.92rem; }
.fine-print { font-size: 0.9rem; margin-top: 22px; color: var(--text-body); }

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label,
.field legend { font-weight: 600; font-size: 0.92rem; color: var(--text-dark); }
.field .req { color: #A23B2A; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid #C5CCD4;
  border-radius: 6px;
  background: var(--white);
  color: var(--text-dark);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
fieldset.field { border: none; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.choice { display: flex; align-items: flex-start; gap: 9px; font-size: 0.95rem; cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--sage); flex-shrink: 0; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .note { font-size: 0.85rem; margin: 0; }
.hidden-field { position: absolute; left: -9999px; }

.aside-card {
  background: var(--bg-tint);
  border-radius: 12px;
  padding: 28px;
}
.aside-card + .aside-card { margin-top: 18px; }
.aside-card h3 { font-size: 1.1rem; }
.aside-card p { font-size: 0.95rem; }
.aside-card p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #cfe0ef;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h2 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #cfe0ef; }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--white); }
.footer-brand .name em { color: #A9C4A6; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #9fb7cc;
  text-align: center;
}

@media (max-width: 860px) {
  .brand img { width: 44px; height: 44px; }
  .brand-text .name { font-size: 1.25rem; }

  .utility-bar .container { justify-content: center; gap: 6px 16px; font-size: 0.76rem; }

  .js .site-header .container { flex-wrap: nowrap; gap: 12px; position: relative; }
  .js .menu-toggle { display: inline-flex; flex-shrink: 0; }
  .js .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 12px 24px rgba(10, 46, 82, 0.08);
  }
  .js .main-nav.is-open { display: flex; }
  .js .main-nav a:not(.btn) {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
  }
  .js .main-nav .btn { margin-top: 16px; text-align: center; }
  .hero { flex-direction: column; }
  .split-grid { grid-template-columns: 1fr; }
  .approach-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .container { justify-content: center; text-align: center; }
  .cta-row .phone { text-align: center; }
  h1 { font-size: 1.9rem; }

  .page-hero { padding: 40px 0 36px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .service-item { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .service-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .steps { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-layout > .form-aside { order: -1; }
}

@media (max-width: 600px) {
  .role-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .form-grid,
  .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand { gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text .name { font-size: 1.08rem; white-space: nowrap; }
  .brand-text .sub { font-size: 0.66rem; }
}

/* Contact page */
.field select {
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid #C5CCD4;
  border-radius: 6px;
  background: var(--white);
  color: var(--text-dark);
  width: 100%;
}
.crisis-note {
  margin-top: 32px;
  padding: 16px 20px;
  border-left: 5px solid #A23B2A;
  border-radius: 8px;
  background: #FBF1EE;
}
.crisis-note p { margin: 0; color: var(--text-dark); font-size: 0.95rem; }
.crisis-note a { font-weight: 700; color: #8A2F20; }
.contact-card h3 { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-dark); margin: 18px 0 4px; }
.contact-card h3:first-child { margin-top: 0; }
.contact-card p { margin: 0; font-size: 1rem; color: var(--text-dark); }
.contact-card p + p { margin-top: 14px; }
.contact-card a:not(.btn) { font-weight: 700; }
.map-section { position: relative; border-top: 1px solid var(--border-light); }
.static-map { position: relative; display: block; height: 420px; overflow: hidden; background: var(--bg-light); }
.static-map img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.static-map:hover { text-decoration: none; }
.static-map:focus-visible { outline-offset: -4px; }
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -40px 0 0 -17px;
  border-radius: 50% 50% 50% 0;
  background: var(--navy-deep);
  border: 3px solid var(--white);
  box-shadow: 0 4px 10px rgba(10, 46, 82, 0.35);
  transform: rotate(-45deg);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}
.map-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% - 56px));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(10, 46, 82, 0.18);
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
  text-align: center;
}
.map-label strong { font-family: var(--font-display); color: var(--navy-deep); font-size: 1.05rem; }
.map-label .map-cta { margin-top: 4px; font-weight: 700; color: var(--blue-primary); }
.static-map:hover .map-cta { text-decoration: underline; }
.map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 3px 8px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-body);
}
.map-credit a { color: var(--text-body); }
@media (max-width: 600px) {
  .static-map { height: 320px; }
  .map-label { font-size: 0.82rem; padding: 10px 12px; }
}

/* Long-form text pages */
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li a { text-decoration: underline; text-underline-offset: 2px; }

/* Text for screen readers only */
.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;
}
.summary-card {
  background: var(--bg-tint);
  border-left: 5px solid var(--sage);
  border-radius: 10px;
  padding: 24px 28px 12px;
  margin-bottom: 40px;
}
.summary-card h2 { margin-top: 0; font-size: 1.2rem; }
