/* ========================================
   cal.vote — Thomas Jefferson Cares 2026
   Master Stylesheet
   ======================================== */

:root {
  --gold: #C8960C;
  --gold-light: #F0B429;
  --gold-pale: #FFF3CC;
  --deep: #0A1628;
  --deep2: #0F2040;
  --mid: #1A3A6C;
  --bear-red: #B5282A;
  --white: #FAF8F2;
  --gray: #8B9EB7;
  --mono: 'DM Mono', monospace;
  --serif: 'Playfair Display', serif;
  --body: 'Cormorant Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h2 em, h1 em { font-style: italic; color: var(--gold-light); }

.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 150, 12, 0.2);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: 0.3s;
}

.nav-cta {
  padding: 0.6rem 1.5rem;
  font-size: 0.65rem;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--deep);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(200, 150, 12, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ---- SECTIONS ---- */
section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 150, 12, 0.3), transparent);
  margin: 0 3rem;
  width: calc(100% - 6rem);
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
  padding: 8rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray);
  margin: 1.5rem 0 2.5rem;
  max-width: 480px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero seal */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-seal {
  position: relative;
  width: 320px;
  height: 320px;
}

.seal-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(200, 150, 12, 0.15);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.seal-ring-2 {
  inset: 20px;
  border-style: dashed;
  animation-duration: 45s;
  animation-direction: reverse;
}

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

.seal-center {
  position: absolute;
  inset: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(200, 150, 12, 0.25);
  border-radius: 50%;
  text-align: center;
}

.seal-ca {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.seal-year {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin: 0.5rem 0;
}

.seal-name {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* ---- URGENCY BANNER ---- */
.urgency-banner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  margin: 0 3rem;
  border: 1px solid rgba(181, 40, 42, 0.3);
  background: rgba(181, 40, 42, 0.08);
}

.urgency-dot {
  width: 8px;
  height: 8px;
  background: var(--bear-red);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.urgency-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--gray);
}

.urgency-text strong { color: var(--white); }

/* ---- PLATFORM CARDS ---- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.platform-card {
  padding: 2.5rem;
  border: 1px solid rgba(200, 150, 12, 0.12);
  background: rgba(15, 32, 64, 0.3);
  transition: border-color 0.3s, background 0.3s;
}

.platform-card:hover {
  border-color: rgba(200, 150, 12, 0.35);
  background: rgba(15, 32, 64, 0.5);
}

.card-number {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-body {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- CA 3.0 STATS ---- */
.ca3-section {
  background: rgba(15, 32, 64, 0.3);
  border: 1px solid rgba(200, 150, 12, 0.15);
  padding: 4rem;
  margin-top: 2rem;
}

.ca3-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(200, 150, 12, 0.15);
}

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

.stat-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-light);
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text p strong { color: var(--white); }

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fact-item {
  padding: 1.2rem 1.5rem;
  border-left: 2px solid rgba(200, 150, 12, 0.3);
  background: rgba(26, 58, 108, 0.15);
}

.fact-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.fact-value {
  font-size: 1rem;
  color: var(--white);
}

/* ---- DONATE ---- */
.donate-section {
  background: linear-gradient(135deg, rgba(200, 150, 12, 0.08) 0%, rgba(10, 22, 40, 0) 60%);
  border: 1px solid rgba(200, 150, 12, 0.25);
  padding: 4rem;
  margin: 3rem auto;
  max-width: 1200px;
  text-align: center;
}

.donate-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.donate-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(200, 150, 12, 0.2);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s;
}

.donate-card:hover { border-color: var(--gold); }

.donate-card-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.donate-card-detail {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  word-break: break-all;
}

.donate-card-note {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ---- QUOTE ---- */
.quote-section {
  text-align: center;
  padding: 5rem 3rem;
}

.quote-section blockquote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

.quote-section blockquote em { color: var(--gold-light); }

.quote-section cite {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 1.5rem;
  font-style: normal;
  text-transform: uppercase;
}

/* ---- REPORT FORM ---- */
.report-section {
  background: rgba(15, 32, 64, 0.3);
  border: 1px solid rgba(200, 150, 12, 0.15);
  padding: 4rem;
}

.report-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid rgba(200, 150, 12, 0.2);
  color: var(--white);
  padding: 0.9rem 1rem;
  font-family: var(--body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

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

.form-group select option { background: var(--deep2); }

.report-output {
  display: none;
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(200, 150, 12, 0.3);
  padding: 3rem;
  margin-top: 2rem;
  animation: fadeIn 0.5s ease;
}

.report-output.visible { display: block; }

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

.report-header {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(200, 150, 12, 0.2);
}

.report-content h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-light);
  margin: 1.5rem 0 0.75rem;
}

.report-content p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.report-content strong { color: var(--white); }

/* ---- VIDEO ---- */
.video-section {
  background: rgba(15, 32, 64, 0.3);
  border: 1px solid rgba(200, 150, 12, 0.15);
  padding: 4rem;
  text-align: center;
}

.video-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- PLATFORM DETAIL (platform.php) ---- */
.policy-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(200, 150, 12, 0.1);
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-number {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.policy-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.policy-title em { color: var(--gold-light); }

.policy-body {
  max-width: 800px;
}

.policy-body p {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.policy-body p strong { color: var(--white); }

.policy-body ul {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.policy-body ul li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
}

.policy-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---- LOADING ---- */
.loading-indicator {
  display: none;
  text-align: center;
  padding: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.loading-indicator.visible { display: block; }

.loading-dots::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid rgba(200, 150, 12, 0.15);
  padding: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a,
.footer-social a,
.footer-contact a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gray);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-nav a:hover,
.footer-social a:hover,
.footer-contact a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.footer-contact {
  margin-top: 1rem;
  text-align: right;
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; }
  .hero-visual { display: none; }
  section { padding: 4rem 1.5rem; }
  .report-form { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .ca3-stats { grid-template-columns: 1fr; }
  .ca3-section { padding: 2rem 1.5rem; }
  .report-section { padding: 2rem 1.5rem; }
  .donate-section { padding: 2rem 1.5rem; }
  .video-section { padding: 2rem 1.5rem; }
  .urgency-banner { margin: 0 1.5rem; flex-direction: column; gap: 1rem; }
  .platform-grid { grid-template-columns: 1fr; }
  .donate-methods { grid-template-columns: 1fr; }
  .quote-section { padding: 3rem 1.5rem; }
  .divider { margin: 0 1.5rem; width: calc(100% - 3rem); }

  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-social { text-align: center; }
  .footer-contact { text-align: center; }
}
