/* ============================================
   Paulo Morales for Assembly - District 67
   Shared Stylesheet
   ============================================ */

/* === VARIABLES === */
:root {
  --navy: #1e3455;
  --navy-light: #284466;
  --red: #d98c28;
  --red-light: #e9a33d;
  --blue: #1e3455;
  --blue-light: #d98c28;
  --gold: #d98c28;
  --cream: #f8f6f1;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.nav-bar {
  background: var(--navy);
  position: relative;
  overflow: visible;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 88px;
  position: relative; z-index: 3;
}
.nav-wave-stripe {
  position: absolute; bottom: -24px; left: 0; right: 0;
  height: 30px; z-index: 4; pointer-events: none;
}
.nav-wave-stripe svg {
  width: 100%; height: 30px; display: block;
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none;
  position: relative; z-index: 10;
}
.nav-logo-img {
  height: 68px; width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25));
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 8px;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  color: #fff; text-decoration: none;
  line-height: 1.2;
}
.nav-logo-text span {
  display: block; font-size: 0.65rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-light);
  margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: 14px;
  font-weight: 500; color: rgba(255,255,255,0.75);
  text-decoration: none; padding: 8px 14px;
  border-radius: 6px; transition: var(--transition);
  letter-spacing: 0.2px;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff; background: rgba(255,255,255,0.1);
}
.nav-donate {
  background: var(--red) !important; color: #fff !important;
  font-weight: 700 !important; padding: 10px 22px !important;
  border-radius: 50px !important; letter-spacing: 0.5px;
}
.nav-donate:hover { background: var(--red-light) !important; transform: translateY(-1px); }
.nav-mobile-donate {
  display: none; background: var(--red); color: #fff;
  font-family: 'Inter', sans-serif; font-size: 13px;
  font-weight: 700; padding: 8px 18px;
  border-radius: 50px; text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 10;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 900px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-hamburger { display: flex; margin-left: 10px; }
  .nav-mobile-donate { display: block; margin-left: auto; }
  .nav-donate { display: none !important; }
}

/* === PAGE HEADER === */
.page-header {
  padding: 140px 24px 60px;
  text-align: center; background: var(--cream);
}
.section-label {
  font-family: 'Inter', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700;
  color: var(--navy); margin-bottom: 16px; line-height: 1.2;
}
.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--gray-600);
  max-width: 620px; margin: 0 auto; line-height: 1.7;
}

/* === SECTIONS === */
.section {
  padding: 80px 24px;
}
.section-inner {
  max-width: 960px; margin: 0 auto;
}

/* === BUTTONS === */
.btn {
  display: inline-block; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; padding: 14px 32px;
  border-radius: 50px; text-decoration: none;
  transition: var(--transition); cursor: pointer;
  border: none; letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--red); color: #fff;
}
.btn-primary:hover { background: var(--red-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-donate-lg {
  display: inline-block; font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 700; padding: 18px 48px;
  border-radius: 50px; text-decoration: none;
  background: var(--red); color: #fff;
  transition: var(--transition);
}
.btn-donate-lg:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* === DONATE CTA STRIP === */
.donate-cta {
  background: var(--navy); color: #fff;
  text-align: center; padding: 60px 24px;
}
.donate-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px;
}
.donate-cta p {
  font-size: 16px; color: rgba(255,255,255,0.7);
  max-width: 540px; margin: 0 auto 28px; line-height: 1.7;
}

/* === PAGE NAV BUTTONS === */
.page-nav {
  display: flex; justify-content: space-between; align-items: stretch;
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
}
.page-nav-section {
  background: var(--cream); padding: 48px 0;
}
.page-nav a {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; padding: 20px 28px;
  border-radius: 12px; border: 1px solid var(--gray-200);
  background: var(--white); transition: var(--transition);
  min-width: 180px; box-shadow: var(--shadow-sm);
}
.page-nav a:hover {
  border-color: var(--red); transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.page-nav a .nav-dir {
  font-family: 'Inter', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red);
}
.page-nav a .nav-page {
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
  font-weight: 600; color: var(--navy);
}
.page-nav .next { text-align: right; margin-left: auto; }
@media (max-width: 600px) {
  .page-nav a { min-width: 0; padding: 16px 20px; flex: 1; }
  .page-nav a .nav-page { font-size: 0.95rem; }
}

/* === FOOTER === */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 60px 24px 40px;
  font-family: 'Inter', sans-serif; font-size: 14px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 4px;
}
.footer-brand .tagline {
  font-size: 13px; color: var(--blue-light);
  letter-spacing: 0.5px; margin-bottom: 12px;
}
.footer-brand p { color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 300px; }
.footer h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  transition: var(--transition); font-size: 14px;
}
.footer-links a:hover { color: var(--blue-light); }
.social-links { display: flex; gap: 16px; margin-top: 16px; }
.social-links a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.3px;
  transition: var(--transition);
}
.social-links a:hover { color: var(--blue-light); }
.footer-bottom {
  max-width: 1100px; margin: 40px auto 0;
  text-align: center;
}
.fppc-box {
  display: inline-block;
  font-size: 11px; color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 20px; border-radius: 6px;
  letter-spacing: 0.5px;
}
.footer-legal {
  margin-top: 16px;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-legal a {
  color: rgba(255,255,255,0.4); text-decoration: none;
}
.footer-legal a:hover { color: var(--blue-light); }
.footer-built {
  margin-top: 12px;
  font-size: 11px; color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
}
.footer-built a {
  color: rgba(255,255,255,0.4); text-decoration: none;
}
.footer-built a:hover { color: var(--blue-light); }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

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

/* === FORM STYLES === */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--gray-200); border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--gray-800); background: var(--white);
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy); color: rgba(255,255,255,0.8);
  padding: 16px 24px; z-index: 9999;
  transform: translateY(100%); transition: transform 0.4s ease;
  font-size: 14px;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.cookie-banner-inner p { margin: 0; flex: 1; }
.cookie-banner-inner a { color: var(--blue-light); }
.cookie-banner-btns { display: flex; gap: 10px; }
.cookie-accept {
  background: var(--red); color: #fff;
  border: none; padding: 8px 20px;
  border-radius: 6px; font-size: 13px;
  font-weight: 600; cursor: pointer;
}
.cookie-decline {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px; border-radius: 6px;
  font-size: 13px; cursor: pointer;
}

/* === ACCESSIBILITY === */
.a11y-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); border: 2px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: var(--transition);
}
.a11y-btn:hover { background: var(--navy-light); transform: scale(1.05); }
.a11y-btn svg { width: 24px; height: 24px; fill: #fff; }
.a11y-panel {
  position: fixed; bottom: 80px; right: 24px;
  background: var(--white); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 24px;
  width: 260px; z-index: 9998;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.a11y-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.a11y-panel h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: var(--navy); margin-bottom: 16px;
}
.a11y-option {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px; color: var(--gray-700);
}
.a11y-toggle {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--gray-200); border: none;
  cursor: pointer; position: relative;
  transition: var(--transition);
}
.a11y-toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.a11y-toggle.active { background: var(--blue); }
.a11y-toggle.active::after { left: 23px; }

/* High contrast mode */
html.high-contrast { filter: contrast(1.3); }
html.reduce-motion * { transition: none !important; animation: none !important; }
