/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --color-primary: hsl(221, 83%, 53%);       /* Vibrant EV Blue */
  --color-primary-hover: hsl(221, 83%, 45%); /* Darker Blue */
  --color-hero-bg: #182335;                  /* Custom Slate/Navy from Image */
  --color-hero-bg-mobile: #111a28;           /* Darker slate for mobile hero overlay */
  --color-bg-light: hsl(210, 40%, 98%);       /* Pale cool blue/gray */
  --color-trust-bg: #e6effc;                 /* Light blue trust bar background */
  --color-text-dark: #0f172a;                /* Primary dark gray */
  --color-text-muted: #4b5563;               /* Secondary body text */
  --color-text-light: #9ca3af;               /* Subtitle / disabled text */
  --color-border: #e5e7eb;                   /* Borders */
  --color-success-bg: #10b981;               /* Green accent */
  --color-tag-efficiency-bg: #d1fae5;        /* Light green tag */
  --color-tag-efficiency-text: #065f46;      /* Dark green text */
  --color-tag-technical-bg: #e0e7ff;         /* Light indigo tag */
  --color-tag-technical-text: #3730a3;       /* Dark indigo text */

  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(70px + 38px); /* Offset for fixed header (70px) + construction banner (38px) */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout helpers */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.text-center {
  text-align: center;
}

.align-left {
  text-align: left;
}

/* Responsive visibility utilities */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-submit {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  width: 100%;
  font-size: 1rem;
}

.btn-submit:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-submit .arrow {
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.btn-submit:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.logo-icon {
  margin-top: 1px;
  height: 24px;
  width: auto;
  display: block;
}

.footer-logo .logo-icon {
  height: 20px;
}

.logo-icon-white {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.logo-text {
  color: #0f1c3f; /* Deep Navy Logo Text */
  letter-spacing: -0.2px;
}

/* Desktop Nav links */
.desktop-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 9999px;
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn .bar {
  width: 100%;
  height: 2.5px;
  background-color: #2563eb;
  border-radius: 999px;
  transition: all var(--transition-normal);
}

@media (max-width: 768px) {
  .desktop-nav, .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: calc(70px + 38px);
  left: 0;
  width: 100%;
  height: calc(100vh - 70px - 38px);
  background-color: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.btn-mobile-cta {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  text-align: center;
  padding: 0.85rem;
  margin-top: 1rem;
  border-bottom: none;
}

/* Hamburger transition state */
.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background-color: var(--color-hero-bg);
  color: #ffffff;
  padding-top: calc(70px + 38px + 4.5rem);
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.15), transparent 60%);
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Logo only shows on Mobile Hero */
.mobile-hero-brand {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.brand-text-white {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #cdd7e4;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

/* Zip code Form Container Card */
.quote-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.25rem;
  box-shadow: var(--shadow-premium);
  max-width: 480px;
  color: var(--color-text-dark);
}

.zip-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.zip-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.25rem;
  color: #94a3b8;
  pointer-events: none;
}

.zip-input {
  width: 100%;
  padding: 1.125rem 1.25rem 1.125rem 3.25rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1.05rem;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.zip-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.zip-input::placeholder {
  color: #94a3b8;
}

.zip-error-msg {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
  font-weight: 500;
}

/* Right column visual */
.hero-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.hero-image-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 40px rgba(37, 99, 235, 0.15);
  pointer-events: none;
}

/* Mobile Hero Styling overrides */
@media (max-width: 768px) {
  .hero-section {
    padding-top: calc(70px + 38px + 3rem);
    padding-bottom: 3.5rem;
    background-image: linear-gradient(180deg, rgba(17,26,40,0.85) 0%, rgba(17,26,40,0.92) 100%), url('assets/ev_charger_hero.png');
    background-size: cover;
    background-position: center;
  }
  
  .hero-bg-overlay {
    display: none;
  }
  
  .mobile-hero-brand {
    display: flex;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
  
  .quote-card {
    padding: 1.5rem;
    max-width: 100%;
  }

  .zip-input {
    font-size: 0.95rem;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
  }

  .input-icon {
    left: 1rem;
  }

  .btn-submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-visual {
    display: none;
  }
}


/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar {
  background-color: var(--color-trust-bg);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-icon {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .trust-bar {
    padding: 1.75rem 0;
  }
  .trust-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-left: 2rem;
  }
  .trust-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: #3b5074; /* Matching Mobile Grayish Text */
  }
  .trust-icon {
    color: #10b981; /* Green color match on mobile bullet checkmarks */
    stroke: #059669;
  }
}


/* ==========================================================================
   PROCESS SECTION (DESKTOP)
   ========================================================================== */
.process-desktop-section {
  background-color: #ffffff;
}

.section-title {
  font-size: 2.25rem;
  color: var(--color-text-dark);
  margin-bottom: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.process-card {
  background-color: #ffffff;
  border: 1px solid #eff4fb;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.02);
  transition: all var(--transition-normal);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 10px 30px -5px rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.15);
}

.process-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem auto;
}

.process-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.process-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   PROCESS SECTION (MOBILE / HOW IT WORKS)
   ========================================================================== */
.process-mobile-section {
  background-color: #f8fafc;
}

.process-mobile-section .section-title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.process-steps-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
}

/* Light blue/grey circles for steps 2 & 3 in mobile image */
.mobile-step-item:nth-child(2) .step-number-badge,
.mobile-step-item:nth-child(3) .step-number-badge {
  background-color: #dbeafe;
  color: var(--color-primary);
}

.step-content {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* ==========================================================================
   EXPERT INSIGHTS SECTION
   ========================================================================== */
.insights-section {
  background-color: #f1f5f9;
}

.insights-header {
  margin-bottom: 3.5rem;
}

.insights-header .section-title {
  margin-bottom: 0.75rem;
}

.insights-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 769px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.insight-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Thumbnail container is hidden on desktop by default in markup but can toggle */
.insight-image-container {
  display: none; /* Desktop hides the image thumbnails entirely */
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.insight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insight-tags {
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}

/* Desktop Tags */
.tag-efficiency {
  background-color: #10b981; /* bright green matching efficiency tag */
  color: #ffffff;
}

.tag-technical-desktop {
  background-color: #dbeafe; /* light blue/lavender tag */
  color: #1e3a8a;
}

/* Mobile Tags */
.tag-maintenance {
  background-color: #e0e7ff;
  color: #3730a3;
}

.tag-technical-mobile {
  background-color: #e0e7ff;
  color: #3730a3;
}

.insight-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
  line-height: 1.35;
}

.insight-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.insight-link {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-size: 0.95rem;
}

.insight-link .arrow {
  transition: transform var(--transition-fast);
}

.insight-link:hover .arrow {
  transform: translateX(3px);
}

/* Responsive updates for mobile viewport */
@media (max-width: 768px) {
  .insights-header {
    margin-bottom: 2.25rem;
  }
  
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .insight-card {
    border-radius: 16px;
  }

  .insight-image-container {
    display: block; /* Visible on mobile */
  }

  .insight-content {
    padding: 1.5rem;
  }

  .insight-tags {
    margin-bottom: 0.85rem;
  }

  .tag {
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
  }

  .insight-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }

  .insight-link {
    font-size: 0.9rem;
  }
}


/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.license-highlight {
  color: var(--color-primary);
  font-weight: 500;
}

.footer-links-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* Mobile Footer overrides */
@media (max-width: 768px) {
  .main-footer {
    background-color: #eff6ff; /* Match the soft blue-purple footer background in mobile image */
    padding: 3rem 1.5rem;
    border-top: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand-section {
    display: none; /* Completely hidden brand layout in mobile image top footer */
  }

  /* Centered header logo text that appears on mobile footer */
  .footer-container::before {
    content: "Charge Forward";
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text-dark);
  }

  .footer-links-section {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .footer-link {
    display: block;
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    font-size: 0.9rem;
    color: #3b5074;
  }

  .footer-link:first-child {
    border-top: 1px solid rgba(37, 99, 235, 0.08);
  }

  .footer-copy {
    margin-top: 1rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 320px;
  }
}


/* ==========================================================================
   PREMIUM MODAL DIALOG STYLE
   ========================================================================== */
.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1rem;
}

.quote-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.quote-modal {
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.quote-modal-overlay.open .quote-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-light);
  z-index: 10;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-text-dark);
}

.modal-header {
  padding: 2.25rem 2.25rem 1rem 2.25rem;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--color-border);
}

.modal-badge {
  display: inline-block;
  background-color: #dbeafe;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 1.25rem;
}

.modal-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.modal-progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 9999px;
  transition: width var(--transition-normal);
}

.modal-body {
  padding: 2.25rem;
  min-height: 280px;
}

/* Wizard Steps display states */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn var(--transition-normal);
}

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

.step-question {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

/* Wizard Options styling */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background-color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.option-card:hover {
  border-color: var(--color-primary);
  background-color: #f0f7ff;
}

.option-card.selected {
  border-color: var(--color-primary);
  background-color: #eff6ff;
  box-shadow: 0 0 0 1px var(--color-primary);
}

.option-icon {
  font-size: 1.5rem;
}

.option-title {
  font-weight: 600;
  color: var(--color-text-dark);
}

.wizard-navigation {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.wizard-navigation-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-prev {
  background: transparent;
  border: none;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition-fast);
}

.btn-prev:hover {
  color: var(--color-primary);
}

/* Wizard forms */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.modal-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.modal-input:focus {
  border-color: var(--color-primary);
}

/* Success status animations */
.success-animation-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.pulse-loader {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.1);
  animation: pulse 1.8s infinite ease-in-out;
}

.pulse-ring-slow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.05);
  animation: pulse 1.8s infinite ease-in-out;
  animation-delay: 0.6s;
}

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.8;
  }
}

/* Checkmark Drawing SVG Animation */
.success-checkmark-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.success-checkmark {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.success-status-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.success-status-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0 auto;
}

/* ==========================================================================
   STANDALONE ARTICLE POST PAGES
   ========================================================================== */
.article-page {
  background-color: #f8fafc;
}

.article-wrapper {
  padding-top: calc(70px + 38px + 3rem);
  padding-bottom: 5rem;
}

/* ==========================================================================
   CONSTRUCTION NOTICE BANNER
   ========================================================================== */
.construction-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background-color: #fef3c7; /* Soft amber/yellow */
  border-bottom: 1px solid #fde68a;
  color: #92400e; /* Dark amber text */
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100; /* Higher than header */
  padding: 0 1rem;
  text-align: center;
}

.construction-banner strong {
  margin-right: 0.25rem;
  color: #78350f;
}

@media (max-width: 768px) {
  .construction-banner {
    font-size: 0.725rem;
    line-height: 1.3;
    padding: 0.25rem 0.5rem;
  }
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breadcrumbs navigation */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 2rem;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .divider {
  color: #cbd5e1;
}

.breadcrumbs .current {
  color: var(--color-text-dark);
  font-weight: 600;
}

/* Article Header */
.article-post-header {
  margin-bottom: 2.5rem;
}

.article-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.tag-efficiency {
  background-color: #d1fae5;
  color: #065f46;
}

.tag-technical {
  background-color: #e0e7ff;
  color: #3730a3;
}

.article-post-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.article-post-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.article-meta-info {
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta-info .author {
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Featured image */
.article-feature-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  aspect-ratio: 16 / 9;
}

.article-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Content blocks */
.article-text-content {
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-text-content p {
  margin-bottom: 1.75rem;
}

.article-text-content p.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.article-text-content h2 {
  font-size: 1.75rem;
  color: var(--color-text-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.article-text-content ul {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}

.article-text-content li {
  margin-bottom: 0.75rem;
}

.article-text-content strong {
  color: var(--color-text-dark);
}

/* Bottom CTA card */
.article-cta-card {
  background-color: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
  box-shadow: var(--shadow-sm);
}

.article-cta-card h3 {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.article-cta-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta-btn-wrapper .btn {
  font-size: 1rem;
  padding: 0.85rem 2.25rem;
  border-radius: 8px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .article-wrapper {
    padding-top: calc(70px + 38px + 1.5rem);
    padding-bottom: 3.5rem;
  }
  
  .article-post-title {
    font-size: 1.85rem;
  }
  
  .article-post-subtitle {
    font-size: 1.05rem;
  }

  .article-feature-image-wrapper {
    margin-bottom: 2rem;
    border-radius: 12px;
  }

  .article-text-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-text-content p.lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .article-text-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
  }

  .article-cta-card {
    padding: 2rem 1.25rem;
    margin-top: 3rem;
  }

  .article-cta-card h3 {
    font-size: 1.25rem;
  }

  .article-cta-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .article-cta-btn-wrapper .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
}

/* ==========================================================================
   NEW CUSTOM TAG STYLES
   ========================================================================== */
.tag-compliance {
  background-color: #ffe4e6;
  color: #9f1239;
}

.tag-incentives {
  background-color: #ccfbf1;
  color: #0f766e;
}

.tag-technical {
  background-color: #e0e7ff;
  color: #3730a3;
}

/* ==========================================================================
   HOMEPAGE VIEW ALL BUTTON
   ========================================================================== */
.insights-view-all-container {
  margin-top: 3.5rem;
  text-align: center;
}

/* ==========================================================================
   ARTICLES HUB FILTER & SEARCH CONTROLS
   ========================================================================== */
.hub-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

@media (min-width: 769px) {
  .hub-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 100%;
}

@media (min-width: 769px) {
  .search-box-wrapper {
    max-width: 400px;
  }
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: #94a3b8;
  pointer-events: none;
}

.hub-search-input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--color-text-dark);
  transition: all var(--transition-fast);
  background-color: #ffffff;
}

.hub-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background-color: #f1f5f9;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background-color: #e2e8f0;
  color: var(--color-text-dark);
}

.filter-pill.active {
  background-color: var(--color-primary);
  color: #ffffff;
}

.no-results-message {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  margin-top: 2rem;
}

.no-results-message h3 {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.no-results-message p {
  color: var(--color-text-light);
}

/* Ensure images show on desktop inside the hub directory list */
.hub-grid .insight-image-container {
  display: block !important;
}

.hub-grid .insight-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-container {
  max-width: 1200px !important;
}
