/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: #1a1a1a; background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  --yellow: #F5C200;
  --yellow-dark: #d4a800;
  --blue: #0047AB;
  --blue-dark: #003380;
  --blue-light: #1a6fd4;
  --black: #111111;
  --dark: #1a1a1a;
  --gray: #555;
  --light: #f0f4ff;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(0,71,171,0.10);
  --shadow-hover: 0 16px 44px rgba(0,23,77,0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all 0.3s ease;
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.bg-light { background: var(--light); }
.center-btn { text-align: center; margin-top: 40px; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: 'Barlow', sans-serif; font-size: 2.2rem; font-weight: 900; color: var(--black); margin: 8px 0 12px; }
.section-header p { color: var(--gray); max-width: 600px; margin: 0 auto; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.8); }

.section-tag { display: inline-block; background: var(--yellow); color: var(--black); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 4px 12px; border-radius: 20px; }
.section-header h2 span { color: var(--blue); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; background: var(--blue); color: var(--white);
  font-weight: 700; padding: 12px 28px; border-radius: var(--radius);
  transition: var(--transition); font-family: 'Barlow', sans-serif; font-size: 0.95rem;
  border: 2px solid var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--blue);
  font-weight: 700; padding: 12px 28px; border-radius: var(--radius);
  border: 2px solid var(--blue); transition: var(--transition);
  font-family: 'Barlow', sans-serif; font-size: 0.95rem;
}
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn-outline-white {
  display: inline-block; background: transparent; color: var(--white);
  font-weight: 700; padding: 12px 28px; border-radius: var(--radius);
  border: 2px solid var(--white); transition: var(--transition);
  font-family: 'Barlow', sans-serif; font-size: 0.95rem;
}
.btn-outline-white:hover { background: var(--white); color: var(--blue); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* ===== TOPBAR ===== */
.topbar { background: var(--blue-dark); color: rgba(255,255,255,0.85); font-size: 0.82rem; padding: 8px 0; }
.topbar-inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar-inner span i { margin-right: 6px; color: var(--yellow); }
.topbar-right { margin-left: auto; }
.topbar-right a { color: var(--yellow); font-weight: 600; text-decoration: none; transition: var(--transition); }
.topbar-right a:hover { color: var(--white); text-decoration: underline; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white); position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo { font-family: 'Barlow', sans-serif; font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; }
.logo-xcmg { color: var(--yellow); background: var(--black); padding: 2px 8px; border-radius: 3px; }
.logo-auto { color: var(--black); font-weight: 600; font-size: 1rem; }
.logo-img { height: 48px; width: auto; object-fit: contain; display: block; }
.logo-img-footer { height: 50px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--dark); padding: 8px 12px; border-radius: var(--radius); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.btn-nav { background: var(--yellow) !important; color: var(--black) !important; padding: 8px 20px !important; border-radius: var(--radius) !important; }
.btn-nav:hover { background: var(--yellow-dark) !important; color: var(--black) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--black); transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--blue-dark) url('../images/banner/banner 1.png') center center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,51,128,0.82) 0%, rgba(0,71,171,0.65) 60%, rgba(0,71,171,0.3) 100%);
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 0 40px; }
.hero-sub { color: var(--yellow); font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.hero-content h1 { font-family: 'Barlow', sans-serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 20px; }
.hero-content h1 span { color: var(--yellow); }
.hero-desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; max-width: 560px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--yellow); font-size: 1.4rem; animation: bounce 2s infinite; z-index: 2; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ===== STATS ===== */
.stats { background: var(--yellow); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item .stat-num { font-family: 'Barlow', sans-serif; font-size: 2.5rem; font-weight: 900; line-height: 1.2; color: var(--black); }
.stat-item p { font-weight: 600; color: var(--black); font-size: 0.9rem; }
.stat-item { border-right: 1px solid rgba(0,0,0,0.15); }
.stat-item:last-child { border-right: none; }

/* ===== ABOUT SNIPPET ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-placeholder {
  background: linear-gradient(135deg, var(--black), #333);
  border-radius: 12px; height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--yellow);
}
.about-img-placeholder i { font-size: 5rem; margin-bottom: 16px; }
.about-img-placeholder p { color: rgba(255,255,255,0.7); font-size: 1rem; }
.about-text .section-tag { margin-bottom: 12px; }
.about-text h2 { font-family: 'Barlow', sans-serif; font-size: 2rem; font-weight: 900; margin: 10px 0 20px; line-height: 1.2; }
.about-text p { color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.about-text .btn-primary { margin-top: 8px; }

/* ===== PRODUCTS ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.product-img { height: 180px; display: flex; align-items: center; justify-content: center; position: relative; font-size: 4rem; }
.product-img.ev { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--yellow); }
.product-img.heavy { background: linear-gradient(135deg, #0d1b2a, var(--blue-dark)); color: var(--yellow); }
.badge { position: absolute; top: 12px; right: 12px; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; }
.badge-ev { background: #4caf50; color: #fff; }
.badge-heavy { background: var(--yellow); color: var(--black); }
.product-info { padding: 20px; }
.product-info h3 { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.product-info p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; margin-bottom: 14px; }
.specs { margin-bottom: 16px; }
.specs li { font-size: 0.82rem; color: var(--gray); padding: 3px 0; }
.specs li i { color: var(--yellow-dark); margin-right: 6px; width: 14px; }

/* ===== WHY XCMG ===== */
.why-xcmg { background: var(--blue-dark); }
.why-xcmg .section-tag { background: var(--yellow); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 32px 24px; text-align: center; transition: var(--transition); }
.why-card:hover { background: rgba(245,194,0,0.12); border-color: var(--yellow); transform: translateY(-4px); }
.why-card i { font-size: 2.5rem; color: var(--yellow); margin-bottom: 16px; }
.why-card h3 { font-family: 'Barlow', sans-serif; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.6; }

/* ===== CTA BANNER ===== */
.cta-banner { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-family: 'Barlow', sans-serif; font-size: 2rem; font-weight: 900; color: var(--white); }
.cta-inner p { color: rgba(255,255,255,0.8); margin-top: 6px; }
.cta-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-banner .btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.cta-banner .btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); }
.news-img { height: 160px; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--yellow); }
.news-body { padding: 20px; }
.news-date { font-size: 0.78rem; color: var(--yellow-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.news-body h3 { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 1rem; margin: 8px 0 10px; line-height: 1.4; }
.news-body p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; margin-bottom: 14px; }
.news-body a { color: var(--yellow-dark); font-weight: 700; font-size: 0.88rem; transition: var(--transition); }
.news-body a:hover { color: var(--black); }
.news-body a i { margin-left: 4px; font-size: 0.75rem; }

/* ===== FOOTER ===== */
.footer { background: #001a4d; color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin: 16px 0 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); font-size: 0.85rem; }
.social-links a:hover { background: var(--yellow); color: var(--black); }
.footer-links h4, .footer-contact h4 { font-family: 'Barlow', sans-serif; font-weight: 700; color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-links ul li a:hover { color: var(--yellow); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.footer-contact p i { color: var(--yellow); width: 16px; flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); padding: 80px 0 60px; text-align: center; }
.page-hero h1 { font-family: 'Barlow', sans-serif; font-size: 2.8rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: var(--yellow); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ===== RESPONSIVE ===== */

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .about-grid { gap: 40px; }
  .section-header h2 { font-size: 1.9rem; }
  .hero-content { padding: 0 30px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); gap: 2px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; border-radius: var(--radius); width: 100%; }
  .btn-nav { text-align: center; }
  .navbar { position: relative; }

  .topbar-inner { justify-content: center; gap: 16px; }
  .topbar-right { margin-left: 0; }

  .hero { min-height: 100svh; }
  .hero-content { padding: 80px 20px 40px; max-width: 100%; }
  .hero-sub { font-size: 0.85rem; letter-spacing: 2px; }
  .hero-desc { font-size: 1rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-btns .btn-primary, .hero-btns .btn-outline { width: 100%; text-align: center; }

  .stats { padding: 30px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); padding: 16px 0; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(0,0,0,0.1); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-img-placeholder { height: 260px !important; }
  .about-text h2 { font-size: 1.6rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .news-grid { grid-template-columns: 1fr; }

  .cta-banner { padding: 40px 0; }
  .cta-inner { flex-direction: column; text-align: center; gap: 20px; }
  .cta-btns { justify-content: center; }
  .cta-inner h2 { font-size: 1.6rem; }

  .section-pad { padding: 50px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.7rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  .page-hero { padding: 60px 0 40px; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p { font-size: 0.95rem; }
}

/* Mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .topbar { display: none; }

  .logo-img { height: 38px; }

  .hero-content h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.78rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item .stat-num { font-size: 2rem; }

  .why-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: auto; }

  .section-pad { padding: 40px 0; }
  .section-header h2 { font-size: 1.5rem; }

  .btn-primary, .btn-outline, .btn-outline-white { padding: 11px 22px; font-size: 0.9rem; }

  .page-hero h1 { font-size: 1.7rem; }
}

/* Small mobile */
@media (max-width: 360px) {
  .hero-content h1 { font-size: 1.7rem; }
  .stat-item .stat-num { font-size: 1.7rem; }
  .section-header h2 { font-size: 1.35rem; }
}

/* =====================================================================
   POLISH PASS — subtle refinements layered on top of the base styles.
   Grouped here so it's easy to review or revert as one block.
   ===================================================================== */

/* --- Navbar: frosted-glass effect once scrolled --- */
.navbar.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.nav-links a { position: relative; }
/* Animated underline that grows from the centre on hover/active */
.nav-links a:not(.btn-nav)::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--yellow); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform 0.25s var(--ease);
}
.nav-links a:not(.btn-nav):hover::after,
.nav-links a:not(.btn-nav).active::after { transform: scaleX(1); }

/* --- Buttons: soft depth + springy press --- */
.btn-primary, .btn-outline, .btn-outline-white {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(0,71,171,0.30); }
.btn-outline:hover { box-shadow: 0 10px 24px rgba(0,71,171,0.22); }
.cta-banner .btn-primary:hover { box-shadow: 0 10px 24px rgba(245,194,0,0.40); }
.btn-primary:active, .btn-outline:active,
.btn-outline-white:active, .btn-nav:active { transform: translateY(0); }

/* --- Hero: gentle staggered entrance --- */
.hero-content > * { animation: heroFade 0.8s var(--ease) backwards; }
.hero-sub        { animation-delay: 0.10s; }
.hero-content h1 { animation-delay: 0.22s; }
.hero-desc       { animation-delay: 0.36s; }
.hero-btns       { animation-delay: 0.50s; }
@keyframes heroFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* --- Section headings: small accent rule under the title --- */
.section-header h2 { position: relative; padding-bottom: 14px; }
.section-header h2::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 54px; height: 3px; background: var(--yellow); border-radius: 3px;
}

/* --- Product cards: equal heights + image zoom on hover --- */
.product-card { display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-img img { transition: transform 0.6s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-info { display: flex; flex-direction: column; flex: 1 1 auto; }
/* Push the call-to-action to the bottom so card footers line up across the row */
.product-actions,
.product-info > .btn-primary,
.product-info > .btn-sm { margin-top: auto; }

/* --- Cards in general: smoother, deeper lift --- */
.why-card, .news-card, .mv-card, .service-card,
.capability-card, .app-card, .cert-card, .presence-card, .spirit-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease);
}

/* --- Stats: tiny hover lift for life --- */
.stat-item { transition: transform 0.3s var(--ease); }
.stat-item:hover { transform: translateY(-4px); }

/* --- Social icons: springy hover --- */
.social-links a { transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.social-links a:hover { transform: translateY(-3px); }

/* --- Accessibility: visible keyboard focus ring --- */
a:focus-visible, button:focus-visible, .filter-btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0,71,171,0.45); outline-offset: 2px; border-radius: var(--radius);
}

/* --- Crisper image rendering for the truck photos --- */
.product-img img { image-rendering: auto; }

/* =====================================================================
   EV CHARGING MAP SECTION
   ===================================================================== */
#charging-map { scroll-margin-top: 90px; } /* keeps heading clear of the sticky navbar on anchor jump */

/* Stats strip — auto-filled from the station data */
.ev-stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: -10px 0 36px; }
.ev-stat { flex: 1 1 160px; max-width: 220px; text-align: center; background: var(--light); border: 1px solid #e2e9f7; border-radius: 12px; padding: 18px 16px; }
.ev-stat-num { display: block; font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 2.1rem; color: var(--blue); line-height: 1; }
.ev-stat-num--text { font-size: 1.15rem; line-height: 1.3; padding: 6px 0; }
.ev-stat-label { display: block; margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }

.ev-map-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: stretch; }
.ev-map-wrap { display: flex; flex-direction: column; }
.ev-map { height: 520px; border-radius: 12px; box-shadow: var(--shadow); z-index: 1; }
.ev-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 0.82rem; }
.ev-legend span { display: flex; align-items: center; gap: 7px; color: var(--gray); font-weight: 600; }
.ev-legend .dot { width: 12px; height: 12px; border-radius: 50%; }
.ev-legend .dot-public { background: var(--blue); }
.ev-legend .dot-private { background: var(--yellow-dark); }

.ev-station-panel { display: flex; flex-direction: column; }
.ev-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ev-panel-title { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--black); }

/* Public / Private filter toggle */
.ev-filter { display: inline-flex; background: var(--light); border-radius: 30px; padding: 3px; }
.ev-filter-btn { border: none; background: transparent; cursor: pointer; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 0.8rem; color: var(--gray); padding: 6px 14px; border-radius: 30px; transition: var(--transition); }
.ev-filter-btn:hover { color: var(--blue); }
.ev-filter-btn.active { background: var(--blue); color: var(--white); }
.ev-station-list { overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 12px; padding-right: 6px; }
/* Slim themed scrollbar */
.ev-station-list::-webkit-scrollbar { width: 6px; }
.ev-station-list::-webkit-scrollbar-thumb { background: var(--blue-light); border-radius: 6px; }
.ev-station-list::-webkit-scrollbar-track { background: #eef2fb; border-radius: 6px; }

.ev-station-card {
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  background: var(--white); border: 1px solid #e6e9f0; border-left: 4px solid var(--blue);
  border-radius: 8px; padding: 14px 16px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ev-station-card:hover, .ev-station-card:focus-visible {
  box-shadow: var(--shadow); transform: translateX(3px); border-left-color: var(--yellow); outline: none;
}
.ev-card-top { margin-bottom: 10px; }
/* Real station name title (list card + popup) */
.ev-st-name { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1.35; color: var(--blue-dark); margin-bottom: 10px; }
.ev-popup .ev-st-name { margin-bottom: 8px; }

/* Field list (shared by list cards + map popups) */
.ev-fields { display: flex; flex-direction: column; gap: 7px; }
.ev-fields li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.82rem; color: var(--gray); line-height: 1.45; }
.ev-fields li i { color: var(--blue); font-size: 0.85rem; width: 15px; margin-top: 2px; flex-shrink: 0; }

/* Access badge — Public vs Private (shared by list + popup) */
.ev-access { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.ev-access.public  { background: #e7eefc; color: var(--blue); }
.ev-access.private { background: #fff3d0; color: #9a6b00; }

/* Custom teardrop markers, colored by access type */
.ev-marker { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; }
.ev-marker i { transform: rotate(45deg); color: #fff; font-size: 0.95rem; }
.ev-marker.public  { background: var(--blue); }
.ev-marker.private { background: var(--yellow-dark); }

/* Themed Leaflet popup */
.ev-popup { min-width: 220px; }
.ev-popup .ev-access { margin-bottom: 10px; }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup-content { margin: 14px 16px; }

@media (max-width: 768px) {
  .ev-map-layout { grid-template-columns: 1fr; }
  .ev-map { height: 360px; }
  .ev-station-list { max-height: 340px; }
  .ev-stat { flex: 1 1 100px; padding: 14px 12px; }
  .ev-stat-num { font-size: 1.7rem; }
}

/* EV Chargers reference band (charging map page) */
.ev-charger-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--white); border: 1px solid #e2e9f7; border-left: 5px solid var(--yellow); border-radius: 12px; padding: 28px 32px; box-shadow: var(--shadow); }
.ev-charger-band-text { flex: 1 1 320px; }
.ev-charger-band .section-tag { margin-bottom: 10px; }
.ev-charger-band h3 { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.5rem; color: var(--black); margin-bottom: 8px; }
.ev-charger-band p { color: var(--gray); line-height: 1.6; max-width: 640px; font-size: 0.92rem; }

/* =====================================================================
   RESPONSIVE SAFETY + TOUCH TARGETS
   ===================================================================== */
/* Never allow sideways scrolling at any width.
   `clip` on body prevents horizontal scroll WITHOUT creating a scroll container,
   so the sticky navbar keeps working (unlike overflow:hidden on html/body). */
body { overflow-x: clip; max-width: 100%; }
img, video, iframe { max-width: 100%; }

/* Comfortable ~44px tap targets on touch / coarse-pointer devices */
@media (pointer: coarse) {
  .filter-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .ev-filter-btn { min-height: 40px; padding: 9px 16px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .hamburger { padding: 10px; }
  .ev-station-card { padding: 16px; }
  .btn-primary, .btn-outline, .btn-outline-white, .btn-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  /* Bigger Leaflet zoom buttons + popup close for fingers */
  .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
  .leaflet-popup-close-button { width: 34px !important; height: 34px !important; font: 24px/34px Tahoma, Verdana, sans-serif !important; }
}

/* Landscape phones: shorten the map so the list is reachable without long scroll */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .ev-map { height: 300px; }
  .hero { min-height: 460px; }
}

/* --- Respect users who prefer reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-scroll { animation: none; }
}


/* =====================================================================
   PHOTO PLACEHOLDER (unit has no photo yet)
   ===================================================================== */
/* Themed placeholder when no photo exists for a model */
.product-img--ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--yellow); text-align: center; isolation: isolate; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(26,111,212,0.55) 0%, transparent 62%),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(135deg, #0a1f44 0%, var(--blue-dark) 55%, var(--blue) 100%);
}
/* camera-viewfinder corner brackets */
.product-img--ph .ph-frame { position: absolute; inset: 14px; pointer-events: none; z-index: -1;
  background:
    linear-gradient(var(--yellow), var(--yellow)) top left / 18px 2px,
    linear-gradient(var(--yellow), var(--yellow)) top left / 2px 18px,
    linear-gradient(var(--yellow), var(--yellow)) top right / 18px 2px,
    linear-gradient(var(--yellow), var(--yellow)) top right / 2px 18px,
    linear-gradient(var(--yellow), var(--yellow)) bottom left / 18px 2px,
    linear-gradient(var(--yellow), var(--yellow)) bottom left / 2px 18px,
    linear-gradient(var(--yellow), var(--yellow)) bottom right / 18px 2px,
    linear-gradient(var(--yellow), var(--yellow)) bottom right / 2px 18px;
  background-repeat: no-repeat; opacity: 0.75; }
/* soft light sweep across the box */
.product-img--ph::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.10) 50%, transparent 65%);
  transform: translateX(-100%); animation: phSweep 3.2s var(--ease) infinite; }
.product-img--ph .ph-icon { position: relative; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  background: rgba(245,194,0,0.12); border: 2px solid rgba(245,194,0,0.55);
  box-shadow: 0 0 22px rgba(245,194,0,0.25); }
.product-img--ph .ph-icon::before { content: ''; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--yellow); animation: phPulse 2.4s ease-out infinite; }
.product-img--ph .ph-title { margin-top: 4px; font-family: 'Barlow', sans-serif; font-weight: 800;
  font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.product-img--ph .ph-title i { color: var(--yellow); margin-right: 6px; font-size: 0.85rem; }
.product-img--ph .ph-sub { font-size: 0.66rem; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.product-img--ph .ph-sub::before, .product-img--ph .ph-sub::after { content: ''; display: inline-block; width: 16px; height: 1px;
  background: rgba(245,194,0,0.6); vertical-align: middle; margin: 0 8px; }
@keyframes phSweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes phPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .product-img--ph::after, .product-img--ph .ph-icon::before { animation: none; display: none; }
}

/* Phones: product cards stay 2 per row — compact image, type and buttons */
@media (max-width: 600px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-img { height: 130px; }
  .product-img .badge { top: 8px; right: 8px; font-size: 0.6rem; padding: 2px 7px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 0.92rem; line-height: 1.3; }
  .product-info p { font-size: 0.78rem; line-height: 1.5; margin-bottom: 10px; }
  .specs li { font-size: 0.74rem; }
  .product-info > .btn-sm { width: 100%; padding: 8px 6px; font-size: 0.76rem; text-align: center; }
  .product-img--ph { gap: 4px; }
  .product-img--ph .ph-frame { inset: 8px; }
  .product-img--ph .ph-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .product-img--ph .ph-title { font-size: 0.62rem; letter-spacing: 1px; }
  .product-img--ph .ph-title i { margin-right: 4px; }
  .product-img--ph .ph-sub { display: none; }
}

/* News card with a real photo thumbnail; single-story grid stays centred */
.news-img-photo { padding: 0; overflow: hidden; }
.news-img-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-img-photo img { transform: scale(1.06); }
.news-grid--single { grid-template-columns: minmax(0, 420px); justify-content: center; }
/* News cards: photo · category + date · headline · 2-line summary · Read More */
.news-card { display: flex; flex-direction: column; }
.news-card .news-img { display: block; height: 180px; }
.news-card .news-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.news-meta .news-cat { display: inline-block; background: var(--yellow); color: var(--black); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px; }
.news-card .news-loc { display: block; font-size: 0.78rem; color: var(--gray); margin-top: 6px; }
.news-card .news-loc i { color: var(--yellow-dark); margin-right: 5px; }
.news-body h3 a { color: var(--black); font-weight: 700; font-size: inherit; transition: color 0.2s var(--ease); }
.news-body h3 a:hover { color: var(--blue); }
.news-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news-body .news-more { margin-top: auto; }
/* =====================================================================
   HOMEPAGE "FEATURED VEHICLES" — uniform, easy-to-compare cards
   (scoped to .featured-products so the products page grid is untouched;
    photos are pre-cropped to 4:3 in images/products/featured/)
   ===================================================================== */
.featured-products .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.featured-products .product-card { height: 100%; }
.featured-products .product-img {
  height: auto; aspect-ratio: 4 / 3; overflow: hidden;
  background: #eef2f8; border-bottom: 1px solid #e6eaf2;
}
.featured-products .product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-products .product-img .badge { top: 12px; right: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.featured-products .product-info { padding: 20px 20px 22px; }
.featured-products .product-info h3 { font-size: 1.08rem; line-height: 1.3; min-height: 2.6em; margin-bottom: 8px; }
.featured-products .product-info p { font-size: 0.88rem; line-height: 1.6; min-height: 4.8em; margin-bottom: 14px; }
.featured-products .specs { border-top: 1px solid #edf0f5; padding-top: 12px; margin-bottom: 18px; }
.featured-products .specs li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.84rem; line-height: 1.45; padding: 4px 0; color: #4a4f5a; }
.featured-products .specs li i { flex: 0 0 16px; width: 16px; margin: 3px 0 0; text-align: center; font-size: 0.8rem; color: #8a97b3; }
.featured-products .product-info > .btn-sm { margin-top: auto; align-self: stretch; text-align: center; }

/* Tablet: 2 per row */
@media (max-width: 1024px) {
  .featured-products .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
/* Phone: 1 per row, full-size type */
@media (max-width: 600px) {
  .featured-products .products-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .featured-products .product-img { height: auto; }
  .featured-products .product-info { padding: 18px; }
  .featured-products .product-info h3 { font-size: 1.05rem; min-height: 0; }
  .featured-products .product-info p { font-size: 0.86rem; min-height: 0; }
  .featured-products .specs li { font-size: 0.82rem; }
  .featured-products .product-info > .btn-sm { width: 100%; padding: 10px 14px; font-size: 0.85rem; }
}