/* ============================================================
   BETTER BRAMPTON — Master Design System & 5 Light-Theme Templates
   Template 1: Official Classic (Untouched)
   Template 2: Modern Clean & PropTech Edition
   Template 3: Bold Tech & Innovation Edition (Infinite Marquee Ticker)
   Template 4: Architectural Craftsmanship Edition (Before/After Slider)
   Template 5: Civic Modern Light Movement Edition
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  color-scheme: light;
  font-size: 16px;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--color-ink, #1c2738);
  background-color: var(--color-bg, #faf5ea);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================================
   ANIMATIONS & MOVING TEXT ENGINE
   ============================================================ */
@keyframes marqueeRoll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeRollReverse {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulseLive {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

@keyframes pulseLiveGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

@keyframes sliderWiggle {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(-65%, -50%); }
  75% { transform: translate(-35%, -50%); }
}

@keyframes shimmerSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Animation Utility Classes */
.animate-fade-up {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

.pulse-dot-red {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulseLive 2s infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.pulse-dot-green {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulseLiveGreen 2s infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* Moving Marquee Strip */
.marquee-strip, .tech-marquee-strip {
  overflow: hidden !important;
  white-space: nowrap !important;
  width: 100% !important;
  position: relative !important;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  display: flex;
  user-select: none;
}

.marquee-track, .tech-marquee-track {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap !important;
  will-change: transform;
  animation: marqueeRoll 25s linear infinite !important;
  gap: 24px;
  padding-right: 24px;
}

.marquee-track.reverse, .tech-marquee-track.reverse {
  animation: marqueeRollReverse 28s linear infinite !important;
}

.marquee-strip:hover .marquee-track,
.tech-marquee-strip:hover .tech-marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e3a8a;
}


/* ============================================================
   TEMPLATE 1: Official Brampton Classic (Default / Untouched)
   ============================================================ */
:root, [data-theme="v1"] {
  --color-primary: #1b3a6b;
  --color-primary-dark: #12284c;
  --color-accent: #e89b2d;
  --color-accent-hover: #cf841f;
  --color-green: #2e6945;
  --color-bg: #faf5ea;
  --color-surface: #ffffff;
  --color-surface-soft: #f4edd9;
  --color-ink: #1c2738;
  --color-ink-muted: #556272;
  --color-border: rgba(27, 58, 107, 0.16);
  --color-border-strong: rgba(27, 58, 107, 0.35);
  --shadow-sm: 0 2px 8px rgba(27, 58, 107, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 58, 107, 0.1);
  --shadow-lg: 0 16px 40px rgba(27, 58, 107, 0.14);
  --font-display: "Space Grotesk", "Segoe UI Variable Display", sans-serif;
  --font-body: "DM Sans", -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ============================================================
   TEMPLATE 2: Modern Clean & PropTech Edition (All Light)
   ============================================================ */
[data-theme="v2"] {
  --color-primary: #0047ab;
  --color-primary-dark: #002d6b;
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-green: #10b981;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-soft: #f1f5f9;
  --color-ink: #0f172a;
  --color-ink-muted: #475569;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(0, 71, 171, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 71, 171, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 71, 171, 0.12);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}
.proptech-hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid #e2e8f0;
}
.proptech-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.prop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #e6f4ea;
  color: #137333;
  font-weight: 800;
  font-size: 0.84rem;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.prop-search-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(0, 71, 171, 0.1);
  margin-top: 24px;
}
.prop-input-row {
  display: flex;
  gap: 10px;
}
.prop-input-row input {
  flex-grow: 1;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
.prop-input-row input:focus {
  outline: none;
  border-color: #0047ab;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin: 48px 0;
}
.bento-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 71, 171, 0.1);
}
.bento-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.bento-body {
  padding: 24px;
}

/* ============================================================
   TEMPLATE 3: Bold Tech & Innovation Edition (Infinite Marquee)
   ============================================================ */
[data-theme="v3"] {
  --color-primary: #1e3a8a;
  --color-primary-dark: #0f172a;
  --color-accent: #0284c7;
  --color-accent-hover: #0369a1;
  --color-green: #059669;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-soft: #f1f5f9;
  --color-ink: #0f172a;
  --color-ink-muted: #334155;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 20px rgba(2, 132, 199, 0.08);
  --shadow-lg: 0 16px 36px rgba(2, 132, 199, 0.14);
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}
.tech-marquee-strip {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}
.tech-marquee-item {
  color: #1e3a8a;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}
.tech-hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tech-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.tech-tech-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  position: relative;
  transition: all 0.25s ease;
}
.tech-tech-card:hover {
  background: #ffffff;
  border-color: #0284c7;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
}
.tech-step-badge {
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}

/* ============================================================
   TEMPLATE 4: Architectural Craftsmanship Edition
   ============================================================ */
[data-theme="v4"] {
  --color-primary: #7c2d12;
  --color-primary-dark: #431407;
  --color-accent: #c2410c;
  --color-accent-hover: #9a3412;
  --color-green: #15803d;
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-surface-soft: #f4ede4;
  --color-ink: #292524;
  --color-ink-muted: #57534e;
  --color-border: #e7dfd5;
  --color-border-strong: #d6c7b2;
  --shadow-sm: 0 2px 8px rgba(124, 45, 18, 0.05);
  --shadow-md: 0 10px 30px rgba(124, 45, 18, 0.08);
  --shadow-lg: 0 18px 44px rgba(124, 45, 18, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", Georgia, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
}
.craft-hero {
  padding: 64px 0 80px;
  border-bottom: 1px solid #e7dfd5;
}
.craft-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.craft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #f4ede4;
  color: #7c2d12;
  border: 1px solid #d6c7b2;
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.fluted-oak-card {
  background: #ffffff;
  border: 1px solid #e7dfd5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.06);
}
.fluted-oak-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ============================================================
   TEMPLATE 5: Civic Modern Light Movement (Clean All-Light)
   ============================================================ */
[data-theme="v5"] {
  --color-primary: #b91c1c;
  --color-primary-dark: #7f1d1d;
  --color-accent: #0284c7;
  --color-accent-hover: #0369a1;
  --color-green: #15803d;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-soft: #f1f5f9;
  --color-ink: #0f172a;
  --color-ink-muted: #475569;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(185, 28, 28, 0.05);
  --shadow-md: 0 10px 30px rgba(185, 28, 28, 0.08);
  --shadow-lg: 0 18px 44px rgba(185, 28, 28, 0.12);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Template 5: Civic Modern Movement components */
.civic-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}
.civic-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.civic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.civic-countdown-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 32px;
  margin: 36px 0;
  box-shadow: 0 10px 30px rgba(185, 28, 28, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.civic-countdown-digits {
  display: flex;
  gap: 16px;
}
.civic-digit-unit {
  text-align: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 16px;
  min-width: 68px;
}
.civic-digit-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #b91c1c;
  line-height: 1;
}
.civic-digit-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 4px;
}
.civic-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.civic-photo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.civic-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.1);
}
.civic-photo-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.civic-photo-caption {
  padding: 16px 20px;
}
.civic-photo-caption h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.civic-photo-caption p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* Header & Banner Styles */
.election-banner, .vote-banner {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.88rem;
  padding: 8px 16px;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.election-banner a, .vote-banner a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 8px;
}
[dir="rtl"] .election-banner a, [dir="rtl"] .vote-banner a {
  margin-left: 0;
  margin-right: 8px;
}
.election-banner a:hover, .vote-banner a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 245, 234, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}
[data-theme="v2"] .site-header { background: rgba(248, 250, 252, 0.94); }
[data-theme="v3"] .site-header { background: rgba(255, 255, 255, 0.94); }
[data-theme="v4"] .site-header { background: rgba(250, 247, 242, 0.94); }
[data-theme="v5"] .site-header { background: rgba(255, 255, 255, 0.94); }

.nav-row, .site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand-group, .wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
.brand-sub, .wordmark small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: block;
}

.main-menu, .site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-menu a, .site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  padding: 6px 4px;
  position: relative;
}
.main-menu a:hover, .site-nav a:hover,
.main-menu a[aria-current="page"], .site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Dropdown (RTL-proof) */
.lang-select-box, details.lang {
  position: relative;
  display: inline-block;
}
.lang-btn, details.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  list-style: none;
}
details.lang summary::-webkit-details-marker { display: none; }
.lang-dropdown-menu, .lang-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 140px;
  z-index: 1000;
  display: none;
}
details.lang[open] .lang-panel,
.lang-select-box:hover .lang-dropdown-menu {
  display: block;
}
[dir="rtl"] .lang-dropdown-menu,
[dir="rtl"] .lang-panel {
  right: auto;
  left: 0;
}
.lang-dropdown-menu a, .lang-panel a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink);
}
.lang-dropdown-menu a:hover, .lang-panel a:hover {
  background: var(--color-surface-soft);
  color: var(--color-primary);
}

.btn-donate-top, .btn--gold, .btn--marigold, .btn-donate {
  background: var(--color-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(232, 155, 45, 0.28);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-donate-top:hover, .btn--gold:hover, .btn--marigold:hover, .btn-donate:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 155, 45, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn--red, .btn-primary-glow {
  background: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(27, 58, 107, 0.25);
}
.btn--red:hover, .btn-primary-glow:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(27, 58, 107, 0.35);
}
.btn--ghost, .btn-outline-exec {
  background: var(--color-surface);
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}
.btn--ghost:hover, .btn-outline-exec:hover {
  background: var(--color-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}
.btn--ink {
  background: var(--color-ink);
  color: #ffffff !important;
}

/* Template 1 Hero & Elements */
.tpl-executive-hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}
.brampton-flower-watermark {
  position: absolute;
  top: -30px;
  right: -50px;
  width: 440px;
  height: 440px;
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(15deg);
  z-index: 0;
}
[dir="rtl"] .brampton-flower-watermark {
  right: auto;
  left: -50px;
  transform: rotate(-15deg);
}
.exec-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.exec-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.civic-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(27, 58, 107, 0.08);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-primary);
  width: fit-content;
}
.exec-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1.12;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}
.exec-subtitle {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
  max-width: 580px;
}
.exec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
.endorsement-note {
  font-size: 0.9rem;
  color: var(--color-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.exec-photo-wrapper { position: relative; }
.exec-photo-card, .photo-card {
  position: relative;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.exec-photo-card img, .photo-card img {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.exec-floating-credential, .photo-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(27, 58, 107, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.credential-icon {
  background: var(--color-accent);
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Stats Ticker Strip */
.stats-strip, .stat-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item, .stat {
  border-right: 1px solid var(--color-border);
  padding: 0 12px;
  text-align: center;
}
.stat-item:last-child, .stat:last-child { border-right: none; }
[dir="rtl"] .stat-item, [dir="rtl"] .stat {
  border-right: none;
  border-left: 1px solid var(--color-border);
}
[dir="rtl"] .stat-item:last-child, [dir="rtl"] .stat:last-child { border-left: none; }
.stat-number, .stat b {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  display: block;
  margin-bottom: 4px;
}
.stat-label, .stat span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink-muted);
}

/* 5-Pillar Blueprint Explorer */
.blueprint-section { padding: 48px 0 80px; }
.section-intro, .section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}
.section-tag, .eyebrow {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}
.section-heading, .section-head h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-desc, .lede {
  font-size: 1.08rem;
  color: var(--color-ink-muted);
  margin-top: 10px;
}
.blueprint-card-grid, .grid, .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.blueprint-card, .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.blueprint-card:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card-title, .card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.card-text, .card p {
  font-size: 0.98rem;
  color: var(--color-ink-muted);
  line-height: 1.55;
  flex-grow: 1;
}

/* Comparison Matrix */
.comparison-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 0;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: 36px 30px;
}
.compare-col.status-quo {
  background: #fff5f5;
  border: 1px solid #fed7d7;
}
.compare-col.tarriwal-plan {
  background: #f0fff4;
  border: 2px solid #9ae6b4;
  box-shadow: var(--shadow-md);
}
.compare-header {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.compare-col.status-quo .compare-header { color: #c53030; }
.compare-col.tarriwal-plan .compare-header { color: #22543d; }
.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.compare-list li {
  font-size: 1rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Subpage Forms & Details */
.section { padding: 60px 0; }
.section--tint { background: var(--color-surface-soft); }
.section--gold { background: #fdf6e7; }
.section--red { background: #faf0f0; }
.section--ink { background: var(--color-primary-dark); color: #fff; }
.section--ink h2, .section--ink p { color: #fff; }

.page-head {
  padding: 50px 0 30px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-top: 10px;
}
.crumb {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.form-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.form-head {
  background: var(--color-primary);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-head h3 { font-size: 1.3rem; margin-bottom: 2px; }
.form-head small { opacity: 0.85; font-size: 0.88rem; }
.form-body { padding: 28px 24px; }
.formf { display: flex; flex-direction: column; gap: 18px; }
.formf .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--color-ink); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 155, 45, 0.2);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface-soft);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  cursor: pointer;
}

/* Donate Page */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.amounts button {
  padding: 14px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary);
  text-align: center;
}
.amounts button.is-picked, .amounts button:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Plan Pick */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
.plan-pick {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.plan-pick:hover, .plan-pick.is-picked {
  border-color: var(--color-accent);
  background: var(--color-surface-soft);
}
.plan-pick .tag { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; color: var(--color-accent); }
.plan-pick .when { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); }

/* News / Updates list */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-item .date { font-weight: 700; color: var(--color-accent); font-size: 0.95rem; }
.news-item h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-primary); margin-bottom: 6px; }
.news-item p { color: var(--color-ink-muted); font-size: 0.98rem; }
.news-item .read { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--color-primary); }

/* FLOATING TEMPLATE SWITCHER (Pinned at bottom center) */
.template-switcher-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(14, 25, 44, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 95vw;
  overflow-x: auto;
  scrollbar-width: none;
}
.template-switcher-bar::-webkit-scrollbar { display: none; }
.template-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbd38d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 6px;
  white-space: nowrap;
}
.template-btn {
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e2e8f0;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: transparent;
  display: inline-block;
  text-decoration: none;
}
.template-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.template-btn.is-active {
  background: #e89b2d;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(232, 155, 45, 0.4);
}

/* FOOTER */
.site-footer {
  background: #10223a;
  color: #e2e8f0;
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-border);
  margin-top: 80px;
}
.footer-grid, .footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
.footer-brand h4, .footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 12px;
}
.footer-brand p, .candidate-line, .authorized {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
}
.footer-col h5, .footer-col b {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: block;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.92rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--color-accent, #e89b2d); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Responsive */

/* Comprehensive Responsive Mobile Engine */
@media (max-width: 960px) {
  html, body {
    overflow-x: hidden;
  }
  .wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .footer-grid, .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .exec-hero-grid,
  .proptech-grid,
  .proptech-grid,
  .bento-grid,
  .tech-grid,
  .craft-grid,
  .civic-hero-grid,
  .civic-photo-grid,
  .compare-grid,
  .form-wrap,
  .donate-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .bento-card[style*="span 2"] {
    grid-column: span 1 !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 12px 8px !important;
  }
  .main-menu, .site-nav {
    display: none !important;
  }
  .template-switcher-bar {
    bottom: 8px !important;
    padding: 6px 10px !important;
    gap: 6px !important;
    max-width: calc(100vw - 16px) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap !important;
    justify-content: flex-start !important;
    border-radius: 9999px;
  }
  .template-btn {
    font-size: 0.76rem !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }
  .civic-countdown-box {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 16px !important;
  }
  .civic-countdown-digits {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 12px;
  }
  .civic-digit-unit {
    min-width: 54px !important;
    padding: 6px 8px !important;
  }
  .civic-digit-val {
    font-size: 1.45rem !important;
  }
  .prop-input-row {
    flex-direction: column !important;
  }
  .prop-input-row input {
    width: 100% !important;
  }
  .prop-input-row button {
    width: 100% !important;
  }
  #propMetrics {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .floating-stat-badge {
    position: static !important;
    margin: 12px 6px 0 !important;
    display: inline-block !important;
  }
  .before-after-wrapper {
    aspect-ratio: 4/3 !important;
    margin: 20px auto !important;
  }
}


/* ============================================================
   ADVANCED HOVER EFFECTS & MICRO-INTERACTIONS ENGINE
   ============================================================ */

/* Universal Scroll Reveal Animation System */
[data-reveal], .reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible, .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Mouse Hover Elevation & Tilt */
.card, 
.bento-card, 
.civic-photo-card, 
.stat-item, 
.prop-search-card,
.fluted-oak-card,
.facts-grid > div,
.lanes > div,
.news-item {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
  will-change: transform, box-shadow;
  cursor: pointer;
}

.card:hover, 
.bento-card:hover, 
.civic-photo-card:hover,
.fluted-oak-card:hover,
.news-item:hover {
  transform: translateY(-8px) scale(1.015) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.stat-item:hover {
  transform: translateY(-5px) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px;
}

/* Image Zoom on Mouse Hover */
.bento-card, .civic-photo-card, .fluted-oak-card, .hero-portrait-wrap {
  overflow: hidden;
}

.bento-card img, 
.civic-photo-card img, 
.fluted-oak-card img,
.before-after-wrapper img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: transform;
}

.bento-card:hover img, 
.civic-photo-card:hover img {
  transform: scale(1.06);
}

/* Button Shimmer, Hover Elevation & Sheen Sweep */
.btn, .btn-primary, .btn-outline, .donate-btn, .button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, box-shadow;
}

.btn:hover, .btn-primary:hover, .donate-btn:hover {
  transform: translateY(-3px) scale(1.025) !important;
  box-shadow: 0 12px 28px rgba(0, 71, 171, 0.32) !important;
}

.btn-outline:hover {
  transform: translateY(-3px) scale(1.025) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1) !important;
}

.btn::after, .btn-primary::after, .donate-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(25deg);
  pointer-events: none;
}

.btn:hover::after, .btn-primary:hover::after, .donate-btn:hover::after {
  animation: btnSheenSweep 0.7s ease-in-out forwards;
}

@keyframes btnSheenSweep {
  0% { left: -75%; }
  100% { left: 150%; }
}

/* Animated Navigation Link Underline on Hover */
.main-menu a, .site-nav a, .nav-links a {
  position: relative;
  transition: color 0.25s ease;
  padding-bottom: 2px;
}

.main-menu a::after, .site-nav a::after, .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent, #0284c7);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
}

.main-menu a:hover::after, .site-nav a:hover::after, .nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* Floating Badges with Dynamic Levitation */
.floating-stat-badge {
  animation: floatLevitate 4s ease-in-out infinite alternate !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  will-change: transform;
}

.floating-stat-badge:hover {
  transform: translateY(-6px) scale(1.08) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16) !important;
}

@keyframes floatLevitate {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.6deg); }
  100% { transform: translateY(-2px) rotate(-0.6deg); }
}

/* Before & After Slider Handle Glow & Pulse */
.slider-handle-badge {
  animation: handlePulse 2s ease-in-out infinite alternate !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.slider-range-control:hover ~ .slider-handle-badge {
  transform: translate(-50%, -50%) scale(1.18) !important;
  box-shadow: 0 0 30px rgba(180, 83, 9, 0.6) !important;
}

@keyframes handlePulse {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
  100% { box-shadow: 0 4px 26px rgba(180, 83, 9, 0.5); }
}

/* Template Switcher Buttons Interactive Hover */
.template-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.template-btn:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  background: rgba(255, 255, 255, 0.22) !important;
}

.template-btn.is-active:hover {
  background: #f59e0b !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4) !important;
}

/* Active Highlight on Comparative Matrix on Hover */
.compare-col {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.compare-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}



/* ============================================================
   ULTIMATE HOVER & MICRO-INTERACTION SYSTEM (ALL TEMPLATES)
   ============================================================ */

/* All Interactive Buttons (Every Variant Across Templates) */
.btn, 
.btn-primary, 
.btn-outline, 
.donate-btn, 
.button, 
.btn-primary-glow, 
.btn-outline-exec, 
.btn-donate-top,
.template-btn,
.ward-btn {
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.25s ease, 
              border-color 0.25s ease,
              color 0.25s ease !important;
  will-change: transform, box-shadow;
  cursor: pointer;
}

.btn:hover, 
.btn-primary:hover, 
.btn-primary-glow:hover, 
.btn-donate-top:hover {
  transform: translateY(-3px) scale(1.025) !important;
  box-shadow: 0 12px 28px rgba(0, 71, 171, 0.35) !important;
}

.btn-outline:hover, 
.btn-outline-exec:hover {
  transform: translateY(-3px) scale(1.025) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--color-primary, #0047ab) !important;
}

/* Button Shimmer / Sheen Sweep */
.btn::after, 
.btn-primary::after, 
.btn-primary-glow::after, 
.btn-donate-top::after,
.donate-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  pointer-events: none;
}

.btn:hover::after, 
.btn-primary:hover::after, 
.btn-primary-glow:hover::after, 
.btn-donate-top:hover::after,
.donate-btn:hover::after {
  animation: btnSheenSweep 0.7s ease-in-out forwards;
}

@keyframes btnSheenSweep {
  0% { left: -75%; }
  100% { left: 150%; }
}

/* Card Mouse Hover Elevation & Tilt Across All Templates */
.card, 
.bento-card, 
.civic-photo-card, 
.blueprint-card, 
.stat-item, 
.prop-search-card,
.fluted-oak-card,
.facts-grid > div,
.lanes > div,
.news-item,
.ward-display-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease !important;
  will-change: transform, box-shadow;
}

.card:hover, 
.bento-card:hover, 
.civic-photo-card:hover, 
.blueprint-card:hover, 
.fluted-oak-card:hover,
.news-item:hover {
  transform: translateY(-8px) scale(1.015) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

/* Smooth Image Scale on Card Hover */
.bento-card img, 
.civic-photo-card img, 
.blueprint-card img, 
.fluted-oak-card img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: transform;
}

.bento-card:hover img, 
.civic-photo-card:hover img, 
.fluted-oak-card:hover img {
  transform: scale(1.06);
}

/* Navigation Links Animated Underline on Mouse Hover */
.main-menu a, .site-nav a, .nav-links a {
  position: relative;
  transition: color 0.25s ease;
  padding-bottom: 3px;
}

.main-menu a::after, .site-nav a::after, .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--color-accent, #0284c7);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
}

.main-menu a:hover::after, .site-nav a:hover::after, .nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* Interactive Floating Template Switcher Buttons */
.template-switcher-bar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.template-switcher-bar:hover {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38) !important;
}

.template-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
  background: rgba(255, 255, 255, 0.25) !important;
}

.template-btn.is-active:hover {
  background: #f59e0b !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}

/* Ward Buttons Hover in Template 2 */
.ward-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 71, 171, 0.15);
}

/* Comparative Grid Columns Hover */
.compare-col:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
