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

:root {
  --navy: #1a3260;
  --gold: #f0b429;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --text-dark: #1a2a3a;
  --text-mid: #4a5568;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  background: var(--white);
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  z-index: 200;
}

.skip-link:focus {
  top: 0;
}

/* ── FOCUS ── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

nav img {
  height: 44px;
  width: auto;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
}

nav a.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
}

nav a.nav-link:hover {
  color: var(--white);
}

@media (max-width: 780px) {
  nav li:has(a.nav-link) {
    display: none;
  }

  nav > a:first-child {
    display: none;
  }
}

nav a.donate-btn {
  background: var(--gold);
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  transition: background 0.2s;
}

nav a.donate-btn:hover {
  background: #ffc840;
}

nav a.volunteer-btn {
  background: transparent;
  color: var(--gold);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: calc(0.55rem - 2px) 1.4rem;
  border-radius: 4px;
  border: 2px solid var(--gold);
  transition:
    background 0.2s,
    color 0.2s;
}

nav a.volunteer-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gold);
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-headshot {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border: 3px solid var(--gold);
}

.hero-headshot-fig {
  position: relative;
}

.hero-headshot-fig figcaption {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

.hero-headshot-fig figcaption a {
  color: inherit;
  text-decoration: none;
}

.hero-headshot-fig figcaption a:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-headshot-fig {
    max-width: 220px;
    margin: 0 auto;
    order: -1;
  }

  .hero-logo {
    margin: 0 auto 2rem;
    display: block;
  }
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #ffc840;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

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

/* ── SECTION SHARED ── */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
}

.section-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ── ABOUT ── */
#about {
  background: var(--white);
}

.about-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-mid);
}

.about-body p + p {
  margin-top: 1.4rem;
}

.about-family {
  margin-top: 2.5rem;
}

.about-family img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-family figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-mid);
  font-style: italic;
  text-align: center;
}

/* ── PRIORITIES ── */
#priorities {
  background: var(--light-bg);
}

.priorities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.priority-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--gold);
}

.priority-card h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.priority-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── BACKGROUND ── */
#background {
  background: var(--navy);
  color: var(--white);
}

#background .section-title {
  color: var(--white);
}

#background .section-label {
  color: var(--gold);
}

.bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.bg-item h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.bg-item ul {
  list-style: none;
  padding: 0;
}

.bg-item ul li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.bg-item ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.bg-item ul li a {
  color: var(--gold);
  text-decoration: underline;
}

.bg-item ul li a:hover {
  color: var(--white);
}

/* ── ENDORSEMENTS ── */
#endorsements {
  background: var(--light-bg);
}

.endorsements-grid {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.endorsement-item {
  /* two per row: half the container minus half the gap.
         flex-grow must stay 0 so an odd last item keeps its half width
         instead of stretching to fill the row. */
  flex: 0 1 calc(50% - 1.5rem);
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
}

.endorsement-item img,
.endorsement-item svg {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* below this width a half-width card is too cramped, so go one per row */
@media (max-width: 600px) {
  .endorsements-grid {
    gap: 1.5rem;
  }

  .endorsement-item {
    flex-basis: 100%;
    padding: 1.25rem 1rem;
  }
}

.endorsement-item span {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  text-align: center;
}

/* ── CONTACT ── */
#contact {
  background: var(--white);
  text-align: center;
}

#contact .section-divider {
  margin-left: auto;
  margin-right: auto;
}

#contact p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline-dark {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-outline-dark:hover {
  background: rgba(26, 50, 96, 0.08);
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

footer img {
  height: 36px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

footer address {
  font-style: normal;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}
