/* Design Tokens & Colors */
:root {
  --primary: #1b4332;          /* Deep Forest Green */
  --primary-light: #2d6a4f;
  --primary-dark: #081c15;
  --accent: #d97706;           /* Rich Amber/Gold */
  --accent-light: #f59e0b;
  --bg-cream: #fbfaf7;         /* Soft warm background */
  --bg-white: #ffffff;
  --text-dark: #1f2937;        /* Clean charcoal */
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 4px 6px -1px rgba(27, 67, 50, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(27, 67, 50, 0.12);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Glassmorphism Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(251, 250, 247, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  color: var(--primary);
  font-weight: 700;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 15px;
}

nav a:hover {
  color: var(--primary);
}

.cta-nav {
  background-color: var(--primary);
  color: var(--bg-cream);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cta-nav:hover {
  background-color: var(--primary-light);
  color: var(--bg-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
  padding: 160px 0 80px 0;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(27, 67, 50, 0.03) 0%, transparent 50%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 64px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.campaign-badge {
  display: inline-block;
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: 54px;
  line-height: 1.15;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-cream);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(27, 67, 50, 0.05);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Hero Image Card styling */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  background-color: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(27, 67, 50, 0.05);
  transform: rotate(2deg);
  transition: var(--transition);
}

.hero-image-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.candidate-photo {
  width: 340px;
  height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  display: block;
}

.hero-image-caption {
  margin-top: 16px;
  text-align: center;
}

.hero-image-caption h3 {
  font-size: 22px;
  color: var(--primary);
}

.hero-image-caption p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sections Global */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 40px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 20px auto 0 auto;
  border-radius: 2px;
}

/* About Section */
.about {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* About Section Layout - Photo on Left, Text on Right */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-card {
  position: relative;
  background-color: var(--bg-white);
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(27, 67, 50, 0.05);
  transform: rotate(-2deg); /* subtle rotation matching the hero design styling */
  transition: var(--transition);
}

.about-image-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center; /* Centralize the two people in the photo */
  border-radius: var(--radius-sm);
  display: block;
}

.about-text {
  width: 100%;
  text-align: left;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--text-dark);
  font-size: 17px;
}

/* horizontal layout for centered highlights */
.about-highlights {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 960px;
}

.stat-card {
  background-color: var(--bg-cream);
  padding: 24px;
  border-radius: var(--radius-md);
  border-top: 5px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  flex: 1 1 250px;
  max-width: 300px;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-card p {
  color: var(--text-muted);
  font-weight: 500;
}

/* Priorities Section */
.priorities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.priority-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.priority-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 67, 50, 0.2);
}

.icon-wrapper {
  background-color: rgba(27, 67, 50, 0.05);
  color: var(--primary);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.priority-card:hover .icon-wrapper {
  background-color: var(--primary);
  color: var(--bg-cream);
}

.priority-card h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.priority-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Endorsements Section */
.endorsements {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

.endorsements-display {
  margin-bottom: 60px;
}

.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.endorsement-card {
  background-color: var(--bg-cream);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.endorsement-card .quote {
  font-style: italic;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--primary);
}

.author-address {
  font-size: 13px;
  color: var(--text-muted);
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 60px 40px;
  background-color: var(--bg-cream);
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  color: var(--text-muted);
}

/* Submission Form */
.submit-card {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--bg-cream);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.submit-card h3 {
  font-size: 26px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.submit-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background-color: var(--bg-white);
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.form-feedback {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.form-feedback.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.form-feedback.loading {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* Supabase Note */
.supabase-note {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 16px 24px;
  background-color: rgba(217, 119, 6, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
}

.supabase-note a {
  color: var(--accent);
  font-weight: 600;
}

.supabase-note a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
  font-size: 14px;
  margin-bottom: 8px;
}

.disclaimer {
  font-size: 12px;
  opacity: 0.7;
}

/* Proposal Section */
.proposal {
  background-color: var(--bg-cream);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.proposal-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.proposal-content p {
  margin-bottom: 24px;
  color: var(--text-dark);
  font-size: 17px;
}

/* Contact Section */
.contact-section {
  padding: 50px 0;
  text-align: center;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
}

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

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 28, 21, 0.6); /* Translucent forest dark green overlay */
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: var(--transition);
}

.modal-card {
  background-color: var(--bg-cream);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(27, 67, 50, 0.1);
  position: relative;
  width: 90%;
  max-width: 480px;
  text-align: center;
  animation: modalFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalFadeIn {
  from {
    transform: scale(0.9) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--primary-light);
}

.modal-content h3 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.modal-content p {
  font-size: 18px;
  color: var(--text-dark);
}

.email-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.email-link:hover {
  border-bottom-color: var(--accent);
}

/* Helper Class */
.hidden {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-content h1 {
    font-size: 40px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .priorities-grid, .endorsements-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
