/* ============================================
   Odiraa Nwankwor Campaign Information Site
   Clean, professional, minimal design
   ============================================ */

:root {
  --primary: #006B3F;
  --primary-light: #008552;
  --primary-dark: #004D2E;
  --accent: #C4A747;
  --bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #666;
  --border: #E0E0E0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

/* ─── Header ─── */
.site-header {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-wrap: wrap;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.party-mark {
  width: 52px;
  height: 39px;
  object-fit: contain;
  background: rgba(255,255,255,0.96);
  border-radius: 4px;
  padding: 2px;
  flex-shrink: 0;
}
.logo-text h1 { font-size: 1.1rem; margin: 0; color: white; }
.logo-text .subtitle { font-size: 0.75rem; color: rgba(255,255,255,0.85); }
.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.main-nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: block;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; width: 100%; }
  .main-nav ul { flex-direction: column; padding-top: 8px; }
  .main-nav a { padding: 8px 12px; }
}

/* ─── Landing-page Hero ─── */
.landing-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  overflow: hidden;
}
.landing-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  min-height: 620px;
}
.landing-hero-copy {
  align-self: center;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 72px);
}
.hero-kicker {
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.landing-hero h1 {
  color: white;
  font-size: clamp(2.15rem, 4.4vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin-bottom: 20px;
  max-width: 760px;
}
.landing-hero h2 {
  color: white;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: 20px;
}
.landing-hero-copy > p:not(.hero-kicker) {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 690px;
}
.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}
.landing-hero .cta-button {
  background: white;
  color: var(--primary-dark);
}
.landing-hero .cta-button:hover {
  background: rgba(255,255,255,0.9);
}
.hero-secondary-link {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 4px;
}
.hero-secondary-link:hover {
  color: white;
  text-decoration-color: white;
}
.landing-hero-media {
  background: #5c493d;
  margin: 0;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}
.landing-hero-media::after {
  background: linear-gradient(90deg, rgba(0,77,46,0.34), transparent 35%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.landing-hero-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  width: 100%;
}
@media (max-width: 820px) {
  .landing-hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  /* Put the candidate portrait in the first mobile viewport, before the long copy. */
  .landing-hero-media {
    order: -1;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .landing-hero-copy {
    padding: 34px 24px 40px;
  }
  .landing-hero-media::after {
    background: linear-gradient(180deg, rgba(0,107,63,0.2), transparent 30%);
  }
  .landing-hero-media img {
    object-position: center 8%;
  }
}
@media (max-width: 480px) {
  .landing-hero h1 {
    font-size: 2.25rem;
  }
  .landing-hero-media {
    aspect-ratio: 4 / 3;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

/* ─── Page Title Bar ─── */
.page-title-bar {
  background: var(--primary-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
}
.page-title-bar h1 { font-size: 1.8rem; }

/* ─── Container ─── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* ─── About profile media ─── */
.about-profile {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: center;
}
.about-profile-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
}
.about-profile-media picture,
.about-profile-media img {
  display: block;
  width: 100%;
  height: 100%;
}
.about-profile-media img {
  object-fit: cover;
  object-position: center 20%;
}
.about-profile-copy h2 { margin-bottom: 8px; }
.about-profile-kicker {
  color: var(--primary-dark);
  font-weight: 700;
}
@media (max-width: 600px) {
  .about-profile {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .about-profile-media {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ─── Content Sections ─── */
.content-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.content-section h2 {
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.content-section h3 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.content-section p { margin-bottom: 12px; }
.content-section ul, .content-section ol { margin-left: 20px; margin-bottom: 12px; }
.content-section li { margin-bottom: 6px; }

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { color: var(--primary-dark); margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.card a { font-size: 0.85rem; }

/* ─── Tables ─── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.info-table th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  width: 35%;
}
.info-table a { font-size: 0.9rem; }

/* ─── Timeline ─── */
.timeline { margin-top: 12px; }
.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  flex-shrink: 0;
  width: 100px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}
.timeline-content h4 { margin-bottom: 4px; font-size: 1rem; }
.timeline-content p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Fact Box ─── */
.fact-box {
  background: var(--bg);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 4px;
  margin-top: 12px;
}

/* ─── Placeholder Box ─── */
.placeholder-box {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-top: 12px;
}
.placeholder-box p { color: var(--text-muted); margin: 0; }

/* ─── CTA ─── */
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.cta-button:hover { background: var(--primary-light); text-decoration: none; }

/* ─── Ward List ─── */
.ward-list {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.ward-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  transition: background 0.2s;
}
.ward-list li:hover { background: #f0f5f2; }
.ward-list a { font-size: 0.88rem; display: block; }

/* ─── Breadcrumb ─── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 4px 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ─── Footer ─── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 30px 20px;
  text-align: center;
}
.party-footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
}
.party-footer-mark img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  background: rgba(255,255,255,0.96);
  border-radius: 4px;
  padding: 2px;
}
.footer-nav { margin-bottom: 12px; }
.footer-nav a { color: rgba(255,255,255,0.8); font-size: 0.8rem; }
.footer-nav a:hover { color: white; }
.site-footer p { font-size: 0.8rem; margin-bottom: 8px; }
.footer-disclaimer {
  max-width: 700px;
  margin: 8px auto 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}

/* ─── Photo Grid (Gallery) ─── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.photo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.photo-card figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 12px 14px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* ─── Local Campaign Media ─── */
.local-media-poster {
  background: var(--primary-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 16px auto 0;
  max-width: 760px;
  overflow: hidden;
}
.local-media-poster img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.local-media-poster figcaption {
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 12px 16px;
  text-align: center;
}

/* ─── Volunteer Signup Form ─── */
.volunteer-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
}
.volunteer-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.volunteer-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label,
.form-field legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.form-field input[type="text"],
.form-field input[type="tel"] {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input[type="text"]:focus,
.form-field input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,107,63,0.12);
}
.form-fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px 16px;
}
.form-fieldset legend {
  padding: 0 6px;
}
.radio-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: normal;
}
.radio-choice:last-child { margin-bottom: 0; }
.radio-choice input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.radio-choice:hover {
  background: var(--bg);
  border-radius: 6px;
}
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.required {
  color: #d32f2f;
  font-weight: 700;
}
.form-actions {
  margin-top: 4px;
}
.volunteer-submit-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.volunteer-submit-btn:active {
  transform: scale(0.98);
}
.volunteer-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-status {
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-status.success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
.form-status.error {
  background: #fbe9e7;
  border: 1px solid #ffab91;
  color: #b71c1c;
}
.form-status.sending {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .volunteer-submit-btn {
    padding: 12px 18px;
  }
  .form-fieldset {
    padding: 12px;
  }
}

/* ─── Footer Contact Bar ─── */
.footer-contacts {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-contacts a {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-contacts a:hover {
  color: white;
  text-decoration: underline;
}


/* ─── Community Form ─── */
.community-form {
  max-width: 600px;
  margin: 20px 0;
}
.community-form .form-field {
  margin-bottom: 16px;
}
.community-form .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.community-form .form-row .form-field {
  flex: 1;
  margin-bottom: 0;
}
.community-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #003322;
  margin-bottom: 4px;
}
.community-form .required {
  color: #c62828;
}
.community-form input[type="text"],
.community-form input[type="email"],
.community-form input[type="tel"],
.community-form input[type="url"],
.community-form select,
.community-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #333;
  box-sizing: border-box;
}
.community-form textarea {
  resize: vertical;
  min-height: 80px;
}
.community-form input:focus,
.community-form select:focus,
.community-form textarea:focus {
  outline: none;
  border-color: #006B3F;
  box-shadow: 0 0 0 2px rgba(0,107,63,0.15);
}
.community-form .checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 0.85rem;
  color: #555;
}
.community-form .checkbox-field input[type="checkbox"] {
  margin-top: 3px;
}
.community-form .community-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
}
.community-form .community-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .community-form .form-row {
    flex-direction: column;
    gap: 16px;
  }
}

/* ─── Ward Media Grid ─── */
.ward-media-grid, .constituency-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.ward-media-grid figure, .constituency-media-grid figure {
  margin: 0;
}
.ward-media-grid img, .constituency-media-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}
.ward-media-grid figcaption, .constituency-media-grid figcaption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
}
.ward-updates-list .update-item {
  margin-bottom: 12px;
  padding: 10px;
  border-left: 3px solid var(--primary);
  background: #f8f8f8;
}
.ward-updates-list .update-item .update-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #003322;
}
.ward-updates-list .update-item .update-date {
  font-size: 0.75rem;
  color: #888;
}
.ward-updates-list .update-item .update-desc {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
}
.media-empty {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .ward-media-grid, .constituency-media-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Local Media Video ─── */
.local-media-video {
  text-align: center;
  margin: 24px 0;
}
.local-media-video video {
  max-width: 100%;
  width: 100%;
  max-height: 70vh;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  background: #000;
}
.local-media-video figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 480px) {
  .logo-area { gap: 8px; }
  .party-mark { width: 38px; height: 29px; }
  .logo-text .subtitle { font-size: 0.68rem; }
}


/* ─── APGA information page ─── */
.apga-intro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}
.apga-intro-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.apga-intro-mark img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 160px;
}
.source-list {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.source-list ul {
  margin: 8px 0 0 20px;
}
.source-list li {
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .apga-intro { grid-template-columns: 1fr; gap: 16px; }
  .apga-intro-mark { min-height: 110px; }
  .apga-intro-mark img { max-width: 130px; }
}


/* ─── Homepage constituency party card ─── */
.constituency-party-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  text-align: center;
}
.constituency-party-card h3 {
  align-self: flex-start;
  width: 100%;
  text-align: left;
}
.constituency-party-card img {
  display: block;
  height: auto;
  margin: 2px auto 8px;
  max-height: 112px;
  max-width: 190px;
  object-fit: contain;
  width: 100%;
}
.constituency-party-card p { margin-bottom: 0; }

/* ─── Election-day countdown ─── */
.header-inner { position: relative; }
.election-countdown {
  align-items: center;
  background: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  color: #000;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 10px;
  position: absolute;
  right: 20px;
  top: 10px;
  white-space: nowrap;
}
.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.countdown-units { display: flex; gap: 5px; }
.countdown-units span {
  align-items: center;
  background: #000;
  border-radius: 4px;
  display: flex;
  gap: 2px;
  padding: 2px 5px;
}
.countdown-units strong { color: #fff; font-size: 0.84rem; line-height: 1; }
.countdown-units small {
  color: #fff;
  font-size: 0.58rem;
  line-height: 1;
  text-transform: uppercase;
}
.countdown-date {
  border-top: 1px solid rgba(0, 0, 0, 0.28);
  color: #000;
  flex-basis: 100%;
  font-size: 0.68rem;
  padding-top: 3px;
  text-align: center;
}
.countdown-live { background: #fff; border-color: #000; }
@media (max-width: 768px) {
  .election-countdown {
    flex-basis: 100%;
    justify-content: flex-end;
    margin-top: 8px;
    position: static;
    order: 3;
  }
}
@media (max-width: 430px) {
  .election-countdown { gap: 6px; padding: 5px 7px; }
  .countdown-label { font-size: 0.65rem; }
  .countdown-units { gap: 3px; }
  .countdown-units span { padding: 2px 3px; }
}

/* Keep the wrapped desktop navigation clear of the two-line countdown. */
@media (min-width: 769px) {
  .main-nav { margin-top: 14px; }
}
