/* Muhammed Abdullateef for Brentsville Supervisor */
:root {
  --blue: #386591;
  --navy: #02316f;
  --red: #c4161c;
  --white: #ffffff;
  --footer: #eaf0f7;
  --display: "Bebas Neue", "Anton", Impact, sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Accessibility (no visual change unless focused) ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #ffd54a; outline-offset: 3px; }
.footer :focus-visible { outline-color: var(--navy); }
main:focus { outline: none; }
.hero-logo-mobile { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 24px;
  left: 34px;
  z-index: 10;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  transform: skewX(-12deg);
  padding: 0 28px;
}
.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  transform: skewX(12deg);
}
.nav a {
  display: block;
  padding: 18px 0;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--white);
}
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav a.nav-donate { color: var(--red); }
.nav a.nav-donate:hover { color: #ff4a4f; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 92vh);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--blue) 0%, rgba(56,101,145,.85) 20%, rgba(56,101,145,0) 50%),
    linear-gradient(to left, rgba(2,49,111,.6) 0%, rgba(2,49,111,.35) 30%, rgba(2,49,111,0) 50%);
}
.hero-text {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 80px 4vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  /* Logo and Donate button are a fixed share of the window width,
     so they keep the same size and position as the window scales */
  --logo-w: max(260px, 38vw);
  --btn-w: max(230px, 17vw);
}
.hero-title { margin: 0; line-height: 0; }
.hero-text .btn {
  position: absolute;
  bottom: 48px;
  right: calc(4vw + (var(--logo-w) - var(--btn-w)) / 2);
  width: var(--btn-w);
  min-width: 0;
  font-size: max(28px, 2.1vw);
  margin: 0;
}
.hero-logo {
  width: var(--logo-w);
  height: auto;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.25));
}
.hero-text .btn { margin-top: 0; margin-bottom: 8px; }
.btn {
  display: inline-block;
  margin-top: 140px;
  min-width: 230px;
  padding: 10px 28px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: .5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: #0a418a; transform: translateY(-1px); }

/* ---------- Content ---------- */
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 40px; }
.quote {
  text-align: center;
  padding: 24px 40px 0;
}
.quote blockquote {
  margin: 0 auto;
  max-width: 1200px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw,35px);
  line-height: 1.45;
}
.quote cite {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(22px, 2.8vw, 38px);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  margin: 32px 0 20px;
}
.about p { font-weight: 500; font-size: 18px; margin: 0 0 1.5em; }

.issues { padding-bottom: 48px; }
.issue h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  margin: 40px 0 6px;
}
.issue ul { margin: 0; padding-left: 26px; font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); }
.issue li { margin: 2px 0; }
.issue strong { font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.events { padding-bottom: 64px; }
.events p { font-size: 18px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-row .btn { margin-top: 8px; font-size: 24px; min-width: 200px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--footer);
  color: var(--navy);
  padding: 16px 10px 20px;
  font-weight: 700;
  font-size: 15px;
}
.socials { display: flex; gap: 14px; margin: 0 0 8px; padding: 0; list-style: none; }
.socials a { display: inline-flex; width: 36px; height: 36px; color: var(--navy); }
.socials svg { width: 100%; height: 100%; fill: currentColor; }
.footer p { margin: 2px 4px; }
.paid-for {
  width: fit-content;
  margin: 18px auto 0 !important;
  border: 1.5px solid var(--navy);
  padding: 4px 8px;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { left: 50%; transform: translateX(-50%) skewX(-12deg); top: 14px; padding: 0 18px; max-width: calc(100% - 24px); }
  .nav ul { gap: 14px; }
  .nav a { font-size: 14px; padding: 14px 0; }
  /* Mobile hero: photo on top, logo stacked below it so it never covers his face.
     The logo only overlaps the faded bottom edge of the photo (his chest). */
  .hero {
    --img-h: min(75vh, 120vw);
    display: block;
    min-height: 0;
    background: var(--blue);
  }
  .hero-bg {
    position: relative;
    height: var(--img-h);
    object-position: 50% 18%;
  }
  .hero::after {
    inset: 0 0 auto 0;
    height: var(--img-h);
    background: linear-gradient(to top, var(--blue) 0%, rgba(56,101,145,.85) 14%, rgba(56,101,145,0) 34%);
  }
  .hero-text {
    --logo-w: min(92vw, 70vh);
    margin-top: calc(var(--img-h) * -0.1);
    padding: 0 22px 48px;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }
  .hero-text .btn { position: static; align-self: center; }
  .hero-title { width: 100%; }
  /* logo.png has ~34% empty space above and ~32% below the lettering; trim it */
  .hero-logo {
    width: var(--logo-w);
    margin: calc(var(--logo-w) * -0.345) auto calc(var(--logo-w) * -0.32);
  }
  .wrap { padding-left: 22px; padding-right: 22px; }

  /* Mobile accessibility */
  .nav ul { align-items: center; }
  .nav a { display: flex; align-items: center; min-height: 44px; padding: 0; font-size: 15px; }
  .nav a.nav-donate { color: var(--white); background: var(--red); padding: 0 14px; min-height: 40px; margin: 6px 0; border-radius: 8px; }
  .nav a.nav-donate:hover { color: var(--white); background: #a51217; }
  /* Keep logo.png visible on small screens, scaled to the window */
  .hero-logo { display: block; }
  .hero-text .btn { min-height: 48px; }
  .about p { line-height: 1.6; }
  .issue li { margin: 8px 0; line-height: 1.4; }
  .socials { flex-wrap: wrap; gap: 8px; }
  .socials a { width: 44px; height: 44px; padding: 4px; }
  .footer a[href^="mailto"] { display: inline-block; padding: 10px 0; }
}
@media (max-width: 520px) {
  .nav { padding: 0 14px; }
  .nav ul { gap: 14px; }
}
@media (max-width: 340px) {
  .nav ul { gap: 10px; }
  .nav a { font-size: 14px; }
  .nav a.nav-donate { padding: 0 10px; }
}
.p {
  font-size: 55px;
}