/* ===========================================================
   Brett Miller for PA House — 41st District
   Brand: red #B3202A / navy #142645 / white, Oswald + Inter
   =========================================================== */

:root {
  --red: #B7203D;
  --red-dark: #8E1830;
  --navy: #15294B;
  --navy-light: #1D3760;
  --navy-lighter: #26406e;
  --white: #FFFFFF;
  --offwhite: #F7F6F2;
  --gray: #4A4A4A;
  --gray-light: #E6E4DE;
  --border: #D8D5CC;

  --font-head: 'Oswald', Arial, sans-serif;
  --font-logo: 'Anton', 'Oswald', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1180px;

  --radius-sm: 8px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: .01em;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--red);
  margin-bottom: .6em;
}
.eyebrow.on-navy { color: #E63946; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}
.logo-link { flex-shrink: 0; }
.logo {
  height: 56px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.logo-footer {
  height: 76px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.main-nav { flex: 1; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.main-nav a {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .92rem;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--red); }

.header-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  display: block;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--offwhite);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  align-items: stretch;
}
.hero-content {
  padding: 56px 24px 56px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  color: var(--navy);
  margin-bottom: .35em;
}
.hero-content h1 span { color: var(--red); }
.hero-sub { color: var(--gray); font-size: 1.02rem; margin-bottom: 1.4em; max-width: 46ch; }
.hero-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1.4em;
}

.hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
@keyframes heroPhotoIn {
  from { opacity: 0; transform: scale(1.07); }
  to { opacity: 1; transform: scale(1); }
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  animation: heroPhotoIn 1.3s cubic-bezier(.22,.61,.36,1) both;
  transition: transform .6s ease;
}
.hero-media:hover img { transform: scale(1.04); }

/* Sign-up form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.form-grid input, .form-single input, .form-single textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
}
.form-single textarea {
  resize: vertical;
  min-height: 90px;
}
.form-single { margin-bottom: 10px; }

.form-note {
  font-size: .72rem;
  color: #9a9a9a;
  margin-top: 10px;
}

/* ---------- Contribute ---------- */
.contribute { padding: 64px 0; background: var(--white); }
.contribute-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.contribute h2 { font-size: 1.9rem; color: var(--red); }
.contribute p { color: var(--gray); max-width: 40ch; margin-bottom: .3em; }
.contribute .join-line { font-weight: 700; color: var(--navy); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 130px);
  gap: 12px;
}
.amount-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--white);
  transition: all .15s ease;
}
.amount-btn:hover { background: var(--navy); color: var(--white); }
.amount-btn.featured { background: var(--red); border-color: var(--red); color: var(--white); }
.amount-btn.featured:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ---------- Proven choice ---------- */
.proven-choice { background: var(--navy); color: var(--white); }
.proven-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 0;
  align-items: stretch;
}
.proven-media { min-height: 100%; overflow: hidden; }
.proven-media img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; transition: transform .6s ease; }
.proven-media:hover img { transform: scale(1.04); }
.proven-text { padding: 64px 48px; }
.proven-text h2 { font-size: 1.8rem; color: var(--white); max-width: 18ch; }
.proven-text p { color: #C9D2E3; }
.proven-text strong { color: var(--white); }

/* ---------- Priorities / issues ---------- */
.priorities { padding: 72px 0; text-align: center; background: var(--offwhite); }
.priorities h2 { font-size: 2rem; color: var(--navy); max-width: 26ch; margin: 0 auto .9em; }
.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 40px;
  text-align: left;
}
.priority-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.priority-card .icon {
  width: 46px; height: 46px;
  margin-bottom: 16px;
  color: var(--red);
}
.priority-card h3 {
  font-size: 1.02rem;
  color: var(--navy);
  text-transform: none;
  margin-bottom: .5em;
}
.priority-card p { font-size: .92rem; color: var(--gray); margin: 0; }

/* ---------- About ---------- */
.about { padding: 80px 0; }
.about-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-media {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -14px rgba(21,41,75,.35);
}
.about-media img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.about-media:hover img { transform: scale(1.045); }
.about h2 { color: var(--navy); font-size: 2rem; }
.about p { color: var(--gray); }
.about-facts {
  list-style: none;
  margin: 1.6em 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--navy);
  font-weight: 500;
}
.about-facts li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ---------- Record ---------- */
.record { padding: 80px 0; background: var(--offwhite); }
.record-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.record h2 { color: var(--navy); font-size: 2rem; max-width: 20ch; }
.record-list { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 16px; }
.record-list li {
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: .96rem;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(20,38,69,.06);
}
.record-media {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -14px rgba(21,41,75,.35);
}
.record-media img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.record-media:hover img { transform: scale(1.045); }

/* ---------- Volunteer ---------- */
.volunteer { background: var(--navy); color: var(--white); }
.volunteer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.volunteer-media { min-height: 100%; overflow: hidden; }
.volunteer-media img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; transition: transform .6s ease; }
.volunteer-media:hover img { transform: scale(1.04); }
.volunteer-form-wrap { padding: 64px 48px; }
.volunteer-form-wrap h2 { color: var(--white); font-size: 2rem; }
.volunteer .eyebrow { color: #E63946; }

.volunteer-form-wrap .form-grid input,
.volunteer-form-wrap .form-single input,
.volunteer-form-wrap .form-single textarea {
  background: var(--navy-light);
  border-color: #3a5081;
  color: var(--white);
  font-family: var(--font-body);
}
.volunteer-form-wrap .form-grid input::placeholder,
.volunteer-form-wrap .form-single input::placeholder,
.volunteer-form-wrap .form-single textarea::placeholder { color: #A9B6D0; }

.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  line-height: 1.45;
}
.check-list label { display: flex; align-items: flex-start; gap: 8px; }
.check-list label input { margin-top: 3px; flex-shrink: 0; }


/* ---------- District map ---------- */
.district { padding: 80px 0; background: var(--white); }
.district-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.district h2 { color: var(--navy); font-size: 2rem; }
.district-media {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -14px rgba(21,41,75,.25);
}
.district-media img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.district-media:hover img { transform: scale(1.045); }
.district-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 1.6em;
}
.district-lists h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .6em;
}
.district-note {
  display: block;
  font-size: .82rem;
  color: var(--gray);
  font-weight: 400;
  margin-top: .2em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D2E3; padding: 56px 0 26px; }
.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; color: var(--white); }
.footer-nav a:hover { color: #E8B4B8; }
.footer-contact { text-align: right; }
.footer-social { display: inline-flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: .76rem;
  color: #93A2C4;
}
.footer-bottom a { text-decoration: underline; }
.footer-legal { max-width: 70ch; }

/* ---------- Simple legal page ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 72px 24px 100px; }
.legal-page h1 { color: var(--navy); font-size: 2rem; }
.legal-page p, .legal-page li { color: var(--gray); }
.legal-note {
  background: #FFF6E5;
  border: 1px solid #F0D998;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .88rem;
  color: #6b5417;
  margin-bottom: 2em;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.priority-grid .reveal:nth-child(1) { transition-delay: 0s; }
.priority-grid .reveal:nth-child(2) { transition-delay: .1s; }
.priority-grid .reveal:nth-child(3) { transition-delay: .2s; }
.priority-grid .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 4px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; }
  .hero-content { padding: 40px 24px; }

  .contribute-inner { grid-template-columns: 1fr; text-align: center; }
  .contribute p { margin-left: auto; margin-right: auto; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); max-width: 380px; margin-left: auto; margin-right: auto; }

  .proven-inner, .about-inner, .record-inner, .volunteer-inner, .district-inner { grid-template-columns: 1fr; }
  .proven-media { min-height: 300px; order: -1; }
  .proven-text { padding: 48px 24px; }
  .about-inner, .record-inner, .district-inner { gap: 32px; }
  .record-inner { direction: ltr; }
  .record-media { order: -1; }
  .volunteer-media { min-height: 260px; order: -1; }
  .volunteer-form-wrap { padding: 48px 24px; }

  .priority-grid { grid-template-columns: 1fr 1fr; }

  .footer-top { grid-template-columns: 1fr; text-align: left; gap: 24px; }
  .footer-contact { text-align: left; }
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .district-lists { grid-template-columns: 1fr; }
  .header-cta .btn span.long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .hero-media img, .proven-media img, .volunteer-media img,
  .about-media img, .record-media img, .district-media img { transition: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
