/* Campaign Theme - Zach Beaudoin for Erie County Legislature */
/* Color palette matched from campaign sign */

:root {
  --navy: #2c3e50;
  --navy-dark: #1a252f;
  --red: #c0392b;
  --red-dark: #a5281b;
  --cream: #f5f5dc;
  --cream-light: #faf9f0;
  --white: #ffffff;
  --gray-light: #ecf0f1;
  --gray: #7f8c8d;
  --text-dark: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 3rem 0;
}

blockquote {
  border-left: 4px solid var(--red);
  margin: 1.5rem 0;
  padding: 0.75rem 1.5rem;
  background: var(--gray-light);
  font-style: italic;
  color: var(--navy);
}

blockquote p {
  margin-bottom: 0;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  color: var(--cream);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--white);
}

.site-logo span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-light);
  opacity: 0.8;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.main-nav a {
  color: var(--cream);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.donate-btn {
  background: var(--red) !important;
  color: var(--white) !important;
}

.donate-btn:hover {
  background: var(--red-dark) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero h1 .first-name {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
}

.hero .office {
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero .district {
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tagline {
  background: var(--red);
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  border-radius: 4px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--navy);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--navy);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 1rem auto 0;
}

/* Issues Section */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.issue-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-top: 4px solid var(--red);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.issue-card h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.issue-card p {
  color: var(--gray);
  margin-bottom: 0;
}

.issue-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image-placeholder {
  background: var(--gray-light);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
}

.about-text h2 {
  color: var(--navy);
}

/* Events Section */
.events-list {
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.event-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.event-date {
  background: var(--navy);
  color: var(--white);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 80px;
}

.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-details h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.event-details p {
  color: var(--gray);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.no-events {
  text-align: center;
  padding: 3rem;
  background: var(--gray-light);
  border-radius: 8px;
  color: var(--gray);
}

/* Forms */
.form-section {
  background: var(--gray-light);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

/* Donate Section */
.donate-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
}

.donate-section h2 {
  color: var(--white);
}

.donate-section h2::after {
  background: var(--cream);
}

.donate-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--cream);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--cream);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.social-links a:hover {
  background: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.paid-for {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Page Header */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Page Content */
.page-content {
  padding: 4rem 0;
}

.page-content .container {
  max-width: 800px;
}

.content-prose {
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-prose h2 {
  margin-top: 2.5rem;
  color: var(--navy);
}

.content-prose ul,
.content-prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-prose li {
  margin-bottom: 0.5rem;
}

.content-prose hr {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 3rem 0;
}

/* Issues Page */
.issue-detail {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-light);
}

.issue-detail:last-child {
  border-bottom: none;
}

.issue-detail h2 {
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: var(--gray-light);
  border-radius: 8px;
}

.contact-item h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--gray);
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1rem;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .office {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .event-item {
    flex-direction: column;
    gap: 1rem;
  }

  .event-date {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
  }

  .footer-content {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  section {
    padding: 3rem 0;
  }

  .form-container {
    padding: 1.5rem;
  }
}
