/* ===== Variables — professional legal / campaign ===== */
:root {
  --color-navy: #0d1321;
  --color-navy-mid: #1a2332;
  --color-navy-light: #243447;
  --color-accent: #a67c52;
  --color-accent-light: #c4a574;
  --color-accent-soft: rgba(166, 124, 82, 0.12);
  --color-bg: #ffffff;
  --color-bg-soft: #f6f5f3;
  --color-text: #2d3748;
  --color-text-muted: #5a6578;
  --color-border: rgba(13, 19, 33, 0.06);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --space: 1.5rem;
  --container: min(92vw, 1080px);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 12px rgba(13, 19, 33, 0.06);
  --shadow-md: 0 6px 24px rgba(13, 19, 33, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 19, 33, 0.1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--color-accent-light); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
ul { padding-left: 1.25rem; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space);
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-navy);
  color: var(--color-bg);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 0.75rem; outline: 2px solid var(--color-accent); outline-offset: 2px; text-decoration: none; color: var(--color-bg); }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

.section {
  padding: 4.5rem 0;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}
.section-title + .section-intro,
.section-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.025rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem var(--space);
}
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.logo:hover { text-decoration: none; color: var(--color-navy); }
.logo:hover .logo-ballot { filter: brightness(1.05); }
.logo-text { line-height: 1.2; }
.logo-ballot {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--color-accent); text-decoration: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-navy);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 5.5rem var(--space) 2.5rem;
  color: var(--color-bg);
  text-align: right;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-mid) 50%, var(--color-navy-light) 100%);
}
.hero .container.hero-content {
  margin-left: auto;
  margin-right: 0;
}
/* Hero background photo + light scrim so image stays visible */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/gallery/DSC_8378.webp') center/cover no-repeat;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,19,33,0.42) 0%, rgba(13,19,33,0.28) 50%, rgba(13,19,33,0.18) 100%);
  pointer-events: none;
}
.hero-photo-wrap--hidden {
  display: none !important;
}
/* Profile image on left (unhide when you add class hero-profile-visible to the wrap) */
.hero .hero-photo-wrap {
  order: -1;
  margin-right: auto;
}
.hero .hero-photo-wrap.hero-profile-visible {
  display: block !important;
}
.hero-photo-wrap {
  position: relative;
  z-index: 1;
  width: min(270px, 75vw);
  height: min(320px, 80vw);
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--color-navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 520px;
  padding: 1.5rem 1.75rem;
  background: rgba(13, 19, 33, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(166, 124, 82, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.hero-content-photo-wrap {
  margin: 0 0 1rem;
  width: min(10.75rem, 36vw);
  height: min(10.75rem, 36vw);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(196, 165, 116, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.hero-content-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
}
.hero-overlay-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.hero-ballot-badge {
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: #fff8e8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  line-height: 1.35;
}
.hero-ballot-badge strong {
  color: #ffd87a;
  font-size: 1.28em;
  font-weight: 800;
}
@media (min-width: 700px) {
  .hero { text-align: right; }
  .hero-content { text-align: right; }
}
.hero-top-cta {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  padding: 0.65rem 1.1rem;
  background: rgba(166, 124, 82, 0.25);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.hero-top-cta strong { color: var(--color-accent-light); }
.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 0.5rem;
  color: #c4a574;
}
.hero-ballot {
  font-size: clamp(1.02rem, 2.4vw, 1.12rem);
  margin: 0 0 0.65rem;
  color: #f0ebe3;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}
.hero-ballot strong {
  color: var(--color-accent-light);
  font-weight: 800;
  font-size: 1.12em;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 5vw, 2.65rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero-tagline {
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: #f0ebe3;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}
.hero-cta {
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  color: #f5f2ed;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.hero-cta strong { color: #c4a574; }
.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}
.btn-primary:hover { color: var(--color-bg); background: var(--color-accent-light); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { color: #fff; background: #20bd5a; }
.whatsapp-icon {
  width: 1.35rem;
  height: 1.35rem;
}
.hero-scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll a {
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
}
.hero-scroll a:hover { color: var(--color-bg); text-decoration: none; }

/* Hero — mobile: avoid heavy full-bleed black (overlay + missing image reads as solid dark) */
@media (max-width: 767px) {
  .hero {
    min-height: min(72vh, 640px);
    min-height: min(72dvh, 640px);
    text-align: center;
    background: linear-gradient(165deg, #243447 0%, #1a2332 42%, #121a28 100%);
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }
  .hero .container.hero-content {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(13, 19, 33, 0.08) 0%,
      rgba(13, 19, 33, 0.2) 50%,
      rgba(13, 19, 33, 0.36) 100%
    );
  }
  .hero-content {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    background: rgba(13, 19, 33, 0.62);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-content-photo-wrap {
    width: min(10.25rem, 48vw);
    height: min(10.25rem, 48vw);
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ballot-badge {
    font-size: clamp(1.28rem, 5.8vw, 1.65rem);
    margin-bottom: 1.1rem;
  }
  .hero-ballot-badge strong {
    font-size: 1.45em;
  }
  .hero-ballot {
    font-size: clamp(1.08rem, 4.2vw, 1.22rem);
  }
  .hero-ballot strong {
    font-size: 1.22em;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .hero-scroll {
    left: 50%;
    transform: translateX(-50%);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Voter roll search (JSON loaded async) ===== */
.voter-roll {
  background: var(--color-bg-soft);
  padding: 3.5rem 0 4rem;
}
.voter-roll-title {
  margin-bottom: 1rem;
}
.voter-load-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}
.voter-load-status.is-error {
  color: #9b2c2c;
}
.voter-load-status.is-ready {
  color: var(--color-navy);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.35rem 0.5rem;
}
.voter-load-status.is-ready::before {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 auto 0.85rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.voter-search-wrap {
  max-width: min(92vw, 720px);
  margin: 0 auto 1.5rem;
}
.voter-search-input {
  width: 100%;
  min-height: 3.5rem;
  padding: 1.1rem 1.35rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.45;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.voter-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.voter-search-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.voter-result-meta {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.voter-result-meta strong {
  color: var(--color-navy);
}
.voter-truncated-note {
  font-size: 0.88em;
  color: var(--color-text-muted);
  font-style: normal;
}
.voter-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}
.voter-hint.is-hidden {
  display: none;
}
.voter-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .voter-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.voter-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--color-accent);
  animation: voter-fadein 0.35s ease both;
}
@keyframes voter-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.voter-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.voter-card-meta span {
  font-weight: 600;
  color: var(--color-navy);
}
.voter-card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.65rem;
  line-height: 1.35;
}
.voter-highlight {
  background: var(--color-accent-soft);
  color: var(--color-navy);
  padding: 0 0.15em;
  border-radius: 2px;
}
.voter-electoral-main {
  font-weight: 600;
  color: var(--color-navy);
}
.voter-electoral-main strong {
  font-size: 1.05em;
  color: var(--color-accent);
}
.voter-card-detail {
  font-size: 0.88rem;
  color: var(--color-text);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}
.voter-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.voter-loadmore-wrap {
  text-align: center;
  margin-top: 1.75rem;
}
.voter-loadmore-wrap.is-visible {
  display: block;
}
.voter-loadmore-wrap:not(.is-visible) {
  display: none;
}

/* ===== Gallery / Album ===== */
.gallery { background: var(--color-bg); }
.gallery-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}
.gallery-track {
  display: flex;
  transition: transform 0.35s ease-out;
  width: 600%;
}
.gallery-slide {
  flex: 0 0 16.666%;
  width: 16.666%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 0.25rem;
}
@media (min-width: 640px) {
  .gallery-slide { gap: 1.25rem; padding: 0 0.5rem; }
}
@media (min-width: 900px) {
  .gallery-slide { gap: 1.5rem; }
}
.gallery-slide:last-child .gallery-item:only-child {
  grid-column: 1 / -1;
  max-width: 33.333%;
  justify-self: center;
}
.gallery-slider-prev,
.gallery-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-navy);
  background: var(--color-bg);
  color: var(--color-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.gallery-slider-prev:hover:not(:disabled),
.gallery-slider-next:hover:not(:disabled) {
  background: var(--color-navy);
  color: var(--color-bg);
}
.gallery-slider-prev:disabled,
.gallery-slider-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.gallery-slider-prev { left: 0.5rem; }
.gallery-slider-next { right: 0.5rem; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.gallery-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.gallery-dots button:hover { background: var(--color-text-muted); }
.gallery-dots button.is-active {
  background: var(--color-navy);
  transform: scale(1.2);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-item a {
  display: block;
  aspect-ratio: 4/3;
  background: var(--color-navy-light);
  text-decoration: none;
}
.gallery-item a:focus-visible { outline-offset: -2px; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  background: var(--color-navy-light);
}
.gallery-caption {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 0;
  border-top: 1px solid var(--color-border);
}
.gallery-caption-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(13, 19, 33, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox.is-open[hidden] { display: flex !important; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--color-bg);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-close:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}
.lightbox-content img {
  max-height: 75vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-caption {
  margin: 1rem 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

/* ===== What I Have Done & Manifesto (parallel) ===== */
.done-manifesto {
  background: var(--color-bg);
  padding: 4rem 0 5rem;
}
.done-manifesto .container {
  max-width: min(98vw, 1320px);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.done-manifesto .section-title {
  font-size: clamp(2rem, 4.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.done-manifesto .section-intro {
  font-size: 1.1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.done-manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
  max-width: 100%;
}
@media (max-width: 768px) {
  .done-manifesto .container { padding-left: var(--space); padding-right: var(--space); }
  .done-manifesto-grid { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2rem; }
}
.done-manifesto-col {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.done-manifesto-col-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  line-height: 1.4;
}
.done-manifesto-col-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 0.4rem;
}
.done-manifesto-img-wrap {
  padding: 0 1rem 1.25rem;
}
.done-manifesto-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* ===== About ===== */
.about { background: var(--color-bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { position: relative; }
}
.about-photo-wrap {
  position: sticky;
  top: 5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  aspect-ratio: 1/1;
  max-width: min(380px, 85vw);
  max-height: min(380px, 85vw);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}
.about-text .lead { font-size: 1.1rem; margin-bottom: 1rem; }
.about-roles {
  margin: 1rem 0;
  list-style: none;
  padding-left: 0;
}
.about-roles li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
}
.about-roles li:last-child { border-bottom: none; }
.signature {
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-navy);
}

/* ===== Achievements (Cards) ===== */
.achievements { background: var(--color-bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(13, 19, 33, 0.1);
}
.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}
.card ul { margin: 0; padding-left: 1.25rem; }
.card li { margin: 0.4rem 0; }

/* ===== Vision ===== */
.vision { background: var(--color-bg-soft); }
.vision-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.vision-item {
  background: var(--color-bg);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

/* ===== Commitment ===== */
.commitment { background: var(--color-navy); color: var(--color-bg); padding: 4.5rem 0; }
.commitment-quote {
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.commitment-quote p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.commitment-quote footer {
  font-size: 1rem;
  opacity: 0.95;
}
.commitment-quote a { color: var(--color-accent-light); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-card {
  background: var(--color-bg-soft);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.contact-card h3 {
  font-size: 1rem;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}
.contact-card p { margin: 0.25rem 0; }
.contact-phone a { font-size: 1.1rem; font-weight: 600; color: var(--color-accent); }
.contact-cta {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.88);
  padding: 2.25rem var(--space);
  text-align: center;
  font-size: 0.9rem;
}
.footer p { margin: 0.35rem 0; }
.footer a { color: var(--color-accent-light); }

/* ===== Entry splash (campaign poster) ===== */
.splash-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  box-sizing: border-box;
}
.splash-modal.is-open {
  display: flex;
}
.splash-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 33, 0.78);
  cursor: pointer;
}
.splash-modal-box {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(92vh, 920px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  padding: 0.65rem 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}
.splash-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-navy);
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.splash-modal-close:hover {
  background: var(--color-bg-soft);
  text-decoration: none;
}
.splash-modal-img-wrap {
  overflow: auto;
  max-height: min(76vh, 780px);
  margin-top: 0.25rem;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
}
.splash-modal-img {
  width: 100%;
  height: auto;
  display: block;
}
.splash-modal-btn-close {
  width: 100%;
  justify-content: center;
  background: var(--color-navy);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  font-family: var(--font-body);
}
.splash-modal-btn-close:hover {
  background: var(--color-navy-mid);
  color: #fff;
  text-decoration: none;
  transform: none;
  box-shadow: var(--shadow-md);
}

/* ===== Mobile nav ===== */
@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); padding: 1rem; box-shadow: var(--shadow); }
}

/* Below hero: browser may skip layout/paint until section is near viewport */
.voter-roll,
.done-manifesto,
.about,
.vision,
.achievements,
.gallery,
.commitment,
.contact,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
