@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');

* { box-sizing: border-box; }

body {
  font-family: "League Spartan", sans-serif;
  font-weight: 200;
  font-optical-sizing: auto;
  margin: 0;
  line-height: 1.6;
  color: #222;
}

p, li { font-size: 1.4rem; }

img { max-width: 100%; height: auto; }

/* ── Navigation ── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgb(240 255 255);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
}

.nav-logo img { height: 50px; }

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  white-space: nowrap;
}

.nav-links a.active {
  font-weight: 600;
}

.lang-switcher {
  margin-left: auto;
}

.lang-switcher a {
  color: #1e3a8a;
  margin-left: 0.5rem;
  font-size: 0.9em;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Main content ── */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 1rem 2rem;
}

/* ── Home page ── */

.contact-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.contact-bar .row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-bar .email-icon { font-size: 2rem; }

.contact-bar .donate-label { font-size: 2rem; }

.contact-bar .qr-code { width: 100px; }

.hero-images {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-images img { width: 50%; }

.endorsement-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.25rem;
}

.endorsement-img {
  display: flex;
  align-items: center;
}

.endorsement-img img { width: 100%; max-width: 200px; }

.welcome-text {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* ── Bio page ── */

.bio-portrait {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bio-portrait img { max-height: 500px; width: auto; }

/* ── Ward map ── */

.ward-note {
  font-family: Georgia, serif;
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

.ward-map-img img { width: 99%; }

/* ── Voting info ── */

.voting-links h2 { margin-top: 1.5rem; }

.voting-links a {
  color: #1e3a8a;
  text-decoration: none;
}

.voting-links a:hover { text-decoration: underline; }

/* ── Footer ── */

.site-footer {
  padding-top: 3rem;
}

.footer-rule {
  width: 80%;
  margin: 2rem auto;
  border: none;
  border-top: 4px solid rgb(0 128 0);
  box-shadow: rgb(0 0 0) 4px 4px 0px;
}

.allies-row {
  display: grid;
  gap: 0.75rem;
}

.ally-card {
  position: relative;
  background-color: lightblue;
  padding: 0.75rem 0.5em;
  box-shadow: 4px 4px darkgray;
  text-align: center;
  transition: all 0.1s ease-in-out;
}

.ally-card:active {
  top: 2px;
  box-shadow: 2px 2px darkgray;
}

.ally-card a.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.ally-card p { margin: 0; }

.ally-card p.name {
  font-weight: 400;
}

.ally-card p.role {
  font-size: 89%;
}

.site-credit {
  text-align: center;
  margin-top: 2.5rem;
  padding-bottom: 2rem;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .nav-links.open { display: flex; }

  .hero-images { flex-direction: column; }
  .hero-images img { width: 100%; }

  .allies-row { grid-template-columns: 1fr !important; }
}
