/* ═══════════════════════════════════════
   DESIGN SYSTEM — Dr. Ezhilan Campaign
   ═══════════════════════════════════════ */

:root {
  --red: #CC0000;
  --red-dk: #A50000;
  --red-lt: #FFF0F0;
  --ink: #111111;
  --gray: #666666;
  --lgray: #999999;
  --border: #E5E1DC;
  --bg: #FFFFFF;
  --bg2: #F8F6F3;
  --dark: #0F0F0F;
  --f-head: 'Mukta Malar', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-serif: 'Noto Serif', serif;
  --nav-h: 68px;
  --max-w: 1160px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
.t-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  font-family: var(--f-body);
}
.t-h1 {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  font-family: var(--f-head);
  color: var(--ink);
}
.t-h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  font-family: var(--f-head);
  color: var(--ink);
}
.t-h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--f-head);
  color: var(--ink);
}
.t-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--gray);
}
.t-small {
  font-size: 13px;
  font-weight: 400;
  color: var(--lgray);
}

/* ── LAYOUT ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* ── RED RULE ── */
.rule { display: block; width: 40px; height: 3px; background: var(--red); border-radius: 2px; }
.rule.center { margin: 16px auto 0; }
.rule.left { margin: 16px 0 0; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--red-dk); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.6; pointer-events: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 2px solid var(--red);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: transform 0.15s;
}
.btn-white:hover { transform: translateY(-1px); }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-wa:hover { background: #1DA851; }
.btn-wa svg { width: 20px; height: 20px; fill: #fff; }

/* ── ANIMATIONS ── */
[data-anim] { opacity: 1; }
[data-anim].hidden { opacity: 0; transform: translateY(24px); }
[data-anim].show { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }

/* ═══════════════════════════════════
   1. FIXED NAV
   ═══════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name { font-family: var(--f-head); font-weight: 800; font-size: 16px; color: var(--ink); }
.nav-brand-sub { font-size: 11px; color: var(--lgray); font-weight: 500; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--red); }
.nav-hamburger {
  display: none;
  background: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: '';
  position: absolute;
  width: 22px; height: 2px;
  background: var(--ink);
  left: 0;
  transition: transform 0.3s;
}
.nav-hamburger span::before { top: -7px; }
.nav-hamburger span::after { top: 7px; }
.nav-hamburger.open span { background: transparent; }
.nav-hamburger.open span::before { transform: rotate(45deg); top: 0; }
.nav-hamburger.open span::after { transform: rotate(-45deg); top: 0; }

#drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
#drawer.open { display: flex; }
#drawer a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
}

/* ═══════════════════════════════════
   2. HERO
   ═══════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-left { display: flex; flex-direction: column; gap: 20px; }
.hero-name {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--gray);
  font-weight: 700;
}
.hero-constituency { font-size: 13px; color: var(--lgray); margin-top: -8px; }
.hero-right { position: relative; }
.hero-right img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: 16px;
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--red);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  max-width: 260px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(204,0,0,0.3);
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--lgray);
  animation: bounceDown 2s infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── PLEDGE BLOCK ── */
.pledge-block {
  background: var(--bg2);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
}
.pledge-count-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pledge-emoji { font-size: 28px; }
.pledge-number {
  font-family: var(--f-head);
  font-size: 40px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -1px;
}
.pledge-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.pledge-label small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--lgray);
}
.pledge-block .btn-primary { width: 100%; font-size: 16px; padding: 16px; }
.pledge-success {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}
.pledge-success small { display: block; font-weight: 400; font-size: 13px; color: #4CAF50; margin-top: 4px; }
.pledge-done {
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #2E7D32;
}
.pledge-timer {
  font-size: 13px;
  color: var(--lgray);
  font-weight: 400;
  margin-top: 6px;
}
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════
   3. STATS BAR
   ═══════════════════════════════════ */
#stats {
  background: var(--dark);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--f-head);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.stat-number span { color: var(--red); font-size: 0.6em; }
.stat-label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); }
.stat-label-ta { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ═══════════════════════════════════
   4. CONSTITUENCY BAND
   ═══════════════════════════════════ */
#band {
  position: relative;
  overflow: hidden;
}
#band img {
  width: 100%;
  display: block;
  opacity: 0.78;
}
.band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.15) 100%);
  display: flex;
  align-items: center;
}
.band-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}
.band-content .t-eyebrow { color: rgba(255,255,255,0.6); }
.band-content .t-h2 { color: #fff; margin: 16px 0 12px; }
.band-content .t-body { color: rgba(255,255,255,0.7); max-width: 500px; margin-bottom: 28px; }

/* ═══════════════════════════════════
   5. ABOUT
   ═══════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 20px; }
.about-text p { color: var(--gray); line-height: 1.8; }
.pullquote {
  border-left: 3px solid var(--red);
  padding: 16px 0 16px 24px;
  margin: 8px 0;
}
.pullquote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.7;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--lgray);
  margin-top: 8px;
}
.facts-row { display: flex; gap: 32px; margin-top: 8px; }
.fact { display: flex; flex-direction: column; }
.fact-num { font-family: var(--f-head); font-size: 28px; font-weight: 900; color: var(--red); }
.fact-label { font-size: 12px; color: var(--lgray); }
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px;
  width: 60px; height: 60px;
  border-top: 4px solid var(--red);
  border-left: 4px solid var(--red);
  border-radius: 4px 0 0 0;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -10px; right: -10px;
  width: 60px; height: 60px;
  border-bottom: 4px solid var(--red);
  border-right: 4px solid var(--red);
  border-radius: 0 0 4px 0;
}
.about-caption {
  background: var(--red);
  color: #fff;
  padding: 14px 20px;
  border-radius: 0 0 14px 14px;
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-top: -14px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════
   6. ACHIEVEMENTS
   ═══════════════════════════════════ */
#achievements { background: var(--bg2); }
.achievements-header { text-align: center; margin-bottom: 56px; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  border-top: 3px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card-title-ta {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.card-title-en { font-size: 12px; color: var(--lgray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ═══════════════════════════════════
   7. PROMISES
   ═══════════════════════════════════ */
.promises-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.promises-left { position: sticky; top: calc(var(--nav-h) + 40px); }
.promises-left .t-h2 { margin: 12px 0; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.acc-item.open { border-color: var(--red); }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: #fff;
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.acc-trigger .acc-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-right: 12px;
}
.acc-trigger .acc-arrow {
  font-size: 18px;
  transition: transform 0.3s;
  color: var(--lgray);
}
.acc-item.open .acc-arrow { transform: rotate(180deg); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.acc-body-inner {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}
.acc-body-inner ul { list-style: disc; padding-left: 20px; }
.acc-body-inner li { margin-bottom: 6px; }
.acc-item.open .acc-body { max-height: 400px; }

/* ═══════════════════════════════════
   8. INSTAGRAM
   ═══════════════════════════════════ */
#instagram { background: var(--bg2); }
.instagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.instagram-feed {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lgray);
  font-size: 14px;
}

/* ═══════════════════════════════════
   9. CONTACT
   ═══════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info h3 { margin-bottom: 4px; }
.contact-info p { color: var(--gray); font-size: 14px; }
.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-socials { display: flex; gap: 16px; margin-top: 8px; }
.contact-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.contact-socials a:hover { background: var(--red-lt); }
.contact-socials svg { width: 18px; height: 18px; }
.contact-map {
  background: var(--bg2);
  border-radius: 14px;
  overflow: hidden;
  height: 360px;
}
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* ═══════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════ */
#footer {
  background: var(--dark);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-brand-name { color: #fff; }
.footer-brand .nav-brand-sub { color: rgba(255,255,255,0.4); }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 13px; margin-top: 12px; line-height: 1.7; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════
   11. MOBILE STICKY CTA
   ═══════════════════════════════════ */
#mobile-cta {
  display: none;
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 900;
}
#mobile-cta button {
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(204,0,0,0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(204,0,0,0.4); }
  50% { box-shadow: 0 6px 32px rgba(204,0,0,0.6); }
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-2, .about-grid, .promises-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .promises-left { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-right { display: none; }
  .hero-left { align-items: center; }
  .pledge-block { text-align: left; }
  .pledge-count-row { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .instagram-header { flex-direction: column; gap: 16px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 80px 0; }
  #band img { min-height: 280px; object-fit: cover; }
  .facts-row { gap: 20px; }
  #mobile-cta.visible { display: block; }
}

@media (max-width: 480px) {
  .t-h1 { letter-spacing: -1px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pledge-number { font-size: 32px; }
  .contact-btns { flex-direction: column; }
  .contact-btns .btn-wa, .contact-btns .btn-outline { width: 100%; justify-content: center; }
}
