/* ══════════════════════════════════════════════════════
   HASSANI HASSAN — Campaign Landing Page
   RTL-first · Mobile-first · Cairo font
══════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────── */
:root {
  --navy:       #1a2440;
  --navy-light: #243059;
  --green:      #006633;
  --green-dark: #004d26;
  --gold:       #C8A84B;
  --gold-light: #e0c06a;
  --red:        #CC0000;
  --offwhite:   #F5F0E8;
  --white:      #FFFFFF;
  --text-muted: rgba(255,255,255,0.7);
  --font:       'Cairo', sans-serif;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.15);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.25);
  --transition: 0.3s ease;
  --nav-h:      68px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--navy);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

/* ── Utilities ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: 1rem;
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.6;
}
.section-sub--light { color: var(--text-muted); }

.badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.badge--green { background: var(--green); color: var(--white); }
.badge--gold  { background: var(--gold);  color: var(--navy); }

/* ── Fade-in animation ──────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition),
              backdrop-filter var(--transition);
}

.navbar--scrolled {
  background: rgba(26, 36, 64, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: 1.5rem;
  max-width: 1200px;
  margin-inline: auto;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}
.navbar__logo { width: 44px; height: 44px; object-fit: contain; }
.navbar__name {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.navbar__links {
  display: none;
  gap: 0.2rem;
  align-items: center;
}
.navbar__links a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.navbar__links a:hover { background: rgba(255,255,255,0.14); }

.navbar__cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.3rem !important;
}
.navbar__cta:hover { background: var(--green-dark) !important; }

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.navbar__hamburger:hover { background: rgba(255,255,255,0.12); }
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile open state */
.navbar--open .navbar__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: var(--nav-h);
  inset-inline: 0;
  background: rgba(20, 30, 60, 0.98);
  padding: 1rem 1.5rem 1.75rem;
  gap: 0.15rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.navbar--open .navbar__links a { width: 100%; font-size: 1.05rem; }
/* Animate hamburger to X */
.navbar--open .navbar__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar--open .navbar__hamburger span:nth-child(2) { opacity: 0; }
.navbar--open .navbar__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .navbar__links    { display: flex; }
  .navbar__hamburger { display: none; }
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: url('assets/images/bousaada-landscape.jpg') center / cover no-repeat;
  overflow: hidden;
}

/* Gradient: transparent left (portrait + minaret) → dark right (text) */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(26, 36, 64, 0.05) 0%,
    rgba(26, 36, 64, 0.38) 30%,
    rgba(26, 36, 64, 0.88) 58%,
    rgba(26, 36, 64, 0.97) 100%
  );
}

/* Mobile: uniform dark overlay so text is readable */
@media (max-width: 767px) {
  .hero__overlay {
    background: rgba(26, 36, 64, 0.80);
  }
}

/* Candidate cutout — bottom-left, minaret peeks center-right */
.hero__portrait {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 50%;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: bottom left;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

@media (min-width: 768px) {
  .hero__portrait {
    opacity: 1;
    height: 94%;
    max-width: 45%;
  }
}

.hero__container {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--nav-h) + 1.75rem);
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero__container {
    align-items: center;
    padding-top: var(--nav-h);
    padding-bottom: 0;
  }
}

/* Push content to physical right (text side in RTL) */
.hero__content {
  max-width: 540px;
  width: 100%;
  margin-left: auto;
  padding: 3rem 0 3rem 1rem;
}

.hero__party {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.hero__party-logo { width: 34px; height: 34px; object-fit: contain; }

.hero__name {
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero__title {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.1rem;
}

.hero__badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.hero__election {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.hero__slogan {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.75rem;
  font-style: italic;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
  direction: ltr;
  justify-content: flex-end;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  min-width: 58px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.countdown__num {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}
.countdown__sep {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 900;
  padding-bottom: 1rem;
  flex-shrink: 0;
}
.countdown--done {
  background: rgba(200, 168, 75, 0.2);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

/* ══════════════════════════════════════════════════════
   BIO
══════════════════════════════════════════════════════ */
.section-bio {
  background: var(--offwhite);
  padding: 5.5rem 0;
}

.bio-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .bio-layout { grid-template-columns: 1fr 1.5fr; }
}

.bio-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 520px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-inline-start: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.35rem;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green) 0%, var(--gold) 100%);
  border-radius: 1px;
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  inset-inline-start: -1.7rem;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--offwhite);
  box-shadow: 0 0 0 2px var(--green);
  transition: background var(--transition);
}
.timeline__item--active .timeline__dot {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
  width: 16px;
  height: 16px;
  inset-inline-start: -1.8rem;
  top: 2px;
}

.timeline__year {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.3px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}
.timeline__item--active .timeline__year { color: var(--gold); }

.timeline__content p {
  font-size: 0.93rem;
  color: #444;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   VISION / PILLARS
══════════════════════════════════════════════════════ */
.section-vision {
  background: var(--navy);
  padding: 5.5rem 0;
}

.pillars {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition);
}
.pillar-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(200,168,75,0.4);
}

.pillar-card__icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  display: block;
}

.pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
}

.pillars-slogan {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
}

/* ══════════════════════════════════════════════════════
   INTERACTIVE MAP
══════════════════════════════════════════════════════ */
.section-map {
  position: relative;
  padding: 5.5rem 0;
  background: url('assets/images/bousaada-oasis.png') center / cover no-repeat;
  background-attachment: fixed; /* parallax */
}

.map-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 32, 20, 0.86);
}

.map-container { position: relative; z-index: 1; }

.map-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .map-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .map-wrapper {
    width: 48%;
    max-width: none;
    margin-inline: 0;
  }
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.88) contrast(1.05) saturate(0.8);
  border-radius: var(--radius);
}

/* Clickable name label pins over the map image */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(26, 36, 64, 0.82);
  color: var(--white);
  border: 1px solid rgba(200, 168, 75, 0.5);
  border-radius: var(--radius);
  padding: 0.2rem 0.5rem;
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition);
  z-index: 2;
  text-align: center;
}
.map-pin:hover {
  background: var(--green);
  border-color: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 10;
}
.map-pin.active {
  background: var(--green-dark);
  border-color: var(--gold);
  border-width: 2px;
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 10;
}

@media (min-width: 768px) {
  .map-pin { font-size: 0.68rem; padding: 0.25rem 0.6rem; }
}

/* Side panel */
.map-panel {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 100%;
}

@media (min-width: 768px) {
  .map-panel { min-height: 400px; }
}

.map-panel__placeholder {
  text-align: center;
  color: rgba(255,255,255,0.45);
}
.map-panel__arrow {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.map-panel__placeholder p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 220px;
  margin-inline: auto;
}

.map-panel__content { width: 100%; }

.map-panel__icon  { font-size: 2.8rem; margin-bottom: 0.6rem; display: block; }
.map-panel__name  {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
}
.map-panel__plan  {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.map-panel__detail {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
}

/* Mobile bottom sheet */
.map-sheet {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: var(--navy);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.75rem 3rem;
  z-index: 300;
  transform: translateY(105%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 72vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.map-sheet.open { transform: translateY(0); }

.map-sheet__handle {
  width: 42px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 0 auto 1.4rem;
}
.map-sheet__close {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.map-sheet__close:hover { background: rgba(255,255,255,0.25); }

.map-sheet__icon   { font-size: 2.2rem; margin-bottom: 0.5rem; display: block; }
.map-sheet__name   { font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-bottom: 0.75rem; }
.map-sheet__plan   { font-size: 0.95rem; font-weight: 600; color: var(--white); line-height: 1.65; margin-bottom: 0.5rem; }
.map-sheet__detail { font-size: 0.84rem; color: rgba(255,255,255,0.68); line-height: 1.75; }

.map-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.map-sheet-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════════════════════════
   VIDEOS
══════════════════════════════════════════════════════ */
.section-videos {
  background: #0c0c0c;
  padding: 5.5rem 0;
}

.videos-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr 1.9fr;
    align-items: start;
  }
}

.video-stack { display: flex; flex-direction: column; gap: 2rem; }

.video-item  { display: flex; flex-direction: column; gap: 0.5rem; }

.video-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}
.video-sublabel {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.25rem;
}

/* Responsive iframe wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1a1a1a;
}
/* 9:16 vertical reel */
.video-wrapper--vertical {
  padding-bottom: 177.78%;
  max-width: 320px;
  margin-inline: auto;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════════════════
   CTA / VOTE
══════════════════════════════════════════════════════ */
.section-vote {
  background: var(--green);
  padding: 5.5rem 0;
  text-align: center;
}

.vote-date {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.vote-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.vote-card {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  text-align: right;
  max-width: 100%;
}

.vote-card__check {
  font-size: 3.5rem;
  color: var(--green);
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.vote-card__info { display: flex; flex-direction: column; gap: 0.15rem; }

.vote-card__row {
  font-size: 0.95rem;
  color: #666;
}
.vote-card__row strong {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 900;
}

.vote-card__name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-top: 0.3rem;
}

.vote-card__party {
  font-size: 0.82rem;
  color: #999;
  margin-top: 0.1rem;
}

.vote-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 2.5rem;
  display: block;
}

.share-container {
  position: relative;
  display: inline-block;
}

.vote-share {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  padding: 0.8rem 2.2rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.vote-share:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.8);
}

.share-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
  z-index: 200;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}
.share-popup.is-open {
  display: flex;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
  text-align: right;
  width: 100%;
}
.share-option:hover { background: rgba(255,255,255,0.1); }

.share-option__icon { font-size: 1.1rem; flex-shrink: 0; }

.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 50px;
  padding: 0.55rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 400;
  white-space: nowrap;
}
.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* FB SDK video wrapper — centers the fb-video div in its grid column */
.video-sdk-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  padding: 3.5rem 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.footer__logo   { width: 72px; height: 72px; object-fit: contain; margin-bottom: 0.25rem; }
.footer__name   { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.footer__party  { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.footer__copy   { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 0.5rem; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .vote-card {
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .vote-card__check { font-size: 2.5rem; }
  .countdown__num   { font-size: 1.35rem; }
  .countdown__unit  { min-width: 50px; padding: 0.45rem 0.6rem; }

  /* background-attachment: fixed causes jank on iOS Safari */
  .section-map { background-attachment: scroll; }
}

@media (max-width: 767px) {
  /* iOS Safari doesn't support fixed background on non-body elements */
  .section-map { background-attachment: scroll; }

  /* Portrait shows more of the candidate's body now that content sits higher */
  .hero__portrait {
    height: 55%;
    max-width: 52%;
  }

  /* Tighter vertical padding so content stays compact in the upper zone */
  .hero__content {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.5rem 1.5rem 0.5rem;
  }

  /* Reorder hero elements: countdown moves up between badges and election text */
  .hero__party    { order: 1; }
  .hero__name     { order: 2; }
  .hero__title    { order: 3; }
  .hero__badges   { order: 4; }
  .countdown      { order: 5; margin-bottom: 0.85rem; }
  .hero__election { order: 6; }
  .hero__slogan   { order: 7; }
}
