/* ============================================
   Campaign site template — ported from villarrealjr.com
   Brand colors come from the per-brand JSON config.
   ============================================ */
:root {
  --red: #B22234;
  --red-dark: #8B1A29;
  --blue: #0A2463;
  --blue-dark: #061840;
  --blue-light: #1B3A8C;
  --gold: #C5A44E;
  --white: #FFFFFF;
  --off-white: #F6F5F2;
  --paper-2: #FAFAF7;
  --rule: #E5E2DC;
  --text-dark: #0A0A0A;
  --text-medium: #29261B;
  --text-light: #6B6863;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark); line-height: 1.65; overflow-x: hidden;
  background: var(--off-white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: 'Source Serif 4', Charter, Georgia, serif; font-weight: 500; line-height: 1.2; letter-spacing: -0.3px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10, 36, 99, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0 24px; transition: box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; height: 48px; }
.nav-logo img { height: 44px; width: auto; }
.nav-brand-text { font-family: 'Source Serif 4', Georgia, serif; color: #fff; font-size: 1.2rem; font-weight: 600; }
.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links a { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links .btn-nav { background: var(--red); color: white; padding: 8px 20px; border-radius: 4px; font-weight: 700; transition: background 0.2s; }
.nav-links .btn-nav:hover { background: var(--red-dark); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 3px; background: white; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--blue-dark) center center / cover no-repeat; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6, 24, 64, 0.85) 0%, rgba(10, 36, 99, 0.75) 50%, rgba(27, 58, 140, 0.7) 100%); pointer-events: none; }
.hero-stripe { position: absolute; right: -100px; top: 50%; transform: translateY(-50%) rotate(-5deg); width: 300px; opacity: 0.06; }
.hero-stripe div { height: 8px; background: white; margin-bottom: 8px; border-radius: 4px; }
.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero-eyebrow { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; width: 40px; height: 2px; background: var(--gold); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; color: var(--white); margin-bottom: 8px; text-transform: uppercase; letter-spacing: -1px; }
.hero h2 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 400; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 550px; }
.hero-kicker { font-family: 'Montserrat', sans-serif; font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: 4px; text-transform: uppercase; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.hero-tagline { font-family: 'Montserrat', sans-serif; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; color: var(--white); border-left: 4px solid var(--red); padding-left: 16px; margin-bottom: 40px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-phone { display: inline-block; margin-top: 24px; font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.85); letter-spacing: 1px; }

/* BUTTONS */
.btn { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; padding: 14px 32px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s ease; cursor: pointer; border: none; display: inline-block; text-align: center; }
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(178, 34, 52, 0.4); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* SECTIONS */
.section { padding: 80px 0; }
.section-dark { background: var(--blue); color: var(--white); }
.section-light { background: var(--off-white); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.section-subtitle { font-size: 1rem; color: var(--text-medium); margin-bottom: 48px; max-width: 600px; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-label { font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--red); margin-bottom: 8px; }
.section-dark .section-label { color: var(--gold); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photo { width: 100%; border-radius: 8px; position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(10, 36, 99, 0.2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.about-photo::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 6px; background: var(--red); }
.about-text p { margin-bottom: 16px; color: var(--text-medium); }
.about-text p:first-of-type { font-size: 1.1rem; color: var(--text-dark); font-weight: 700; font-family: 'Montserrat', sans-serif; }

/* ISSUES */
.issues-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .issues-grid { grid-template-columns: 1fr; } }
.issue-card { background: white; padding: 32px; border-radius: 8px; border-top: 4px solid var(--red); box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.issue-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.issue-icon { font-size: 2rem; margin-bottom: 16px; }
.issue-card h3 { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; color: var(--blue); }
.issue-card p { font-size: 0.95rem; color: var(--text-medium); line-height: 1.6; }
.issue-card .checklist { list-style: none; margin: 12px 0 16px; padding: 0; }
.issue-card .checklist li { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); padding: 4px 0 4px 24px; position: relative; }
.issue-card .checklist li::before { content: '\2713'; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.issue-card .tagline { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 800; color: var(--blue); margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--off-white); }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat-card { text-align: center; padding: 32px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; }
.stat-number { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.stat-label { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.7); }

/* GET INVOLVED */
.involve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.involve-card { text-align: center; padding: 40px 24px; background: white; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s; }
.involve-card:hover { transform: translateY(-4px); }
.involve-icon { font-size: 2.5rem; margin-bottom: 16px; }
.involve-card h3 { font-size: 1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; color: var(--blue); }
.involve-card p { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 20px; }
.btn-small { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.8rem; padding: 10px 24px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; background: var(--blue); color: white; border: none; cursor: pointer; transition: background 0.2s; display: inline-block; }
.btn-small:hover { background: var(--blue-light); }

/* DONATE / CTA */
.donate-section { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%); text-align: center; padding: 80px 24px; }
.donate-section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; color: white; text-transform: uppercase; margin-bottom: 16px; }
.donate-section p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 550px; margin: 0 auto 32px; }
.btn-donate { background: white; color: var(--red); font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; padding: 16px 48px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; transition: all 0.2s; display: inline-block; }
.btn-donate:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* FOOTER */
.footer { background: var(--blue-dark); color: rgba(255,255,255,0.6); padding: 40px 24px; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.footer-social a { color: rgba(255,255,255,0.6); font-family: 'Montserrat', sans-serif; font-size: 0.85rem; font-weight: 600; transition: color 0.2s; }
.footer-social a:hover { color: white; }
.footer-disclaimer { font-size: 0.75rem; margin-top: 16px; color: rgba(255,255,255,0.35); max-width: 600px; margin-left: auto; margin-right: auto; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* LEGAL PAGES (privacy.html / terms.html) */
.legal-page { background: var(--off-white); min-height: 100vh; }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.legal-wrap h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.legal-wrap .eff { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; color: var(--text-light); margin-bottom: 32px; }
.legal-wrap h2 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; color: var(--blue); margin: 32px 0 10px; }
.legal-wrap p, .legal-wrap li { font-size: 0.98rem; color: var(--text-medium); margin-bottom: 12px; }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap a { color: var(--blue); text-decoration: underline; }
.legal-callout { background: #fff; border-left: 4px solid var(--red); border-radius: 6px; padding: 16px 18px; margin: 18px 0; font-size: 0.95rem; color: var(--text-dark); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.back-home { display: inline-block; margin-top: 32px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); }

/* MODALS */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10, 36, 99, 0.6); backdrop-filter: blur(4px); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: 12px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 80px rgba(0,0,0,0.3); animation: modalSlideIn 0.3s ease; }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 0; }
.modal-header h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.2s; }
.modal-close:hover { background: var(--off-white); color: var(--text-dark); }
.modal-body { padding: 20px 28px 28px; }
.modal-body p { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 20px; line-height: 1.5; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 2px solid #E5E2DC; border-radius: 6px; font-family: 'Merriweather', Georgia, serif; font-size: 0.95rem; color: var(--text-dark); transition: border-color 0.2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit { width: 100%; padding: 14px; background: var(--blue); color: white; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s; margin-top: 8px; }
.btn-submit:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-submit:disabled { background: #D8D4CB; color: #6B6863; cursor: not-allowed; transform: none; }
.form-success { display: none; text-align: center; padding: 40px 28px; }
.form-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h4 { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.form-success p { font-size: 0.9rem; color: var(--text-medium); line-height: 1.5; }

/* SMS CONSENT */
.consent-group { margin: 16px 0 8px; display: flex; align-items: flex-start; gap: 10px; }
.consent-group input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.consent-group label { font-family: 'Merriweather', Georgia, serif; font-size: 0.75rem; font-weight: 400; color: var(--text-medium); line-height: 1.5; text-transform: none; letter-spacing: 0; cursor: pointer; }
.consent-group label a { color: var(--blue); text-decoration: underline; }
.consent-group label a:hover { color: var(--blue-light); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--blue-dark); flex-direction: column; padding: 24px; gap: 20px; }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .hero { min-height: 90vh; }
  .hero h1 { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo, .about-photo img { max-height: 400px; }
  .section { padding: 60px 0; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; }
}
