/* ==========================================================================
   EV Disha – Modern CarDekho / BikeDekho-Inspired UI System & EV Charging Hub
   Clean Light-First Automotive Discovery Aesthetics (modern-ui.css v3.0)
   ========================================================================== */

:root {
  --cd-canvas: #F6F8FC;
  --cd-surface: #FFFFFF;
  --cd-border: #E2E9F3;
  --cd-border-hover: #BACAE0;
  --cd-accent: #16A34A;
  --cd-accent-bright: #20C957;
  --cd-accent-soft: #ECFDF3;
  --cd-warm: #F97316;
  --cd-warm-soft: #FFF7ED;
  --cd-navy-deep: #071A34;
  --cd-shadow-card: 0 2px 10px rgba(9, 43, 85, 0.05);
  --cd-shadow-hover: 0 12px 28px rgba(9, 43, 85, 0.11);
}

/* --------------------------------------------------------------------------
   1. Unified Crisp Sticky Header, 30% Smaller Logo, Compact Charging Hub & Simple Search
   -------------------------------------------------------------------------- */
:root {
  --header-height: 64px;
}

.site-header {
  height: var(--header-height);
  background: #FFFFFF;
  border-bottom: 1px solid var(--cd-border);
  box-shadow: 0 1px 10px rgba(7, 29, 59, 0.04);
}

.site-header .header-inner {
  gap: 14px;
}

/* ~30% Reduced EV Disha Header Logo (62px -> 43px) */
.site-header .brand-logo img {
  height: 43px;
  width: auto;
  max-width: 142px;
}

.site-header .primary-nav {
  gap: 4px;
}

.site-header .nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9px;
  white-space: nowrap;
  color: var(--color-body);
}

.site-header .nav-link:hover {
  color: var(--color-navy);
  background: var(--cd-canvas);
}

.site-header .nav-link.active {
  color: var(--color-navy);
  background: var(--cd-accent-soft);
}

/* Compact, Refined Charging Hub Menu Pill (Always Last Item) */
.site-header .nav-link-charging {
  color: #137333;
  background: rgba(32, 201, 87, 0.10);
  border: 1px solid rgba(32, 201, 87, 0.28);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 12px;
  gap: 4px;
  border-radius: 999px;
  margin-left: 4px;
}

.site-header .container {
  max-width: var(--container-max) !important;
  padding-inline: 24px !important;
}

@media (max-width: 767px) {
  .site-header .container {
    padding-inline: 16px !important;
  }
}

.site-header .nav-link-charging:hover,
.site-header .nav-link-charging.active {
  background: #20C957;
  border-color: #20C957;
  color: #052010;
}

.site-header .nav-link-charging.active::after {
  display: none;
}

/* EV Tools Suite Tabs & Sliders */
.tools-hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tools-hero-tab {
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.tools-hero-tab:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.tools-hero-tab.is-active {
  background: #20C957;
  border-color: #20C957;
  color: #052010;
  box-shadow: 0 6px 18px rgba(32, 201, 87, 0.30);
}

.tool-slider-group {
  margin-bottom: 16px;
}

.tool-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-navy);
}

.tool-slider-group input[type="range"] {
  width: 100%;
  accent-color: #16A34A;
}

.tool-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tool-preset-btn {
  border: 1px solid var(--cd-border);
  background: var(--cd-canvas);
  color: var(--color-navy);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  transition: all var(--transition-fast);
}

.tool-preset-btn:hover {
  border-color: var(--color-navy);
  background: #FFFFFF;
}

/* Home Merged About Section */
.home-about-shell {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--cd-shadow-card);
}

.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.home-about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-about-pillar {
  background: var(--cd-canvas);
  border: 1px solid var(--cd-border);
  border-radius: 14px;
  padding: 14px 16px;
}

.home-about-pillar strong {
  display: block;
  font-size: 0.94rem;
  color: var(--color-navy);
  margin-bottom: 3px;
}

.home-about-pillar p {
  font-size: 0.84rem;
  color: var(--color-body);
  margin: 0;
}

@media (max-width: 991px) {
  .home-about-grid {
    grid-template-columns: 1fr;
  }

  .site-header .nav-link-charging {
    margin-left: 0;
    border-radius: var(--radius-sm);
  }
}

.site-header .header-actions {
  gap: 10px;
}

.site-header .icon-btn.js-open-search {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--cd-border);
  background: var(--cd-canvas);
  color: var(--color-navy);
  transition: all var(--transition-fast);
}

.site-header .icon-btn.js-open-search:hover {
  border-color: var(--color-navy);
  background: var(--cd-surface);
  box-shadow: 0 2px 8px rgba(9, 43, 85, 0.08);
}

/* Top-Aligned Slim Subpage Hero & Immediate Data Presentation (Except Home) */
.page-hero {
  background: linear-gradient(125deg, #061A35 0%, #0B3161 60%, #0E4A5C 100%);
  color: #FFFFFF;
  padding-block: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.page-hero .breadcrumb a {
  color: #79F6A4;
  font-weight: 700;
}

.page-hero h1 {
  color: #FFFFFF;
  font-size: clamp(1.3rem, 2vw, 1.68rem);
  margin-bottom: 3px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.80);
  max-width: 780px;
  font-size: 0.87rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.chg-page-hero {
  padding-block: 20px 24px;
}

.chg-page-hero h1 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  margin-bottom: 6px;
}

.chg-page-hero p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.chg-page-hero .chg-kpi-strip {
  margin-top: 16px !important;
}

.tools-hero-tabs {
  margin-top: 12px;
}

body:not([data-page="home"]) main > .section,
body:not([data-page="home"]) main > .cd-section {
  background: var(--cd-canvas);
  padding-block: 18px 44px;
}

body:not([data-page="home"]) main > .section.section-light {
  background: var(--cd-surface);
}

body:not([data-page="home"]) .dealer-advisory-banner {
  padding: 9px 14px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  border-radius: 12px;
}

/* Explore EVs: Full-Width Left-Docked Sticky Filter Sidebar + Top-Aligned Immediate EV Grid */
body[data-page="explore"] .page-hero {
  padding-block: 10px 12px;
}

body[data-page="explore"] .page-hero h1 {
  font-size: 1.28rem;
  margin-bottom: 2px;
}

body[data-page="explore"] .page-hero p {
  font-size: 0.82rem;
}

body[data-page="explore"] main > .section {
  padding-block: 12px 36px;
}

body[data-page="explore"] .page-hero .container,
body[data-page="explore"] main > .section .container {
  max-width: 100%;
  padding-inline: 16px 20px;
}

body[data-page="explore"] .explore-toolbar {
  padding: 9px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
}

/* Compact Segment Pills & Elastic Quick Filter Chips inside Left Sidebar */
.sidebar-pill-wrap,
.sidebar-elastic-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-pill-wrap .pill-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  min-height: 29px;
  border-radius: 999px;
}

.sidebar-elastic-wrap .elastic-sugg-label,
.sidebar-elastic-wrap > span {
  display: none;
}

.sidebar-elastic-wrap .elastic-sugg-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 9px;
  min-height: 28px;
  border-radius: 999px;
}

@media (min-width: 992px) {
  body[data-page="explore"] .explore-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  body[data-page="explore"] .filter-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    max-height: calc(100vh - var(--header-height) - 20px);
    overflow-y: auto;
    padding: 14px 14px 18px;
  }

  body[data-page="explore"] .filter-sidebar .filter-group {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  body[data-page="explore"] #explore-vehicles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
}

@media (min-width: 1380px) {
  body[data-page="explore"] #explore-vehicles-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
  }
}

@media (max-width: 991px) {
  :root {
    --header-height: 60px;
  }

  .site-header .brand-logo img {
    height: 38px;
    max-width: 128px;
  }
}

.brand-profile-card,
.news-card,
.compare-slot-card,
.spec-panel,
.details-summary-card,
.filter-sidebar,
.benefit-card,
.info-card,
.contact-card,
.legal-card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: 16px;
  box-shadow: var(--cd-shadow-card);
}

/* --------------------------------------------------------------------------
   2. CarDekho-Style Compact Hero Showcasing Combined 5-EV Bridge Panorama
   -------------------------------------------------------------------------- */
.cd-hero {
  position: relative;
  overflow: hidden;
  background: #06172E;
  padding-block: 26px 32px;
  min-height: 410px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
}

.cd-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.96;
  filter: saturate(1.06) contrast(1.03);
}

/* Directional Scrim: protects left finder & top-left copy while keeping the 5-EV bridge vivid */
.cd-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, rgba(5, 18, 38, 0.74) 0%, rgba(7, 25, 50, 0.34) 38%, rgba(7, 25, 50, 0.08) 68%, rgba(5, 18, 38, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 18, 38, 0.44) 0%, rgba(5, 18, 38, 0.06) 45%, rgba(5, 18, 38, 0.56) 100%);
}

.cd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 326px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}

/* Compact Minimized Floating White Finder Card */
.cd-finder-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  color: var(--color-navy);
  border-radius: 16px;
  padding: 14px 15px 13px;
  box-shadow: 0 18px 42px rgba(4, 16, 34, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.cd-finder-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cd-seg-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--cd-canvas);
  border: 1px solid var(--cd-border);
  margin-bottom: 9px;
}

.cd-seg-tab {
  border: 0;
  background: transparent;
  color: var(--color-body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 7px;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.cd-seg-tab:hover {
  color: var(--color-navy);
}

.cd-seg-tab.is-active {
  background: var(--color-navy);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(9, 43, 85, 0.22);
}

.cd-mode-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}

.cd-mode-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-body);
  cursor: pointer;
}

.cd-mode-radio input {
  accent-color: var(--color-navy);
  width: 14px;
  height: 14px;
  margin: 0;
}

.cd-mode-radio.is-active {
  color: var(--color-navy);
}

.cd-finder-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.cd-finder-fields .form-control {
  min-height: 36px;
  padding: 5px 30px 5px 10px;
  border-radius: 9px;
  border: 1.5px solid var(--cd-border);
  background-color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
}

.cd-finder-fields .form-control:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(9, 43, 85, 0.09);
}

.cd-finder-cta {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  background: linear-gradient(135deg, #20C957 0%, #16A34A 100%);
  color: #052010;
  border: 0;
  box-shadow: 0 6px 16px rgba(32, 201, 87, 0.30);
}

.cd-finder-cta:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.cd-finder-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--cd-border);
  font-size: 0.72rem;
  font-weight: 700;
}

.cd-finder-footer-links a {
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cd-finder-footer-links a:hover {
  color: #15803D;
  text-decoration: underline;
}

/* Hero Right Editorial Column — Compact Top & Bottom Bar Leaving Center Bridge Panorama Wide Open */
.cd-hero-editorial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 326px;
  gap: 8px;
}

.cd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(6, 22, 44, 0.68);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(32, 201, 87, 0.50);
  color: #79F6A4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cd-hero-editorial h1 {
  color: #FFFFFF;
  font-size: clamp(1.42rem, 2.2vw, 1.92rem);
  line-height: 1.15;
  margin: 0;
  max-width: 470px;
  text-shadow: 0 2px 16px rgba(4, 15, 32, 0.75);
}

.cd-hero-editorial p {
  color: rgba(255, 255, 255, 0.90);
  font-size: 0.84rem;
  max-width: 420px;
  margin: 0;
  text-shadow: 0 1px 10px rgba(4, 15, 32, 0.75);
}

.cd-hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  margin-top: auto;
}

.cd-hero-stat {
  background: rgba(6, 22, 44, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.cd-hero-stat strong {
  display: inline;
  font-size: 0.92rem;
  font-weight: 800;
  color: #79F6A4;
  line-height: 1.1;
}

.cd-hero-stat span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.90);
  font-weight: 600;
}

.cd-quick-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cd-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(6, 22, 44, 0.64);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.cd-hero-chip:hover {
  background: #20C957;
  border-color: #20C957;
  color: #062111;
}

/* --------------------------------------------------------------------------
   3. CarDekho / BikeDekho Tabbed Shelves & Refined Cards
   -------------------------------------------------------------------------- */
.cd-section {
  padding-block: 56px;
}

.cd-section-canvas {
  background: var(--cd-canvas);
}

.cd-shelf-box {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: 20px;
  padding: 26px 26px 28px;
  box-shadow: var(--cd-shadow-card);
}

.cd-shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cd-shelf-head h2 {
  font-size: clamp(1.38rem, 2.2vw, 1.72rem);
  margin: 0 0 4px;
}

.cd-shelf-head p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

.cd-tab-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid var(--cd-border);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cd-tab-strip::-webkit-scrollbar {
  display: none;
}

.cd-tab-btn {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 16px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.cd-tab-btn:hover {
  color: var(--color-navy);
}

.cd-tab-btn.is-active {
  color: var(--color-navy);
}

.cd-tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1.5px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--color-green);
}

.cd-shelf-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cd-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #15803D;
}

.cd-view-all-link:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

/* Refined Vehicle Card Aesthetics */
.vehicle-card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: 16px;
  box-shadow: var(--cd-shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

@media (hover: hover) {
  .vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cd-shadow-hover);
    border-color: var(--cd-border-hover);
  }
}

.vehicle-card-media {
  background: linear-gradient(180deg, #F8FAFD 0%, #EEF3FA 100%);
  border-bottom: 1px solid #EEF2F8;
}

.vehicle-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
}

.vehicle-specs-strip {
  background: var(--cd-canvas);
  border: 1px solid #E9EFF7;
  border-radius: 11px;
}

/* --------------------------------------------------------------------------
   4. CarDekho-Style Popular "VS" Comparison Pair Cards
   -------------------------------------------------------------------------- */
.cd-vs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cd-vs-card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--cd-shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.cd-vs-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cd-shadow-hover);
  border-color: var(--cd-border-hover);
}

.cd-vs-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--cd-border);
  aspect-ratio: 16 / 8.5;
}

.cd-vs-media-half {
  background: #F4F7FB;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-vs-media-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #FFFFFF;
  border: 2.5px solid #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(7, 29, 59, 0.28);
}

.cd-vs-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cd-vs-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cd-vs-side {
  min-width: 0;
}

.cd-vs-side:last-child {
  text-align: right;
  border-left: 1px solid var(--cd-border);
  padding-left: 10px;
}

.cd-vs-brand {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #15803D;
}

.cd-vs-model {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-vs-price {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-body);
  margin-top: 2px;
}

.cd-vs-btn {
  margin-top: auto;
  width: 100%;
  min-height: 38px;
  font-size: 0.82rem;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   5. EV Charging Hub (Homepage Preview + Full charging.html Experience)
   -------------------------------------------------------------------------- */
.chg-preview-shell {
  background: linear-gradient(135deg, #071D3B 0%, #0C2F5E 100%);
  border-radius: 22px;
  padding: 32px;
  color: #FFFFFF;
  box-shadow: 0 18px 42px rgba(7, 29, 59, 0.16);
}

.chg-preview-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chg-preview-top h2 {
  color: #FFFFFF;
  margin: 0 0 6px;
}

.chg-preview-top p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0;
}

.chg-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.chg-kpi-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
}

.chg-kpi-tile strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #5CF08E;
  line-height: 1.15;
}

.chg-kpi-tile span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.chg-preview-finder {
  background: #FFFFFF;
  color: var(--color-navy);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.chg-preview-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.chg-mini-stat {
  background: var(--cd-canvas);
  border: 1px solid var(--cd-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.chg-mini-stat small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted);
}

.chg-mini-stat strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 2px;
}

/* Full charging.html Page Components */
.chg-page-hero {
  background: linear-gradient(125deg, #061A35 0%, #0B3161 60%, #0E4A5C 100%);
  color: #FFFFFF;
  padding-block: 44px 48px;
}

.chg-page-hero h1 {
  color: #FFFFFF;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  margin-bottom: 10px;
}

.chg-page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
}

.chg-filter-card {
  background: #FFFFFF;
  border: 1px solid var(--cd-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--cd-shadow-card);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.chg-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chg-city-card {
  background: #FFFFFF;
  border: 1px solid var(--cd-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--cd-shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.chg-city-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cd-shadow-hover);
}

.chg-city-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chg-city-head h3 {
  font-size: 1.08rem;
  margin: 0;
}

.chg-city-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: var(--cd-canvas);
  border: 1px solid #E9EFF7;
  border-radius: 12px;
  padding: 10px;
}

.chg-city-stats span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
}

.chg-city-stats strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-navy);
}

.chg-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chg-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cd-canvas);
  border: 1px solid var(--cd-border);
  color: var(--color-navy);
}

.chg-tag.is-green {
  background: var(--cd-accent-soft);
  border-color: rgba(22, 163, 74, 0.28);
  color: #15803D;
}

/* Charging Time & Cost Calculator */
.chg-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.chg-calc-panel {
  background: #FFFFFF;
  border: 1px solid var(--cd-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--cd-shadow-card);
}

.chg-calc-results {
  background: linear-gradient(145deg, #071D3B 0%, #0D3264 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 24px;
}

.chg-calc-results h3 {
  color: #FFFFFF;
}

.chg-calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block: 16px;
}

.chg-calc-kpi {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  padding: 14px;
}

.chg-calc-kpi span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.chg-calc-kpi strong {
  display: block;
  font-size: 1.38rem;
  font-weight: 800;
  color: #5CF08E;
  margin-top: 2px;
}

/* Networks, Connectors, States & Corridors Grids */
.chg-network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chg-network-card,
.chg-connector-card,
.chg-corridor-card {
  background: #FFFFFF;
  border: 1px solid var(--cd-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--cd-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chg-connector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chg-corridor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chg-state-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.chg-state-bar-item {
  background: #FFFFFF;
  border: 1px solid var(--cd-border);
  border-radius: 13px;
  padding: 13px 16px;
}

.chg-state-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.chg-state-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--cd-canvas);
  overflow: hidden;
  margin-bottom: 6px;
}

.chg-state-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #092B55 0%, #20C957 100%);
}

/* Vehicle Details Charging Network Compatibility Panel */
.vd-charging-panel {
  margin-top: 28px;
  background: linear-gradient(135deg, #F6FAFF 0%, #EEF9F2 100%);
  border: 1.5px solid #D5E8DC;
  border-radius: 18px;
  padding: 22px 24px;
}

.vd-charging-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.vd-charging-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.vd-charging-metric {
  background: #FFFFFF;
  border: 1px solid var(--cd-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.vd-charging-metric span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted);
}

.vd-charging-metric strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   6. Responsive Breakpoints for Modern UI & EV Charging Hub
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-search-pill {
    min-width: 170px;
    max-width: 210px;
  }

  .cd-hero-grid {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 26px;
  }

  .cd-vs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chg-city-grid,
  .chg-network-grid,
  .chg-connector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .header-search-pill {
    display: none;
  }

  .cd-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cd-hero-editorial {
    order: -1;
  }

  .cd-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chg-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chg-preview-finder,
  .chg-calc-grid,
  .chg-corridor-grid,
  .chg-state-bars {
    grid-template-columns: 1fr;
  }

  .chg-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cd-section {
    padding-block: 38px;
  }

  .cd-shelf-box {
    padding: 18px 16px 20px;
    border-radius: 16px;
  }

  .cd-vs-grid,
  .chg-city-grid,
  .chg-network-grid,
  .chg-connector-grid,
  .chg-preview-result,
  .vd-charging-metrics,
  .chg-filter-card {
    grid-template-columns: 1fr;
  }

  .chg-preview-shell {
    padding: 20px 16px;
  }

  .chg-calc-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   7. Studio-Grade Glossy Icon-Only Robotic EV AI Launcher (Bottom-Right)
   -------------------------------------------------------------------------- */
@keyframes evdisha-hand-wave {
  0%, 48%, 100% {
    transform: rotate(0deg);
  }
  56% {
    transform: rotate(14deg);
  }
  64% {
    transform: rotate(-8deg);
  }
  72% {
    transform: rotate(13deg);
  }
  80% {
    transform: rotate(-6deg);
  }
  88% {
    transform: rotate(0deg);
  }
}

@keyframes evdisha-bot-gentle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-2.5px);
  }
}

@keyframes evdisha-online-ring {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.ev-ai-launcher {
  left: auto;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: radial-gradient(circle at 30% 20%, #154380 0%, #09254D 58%, #061833 100%);
  box-shadow:
    0 12px 28px rgba(6, 24, 51, 0.36),
    0 0 0 3px rgba(32, 201, 87, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
  animation: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 220ms ease;
}

@media (hover: hover) {
  .ev-ai-launcher:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #69FFA0;
    box-shadow:
      0 16px 34px rgba(6, 24, 51, 0.42),
      0 0 0 5px rgba(32, 201, 87, 0.30);
  }

  .ev-ai-launcher::before {
    content: 'Ask EV AI';
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #071D3B;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(32, 201, 87, 0.4);
    box-shadow: 0 8px 20px rgba(7, 29, 59, 0.28);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .ev-ai-launcher:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  .ev-ai-launcher.is-dragging::before {
    opacity: 0;
  }
}

.ev-ai-launcher .ev-ai-robot-orb {
  width: 48px;
  height: 48px;
  border-width: 0;
  background: transparent;
}

.ev-ai-launcher .ev-ai-bot-svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.32));
  animation: evdisha-bot-gentle-float 3.4s ease-in-out infinite;
}

.robot-wave-hand {
  transform-origin: 30.5px 30.6px;
  animation: evdisha-hand-wave 4.0s ease-in-out infinite;
}

.ev-ai-launcher:hover .robot-wave-hand {
  animation-duration: 1.6s;
}

.ev-ai-launcher.is-dragging .robot-wave-hand,
.ev-ai-launcher.is-dragging .ev-ai-bot-svg {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .robot-wave-hand,
  .ev-ai-launcher .ev-ai-bot-svg,
  .ev-ai-launcher .ev-ai-status-ping::after {
    animation: none;
  }
}

.ev-ai-launcher .ev-ai-status-ping {
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #22E564;
  border: 2px solid #071D3B;
}

.ev-ai-launcher .ev-ai-status-ping::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid #22E564;
  animation: evdisha-online-ring 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}

.ev-ai-panel {
  left: auto;
  right: 20px;
  bottom: 84px;
  transform-origin: bottom right;
}

body:has(#floating-compare-bar:not([hidden])) .ev-ai-launcher {
  bottom: max(92px, calc(82px + env(safe-area-inset-bottom)));
}

@media (max-width: 767px) {
  .ev-ai-launcher {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }

  .ev-ai-launcher .ev-ai-bot-svg {
    width: 34px;
    height: 34px;
  }

  body:has(#floating-compare-bar:not([hidden])) .ev-ai-launcher {
    bottom: max(142px, calc(134px + env(safe-area-inset-bottom)));
  }
}

/* --------------------------------------------------------------------------
   8. Comprehensive iOS, Android, Tablet & iPad Responsive Hardening (v4.0)
   -------------------------------------------------------------------------- */

/* Eliminate 300ms mobile tap delay & honor safe-area insets globally */
a,
button,
input,
select,
textarea,
label {
  touch-action: manipulation;
}

.site-footer {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.compare-table-wrapper,
.cd-tab-strip,
.tools-hero-tabs {
  -webkit-overflow-scrolling: touch;
}

/* iPad Pro Portrait (992px – 1140px): Prevent cramped 3-col beside Explore sidebar */
@media (min-width: 992px) and (max-width: 1140px) {
  .site-header .container {
    padding-inline: 16px !important;
  }

  .site-header .nav-link {
    padding: 7px 9px;
    font-size: 0.85rem;
  }

  .site-header .nav-link-charging {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .header-loc-btn {
    max-width: 195px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  body[data-page="explore"] .explore-layout {
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 14px;
  }

  body[data-page="explore"] #explore-vehicles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cd-hero-grid {
    grid-template-columns: 312px minmax(0, 1fr);
    gap: 20px;
  }
}

/* iPad Portrait & Android Tablets (768px – 991px): Keep crisp 2-col hero & 2-col grids */
@media (min-width: 768px) and (max-width: 991px) {
  .cd-hero {
    min-height: 360px;
    padding-block: 22px 26px;
  }

  .cd-hero-grid {
    grid-template-columns: 296px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }

  .cd-hero-editorial {
    order: 0;
    min-height: auto;
    gap: 10px;
  }

  .cd-hero-editorial h1 {
    font-size: 1.48rem;
  }

  .cd-hero-editorial p {
    font-size: 0.82rem;
  }

  .cd-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cd-vs-grid,
  .chg-city-grid,
  .chg-network-grid,
  .chg-connector-grid,
  .chg-corridor-grid,
  .chg-state-bars,
  .vehicles-grid,
  .vehicles-grid-compact,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .chg-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chg-filter-card #chg-reset-btn {
    grid-column: 1 / -1;
  }

  .chg-calc-grid,
  .home-about-grid,
  .details-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vd-charging-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Standard iOS & Android Smartphones (<= 767px) */
@media (max-width: 767px) {
  /* Prevent jarring iOS Safari auto-zoom when focusing inputs/selects */
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="tel"],
  select.form-control,
  textarea.form-control {
    font-size: 16px;
  }

  .site-header .container {
    padding-inline: 12px !important;
  }

  .site-header .header-inner {
    gap: 8px;
  }

  .site-header .brand-logo img {
    height: 34px;
    max-width: 108px;
  }

  .site-header .header-actions {
    gap: 6px;
  }

  .site-header .icon-btn,
  .site-header .icon-btn.js-open-search {
    width: 36px;
    height: 36px;
  }

  .header-loc-btn {
    height: 34px;
    max-width: 166px;
    padding: 0 9px;
    font-size: 0.72rem;
    gap: 4px;
  }

  /* Compact, vivid mobile hero with zero awkward blank height */
  .cd-hero {
    min-height: auto;
    padding-block: 18px 24px;
  }

  .cd-hero-bg img {
    object-position: 68% 55%;
  }

  .cd-hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cd-hero-editorial {
    order: -1;
    min-height: auto;
    gap: 10px;
  }

  .cd-hero-editorial h1 {
    font-size: 1.48rem;
  }

  .cd-hero-editorial p {
    font-size: 0.85rem;
  }

  .cd-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .cd-hero-stat {
    padding: 7px 10px;
    justify-content: flex-start;
  }

  .cd-finder-card {
    width: 100%;
    padding: 14px;
  }

  .cd-finder-fields .form-control {
    font-size: 15px;
    min-height: 40px;
  }

  /* Mobile horizontal-scroll pill bars */
  .tools-hero-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .tools-hero-tabs::-webkit-scrollbar {
    display: none;
  }

  .tools-hero-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .home-about-shell {
    padding: 20px 16px;
  }

  .chg-calc-panel,
  .chg-calc-results {
    padding: 18px 16px;
  }

  .vd-charging-panel {
    padding: 16px;
  }

  /* Full-width bottom-sheet AI chat panel safe for iOS/Android dynamic viewport */
  .ev-ai-panel {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    bottom: calc(74px + env(safe-area-inset-bottom));
    height: min(500px, calc(100dvh - 110px));
    max-height: calc(100dvh - 100px);
    border-radius: 18px;
  }

  /* Explore page mobile spacing */
  body[data-page="explore"] .page-hero .container,
  body[data-page="explore"] main > .section .container {
    padding-inline: 12px;
  }

  body[data-page="explore"] .explore-toolbar {
    flex-wrap: wrap;
    gap: 8px;
  }

  body[data-page="explore"] #explore-vehicles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Large Phablets (540px – 767px): 2-column EV cards */
@media (min-width: 540px) and (max-width: 767px) {
  body[data-page="explore"] #explore-vehicles-grid,
  .vehicles-grid,
  .vehicles-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Ultra-Compact Phones (320px – 374px — iPhone SE / Compact Android): Zero Header Overflow */
@media (max-width: 374px) {
  :root {
    --header-height: 54px;
  }

  .site-header .container {
    padding-inline: 8px !important;
  }

  .site-header .header-inner {
    gap: 5px;
  }

  .site-header .brand-logo img {
    height: 28px;
    max-width: 88px;
  }

  .site-header .header-actions {
    gap: 4px;
  }

  .site-header .icon-btn,
  .site-header .icon-btn.js-open-search {
    width: 32px;
    height: 32px;
  }

  .header-loc-btn {
    height: 32px;
    max-width: 118px;
    padding: 0 7px;
    font-size: 0.68rem;
    gap: 3px;
  }

  .header-loc-btn svg {
    width: 13px;
    height: 13px;
  }

  .cd-seg-tab {
    font-size: 0.68rem;
    padding: 6px 2px;
  }

  .cd-hero-stats {
    grid-template-columns: 1fr;
  }

  .ev-ai-launcher {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }

  .ev-ai-launcher .ev-ai-bot-svg {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   9. Calculators Dropdown Sub-Menu & Modern Multi-Column Footer (v4.1)
   ========================================================================== */

/* --- Calculators Dropdown in Sticky Header --- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.site-header .nav-dropdown.is-open > .nav-dropdown-toggle,
.site-header .nav-dropdown.is-active-parent > .nav-dropdown-toggle {
  color: var(--color-navy);
  background: var(--cd-accent-soft);
}

.nav-dd-chevron {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.78;
  flex-shrink: 0;
}

.nav-dropdown.is-open .nav-dd-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 318px;
  background: #FFFFFF;
  border: 1px solid #DCE6F2;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(7, 26, 52, 0.16), 0 4px 12px rgba(7, 26, 52, 0.06);
  padding: 8px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-top: 1px solid #DCE6F2;
  border-left: 1px solid #DCE6F2;
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown.is-open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 11px;
  text-decoration: none;
  color: var(--color-navy);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible {
  background: #F1F7FE;
  outline: none;
}

.nav-dd-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ECFDF3;
  border: 1px solid rgba(22, 163, 74, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-dropdown-item:hover .nav-dd-icon {
  background: #DCFCE7;
  border-color: rgba(22, 163, 74, 0.45);
}

.nav-dd-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-dd-copy strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: #092B55;
  line-height: 1.25;
}

.nav-dd-copy small {
  font-size: 0.74rem;
  font-weight: 500;
  color: #5A6B82;
  line-height: 1.32;
}

.nav-dd-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #E8EFF7;
}

.nav-dd-all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #137333;
  background: #F3FDF6;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dd-all:hover {
  background: #20C957;
  color: #052010;
}

/* Mobile & Tablet Drawer Accordion for Calculators Sub-Menu */
@media (max-width: 991px) {
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-header .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 1px solid #E2E9F3;
    border-radius: 12px;
    background: #F7FAFE;
    margin: 4px 0 6px;
    padding: 6px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.is-open > .nav-dropdown-menu {
    display: block;
    transform: none;
  }

  .nav-dropdown-item {
    padding: 9px 10px;
  }

  .nav-dd-icon {
    width: 30px;
    height: 30px;
    font-size: 0.92rem;
  }
}

/* --- Upgraded Modern Multi-Column EV Disha Footer --- */
.site-footer {
  background: linear-gradient(180deg, #061A33 0%, #041225 100%);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 0;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 3px solid #20C957;
  position: relative;
}

.footer-top-banner {
  background: linear-gradient(100deg, rgba(14, 52, 99, 0.92) 0%, rgba(9, 43, 85, 0.94) 58%, rgba(16, 84, 57, 0.76) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding-block: 24px;
  margin-bottom: 44px;
}

.footer-top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-banner-copy h2 {
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.footer-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #DCFCE7;
  background: rgba(32, 201, 87, 0.14);
  border: 1px solid rgba(32, 201, 87, 0.30);
  padding: 4px 10px;
  border-radius: 999px;
}

.footer-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-banner-btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #20C957;
  color: #052010;
  border: 1px solid #20C957;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.footer-banner-btn-ai:hover {
  background: #2AE066;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(32, 201, 87, 0.30);
}

.footer-banner-btn-emi {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 11px;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.footer-banner-btn-emi:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.site-footer .footer-logo-plate {
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.site-footer .footer-logo-plate img {
  height: 44px;
  max-width: 164px;
}

.site-footer .footer-tagline {
  font-size: 0.86rem;
  font-weight: 800;
  color: #4ADE80;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.site-footer .footer-desc {
  font-size: 0.84rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.70);
  max-width: 310px;
  margin-bottom: 16px;
}

.footer-india-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.site-footer .social-links {
  gap: 8px;
}

.site-footer .social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.site-footer .footer-col h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #FFFFFF;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer .footer-links {
  gap: 8px;
}

.site-footer .footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  padding-block: 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer .footer-links a:hover {
  color: #4ADE80;
  transform: translateX(3px);
}

.footer-cities-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-cities-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
  margin-right: 4px;
}

.footer-city-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 11px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-city-pill:hover {
  background: rgba(32, 201, 87, 0.18);
  border-color: rgba(32, 201, 87, 0.48);
  color: #FFFFFF;
}

.site-footer .footer-disclaimer-box {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer .footer-disclaimer-box strong {
  color: rgba(255, 255, 255, 0.90);
}

.site-footer .footer-disclaimer-box a {
  color: #4ADE80;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #DCFCE7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.footer-back-top:hover {
  background: rgba(32, 201, 87, 0.22);
  border-color: #20C957;
  color: #FFFFFF;
}

/* Responsive Footer Breakpoints (iPad, Tablet, Mobile) */
@media (max-width: 1140px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

  .site-footer .footer-grid > .footer-col:first-child {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .site-footer .footer-desc {
    max-width: 640px;
  }
}

@media (max-width: 767px) {
  .footer-top-banner {
    padding-block: 18px;
    margin-bottom: 30px;
  }

  .footer-banner-actions {
    width: 100%;
  }

  .footer-banner-btn-ai,
  .footer-banner-btn-emi {
    flex: 1 1 140px;
    justify-content: center;
    font-size: 0.82rem;
    padding: 9px 12px;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
