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

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

/* Site navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-secondary, #EC1F27);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  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;
}
.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
@media (min-width: 1200px) {
  .nav-container {
    height: 80px;
    padding: 0 1.5rem;
  }
  .nav-top-row {
    width: auto;
    flex: 0 0 auto;
  }
}
@media (min-width: 1400px) {
  .nav-container {
    max-width: none;
    padding: 0 2.5rem;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 44px;
}
@media (min-width: 1200px) {
  .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: 1200px) {
  .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: 1200px) {
  .nav-menu {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }
  .nav-menu-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    min-width: 0;
  }
  .nav-menu-logo {
    display: none;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
  }
  .nav-link {
    display: inline-block;
    color: var(--color-nav-link-text, #7f0000);
    padding: 0.75rem 1rem;
    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.25rem;
    font-size: 1.15rem;
  }
  .nav-link-donate:hover {
    background: var(--color-accent, #F8843F);
    text-decoration: none;
  }
}

/* Compact nav for smaller laptop viewports (1200-1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .nav-link {
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
  }
  .nav-link-donate {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }
}

/* Mobile slide-down menu */
@media (max-width: 1199px) {
  .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: var(--color-secondary, #EC1F27);
  }
  .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-nav-link-text, #7f0000);
    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: 1200px) {
  .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 - full-bleed image with overlay */
.hero-split {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
  overflow: hidden;
}
@media (min-width: 1200px) {
  .hero-split {
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
@media (max-width: 767px) {
  .hero-split {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .hero-background {
    position: relative;
    height: 60vh;
    min-height: 340px;
    flex-shrink: 0;
  }
  .hero-background img {
    object-position: center top;
  }
  .hero-left {
    margin-top: -2rem;
    justify-content: center;
    padding: 0 1.25rem 2rem;
    background: var(--color-accent, #fff0d7);
  }
  .hero-left-inner {
    max-width: 90vw;
  }
  .hero-card {
    position: relative;
    z-index: 2;
  }
}
.hero-background picture,
.hero-background img {
  width: 100%;
  height: 100%;
}
.hero-background img {
  object-fit: cover;
  object-position: center;
}

.hero-left {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1.25rem;
}
@media (min-width: 768px) {
  .hero-left {
    padding: 3rem 4rem;
  }
}
.hero-left-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 100%;
  gap: 1rem;
}

/* Mobile vs desktop hero cards - logo + Join the Movement replaces signup form on mobile only */
@media (max-width: 767px) {
  .hero-card-desktop { display: none !important; }
}
@media (min-width: 768px) {
  .hero-card-mobile { display: none !important; }
}
.hero-cta-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  text-decoration: none;
}

/* Signup card - secondary color background, center-aligned content */
.hero-card {
  background: var(--color-secondary, #EC1F27);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-white, #FFFFFF);
}
.hero-logo img {
  max-height: 150px;
  width: auto;
}
@media (min-width: 768px) {
  .hero-logo img {
    max-height: 260px;
  }
  .hero-left-inner {
    max-width: 480px;
  }
}
.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;
}

/* Meet section */
.meet-section {
  background: var(--color-secondary, #FFF19B);
  padding: 3rem 1.25rem;
}
.meet-inner {
  background: var(--color-accent, #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-accent, #2A2F78);
  padding: 3rem 1.25rem;
}
.platform-section-heading {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  color: var(--color-secondary-dark, #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-secondary-dark, #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;
}
.why-running-card {
  background: var(--color-white, #FFFFFF);
  color: var(--color-dark, #1A1A1A);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 6px 28px rgba(0,0,0,0.22);
  outline: 3px solid var(--color-secondary-dark, #273756);
  outline-offset: -1px;
}
.why-running-heading {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--color-secondary-dark, #273756);
}
.why-running-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}
.why-running-text strong {
  color: var(--color-secondary, #EC1F27);
}
.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: 100%;
  }
  .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;
  width: 100%;
}
.about-card-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
@media (min-width: 768px) {
  .about-card-image {
    width: 380px;
  }
  .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;
}
.about-card-heading {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: var(--color-secondary-dark, #273756);
}

/* 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: 8px 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 {
  flex-shrink: 0;
  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-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.platform-card-summary {
  margin: 0;
  line-height: 1.7;
}
.policy-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.policy-card {
  background: var(--color-secondary, #EC1F27);
  color: var(--color-white, #FFFFFF);
  border-radius: 6px;
  overflow: hidden;
}
.policy-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.15s ease;
  touch-action: manipulation;
}
.policy-title:hover {
  opacity: 0.9;
}
.policy-title::after {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.5rem;
  transition: transform 0.25s ease;
  pointer-events: none;
}
.policy-title[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.policy-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-white, #FFFFFF);
  color: var(--color-dark, #1A1A1A);
}
.policy-details.is-open {
  max-height: 800px;
}
.policy-details p {
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  line-height: 1.6;
}

/* Contact page */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-cards {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
  }
}
.contact-card {
  flex: 1;
  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;
}
@media (min-width: 768px) {
  .contact-card:only-child {
    flex: 0 1 auto;
  }
}
.contact-card-reverse {
  border-left: none;
  border-right: 4px solid var(--color-accent, #f1c226);
}
.contact-info,
.contact-form-wrapper {
  padding: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.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: 640px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-actions .volunteer-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b0b0b0;
}

/* 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;
}
