/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Logo palette — used for UI accents, links, buttons */
  --navy:      #1b2b8f;   /* logo K badge blue — links, buttons */
  --navy-mid:  #16228a;   /* slightly deeper blue for hover */
  --red:       #c41e1e;   /* inner arc — secondary accent */
  --orange:    #f0900c;   /* outer arc — primary highlight */
  --orange-lt: #f5ab3a;   /* lighter orange for hover states */
  --steel:     #5b8fd4;   /* lightning bolt — tertiary accent */
  --white:     #ffffff;
  --off-white: #f5f6fb;
  --gray-light: #e4e6f0;
  --gray:      #6b7280;
  --text:      #1a1a1a;

  /* Site background palette — neutral dark gray, complementary to logo orange/red */
  --bg-dark:   #2e3338;   /* nav, hero, dark sections */
  --bg-deep:   #1d2125;   /* footer */
  --bg-mid:    #3a4047;   /* hover/active states on dark bg */

  /* Legacy aliases (keep existing references working) */
  --navy-deep: var(--bg-deep);
  --dark-bg:   var(--bg-dark);
  --accent-bg: var(--bg-mid);
  --gold:      var(--orange);
  --gold-lt:   var(--orange-lt);

  --radius:    6px;
  --shadow:    0 2px 16px rgba(46,51,56,0.18);
  --max-w:     1120px;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}
.section-light { background: var(--off-white); }
.section-dark  { background: var(--dark-bg); color: var(--white); }
.section-accent { background: var(--accent-bg); color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-label.light { color: var(--gold-lt); }

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-dark h2, .section-accent h2 { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-intro.light { color: #bcd; }
.section-dark .section-intro { color: #a0b4cc; }
.section-accent .section-intro { color: #a0b4cc; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--gold-lt); text-decoration: none; transform: translateY(-1px); }
.btn-primary.large { font-size: 1.1rem; padding: 1rem 2.5rem; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* ===== PLACEHOLDER STYLES (remove before launch) ===== */
.photo-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #dde3ea,
    #dde3ea 10px,
    #eaeff4 10px,
    #eaeff4 20px
  );
  border: 2px dashed #9aabbf;
  border-radius: var(--radius);
  color: #556b7d;
  font-size: 0.85rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background 0.2s;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.2rem;
  white-space: nowrap;
  line-height: 1;
}
.nav-logo:hover { text-decoration: none; }
.footer-logo-img {
  display: block;
  height: 130px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-links li a:hover { color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-links .btn-nav {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 0.4rem 1rem;
}
.nav-links .btn-nav:hover { background: var(--gold-lt); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    ". photo"
    "logo photo"
    "text photo"
    ". photo";
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-logo-col {
  grid-area: logo;
  display: flex;
  justify-content: center;
  padding: 0 3rem 1rem;
}

.hero-text-col {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 0 3rem 4rem;
}

.hero-photo-col {
  grid-area: photo;
  position: relative;
  overflow: hidden;
}

.hero-family-img {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 80px);
  object-fit: cover;
  object-position: center top;
}


.hero-logo-img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.55));
}

.hero-text-col h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero-text-col h1 span {
  color: var(--gold);
}

.hero-tagline {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== ABOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.about-text-col h2 { margin-bottom: 1.25rem; }
.about-text-col p { margin-bottom: 1.1rem; }
.about-text-col p:last-of-type { margin-bottom: 0; }
.about-text-col .btn-outline { margin-top: 1.5rem; }

/* ===== PRIORITIES ===== */
.priorities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  overflow: hidden;
}

.priority-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 1.75rem;
  transition: background 0.2s, transform 0.2s;
  min-width: 0;
  overflow: hidden;
}
.priority-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-3px); }


.priority-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-lt);
  margin-bottom: 0.5rem;
}

.priority-card p {
  color: #a0b8cc;
  font-size: 0.93rem;
  line-height: 1.65;
}

.priority-card-header {
  cursor: default;
}

.priority-icon-svg {
  width: 5rem;
  height: 5rem;
  display: block;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.priority-chevron {
  display: none;
}

/* ===== DISTRICT FINDER ===== */
.finder-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}

.address-form {
  margin-bottom: 2rem;
}
.address-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.address-input-row {
  display: flex;
  gap: 0.5rem;
}
.address-input-row input {
  flex: 1;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.address-input-row input:focus { border-color: var(--navy); }
.address-input-row button {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.address-input-row button:hover { background: var(--navy-mid); }

.lookup-result {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.lookup-result.in-district {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}
.lookup-result.out-of-district {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #ffd97d;
  display: block;
}
.lookup-result.error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  display: block;
}

.division-legend h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.division-legend ul {
  list-style: none;
}
.division-legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  padding: 0.3rem 0;
  font-weight: 500;
}
.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.15);
}

#district-map {
  height: 480px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-light);
  box-shadow: var(--shadow);
  background: #e8edf2;
  min-width: 0;
  max-width: 100%;
}

/* ===== ENDORSEMENTS ===== */
.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.endorsement-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 1.75rem;
}
.endorsement-card blockquote {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  font-style: italic;
}
.endorsement-card cite {
  font-size: 0.85rem;
  color: var(--gold-lt);
  font-style: normal;
  font-weight: 600;
}

/* ===== GET INVOLVED ===== */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.involve-card {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-top: 4px solid var(--navy);
  border-radius: 8px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.involve-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.involve-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.involve-card .btn-outline { width: 100%; text-align: center; }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.signup-form input {
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.signup-form input:focus { outline: none; border-color: var(--navy); }
.signup-form .btn-primary { margin-top: 0.25rem; }

.form-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ===== DONATE ===== */
.donate-container {
  text-align: center;
  max-width: 700px;
}
.donate-amounts {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.donate-btn {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.donate-btn:hover,
.donate-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.donate-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-container { max-width: 900px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.contact-info p { margin-bottom: 0.5rem; }
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.social-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-light);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s;
}
.social-btn:hover { background: var(--off-white); text-decoration: none; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--navy); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 0.6rem 1.5rem 0.6rem 0.6rem;
  border-radius: 10px;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  line-height: 1.3;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--gold-lt); text-decoration: none; }
.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--bg-dark);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 0.6rem 0; border-radius: 0; }

  .two-col,
  .finder-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .priorities-grid { grid-template-columns: 1fr; }

  .priority-card-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-right: 1.5rem;
    user-select: none;
  }

  .priority-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    flex: 1;
  }
  .priority-chevron {
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--gold-lt);
    transition: transform 0.25s;
    line-height: 1;
  }
  .priority-card.open .priority-chevron {
    transform: translateY(-50%) rotate(180deg);
  }
  .priority-card p {
    display: none;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .priority-card.open p {
    display: block;
  }
  .priority-card:hover { transform: none; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "logo" "photo" "text";
  }
  .hero-logo-col { padding: 5.5rem 1.5rem 1rem; }
  .hero-photo-col { height: 70vh; background: var(--bg-dark); }
  .hero-family-img { top: 0; height: 100%; object-fit: contain; object-position: center top; }
  .hero-text-col { padding: 2rem 1.5rem 3rem; }
  .hero-logo-img { max-width: 100%; }
  .about-photo { aspect-ratio: 3/2; }
  #district-map { height: 320px; }
  .involve-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .donate-amounts { gap: 0.5rem; }
  .donate-btn { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
}
