/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #00502f;        /* Deep Slate Navy */
  --primary-light: #33704e;  /* Slate Blue */
  --accent: #c0a16b;         /* Canadian Red */
  --accent-light: #d1b585;   /* Bright Red */
  --accent-glow: rgba(192, 161, 107, 0.15);
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #003820;
  --bg-darker: #002213;
  
  /* Layout & Spacing */
  --header-height-full: 90px;
  --header-height-shrink: 65px;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  /* Fonts */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* Dark Mode Scheme Override (Optional / Preferences) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #002213;
    --bg-white: #003820;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
  }
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height-shrink);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
  }
}

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

a:hover {
  color: var(--accent-light);
}

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

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

.text-center { text-align: center; }
.text-light { color: var(--text-light) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

.btn-lg {
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--border-radius-md);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 161, 107, 0.3);
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

/* If inside a light section */
section:not(.hero-section):not(.support-section) .btn-secondary {
  border-color: var(--primary);
  color: var(--primary);
}
section:not(.hero-section):not(.support-section) .btn-secondary:hover {
  background-color: rgba(0, 56, 32, 0.05);
}

.btn-accent {
  background-color: #ffffff;
  color: var(--primary);
}

.btn-accent:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-full);
  z-index: 1000;
  background: rgba(0, 56, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.logo-sub {
  color: var(--accent-light);
  font-weight: 500;
  font-size: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 8px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 6px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-light);
}

.nav-item:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--primary);
  z-index: 999;
  padding: 120px 24px 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-item {
  font-family: var(--font-headings);
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav-links .btn {
  margin-top: 12px;
}

/* Header Shrink Animation (Scroll-driven) */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrink-header {
    to {
      height: var(--header-height-shrink);
      background-color: rgba(0, 56, 32, 0.97);
      border-bottom-color: rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
  }
  
  header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: var(--primary);
  background-image: linear-gradient(to right, rgba(0, 56, 32, 0.95) 30%, rgba(0, 56, 32, 0.75) 100%),
                    url('assets/downtown_richmond_hill.jpg');
  background-size: cover;
  background-position: center;
  padding-top: calc(var(--header-height-full) + 80px);
  padding-bottom: 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 56, 32, 0) 60%, rgba(0, 56, 32, 0.75) 100%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 10;
}

.hero-content {
  color: var(--text-light);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  background-color: rgba(192, 161, 107, 0.12);
  border: 1px solid rgba(192, 161, 107, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 40px;
  max-width: 620px;
}

.hero-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 16px;
  justify-content: start;
}

.hero-btn-explore {
  grid-column: 1;
  grid-row: 1;
}

.hero-btn-volunteer {
  grid-column: 2;
  grid-row: 1;
}

.hero-btn-share {
  grid-column: 3;
  grid-row: 1;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  text-align: center;
}

.scroll-voice-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  opacity: 0.85;
  text-decoration: none;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-smooth);
}

.scroll-voice-link:hover {
  color: var(--accent-light);
  opacity: 1;
  transform: translateY(2px);
}

.scroll-voice-arrow {
  color: var(--accent-light);
  animation: bounce 2s infinite;
  transition: var(--transition-smooth);
}

.scroll-voice-link:hover .scroll-voice-arrow {
  color: var(--accent);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image-backdrop {
  position: absolute;
  bottom: 0;
  width: 85%;
  height: 80%;
  background: linear-gradient(135deg, rgba(51, 112, 78, 0.6) 0%, rgba(0, 56, 32, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 2;
  max-width: 95%;
  max-height: 660px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  /* Smooth mask fade at the very bottom */
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */

section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 18px;
}

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

/* ==========================================================================
   INTRO & ABOUT SECTIONS
   ========================================================================== */

.intro-banner {
  background-color: var(--primary-light);
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.about-text-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.creds-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.cred-item {
  display: flex;
  gap: 16px;
}

.cred-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.cred-icon svg {
  width: 22px;
  height: 22px;
}

.cred-item strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 2px;
}

@media (prefers-color-scheme: dark) {
  .cred-item strong {
    color: var(--text-light);
  }
}

.cred-item span {
  font-size: 14px;
  color: var(--text-muted);
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-image-wrapper {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 56, 32, 0.05);
}

.about-portrait {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top center;
}

.quote-card {
  background-color: var(--bg-white);
  border-left: 4px solid var(--accent);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
}

.quote-mark {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 72px;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(192, 161, 107, 0.1);
  pointer-events: none;
}

.quote-text {
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

@media (prefers-color-scheme: dark) {
  .quote-text {
    color: var(--text-light);
  }
}

.quote-author {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}

.about-card-stat {
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: var(--border-radius-md);
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   ISSUES SECTION (ACCORDION CARDS)
   ========================================================================== */

.issues-section {
  background-color: var(--bg-white);
  border-top: 1px solid rgba(0, 56, 32, 0.05);
}

.issues-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.issue-card {
  background-color: var(--bg-light);
  border: 1px solid rgba(0, 56, 32, 0.04);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  outline: none;
}

.issue-card:hover {
  border-color: rgba(192, 161, 107, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

.issue-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.issue-card-header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.issue-icon {
  width: 42px;
  height: 42px;
  background-color: rgba(0, 56, 32, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .issue-icon {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
  }
}

.issue-icon svg {
  width: 20px;
  height: 20px;
}

.issue-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-left: 20px;
  margin-right: auto;
}

.accordion-arrow {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.accordion-arrow svg {
  width: 18px;
  height: 18px;
}

.issue-card.active .accordion-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.issue-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 32px;
}

.issue-card.active .issue-card-body {
  max-height: 800px; /* Large enough to fit content */
  padding-bottom: 32px;
}

.voter-questions {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  margin-bottom: 20px;
  border-left: 3px solid rgba(192, 161, 107, 0.3);
}

.voter-questions h4, .marty-solution h4 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.voter-questions h4 {
  color: var(--accent);
}

.voter-questions ul {
  list-style-position: inside;
  padding-left: 4px;
}

.voter-questions li {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.voter-questions li:last-child {
  margin-bottom: 0;
}

.link-inline {
  font-weight: 500;
  text-decoration: underline;
}

.marty-solution h4 {
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .marty-solution h4 {
    color: var(--accent-light);
  }
}

.marty-solution p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Stance Callout */
.summary-stance-card {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  border-radius: var(--border-radius-lg);
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.summary-stance-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background-color: rgba(192, 161, 107, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.summary-stance-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.summary-stance-content h3 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.final-question {
  font-family: var(--font-headings);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.final-answer {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.center-cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gallery-item {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 56, 32, 0.03);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.gallery-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: var(--bg-light);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.05);
}

/* Placeholder card for items where photo wasn't provided in raw JPG but exists in PDF */
.placeholder-gallery-item .gallery-img-placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  gap: 12px;
}

.gallery-img-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.gallery-img-placeholder span {
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-info {
  padding: 24px;
}

.gallery-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gallery-info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   SUPPORT & CALL TO ACTION
   ========================================================================== */

.support-section {
  background-color: var(--primary);
  background-image: radial-gradient(circle at 10% 90%, rgba(192, 161, 107, 0.06) 0%, transparent 45%);
}

.support-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: nowrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background-color: var(--bg-darker);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 40px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-contact h4 {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
  color: var(--accent-light);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-badge {
  display: inline-block;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 4px;
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   MODAL / DIALOGS
   ========================================================================== */

.campaign-modal {
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 0;
  max-width: 540px;
  width: 90%;
  background: var(--bg-white);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin: auto;
  outline: none;
  overflow: visible; /* To let close button pop out slightly if wanted */
}

/* Native backdrop styling */
.campaign-modal::backdrop {
  background-color: rgba(0, 34, 19, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 4px;
}

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

.campaign-modal h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.campaign-modal p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 15px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 6px;
}

@media (prefers-color-scheme: dark) {
  .form-group label {
    color: var(--text-light);
  }
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
}

@media (prefers-color-scheme: dark) {
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group textarea {
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: var(--bg-white);
}

/* Form Validation feedback with :user-invalid */
.form-group input:not(:placeholder-shown):user-invalid,
.form-group textarea:not(:placeholder-shown):user-invalid {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.02);
}

.form-group input:not(:placeholder-shown):user-invalid + .error-msg,
.form-group textarea:not(:placeholder-shown):user-invalid + .error-msg {
  display: block;
}

/* For checkboxes, wait for validation */
.form-group.checkbox-group input:user-invalid + label + .error-msg {
  display: block;
}

.error-msg {
  display: none;
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* Checkbox Styles */
.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.checkbox-group label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-option input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.checkbox-option label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
}

/* Success State */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  margin-bottom: 20px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

.success-state h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.success-state p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Donation Modals Specifics */
.donation-rules {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.donation-rules h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.donation-rules ul {
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.donation-rules li {
  margin-bottom: 6px;
}

.donation-rules li strong {
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .donation-rules h4, .donation-rules li strong {
    color: var(--text-light);
  }
}

.donation-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.donation-method-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(0, 56, 32, 0.1);
  border-radius: var(--border-radius-md);
}

.method-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-glow);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-icon svg {
  width: 22px;
  height: 22px;
}

.donation-method-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  .donation-method-card strong {
    color: var(--text-light);
  }
}

.donation-method-card p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.4;
}

.select-all {
  user-select: all;
  background-color: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px dashed var(--accent);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (PROGRESSIVE ENHANCEMENT)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
    }

    /* Apply scroll-reveal to major content parts */
    .about-visual,
    .about-text-content,
    .issues-grid,
    .gallery-item,
    .summary-stance-card {
      animation: fade-in-up auto linear backwards;
      animation-timeline: view();
      animation-range: entry 10% entry 35%;
    }
  }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 46px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual {
    order: -1; /* Image first on tablets */
  }
  .about-portrait {
    height: 640px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    max-width: 320px;
    margin: 0 auto;
    gap: 16px;
  }
  .hero-btn-explore,
  .hero-btn-volunteer,
  .hero-btn-share {
    grid-column: 1 !important;
    width: 100%;
    margin-top: 0 !important;
  }
  .hero-btn-explore { grid-row: 1 !important; }
  .hero-btn-volunteer { grid-row: 2 !important; }
  .hero-btn-share { grid-row: 3 !important; }
  .support-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 48px auto 0;
  }
  .hero-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
  .nav-links {
    display: none; /* Hide desktop nav */
  }
  .menu-toggle {
    display: flex; /* Show hamburger */
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .legal-badge {
    align-self: center;
  }
  .modal-content {
    padding: 32px 24px;
  }
  .checkbox-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 38px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .section-title {
    font-size: 30px;
  }
}

/* ==========================================================================
   MAP & WARD BOUNDARIES SECTION
   ========================================================================== */

.map-section {
  background-color: var(--bg-white);
  border-top: 1px solid rgba(0, 56, 32, 0.05);
}

.map-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.map-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 56, 32, 0.05);
  transition: var(--transition-smooth);
}

#ward-map {
  height: 450px;
  width: 100%;
  z-index: 1;
  background-color: var(--bg-light);
}

/* Custom Leaflet Controls Styling */
.leaflet-bar {
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border-radius: var(--border-radius-sm) !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: var(--bg-white) !important;
  color: var(--primary) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  transition: var(--transition-fast);
}

.leaflet-bar a:hover {
  background-color: var(--bg-light) !important;
  color: var(--accent) !important;
}

.leaflet-container {
  font-family: var(--font-body) !important;
}

.map-info-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.boundaries-list-wrapper, .street-checker {
  background-color: var(--bg-light);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0, 56, 32, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.boundaries-list-wrapper h3, .street-checker h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.boundaries-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.boundaries-details li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(0, 56, 32, 0.1);
}

.boundaries-details li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.boundary-dir {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.boundary-val {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

@media (prefers-color-scheme: dark) {
  .boundary-val {
    color: var(--text-light);
  }
}

.checker-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-location {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.checker-or-divider {
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checker-input-wrapper {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
}

.checker-input-wrapper input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.checker-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-result-badge {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.25s ease-out;
}

.search-result-badge.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.search-result-badge.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Map Section */
@media (max-width: 992px) {
  .map-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  #ward-map {
    height: 350px;
  }
}

/* ==========================================================================
   FEEDBACK SECTION & CAPTCHA STYLING
   ========================================================================== */

.feedback-section {
  background-color: var(--bg-light);
  border-top: 1px solid rgba(0, 56, 32, 0.05);
  border-bottom: 1px solid rgba(0, 56, 32, 0.05);
}

.feedback-container {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--bg-white);
  padding: 48px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 56, 32, 0.04);
}

.feedback-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: var(--bg-light);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

@media (prefers-color-scheme: dark) {
  .form-select {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: var(--bg-light);
    color: var(--text-light);
  }
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: var(--bg-white);
}

.captcha-group-box {
  margin-top: 24px;
  margin-bottom: 24px;
}

.captcha-box {
  width: 302px;
  height: 76px;
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

@media (prefers-color-scheme: dark) {
  .captcha-box {
    background-color: var(--primary-light);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

/* Hidden real checkbox */
.captcha-box input[type="checkbox"] {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.captcha-checkbox-custom {
  width: 28px;
  height: 28px;
  border: 2px solid #c1c1c1;
  background-color: #ffffff;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.captcha-box input[type="checkbox"]:focus + .captcha-checkbox-custom {
  border-color: #1a73e8;
}

.captcha-box input[type="checkbox"]:checked + .captcha-checkbox-custom {
  border-color: #22c55e;
  background-color: #22c55e;
}

.captcha-box input[type="checkbox"]:checked + .captcha-checkbox-custom::after {
  content: '';
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.captcha-text {
  font-family: Roboto, -apple-system, sans-serif;
  font-size: 14px;
  color: #282828;
  margin-left: 12px;
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  .captcha-text {
    color: #e2e8f0;
  }
}

.captcha-logo {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.8;
}

.captcha-logo svg {
  width: 26px;
  height: 26px;
}

.captcha-logo span {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 8px;
  font-weight: 500;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .feedback-container {
    padding: 32px 20px;
  }
  .feedback-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   SHARE MODAL & CTAS
   ========================================================================== */

.share-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: var(--bg-light);
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.share-btn svg {
  flex-shrink: 0;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-btn.facebook {
  border-color: rgba(24, 119, 242, 0.15);
  color: #1877f2;
}
.share-btn.facebook:hover {
  background-color: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.share-btn.twitter {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--primary);
}
.share-btn.twitter:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.share-btn.whatsapp {
  border-color: rgba(37, 211, 102, 0.15);
  color: #25d366;
}
.share-btn.whatsapp:hover {
  background-color: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.share-btn.copy-link {
  border-color: rgba(192, 161, 107, 0.15);
  color: var(--accent);
}
.share-btn.copy-link:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

@media (max-width: 576px) {
  .share-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


