/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  background: var(--color-primary, #E9E9E9);
  color: var(--color-dark, #1A1A1A);
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--color-secondary, #3D45AA);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout */
.main-content {
  min-height: calc(100vh - 140px);
  padding-top: 76px;
}
@media (min-width: 768px) {
  .main-content {
    padding-top: 86px;
  }
}

/* Site navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-secondary-dark, #3D45AA);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.2),
    0 6px 0 0 var(--color-accent, #F8843F);
  font-family: "Fraunces", -apple-system, BlinkMacSystemFont, serif;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  height: 70px;
}
@media (min-width: 768px) {
  .nav-container {
    height: 80px;
    padding: 0 1.5rem;
  }
  .nav-top-row {
    width: auto;
    flex: 0 0 auto;
  }
}
.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 44px;
}
@media (min-width: 768px) {
  .nav-logo img {
    height: 52px;
  }
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white, #FFFFFF);
}
@media (min-width: 768px) {
  .nav-hamburger {
    display: none;
  }
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.nav-hamburger-open .hamburger-top {
  transform: translateY(8px) rotate(45deg);
}
.nav-hamburger.nav-hamburger-open .hamburger-middle {
  opacity: 0;
}
.nav-hamburger.nav-hamburger-open .hamburger-bottom {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
  display: none;
}
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    align-items: center;
  }
  .nav-menu-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
  .nav-menu-logo {
    display: none;
  }
  .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
  }
  .nav-link {
    display: inline-block;
    color: var(--color-white, #FFFFFF);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 500;
    border-radius: 6px;
    background: var(--color-primary, #DA3D20);
    border: none;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
  }
  .nav-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .nav-social-link {
    color: var(--color-white, #FFFFFF);
    opacity: 0.9;
  }
  .nav-social-link:hover {
    opacity: 1;
    text-decoration: none;
  }
  .nav-link:hover {
    background: var(--color-accent, #F8843F);
    text-decoration: none;
  }
  .nav-link-donate {
    background: var(--color-cta-button, #c44130);
    color: var(--color-white, #FFFFFF);
    font-weight: 600;
    padding: 0.9rem 1.75rem;
    font-size: 1.15rem;
  }
  .nav-link-donate:hover {
    background: var(--color-accent, #F8843F);
    text-decoration: none;
  }
}

/* Mobile slide-down menu */
@media (max-width: 767px) {
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    height: auto;
    min-height: 70px;
  }
  .nav-top-row {
    padding: 0.75rem 1.25rem;
  }
  .nav-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0,0,0,0.15);
  }
  .nav-menu.nav-menu-open {
    max-height: 75vh;
  }
  .nav-menu-inner {
    padding: 2rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 60vh;
  }
  .nav-menu-logo {
    display: none;
  }
  .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav-link {
    display: block;
    color: var(--color-white, #FFFFFF);
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 500;
    border-radius: 6px;
    text-align: center;
    background: var(--color-primary, #DA3D20);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: background 0.2s ease;
  }
  .nav-link:hover {
    background: var(--color-accent, #F8843F);
    text-decoration: none;
  }
  .nav-link-donate {
    margin-top: 1rem;
    padding: 0.9rem 1.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    background: var(--color-cta-button, #DA3D20);
    color: var(--color-white, #FFFFFF);
    text-align: center;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .nav-link-donate:hover {
    background: var(--color-accent, #F8843F);
    text-decoration: none;
  }
  .nav-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .nav-social-link {
    color: var(--color-white, #FFFFFF);
    opacity: 0.9;
  }
  .nav-social-link:hover {
    opacity: 1;
    text-decoration: none;
  }
}
@media (min-width: 768px) {
  .nav-backdrop {
    display: none !important;
  }
}
body.nav-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--color-secondary, #3D45AA);
  color: var(--color-white, #FFFFFF);
  padding: 1.5rem 1rem;
  text-align: center;
}
.footer-content p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* Hero and home - split layout */
.hero-split {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 76px);
  max-height: calc(100vh - 76px);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-split {
    flex-direction: row;
    height: calc(100vh - 86px);
    max-height: calc(100vh - 86px);
  }
}

.hero-left {
  flex: 1;
  min-height: 0;
  background: var(--color-secondary, #3D45AA);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  order: 2;
}
@media (min-width: 768px) {
  .hero-left {
    order: 1;
  }
}
.hero-left-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 100%;
  gap: 1rem;
}
.hero-logo img {
  max-height: 120px;
  width: auto;
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .hero-logo img {
    max-height: 200px;
  }
}
@media (max-width: 767px) {
  .hero-logo {
    display: none;
  }
}
.hero-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-white, #FFFFFF);
  font-weight: 600;
}
.hero-vote-date {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-highlight, #FFF19B);
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hero-vote-date {
    font-size: 2.5rem;
  }
}
.hero-form {
  width: 100%;
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .hero-form {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.hero-form .form-group {
  margin-bottom: 0.75rem;
}
.hero-form .form-group:last-of-type {
  margin-bottom: 0;
}
.hero-form input,
.hero-form textarea {
  background: var(--color-white, #FFFFFF);
  color: var(--color-dark, #1A1A1A);
  border-color: rgba(255,255,255,0.5);
}
.hero-form input::placeholder,
.hero-form textarea::placeholder {
  color: #b0b0b0;
}
.hero-form .btn {
  background: var(--color-cta-button, #DA3D20);
  margin-top: 0.5rem;
  width: 100%;
}
.hero-form .btn:hover {
  background: var(--color-accent, #F8843F);
}
.hero-form-footer {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}
.hero-form-footer a {
  color: var(--color-white, #FFFFFF);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.hero-form-footer a:hover {
  color: var(--color-highlight, #FFF19B);
  text-decoration: underline;
}

.hero-right {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  order: 1;
}
@media (min-width: 768px) {
  .hero-right {
    order: 2;
  }
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Meet section */
.meet-section {
  background: var(--color-highlight, #FFF19B);
  padding: 3rem 1.25rem;
}
.meet-inner {
  background: var(--color-white, #FFFFFF);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.meet-heading {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  color: var(--color-secondary-dark, #2A2F78);
}
@media (min-width: 768px) {
  .meet-heading {
    font-size: 2.25rem;
  }
}
.meet-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .meet-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}
.meet-image {
  flex-shrink: 0;
}
.meet-image img {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  object-fit: cover;
}
.meet-bio {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.7;
}
.meet-bio p:first-child {
  margin-top: 0;
}
.meet-bio p:last-child {
  margin-bottom: 0;
}

/* Platform section on home */
.platform-section {
  background: var(--color-secondary, #2A2F78);
  padding: 3rem 1.25rem;
}
.platform-section-heading {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  color: var(--color-highlight, #2A2F78);
}
@media (min-width: 768px) {
  .platform-section-heading {
    font-size: 2.25rem;
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
}
.blurb-card-inner {
  font-size: 1.1rem;
  line-height: 1.7;
}
.blurb-card-inner p:first-child {
  margin-top: 0;
}
.blurb-card-inner p:last-child {
  margin-bottom: 0;
}

/* Page layout */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--color-highlight, #2A2F78);
}
@media (min-width: 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }
}

/* Cards */
.card {
  background: var(--color-white, #FFFFFF);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-cta-button, #DA3D20);
  color: var(--color-white, #FFFFFF);
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}
.btn:hover {
  background: var(--color-accent, #F8843F);
  text-decoration: none;
  color: var(--color-white, #FFFFFF);
}
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.15rem;
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* About page */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white, #FFFFFF);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid var(--color-accent, #f1c226);
  overflow: hidden;
}
.about-card-reverse {
  border-left: none;
  border-right: 4px solid var(--color-accent, #f1c226);
}
@media (min-width: 768px) {
  .about-card {
    flex-direction: row;
    align-items: stretch;
    max-width: 95%;
  }
  .about-card:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
  }
  .about-card:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
  }
  .about-card-reverse {
    flex-direction: row-reverse;
  }
}
.about-card-image {
  flex-shrink: 0;
}
.about-card-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
@media (min-width: 768px) {
  .about-card-image {
    width: 280px;
  }
  .about-card-image img {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 200px;
    border-radius: 0;
  }
}
.about-card-text {
  flex: 1;
  padding: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-card-text p:first-child {
  margin-top: 0;
}
.about-card-text p:last-child {
  margin-bottom: 0;
}

/* Platform page */
.platform-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.platform-card {
  background: var(--color-white, #FFFFFF);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid var(--color-highlight, #DA3D20);
}
.platform-card-alt {
  border-left-color: var(--color-secondary, #3D45AA);
}
.platform-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.platform-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-secondary-dark, #2A2F78);
  color: var(--color-white, #FFFFFF);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
}
.platform-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-secondary-dark, #2A2F78);
}
.platform-card p {
  margin: 0;
  line-height: 1.7;
}

/* Contact page */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}
.contact-info {
  flex: 1;
}
.contact-info h2,
.contact-form-wrapper h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--color-secondary-dark, #2A2F78);
}
.contact-details {
  margin-top: 1rem;
}
.contact-details p {
  margin: 0.5rem 0;
}
.contact-form-wrapper {
  flex: 1;
  max-width: 500px;
}

/* Donate page */
.donate-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.donate-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}
.donate-btn {
  margin-top: 1.5rem;
  display: inline-block;
}
