/* ============================================================
   BERLIN NJ DEMOCRATIC CITY COUNCIL CAMPAIGN — STYLESHEET
   Color Scheme: Dark Blue (#0a1f44) + Gold (#c9a84c)
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy:        #0a1f44;
  --navy-mid:    #122952;
  --navy-light:  #1a3a6e;
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --gold-pale:   #f5e9c8;
  --white:       #ffffff;
  --off-white:   #f8f6f0;
  --gray-light:  #e8e4d8;
  --gray-mid:    #9b9488;
  --text-dark:   #1a1a1a;
  --text-body:   #2d2d2d;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', Arial, sans-serif;

  --max-width: 1100px;
  --section-pad: 60px 20px;
  --radius: 4px;
  --shadow: 0 4px 20px rgba(10,31,68,0.15);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--off-white);
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

/* ---- Utility ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-2px);
}

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-title.light { color: var(--white); }

.divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 20px 0 32px;
}

.divider.centered { margin: 20px auto 32px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.site-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.nav-links .btn-gold {
  font-size: 13px;
  padding: 9px 20px;
}
.nav-links .btn-gold:hover { color: var(--navy); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    border-top: 1px solid var(--navy-light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 90px 24px 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Diagonal gold accent stripe */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-light);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page-level (non-landing) hero — shorter */
.page-hero {
  padding: 60px 24px 55px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 30px;
  border-top: 4px solid var(--gold);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold-light); text-decoration: none; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   INDEX — LANDING PAGE SECTIONS
   ============================================================ */

/* Mission strip */
.mission-strip {
  background: var(--gold);
  padding: 22px 24px;
  text-align: center;
}
.mission-strip p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
}

/* Intro / Candidates preview */
.intro-section {
  padding: var(--section-pad);
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.candidate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.candidate-card {
  background: var(--off-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: box-shadow 0.3s;
}
.candidate-card:hover { box-shadow: var(--shadow); }

.candidate-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* Placeholder for candidate photos */
.photo-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(160deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 16px;
}

.candidate-card .card-body {
  padding: 18px;
}
.candidate-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.candidate-card p {
  font-size: 13px;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* Why We're Running */
.why-section {
  padding: var(--section-pad);
  background: var(--off-white);
}

.priorities-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.priority-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(10,31,68,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.priority-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.priority-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.priority-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.priority-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   DONATE SECTION
   ============================================================ */
.donate-section {
  padding: var(--section-pad);
  background: var(--off-white);
}

.donate-inner {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  border-radius: 12px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* matching gold top-edge accent from .cta-banner */
.donate-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.donate-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.donate-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--white);
  margin: 0 0 1rem;
}

.donate-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Re-uses .btn.btn-gold — just adds spacing */
.donate-btn {
  margin-bottom: 0;
}

.donate-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 380px;
}

.donate-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.donate-divider-text {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.donate-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.donate-qr-box {
  background: var(--white);
  border-radius: 8px;
  padding: 12px;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donate-qr-label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
}

.donate-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 2rem;
  font-family: var(--font-body);
}

/* Hide QR block on phones */
@media (max-width: 639px) {
  .donate-qr-block { display: none; }
  .donate-inner { padding: 2.5rem 1.5rem; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section {
  padding: var(--section-pad);
  background: var(--white);
}

.about-candidate {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--gray-light);
}

.about-candidate:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.about-candidate.reverse { direction: rtl; }
.about-candidate.reverse > * { direction: ltr; }

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy-light), var(--navy));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
}

.about-bio h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.about-bio .candidate-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-bio p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 16px;
}

.about-bio p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-candidate { grid-template-columns: 1fr; gap: 32px; }
  .about-candidate.reverse { direction: ltr; }
  .about-photo { aspect-ratio: 4/3; max-width: 360px; }
  .intro-grid { grid-template-columns: 1fr; }
  .candidate-cards { grid-template-columns: 1fr; }
  .priorities-preview { grid-template-columns: 1fr; }
}

/* ============================================================
   PRIORITIES PAGE
   ============================================================ */
.priorities-section {
  padding: var(--section-pad);
  background: var(--white);
}

.priority-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-light);
}

.priority-item:first-child { padding-top: 0; }
.priority-item:last-child { border-bottom: none; }

.priority-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.priority-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.priority-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 12px;
}

.priority-content ul {
  padding-left: 20px;
  margin-top: 8px;
}
.priority-content ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 6px;
}
.priority-content ul li::marker { color: var(--gold); }

@media (max-width: 600px) {
  .priority-item { grid-template-columns: 50px 1fr; gap: 16px; }
  .priority-number { font-size: 2rem; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: var(--section-pad);
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-detail-icon {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: 15px;
  color: var(--text-body);
}

.contact-detail-text strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--off-white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  box-shadow: 0 2px 16px rgba(10,31,68,0.06);
}

.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,31,68,0.12);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

/* CAPTCHA note box */
.captcha-note {
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.6;
}
.captcha-note strong { display: block; margin-bottom: 4px; }
.captcha-placeholder {
  background: var(--gray-light);
  border: 1px dashed #aaa;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 20px;
}

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #1b5e20;
  font-size: 15px;
  margin-top: 16px;
}

/* ============================================================
   VOTER REGISTRATION STRIP
   ============================================================ */
.voter-reg-section {
  padding: var(--section-pad);
  background: var(--off-white);
}

.voter-reg-inner {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 6px solid var(--gold);
  border-top: 1px solid var(--gray-light);
  border-right: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  padding: 32px 40px;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 2px 12px rgba(10,31,68,0.07);
}

.voter-reg-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voter-reg-text { flex: 1; }

.voter-reg-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}

.voter-reg-body {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.voter-reg-btn { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 640px) {
  .voter-reg-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 20px;
  }
  .voter-reg-btn { width: 100%; text-align: center; }
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}
