/* ==========================================================================
   IMOLE Campaign Council — Design System
   Matches desktop & mobile mockup
   ========================================================================== */

:root {
  --green-darkest: #001a0f;
  --green-dark: #003320;
  --green-primary: #004026;
  --green-nav: #004d2c;
  --green-mid: #006b3f;
  --green-light: #008751;
  --green-accent: #00a651;
  --yellow-primary: #ffcc00;
  --yellow-gold: #f5b800;
  --yellow-bright: #ffd700;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --glass-bg: rgba(0, 45, 28, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-hero: "Playfair Display", Georgia, "Times New Roman", serif;
  --nav-height: 72px;
  --top-bar-height: 40px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

@supports (overflow-x: clip) {
  html {
    overflow-x: clip;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--off-white);
  overflow-x: hidden;
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  position: relative;
}

@supports (overflow-x: clip) {
  body {
    overflow-x: clip;
  }
}

.container,
.container-fluid {
  max-width: 100%;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

main,
.site-header,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

a {
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

/* --------------------------------------------------------------------------
   Top Utility Bar
   -------------------------------------------------------------------------- */
.top-bar {
  background: var(--green-darkest);
  min-height: var(--top-bar-height);
  border-bottom: 1px solid rgba(255, 204, 0, 0.15);
  overflow: visible;
}

.top-bar .lang-switch-item,
.top-links {
  overflow: visible;
}

.top-bar-inner {
  padding: 0.45rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

.top-social {
  gap: 0.4rem;
}

.top-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow-primary);
  color: var(--green-darkest);
  font-size: 0.75rem;
}

.top-social a:hover {
  background: var(--yellow-bright);
  transform: translateY(-1px);
}

.top-bar-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.top-bar-text .text-yellow {
  color: var(--yellow-primary);
  font-weight: 600;
}

.top-bar-text .text-white {
  color: var(--white);
}

.top-links {
  gap: 0.65rem;
  font-size: 0.68rem;
  font-weight: 500;
}

.top-links a {
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.top-links a:hover {
  color: var(--yellow-primary);
}

.lang-switch-item {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: none;
  background: transparent;
  color: var(--yellow-primary);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.15rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 36px;
  white-space: nowrap;
}

.lang-dropdown__toggle:hover {
  color: var(--yellow-bright);
}

.lang-dropdown__caret {
  font-size: 0.55rem;
  transition: transform 0.2s ease;
}

.lang-dropdown.is-open .lang-dropdown__caret {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 148px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  z-index: 1200;
  padding: 0.35rem 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.lang-dropdown__menu[hidden] {
  display: none !important;
}

.lang-dropdown.is-open .lang-dropdown__menu {
  display: block !important;
}

.lang-dropdown__option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
}

.lang-dropdown__option:hover {
  background: #f4f7f5;
  color: var(--green-primary);
}

.lang-dropdown__option.is-active,
.lang-dropdown__option[aria-selected='true'] {
  color: var(--green-primary);
  background: rgba(0, 64, 38, 0.08);
}

.top-bar-mobile {
  background: var(--green-darkest);
  color: var(--yellow-primary);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1045;
  overflow: visible;
}

.top-bar-mobile:has(.lang-dropdown.is-open) {
  z-index: 1060;
}

.top-bar-mobile__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.top-bar-mobile__text {
  flex: 1;
  text-align: left;
  line-height: 1.3;
  font-size: 0.6rem;
}

.lang-dropdown--mobile-bar {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.lang-dropdown--mobile-bar .lang-dropdown__toggle {
  font-size: 0.65rem;
  min-height: 36px;
}

/* Mobile top bar: menu uses fixed positioning (set in site-lang.js) to sit above sticky navbar */
.lang-dropdown--mobile-bar .lang-dropdown__menu {
  position: fixed;
  top: auto;
  left: auto;
  min-width: 160px;
  z-index: 1070;
}

.lang-dropdown--mobile-bar.is-open .lang-dropdown__menu {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.mobile-lang-wrap {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-lang-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.mobile-lang-label i {
  margin-right: 0.35rem;
  color: var(--yellow-primary);
}

.lang-dropdown--mobile-menu {
  width: 100%;
}

.lang-dropdown--mobile-menu .lang-dropdown__toggle {
  width: 100%;
  justify-content: space-between;
  color: var(--yellow-primary);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

.lang-dropdown--mobile-menu .lang-dropdown__menu {
  position: static;
  width: 100%;
  margin-top: 0.35rem;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.lang-dropdown--mobile-menu .lang-dropdown__option {
  color: rgba(255, 255, 255, 0.92);
}

.lang-dropdown--mobile-menu .lang-dropdown__option:hover,
.lang-dropdown--mobile-menu .lang-dropdown__option.is-active {
  background: rgba(255, 204, 0, 0.15);
  color: var(--yellow-primary);
}

.site-lang-status {
  position: fixed;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 1055;
  background: var(--green-darkest);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(92vw, 320px);
  text-align: center;
}

.site-lang-status.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

html.site-lang-yo body {
  /* Yoruba-friendly stack where system fonts support extended Latin */
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
  z-index: 1030;
}

.site-header.scrolled .main-nav {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

.main-nav {
  background: var(--green-nav);
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1600px;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.navbar-toggler {
  padding: 0.35rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--yellow-primary);
}

.nav-menu {
  gap: 0.15rem;
}

.nav-menu .nav-link {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92) !important;
  padding: 0.5rem 0.55rem !important;
  position: relative;
  white-space: nowrap;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link:focus {
  color: var(--yellow-primary) !important;
}

.nav-menu .nav-link.active {
  color: var(--white) !important;
}

.nav-menu .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.15rem;
  height: 3px;
  background: var(--yellow-primary);
  border-radius: 2px;
}

.btn-join-nav {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-darkest) !important;
  background: var(--yellow-primary);
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 14px rgba(255, 204, 0, 0.35);
}

.btn-join-nav:hover {
  background: var(--yellow-bright);
  color: var(--green-darkest) !important;
  transform: translateY(-1px);
}

/* Mobile offcanvas */
.mobile-offcanvas {
  background: var(--green-nav);
  width: min(320px, 85vw);
}

.offcanvas-logo {
  height: 48px;
  width: auto;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-list a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

.mobile-nav-list a.active,
.mobile-nav-list a:hover {
  color: var(--yellow-primary);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 45%, #002818 100%);
  min-height: clamp(520px, 85vh, 720px);
  padding: 2rem 0 0;
  overflow-x: clip;
  overflow-y: visible;
}

.hero-bg-crowd {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1540575467061-178a50c2df87?w=1920&h=1080&fit=crop&q=60");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 110%;
  max-width: none;
  height: 55%;
  transform: translateX(-50%);
  color: var(--yellow-primary);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  contain: paint;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 24px rgba(255, 204, 0, 0.2));
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-row {
  min-height: clamp(400px, 70vh, 580px);
}

.hero-copy {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  position: relative;
  z-index: 8;
}

.hero-buttons {
  position: relative;
  z-index: 8;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow-primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-title .dot {
  color: var(--yellow-primary);
}

.hero-subtext {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 420px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.btn-hero-primary {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--green-darkest) !important;
  background: var(--yellow-primary);
  border: 2px solid var(--yellow-primary);
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
}

.btn-hero-primary:hover {
  background: var(--yellow-bright);
  border-color: var(--yellow-bright);
  color: var(--green-darkest) !important;
}

.btn-hero-outline {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white) !important;
  background: transparent;
  border: 2px solid var(--white);
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white) !important;
}

/* Governor portrait */
.hero-governor-col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 4;
  margin-bottom: 0;
  overflow: hidden;
}

.hero-governor-wrap {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  line-height: 0;
  background: transparent;
  overflow: hidden;
  max-height: clamp(260px, 46vh, 400px);
}

.hero-governor-img {
  width: 100%;
  max-height: clamp(300px, 52vh, 460px);
  object-fit: contain;
  object-position: center top;
  background: transparent;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.28));
  transform: translateY(-14%);
  margin-bottom: -18%;
}

/* Countdown glass card */
.hero-countdown-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  width: 100%;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
}

.countdown-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.countdown-header i {
  font-size: 1.35rem;
  color: var(--yellow-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.countdown-header span {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.timer-unit {
  text-align: center;
}

.timer-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.timer-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--yellow-primary);
  margin-top: 0.2rem;
}

.btn-countdown-cta {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-darkest) !important;
  background: var(--yellow-primary);
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-countdown-cta:hover {
  background: var(--yellow-bright);
  color: var(--green-darkest) !important;
}

.countdown-actions {
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Stats Bar (overlapping governor — mockup)
   -------------------------------------------------------------------------- */
.hero-stats-row {
  position: relative;
  z-index: 25;
  margin-top: -0.5rem;
}

.hero-stats-overlap {
  position: relative;
  width: 100%;
  margin: -2.75rem 0 -2.25rem;
  padding: 0;
}

.stats-bar {
  background: linear-gradient(90deg, var(--green-nav), var(--green-primary));
  border-radius: var(--radius-lg);
  padding: 1.35rem 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 204, 0, 0.15);
}

.stats-bar--compact {
  padding: 0.55rem 0.65rem;
}

.stats-bar--compact .stat-item {
  padding: 0.35rem 0.4rem;
}

.stats-bar--compact .stat-icon {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.stats-bar--compact .stat-text {
  font-size: clamp(0.62rem, 1vw, 0.75rem);
  line-height: 1.25;
}

/* Spacing after hero block (stats now inside hero) */
.hero-section + .action-cards-section {
  padding-top: 4rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 0.75rem 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--yellow-primary);
  margin-bottom: 0.35rem;
}

.stat-text {
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  color: var(--white);
  margin: 0;
  line-height: 1.4;
}

.stat-text strong {
  color: var(--yellow-primary);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Action Cards
   -------------------------------------------------------------------------- */
.action-cards-section {
  padding: 0 0 3.5rem;
}

.action-card {
  background: var(--white);
  border: 1px solid rgba(0, 64, 38, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.action-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.action-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 0.65rem;
}

.action-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.action-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--green-light) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.action-link:hover {
  color: var(--green-mid) !important;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Latest Updates
   -------------------------------------------------------------------------- */
.updates-section {
  padding: 0 0 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green-primary);
}

.view-all-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-light) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.view-all-link:hover {
  color: var(--green-mid) !important;
}

.news-card {
  height: 100%;
}

.news-card-link {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}

.news-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.news-thumb {
  height: 180px;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.news-card-link:hover .news-thumb img {
  transform: scale(1.05);
}

.news-body {
  padding: 1.1rem 1.25rem 1.35rem;
  position: relative;
}

.news-body time {
  font-size: 0.75rem;
  color: var(--gray-500);
  display: block;
  margin-bottom: 0.45rem;
}

.news-body h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin: 0;
  padding-right: 2rem;
}

.news-arrow {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}

.news-card-link:hover .news-arrow {
  background: var(--green-primary);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 2rem;
  background: var(--green-darkest);
  color: rgba(255, 255, 255, 0.88);
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-wave {
  color: var(--off-white);
  line-height: 0;
  margin-top: -1px;
  transform: translateY(1px);
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 40px;
}

.footer-main {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green-darkest) 100%);
  border-top: 3px solid var(--yellow-primary);
}

.footer-row {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-row-2 {
  padding-top: 2.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.footer-logo {
  height: 58px;
  width: auto;
  margin-bottom: 1.1rem;
  opacity: 0.98;
}

.footer-about {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.25rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-primary);
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--yellow-primary);
  border-radius: 1px;
}

.footer-heading-sm {
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--yellow-primary);
  padding-left: 4px;
}

.footer-social {
  gap: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.35);
  color: var(--yellow-primary);
  font-size: 0.95rem;
}

.footer-social a:hover {
  background: var(--yellow-primary);
  color: var(--green-darkest);
  transform: translateY(-2px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact i {
  color: var(--yellow-primary);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact a:hover {
  color: var(--yellow-primary);
}

.footer-newsletter {
  margin-top: 1rem;
}

.footer-newsletter .form-control {
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-radius: 50px 0 0 50px;
  padding: 0.65rem 1rem;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--yellow-primary);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.btn-footer-submit {
  background: var(--yellow-primary);
  color: var(--green-darkest);
  border: none;
  border-radius: 0 50px 50px 0;
  padding: 0.65rem 1.1rem;
  font-size: 1rem;
}

.btn-footer-submit:hover {
  background: var(--yellow-bright);
  color: var(--green-darkest);
}

.footer-newsletter-note {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.5rem 0 0;
}

.footer-countdown-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}

.footer-countdown-date {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.footer-countdown-date i {
  color: var(--yellow-primary);
  margin-right: 0.35rem;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-tags li {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.28);
  color: rgba(255, 255, 255, 0.9);
}

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.btn-footer-cta {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--green-darkest) !important;
  background: var(--yellow-primary);
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-footer-cta:hover {
  background: var(--yellow-bright);
  color: var(--green-darkest) !important;
  transform: translateY(-1px);
}

.footer-bottom {
  background: #000f09;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 204, 0, 0.12);
}

.footer-copy,
.footer-motto {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-motto {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.footer-motto .dot {
  color: var(--yellow-primary);
}

.footer-back-top {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--yellow-primary) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.footer-back-top:hover {
  color: var(--yellow-bright) !important;
}

.footer-back-top i {
  font-size: 1.25rem;
}

/* Floating back to top — visible after scroll */
.back-to-top-btn {
  position: fixed;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--yellow-primary);
  color: var(--green-darkest);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
  pointer-events: none;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: var(--yellow-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.back-to-top-btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .back-to-top-btn {
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top-btn {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }

  .back-to-top-btn.is-visible,
  .back-to-top-btn:hover {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .footer-main {
    padding: 2.25rem 0 2rem;
  }

  .footer-about {
    max-width: none;
  }

  .footer-row {
    padding-bottom: 2rem;
  }

  .footer-row-2 {
    padding-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .footer-social a {
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   RESPONSIVE — Tablet & Mobile (matches mockup phone layout)
   ========================================================================== */

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-bottom: 0;
    overflow-x: clip;
  }

  .hero-wave {
    width: 100%;
    height: 40%;
    bottom: 15%;
    opacity: 0.7;
  }

  .hero-wave svg {
    filter: none;
  }

  .hero-container,
  .top-bar-inner {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .container,
  .container-fluid {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .hero-stats-overlap {
    margin-top: -2.25rem;
    margin-bottom: -1.75rem;
  }

  .hero-governor-img {
    transform: translateY(-10%);
    margin-bottom: -14%;
  }

  .hero-row {
    min-height: auto;
  }

  .hero-copy {
    text-align: center;
    padding-top: 1.25rem;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    margin-bottom: 1.25rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-governor-wrap {
    width: min(85%, 300px);
    max-height: 300px;
  }

  .hero-governor-img {
    max-height: 340px;
    transform: translateY(-8%);
    margin-bottom: -12%;
  }

  .glass-card {
    max-width: 100%;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 767.98px) {
  .site-logo {
    height: 44px;
  }

  .hero-section {
    padding: 1rem 0 5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-eyebrow {
    font-size: 0.6rem;
  }

  .hero-stats-overlap {
    margin-top: -3rem;
  }

  .stats-bar {
    padding: 1rem 0.5rem;
  }

  .hero-section + .action-cards-section {
    padding-top: 2.75rem;
  }

  .stat-icon {
    font-size: 1.2rem;
  }

  .stat-text {
    font-size: 0.68rem;
  }

  .countdown-timer {
    gap: 0.35rem;
  }

  .timer-value {
    font-size: 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .hero-buttons .btn {
    font-size: 0.7rem;
    padding: 0.75rem 1.2rem;
  }

  .stat-item {
    padding: 0.6rem 0.35rem;
  }
}

/* Large desktop refinements */
@media (min-width: 1200px) {
  .nav-container,
  .hero-container,
  .top-bar-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .site-logo {
    height: 62px;
  }

  .nav-menu .nav-link {
    font-size: 0.74rem;
    padding: 0.5rem 0.65rem !important;
  }
}

@media (min-width: 992px) {
  .hero-row.row {
    --bs-gutter-x: 1rem;
    display: grid;
    grid-template-columns: 1fr 1.15fr 0.9fr;
    align-items: end;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
  }

  .hero-copy {
    padding-bottom: 1.5rem;
    align-self: center;
  }

  .hero-buttons {
    margin-bottom: 0.5rem;
  }

  .hero-governor-col {
    margin-bottom: 0;
    align-items: flex-end;
  }

  .hero-governor-wrap {
    max-height: clamp(280px, 40vh, 380px);
  }

  .hero-governor-img {
    transform: translateY(-16%);
    margin-bottom: -20%;
    object-position: center top;
  }

  .hero-countdown-col {
    align-self: center;
    padding-bottom: 2rem;
  }

  .hero-stats-overlap {
    margin-top: -2.5rem;
    margin-bottom: -2rem;
  }

  .stats-bar--compact .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-section + .action-cards-section {
    padding-top: 3.5rem;
  }
}

@media (min-width: 1400px) {
  .hero-governor-wrap {
    width: 480px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-stats-overlap {
    margin-top: -2.75rem;
  }

  .hero-governor-wrap {
    max-height: 400px;
  }
}

/* iOS / Android touch & safe areas */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Print */
@media print {
  .top-bar,
  .top-bar-mobile,
  .site-header,
  .countdown-card,
  .btn {
    display: none !important;
  }
}