/* ==========================================================
   SUNFEED ECOSOLUTIONS - STATIC SITE STYLES
   ========================================================== */

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

:root {
  --red: #DC2626;
  --red-hover: #B91C1C;
  --red-dark: #991B1B;
  --red-light: rgba(220, 38, 38, 0.08);
  --red-subtle: #FEF2F2;
  --red-border: #FECACA;
  --dark: #0F172A;
  --dark-accent: #171412;
  --slate: #475569;
  --slate-light: #64748B;
  --muted: #6B6560;
  --green: #059669;
  --gold: #F0B429;
  --bg-body: #FAFAFA;
  --bg-white: #FFFFFF;
  --bg-muted: #F8FAFC;
  --bg-warm: #F7F5F2;
  --border: #E2E8F0;
  --border-warm: #E7E3DD;
  --text-main: #0F172A;
  --text-muted: #475569;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 14px 28px -4px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 40px -8px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Subtle texture overlay */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.018) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ==========================================================
   SCROLL-DRIVEN SCALE ANIMATION
   Elements grow from small to full size on scroll-in,
   and shrink back when scrolling away.
   ========================================================== */
.scroll-scale {
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.scroll-scale.in-view {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger delays for grid children */
.scroll-scale[data-delay="1"] { transition-delay: 0.06s; }
.scroll-scale[data-delay="2"] { transition-delay: 0.12s; }
.scroll-scale[data-delay="3"] { transition-delay: 0.18s; }
.scroll-scale[data-delay="4"] { transition-delay: 0.24s; }
.scroll-scale[data-delay="5"] { transition-delay: 0.30s; }
.scroll-scale[data-delay="6"] { transition-delay: 0.36s; }
.scroll-scale[data-delay="7"] { transition-delay: 0.42s; }
.scroll-scale[data-delay="8"] { transition-delay: 0.48s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

::selection {
  background: rgba(220, 38, 38, 0.2);
  color: var(--dark);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* Utilities */
.hidden { display: none !important; }
.flex-1 { flex: 1; }
.full-width { width: 100%; }
.mt-3 { margin-top: 12px; }
.text-center { text-align: center; }

/* ==========================================================
   SCROLL PROGRESS BAR
   ========================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--red), #EF4444, #FB7185);
  width: 0%;
  z-index: 99999;
  transition: width 0.1s linear;
}

/* ==========================================================
   HEADER / NAVBAR
   ========================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Utility Bar */
.utility-bar {
  background: var(--dark-accent);
  color: white;
  font-size: 11px;
  border-bottom: 1px solid #221D19;
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 4px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1FA35C;
  box-shadow: 0 0 6px #1FA35C;
  flex-shrink: 0;
}

.utility-right {
  display: flex;
  align-items: center;
}

.utility-tools {
  display: none;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}
@media (min-width: 640px) { .utility-tools { display: flex; } }

.utility-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  font-size: 11px;
  font-weight: 500;
}
.utility-btn:hover { color: var(--gold); }
.utility-btn i, .utility-btn svg { width: 12px; height: 12px; color: var(--gold); }

.utility-separator {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.2);
  margin: 0 2px;
}

.utility-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  padding: 0 12px;
  transition: color var(--transition);
}
.utility-contact:hover { color: #C81E1E; }
.utility-contact i, .utility-contact svg { width: 12px; height: 12px; color: #C81E1E; }

.utility-email {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  color: white;
  font-weight: 700;
  transition: color var(--transition);
}
.utility-email:hover { color: #C81E1E; }
.utility-email i, .utility-email svg { width: 12px; height: 12px; color: #C81E1E; }

/* Main Nav */
.main-nav {
  background: white;
  border-bottom: 1px solid var(--border-warm);
  transition: box-shadow 0.2s;
}
.main-nav.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.logo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img { height: 48px; width: auto; border-radius: 4px; }
.logo-text { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px; color: var(--dark-accent); }

/* Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 600;
}
@media (min-width: 1200px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  padding: 8px 12px;
  color: var(--dark-accent);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #C81E1E; font-weight: 700; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #C81E1E;
}
.nav-link i, .nav-link svg { width: 14px; height: 14px; color: var(--slate-light); }

/* Dropdowns */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-warm);
  padding: 8px 0;
  z-index: 100;
  display: none;
  animation: fadeIn 0.15s ease;
}
.dropdown-menu.show { display: block; }
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-accent);
  transition: all var(--transition);
}
.dropdown-menu button:hover { background: #F8FAFC; color: #C81E1E; }
.dropdown-menu button i, .dropdown-menu button svg { width: 16px; height: 16px; color: #C81E1E; }

/* Nav CTA */
.nav-cta .btn-primary { font-size: 11px; padding: 8px 14px; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--dark-accent);
}
.mobile-menu-btn i, .mobile-menu-btn svg { width: 20px; height: 20px; }
@media (min-width: 1200px) { .mobile-menu-btn { display: none; } }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border-warm);
  box-shadow: var(--shadow-xl);
  padding: 16px 24px;
  max-height: 85vh;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
@media (min-width: 1200px) { .mobile-menu { display: none !important; } }

.mobile-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 12px;
}
.mobile-tools button {
  padding: 10px;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--dark-accent);
}
.mobile-tools button i, .mobile-tools button svg { width: 16px; height: 16px; color: var(--gold); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-links button {
  text-align: left;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-accent);
  transition: all var(--transition);
}
.mobile-nav-links button:hover,
.mobile-nav-links button.active { background: var(--red-subtle); color: #C81E1E; font-weight: 700; }

.mobile-cta {
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
  margin-top: 16px;
}
.mobile-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
}
.mobile-contact-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate);
}
.mobile-contact-info a i, .mobile-contact-info a svg { width: 14px; height: 14px; color: #C81E1E; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline-flex; } }
.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline; } }
.hide-tablet { display: none; }
@media (min-width: 1024px) { .hide-tablet { display: flex; } }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #C81E1E;
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(200,30,30,0.2);
}
.btn-primary:hover {
  background: #A81717;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200,30,30,0.3);
}
.btn-primary i, .btn-primary svg { width: 14px; height: 14px; }
.btn-primary.btn-sm { padding: 6px 12px; font-size: 11px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dark);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-secondary:hover { background: #1E293B; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--red-subtle);
  color: var(--red);
  border: 1px solid var(--red-border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--red); color: white; border-color: var(--red); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #C81E1E;
  transition: color var(--transition);
}
.btn-ghost:hover { color: #A81717; text-decoration: underline; }
.btn-ghost i, .btn-ghost svg { width: 14px; height: 14px; }

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0F172A;
  user-select: none;
}
@media (min-width: 640px) { .hero { min-height: 82vh; } }
@media (min-width: 1024px) { .hero { min-height: 86vh; } }

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 64px 0;
}
@media (min-width: 640px) { .hero-content { padding: 96px 0; } }
@media (min-width: 1024px) { .hero-content { padding: 128px 0; } }

.hero-text {
  max-width: 720px;
  animation: fadeSlideUp 0.6s ease forwards;
}

.hero-text h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: white;
  line-height: 1.14;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
@media (min-width: 640px) { .hero-text h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-text h1 { font-size: 3.75rem; } }

.hero-text .highlight { color: var(--gold); font-weight: 900; display: block; margin-top: 4px; }
@media (min-width: 640px) { .hero-text .highlight { display: inline; margin-top: 0; } }

.hero-text p {
  color: #F1F5F9;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 560px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
@media (min-width: 640px) { .hero-text p { font-size: 16px; } }
@media (min-width: 1024px) { .hero-text p { font-size: 18px; } }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dot {
  height: 6px;
  border-radius: 999px;
  transition: all 0.5s ease;
  background: rgba(255,255,255,0.4);
  width: 8px;
}
.hero-dot.active { width: 32px; background: var(--gold); }

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

/* ==========================================================
   PAGE BANNER
   ========================================================== */
.page-banner {
  position: relative;
  background: linear-gradient(to bottom right, #171412, #1E1916, #221D19);
  color: white;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #2B241F;
  padding: 48px 0;
}
@media (min-width: 768px) { .page-banner { min-height: 340px; padding: 64px 0; } }

.page-banner .banner-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#F0B429 1px, transparent 1px), linear-gradient(to right, #F0B429 1px, transparent 1px), linear-gradient(to bottom, #F0B429 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.page-banner .breadcrumb button {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.page-banner .breadcrumb button:hover { color: var(--gold); }
.page-banner .breadcrumb i, .page-banner .breadcrumb svg { width: 14px; height: 14px; }
.page-banner .breadcrumb .current { color: var(--gold); font-weight: 700; }

.page-banner .banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(200,30,30,0.9);
  border: 1px solid #C81E1E;
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.page-banner .banner-badge i, .page-banner .banner-badge svg { width: 14px; height: 14px; }

.page-banner h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: white;
  max-width: 720px;
}
@media (min-width: 640px) { .page-banner h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .page-banner h1 { font-size: 3rem; } }

.page-banner .banner-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
  max-width: 640px;
  margin-top: 12px;
}
@media (min-width: 640px) { .page-banner .banner-subtitle { font-size: 16px; } }

/* Banner with background image */
.page-banner.page-banner-img {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #171412;
  min-height: 360px;
  padding: 64px 0;
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
@media (min-width: 768px) { .page-banner.page-banner-img { min-height: 450px; padding: 80px 0; } }
@media (min-width: 1024px) { .page-banner.page-banner-img { min-height: 520px; padding: 96px 0; } }
.page-banner.page-banner-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(23,20,18,0.55) 0%, rgba(30,25,22,0.40) 50%, rgba(34,29,25,0.25) 100%);
  z-index: 1;
  pointer-events: none;
}
.page-banner.page-banner-img .banner-grid {
  z-index: 2;
}

/* ==========================================================
   SECTION STYLES
   ========================================================== */
.section {
  padding: 80px 0;
}
.section-warm {
  background-color: var(--bg-warm);
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.015) 1px, transparent 0);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--border-warm);
}
.section-white {
  background-color: white;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.012) 1px, transparent 0);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--border-warm);
}

.section-header {
  margin-bottom: 48px;
}
.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(220,38,38,0.1);
  color: #C81E1E;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.section-header .badge i, .section-header .badge svg { width: 14px; height: 14px; }
.section-header .badge.green { background: rgba(5,150,105,0.1); color: #059669; }

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--dark-accent);
}
@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }

.section-header p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  max-width: 640px;
  line-height: 1.6;
}
@media (min-width: 640px) { .section-header p { font-size: 16px; } }

.section-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .section-top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ==========================================================
   CARDS
   ========================================================== */
.card {
  background: white;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--red-border);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--red-subtle);
  color: #C81E1E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform var(--transition);
}
.card:hover .card-icon { transform: scale(1.05); }
.card-icon i, .card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-accent);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.card:hover h3 { color: #C81E1E; }

.card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================
   BENEFIT CARDS (Why Sunfeed section on home) - FLIP ANIMATION
   ========================================================== */
.benefit-card {
  position: relative;
  border-radius: var(--radius-xl);
  height: 0;
  padding-bottom: 100%; /* Square aspect ratio */
  perspective: 1000px;
  cursor: pointer;
}

.benefit-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.benefit-card:hover .benefit-card-inner,
.benefit-card.flipped .benefit-card-inner {
  transform: rotateY(180deg);
}

.benefit-card-front,
.benefit-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: none;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.benefit-card:hover .benefit-card-front,
.benefit-card:hover .benefit-card-back {
  box-shadow: 0 20px 48px rgba(200, 30, 30, 0.18);
}

.benefit-card-front {
  background: #FFFFFF; /* Pure white to match logo background */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px; /* Padding creates space around logo */
  position: relative;
  z-index: 2;
}

/* Mirror Shine Effect */
.benefit-card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.benefit-card:hover .benefit-card-front::before {
  left: 150%;
}

/* Glass reflection effect on hover */
.benefit-card-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.benefit-card:hover .benefit-card-front::after {
  opacity: 1;
}

.benefit-card-back {
  background: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 24px;
  z-index: 1;
}

/* Front - Logo Display (Centered with padding, no cutting) */
.benefit-logo {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed back to contain - no cutting */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 16px rgba(200, 30, 30, 0.08));
}

.benefit-card:hover .benefit-logo {
  transform: scale(1.03);
}

/* Remove tagline and hint */
.benefit-tagline,
.flip-hint {
  display: none;
}

/* Back - Content Display */
.benefit-card-back h3 {
  font-size: 17px;
  font-weight: 800;
  color: #C81E1E;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.benefit-card-back p {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.75;
  text-align: center;
  font-style: italic;
  font-weight: 500;
}

.benefit-card-back p strong {
  color: var(--dark-accent);
  font-weight: 700;
  font-style: normal;
  background: linear-gradient(to right, rgba(200, 30, 30, 0.12) 0%, rgba(200, 30, 30, 0.06) 100%);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin: 0 2px;
}

/* Remove old styles */
.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--red-subtle);
  color: #C81E1E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.benefit-icon i, .benefit-icon svg { width: 20px; height: 20px; }

/* ==========================================================
   8 PILLARS LAYOUT - Image Left + Grid Right
   ========================================================== */
.pillars-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .pillars-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
  }
}

/* Left - Image */
.pillars-image-side {
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 300px;
  position: relative;
}

.pillars-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
}

/* Right - 2×4 Grid of Cards */
.pillars-grid-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Individual Pillar Card */
.pillar-card {
  background: #ffffff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative;
}

.pillar-card:hover {
  background: var(--bg-warm);
  z-index: 1;
}

.pillar-number {
  font-size: 13px;
  font-weight: 800;
  color: #C81E1E;
  letter-spacing: 0.04em;
  line-height: 1;
}

.pillar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-accent);
  line-height: 1.3;
  margin: 0;
}

.pillar-desc {
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* Mobile: stack to single column grid */
@media (max-width: 480px) {
  .pillars-grid-side {
    grid-template-columns: 1fr;
  }
}

/* Tablet: keep 2 cols in grid, but stack layout vertically */
@media (min-width: 481px) and (max-width: 1023px) {
  .pillars-image-side {
    max-height: 400px;
  }
}

/* Shine on Scroll Effect */
.shine-on-scroll {
  /* Cards are visible by default, animation adds effects */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.shine-on-scroll.animate {
  /* Animation will be triggered by scroll */
  animation: fadeInUp 0.6s ease forwards;
}

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

.shine-on-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.shine-on-scroll.animate::before {
  animation: shine 1.2s ease-in-out 0.2s;
}

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

/* Staggered animation delays for each card */
.shine-on-scroll:nth-child(1).animate {
  transition-delay: 0s;
}
.shine-on-scroll:nth-child(1).animate::before {
  animation-delay: 0.2s;
}

.shine-on-scroll:nth-child(2).animate {
  transition-delay: 0.1s;
}
.shine-on-scroll:nth-child(2).animate::before {
  animation-delay: 0.35s;
}

.shine-on-scroll:nth-child(3).animate {
  transition-delay: 0.2s;
}
.shine-on-scroll:nth-child(3).animate::before {
  animation-delay: 0.5s;
}

.shine-on-scroll:nth-child(4).animate {
  transition-delay: 0.3s;
}
.shine-on-scroll:nth-child(4).animate::before {
  animation-delay: 0.65s;
}

/* Solution cards: shine-on-scroll is removed via JS to preserve 3D flip context */

/* ==========================================================
   PROCESS STEPS
   ========================================================== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }

.process-step {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-sm);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--dark-accent);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(240,180,41,0.4);
}
.process-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ==========================================================
   GOVERNMENT AGENCY CARDS
   ========================================================== */
.agency-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--border-warm);
  cursor: pointer;
  transition: all var(--transition);
}
.agency-card:hover { border-color: var(--red-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.agency-code {
  font-size: 14px;
  font-weight: 800;
  color: #C81E1E;
  margin-bottom: 4px;
}
.agency-name { font-size: 13px; font-weight: 600; color: var(--dark-accent); margin-bottom: 4px; }
.agency-state { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.agency-phrase { font-size: 11px; color: var(--slate); font-style: italic; }

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonial-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: white;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}
.testimonial-quote {
  font-size: 14px;
  font-style: italic;
  color: var(--dark-accent);
  line-height: 1.7;
  margin-bottom: 24px;
}
@media (min-width: 640px) { .testimonial-quote { font-size: 16px; } }

.testimonial-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.testimonial-author { font-size: 12px; font-weight: 700; }
.testimonial-role { font-size: 11px; color: var(--muted); }

.testimonial-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #CBD5E1;
  transition: all 0.3s;
  cursor: pointer;
}
.testimonial-dot.active { width: 24px; background: #C81E1E; }

/* ==========================================================
   CONTACT FORM
   ========================================================== */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-accent);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   MODALS
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.2s ease;
}
.modal-content h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-right: 32px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--slate);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--red-subtle); color: var(--red); }

.roi-results {
  margin-top: 16px;
  padding: 16px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
}
.roi-results h4 { font-size: 14px; font-weight: 700; color: #166534; margin-bottom: 8px; }
.roi-results p { font-size: 13px; color: #15803D; margin-bottom: 4px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  position: relative;
  background-color: white;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.012) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--slate);
  border-top: 1px solid var(--border);
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background-image: url('../images/bg.png');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-highlight-strip {
  background: rgba(254,242,242,0.7);
  border-bottom: 1px solid rgba(254,202,202,0.5);
  padding: 16px 0;
}
.footer-highlight-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
@media (min-width: 768px) { .footer-highlight-inner { flex-direction: row; justify-content: space-between; } }
.footer-highlight-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.highlight-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.footer-highlight-right {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--slate);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { 
  .footer-grid { 
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  } 
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul button {
  font-size: 14px;
  color: var(--slate);
  text-align: left;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul button:hover { color: var(--red); }

.footer-brand p { font-size: 14px; color: var(--slate); line-height: 1.6; margin: 12px 0;  }
.footer-logo { 
  height: 36px; 
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px; 
  align-self: self-start;
}
.footer-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-subtle);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--red-border);
}

.footer-contact { 
  display: flex; 
  flex-direction: column; 
  gap: 12px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}
.footer-contact-item i, .footer-contact-item svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { transition: color var(--transition); font-weight: 500; }
.footer-contact-item a:hover { color: var(--red); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.red { background: #EF4444; }

.footer-map-col {
  display: flex;
  flex-direction: column;
}

.footer-map-col h4 {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.footer-map-col .footer-map-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  height: 180px;
}

.footer-map-col .footer-map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(0.15);
  transition: filter var(--transition);
}

.footer-map-col .footer-map-wrapper:hover iframe {
  filter: grayscale(0);
}

.footer-map-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.map-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--red);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  border: 2px solid white;
  white-space: nowrap;
}

.map-cta:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.map-cta i, .map-cta svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1023px) {
  .footer-map-col .footer-map-wrapper {
    height: 170px;
  }
}

@media (max-width: 767px) {
  .footer-map-col .footer-map-wrapper {
    height: 160px;
  }
  
  .map-cta {
    padding: 7px 12px;
    font-size: 11px;
  }
}

.footer-map-section {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.footer-map-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
}

.footer-map-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
}

.footer-map-wrapper iframe {
  display: block;
  width: 100%;
  filter: grayscale(0.1);
  transition: filter var(--transition);
}

.footer-map-wrapper:hover iframe {
  filter: grayscale(0);
}

.footer-map-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.map-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--red);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  border: 2px solid white;
}

.map-cta:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.map-cta i, .map-cta svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .footer-map-section {
    padding: 40px 0 24px;
  }
  
  .footer-map-wrapper {
    height: 250px;
  }
  
  .footer-map-wrapper iframe {
    height: 250px;
  }
  
  .map-cta {
    padding: 10px 18px;
    font-size: 13px;
  }
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  font-size: 12px;
  color: var(--slate-light);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  transition: color var(--transition);
}
.back-to-top:hover { color: var(--red); }
.back-to-top i, .back-to-top svg { width: 16px; height: 16px; }

/* ==========================================================
   STICKY MOBILE BAR
   ========================================================== */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.sticky-mobile-bar.visible { display: flex; }
@media (min-width: 640px) { .sticky-mobile-bar { display: none !important; } }

.sticky-phone {
  padding: 12px;
  border-radius: var(--radius-md);
  background: #F1F5F9;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-phone i, .sticky-phone svg { width: 20px; height: 20px; color: var(--red); }

/* ==========================================================
   ADVISORY BANNER
   ========================================================== */
.advisory-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  max-width: 360px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  animation: fadeIn 0.3s ease;
}
@media (max-width: 767px) { .advisory-banner { display: none !important; } }

.advisory-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--slate-light);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.advisory-close:hover { color: var(--slate); }
.advisory-content { display: flex; align-items: flex-start; gap: 12px; }
.advisory-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(220,38,38,0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.advisory-icon i, .advisory-icon svg { width: 20px; height: 20px; }
.advisory-text strong { font-size: 12px; display: block; margin-bottom: 4px; }
.advisory-text p { font-size: 11px; color: var(--slate); line-height: 1.5; margin-bottom: 8px; }
.advisory-actions { display: flex; align-items: center; gap: 8px; }
.advisory-call { font-size: 11px; font-weight: 600; color: var(--slate); padding: 4px 8px; }
.advisory-call:hover { color: var(--red); }

/* ==========================================================
   CONTACT PAGE
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; } }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--red-subtle);
  color: #C81E1E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon i, .contact-info-icon svg { width: 16px; height: 16px; }
.contact-info-item .label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.contact-info-item a, .contact-info-item span { font-size: 14px; font-weight: 700; color: var(--dark-accent); }
.contact-info-item a:hover { color: #C81E1E; }

/* Page fade animation */
.page-enter {
  animation: pageIn 0.25s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================
   FAQ ACCORDION
   ========================================================== */
.faq-item {
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  background: white;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition);
}
.faq-question:hover { background: #FAFAFA; }
.faq-question i, .faq-question svg { width: 16px; height: 16px; color: var(--slate-light); transition: transform 0.2s; flex-shrink: 0; }
.faq-question.open i, .faq-question.open svg { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.faq-answer.open { display: block; }

/* ==========================================================
   CERTIFICATIONS
   ========================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }

.cert-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--border-warm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cert-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cert-icon i, .cert-icon svg { width: 18px; height: 18px; }
.cert-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.cert-card p { font-size: 11px; color: var(--muted); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ==========================================================
   FLIP CARD - Leadership & Team
   ========================================================== */
.flip-card {
  perspective: 1200px;
  height: auto;
  min-height: 500px;
  cursor: pointer;
}

.flip-card-team {
  min-height: 460px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.flip-card-front {
  background: white;
  border: 1px solid var(--border-warm);
  display: flex;
  flex-direction: column;
}

.flip-card-front img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: #f8f8f8;
  padding: 12px;
}

.flip-card-team .flip-card-front img {
  height: 240px;
}

.flip-card-front-info {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flip-card-front-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.flip-designation {
  font-size: 13px;
  color: #C81E1E;
  font-weight: 600;
  margin-bottom: 6px;
}

.flip-qualification {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.flip-summary {
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.6;
  flex: 1;
}

.flip-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #C81E1E;
  margin-top: 12px;
  opacity: 0.8;
}

.flip-card-back {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  transform: rotateY(180deg);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
}

.flip-card-back-content {
  padding: 24px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.flip-card-back-content::-webkit-scrollbar {
  width: 4px;
}

.flip-card-back-content::-webkit-scrollbar-track {
  background: transparent;
}

.flip-card-back-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

.flip-card-back-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: white;
  margin-bottom: 2px;
}

.flip-card-back-content .flip-designation {
  color: #FCA5A5;
  margin-bottom: 16px;
}

.flip-detail-section {
  margin-bottom: 14px;
}

.flip-detail-section h4 {
  font-size: 12px;
  font-weight: 700;
  color: #FCA5A5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flip-detail-section p {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .flip-card {
    min-height: 480px;
  }
  .flip-card-team {
    min-height: 440px;
  }
  .flip-card:hover .flip-card-inner {
    transform: none;
  }
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}


/* ==========================================================
   SOLUTION CARDS - FLIP ANIMATION WITH IMAGES
   ========================================================== */
.solution-card {
  position: relative;
  border-radius: var(--radius-xl);
  height: 0;
  padding-bottom: 125%; /* Taller aspect ratio for product cards */
  perspective: 1000px;
  cursor: pointer;
}

.solution-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.solution-card:hover .solution-card-inner,
.solution-card.flipped .solution-card-inner {
  transform: rotateY(180deg);
}

.solution-card-front,
.solution-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-warm);
  transition: box-shadow 0.3s ease;
  /* Firefox fix: preserve-3d prevents overflow from flattening the 3D context */
  transform-style: preserve-3d;
}

.solution-card:hover .solution-card-front,
.solution-card:hover .solution-card-back {
  box-shadow: 0 20px 48px rgba(200, 30, 30, 0.18);
}

.solution-card-front {
  background: white;
  display: flex;
  flex-direction: column;
  z-index: 2;
  overflow: hidden;
}

.solution-image {
  width: 100%;
  height: 60%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.solution-card:hover .solution-image {
  transform: scale(1.05);
}

.solution-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
  padding: 24px;
  text-align: center;
}

.solution-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #C81E1E;
  background: rgba(200, 30, 30, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.solution-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark-accent);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.solution-hint {
  font-size: 12px;
  color: var(--slate-light);
  font-style: italic;
}

.solution-card-back {
  background: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  z-index: 1;
  overflow-y: auto;
}

.spec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid #C81E1E;
  margin-bottom: 16px;
}

.spec-header i {
  color: #C81E1E;
}

.spec-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #C81E1E;
  letter-spacing: -0.01em;
  margin: 0;
}

.spec-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-warm);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row span {
  color: var(--slate);
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 12px;
}

.spec-row strong {
  color: var(--dark-accent);
  font-weight: 700;
  text-align: right;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .solution-card {
    padding-bottom: 140%; /* Slightly taller on mobile */
  }
  
  .spec-row {
    flex-direction: column;
    gap: 4px;
  }
  
  .spec-row strong {
    text-align: left;
  }
}


/* ==========================================================
   PROCESS STEP CARDS - Special styling for step numbers
   ========================================================== */
.spec-header .step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--dark-accent);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  border: 1px solid rgba(240,180,41,0.4);
  flex-shrink: 0;
}



/* ==========================================================
   SOLUTIONS PAGE BANNER - PREMIUM WHITE DESIGN
   ========================================================== */
.solutions-banner {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F9 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid rgba(212,32,39,0.08);
  overflow: hidden;
}

.solutions-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(212,32,39,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.solutions-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.solutions-left {
  max-width: 600px;
}

.solutions-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(212,32,39,0.1) 0%, rgba(212,32,39,0.05) 100%);
  border: 1px solid rgba(212,32,39,0.2);
  color: #D42027;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.solutions-headline {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1A1210;
  margin-bottom: 20px;
}

.solutions-headline .red-text {
  color: #D42027;
  position: relative;
  display: inline-block;
}

.solutions-subheadline {
  font-size: 17px;
  line-height: 1.7;
  color: #5C5450;
  margin-bottom: 32px;
  max-width: 540px;
}

.solutions-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #D42027;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(212,32,39,0.15);
}

.solutions-cta:hover {
  background: #A11A1F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,32,39,0.25);
}

.solutions-cta:active {
  transform: translateY(0);
}

.solutions-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solutions-visual {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 350px;
}

.visual-card {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid rgba(212,32,39,0.12);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.visual-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 48px rgba(212,32,39,0.15);
  border-color: rgba(212,32,39,0.3);
}

.card-1 {
  top: 0;
  left: 0;
  width: 180px;
  animation: float1 6s ease-in-out infinite;
}

.card-2 {
  top: 50%;
  right: 20px;
  width: 200px;
  transform: translateY(-50%);
  animation: float2 6s ease-in-out infinite 1s;
}

.card-3 {
  bottom: 20px;
  left: 50px;
  width: 180px;
  animation: float3 6s ease-in-out infinite 2s;
}

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

@keyframes float2 {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}

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

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(212,32,39,0.08) 0%, rgba(212,32,39,0.02) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D42027;
}

.card-icon i,
.card-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.card-label {
  font-size: 14px;
  font-weight: 600;
  color: #1A1210;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .solutions-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .solutions-right {
    display: none;
  }
  
  .solutions-headline {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .solutions-banner {
    min-height: auto;
    padding: 48px 0;
  }
  
  .solutions-headline {
    font-size: 32px;
  }
  
  .solutions-subheadline {
    font-size: 15px;
  }
  
  .solutions-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-1, .card-2, .card-3 {
    animation: none;
  }
}

/* ==========================================================
   SOLUTIONS PAGE — DETAILED SECTIONS
   ========================================================== */

/* Sticky tab bar */
.sol-tab-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-warm);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 0;
}

.sol-tabs-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sol-tabs-scroll::-webkit-scrollbar { display: none; }

.sol-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.sol-tab i { width: 16px; height: 16px; }
.sol-tab:hover {
  background: rgba(212,32,39,0.06);
  color: #D42027;
}
.sol-tab.active {
  background: #D42027;
  color: white;
  border-color: #D42027;
  box-shadow: 0 2px 8px rgba(212,32,39,0.25);
}
.sol-tab.active i { color: white; }

/* Detail sections */
.sol-detail-section {
  padding: 72px 0;
  scroll-margin-top: 130px;
}

.sol-section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.sol-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: rgba(212,32,39,0.12);
  font-family: 'Outfit', sans-serif;
  min-width: 64px;
}

.sol-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--heading);
  margin-top: 4px;
}

/* Hero grid */
.sol-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}

.sol-hero-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sol-hero-img-wrap img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  max-height: 340px;
  cursor: pointer;
  border: 1px solid var(--border-warm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sol-hero-img-wrap img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.sol-hero-img-secondary {
  max-height: 220px !important;
  object-fit: contain !important;
  background: #f9fafb;
  padding: 12px;
}

.sol-hero-text {}

.sol-overview {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 20px;
}

.sol-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  padding: 6px 0;
}

/* Specs card */
.sol-specs-card {
  background: white;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.sol-specs-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--heading);
}

.sol-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.sol-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}
.sol-spec-item:hover {
  background: #fafbfc;
}
.sol-spec-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.sol-spec-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  text-align: right;
}

/* Two-column apps/benefits */
.sol-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.sol-col-card {
  background: white;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sol-col-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--heading);
}

.sol-app-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sol-app-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--slate);
  border-bottom: 1px solid #f8fafc;
}
.sol-app-list li:last-child { border-bottom: none; }
.sol-app-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D42027, #E74C3C);
}
.sol-benefits-list li::before {
  background: linear-gradient(135deg, #16A34A, #22C55E);
}

/* How It Works */
.sol-how-it-works {
  margin-bottom: 24px;
}
.sol-how-it-works h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--heading);
}

.sol-steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.sol-step-card {
  background: white;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.sol-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.sol-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D42027, #E74C3C);
  color: white;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sol-step-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--heading);
}
.sol-step-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .sol-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sol-two-col {
    grid-template-columns: 1fr;
  }
  .sol-section-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .sol-tab-bar {
    top: 56px;
  }
  .sol-detail-section {
    padding: 48px 0;
    scroll-margin-top: 120px;
  }
  .sol-section-header {
    flex-direction: column;
    gap: 8px;
  }
  .sol-number {
    font-size: 36px;
  }
  .sol-section-title {
    font-size: 22px;
  }
  .sol-specs-grid {
    grid-template-columns: 1fr;
  }
  .sol-steps-row {
    grid-template-columns: 1fr;
  }
  .sol-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
  .sol-tab span {
    display: inline;
  }
}

/* ==========================================================
   STATE-WISE MAP SECTION
   ========================================================== */
.state-map-section {
  padding: 48px 0 16px;
}

.state-map-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border-warm);
  background: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease;
  position: relative;
}

.state-map-wrapper:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(200, 30, 30, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--red-border);
}

.state-map-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.state-map-wrapper:hover img {
  transform: scale(1.02);
}

/* Caption bar below the map image */
.state-map-caption {
  padding: 14px 20px;
  background: linear-gradient(to right, #171412, #1E1916);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.state-map-caption i,
.state-map-caption svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.state-map-caption span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

/* Pulse dot on the map wrapper corner */
.state-map-wrapper::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 10px;
  height: 10px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: mapPulse 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes mapPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Government page variant - wider */
.state-map-wrapper.map-wide {
  max-width: 860px;
}

@media (max-width: 640px) {
  .state-map-wrapper {
    border-radius: var(--radius-md);
  }
  .state-map-caption {
    padding: 10px 14px;
  }
  .state-map-caption span {
    font-size: 11px;
  }
}

/* ==========================================================
   END OF STYLES
   ========================================================== */
