/* ================================================================
   EV POWER MOTORS — Design tokens
   Palette sampled from the brand logo: neon lime green, neon purple,
   on true black. Type: Plus Jakarta Sans (display) + Inter (body).
   Rounded, friendly shape language — not angular.
================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #000000;
  --bg-alt: #0a0a0d;
  --panel: #131317;
  --panel-2: #1c1c22;
  --green: #5cfd02;
  --green-deep: #46c400;
  --purple: #aa0fff;
  --purple-deep: #7d0cc4;
  --white: #ffffff;
  --grey: #9ba3af;
  --line: rgba(255, 255, 255, 0.1);

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --max: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #e7e9ec;
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; color: #c7cbd1; }
.lede { font-size: 1.15rem; color: var(--grey); max-width: 54ch; }

.gradient-text {
  background: linear-gradient(95deg, var(--green), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--panel { background: var(--panel); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; border-radius: var(--radius);
  transition: all 0.15s ease;
}
.btn--primary { background: var(--green); color: #000; }
.btn--primary:hover { background: #79ff2b; box-shadow: 0 0 22px rgba(92, 253, 2, 0.5); transform: translateY(-1px); }
.btn--outline { border-color: rgba(255,255,255,0.25); color: #fff; background: rgba(255,255,255,0.04); }
.btn--outline:hover { border-color: var(--purple); box-shadow: 0 0 18px rgba(170, 15, 255, 0.3); }
.btn--dark { background: var(--panel-2); color: #fff; border-color: var(--line); }
.btn--dark:hover { border-color: var(--green); color: var(--green); }
.btn--full { width: 100%; justify-content: center; }
.btn--pill { border-radius: var(--radius-pill); }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 130px; width: auto; }
.logo span { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.logo span em { color: var(--green); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--font-display); font-size: 0.96rem; font-weight: 600; color: #c7cbd1; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta { margin-left: 8px; padding: 11px 22px; font-size: 0.86rem; white-space: nowrap; border-radius: var(--radius); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 78px 0 0 0; background: #000;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* ---------------- Hero (centered, glow background, badge, gradient headline) ---------------- */
.hero {
  position: relative; overflow: hidden; padding: 100px 0 90px; text-align: center;
  background:
    radial-gradient(ellipse 700px 420px at 50% 105%, rgba(170,15,255,0.30), transparent 70%),
    radial-gradient(ellipse 600px 360px at 12% -10%, rgba(92,253,2,0.14), transparent 70%),
    var(--bg);
}
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  border: 1px solid rgba(92,253,2,0.4); border-radius: var(--radius-pill);
  color: var(--green); font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 26px; background: rgba(92,253,2,0.06);
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-meta { display: flex; gap: 40px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); justify-content: center; flex-wrap: wrap; }
.hero-meta div { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--green); }
.hero-meta span { display: block; font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--grey); margin-top: 2px; }

.hero-feature {
  position: relative; background: var(--panel); color: #fff; overflow: hidden;
  padding: 30px 28px 0; min-height: 380px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: left;
  max-width: 480px; margin: 56px auto 0;
}
.hero-feature .tag { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--purple); letter-spacing: 0.03em; }
.hero-feature h3 { color: #fff; margin: 8px 0 4px; font-size: 1.4rem; }
.hero-feature .price { color: var(--green); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; }
.hero-feature .stage { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.hero-feature .stage svg, .hero-feature .stage img { width: 78%; height: auto; }
.hero-feature .specs { display: flex; gap: 20px; padding: 16px 0 22px; border-top: 1px solid var(--line); margin-top: 12px; }
.hero-feature .specs div { font-size: 0.8rem; color: var(--grey); }
.hero-feature .specs strong { display: block; color: #fff; font-size: 0.9rem; font-weight: 600; font-family: var(--font-display); }

@media (max-width: 640px) {
  .hero { padding: 70px 0 60px; }
  .hero-meta { gap: 26px; }
}

/* ---------------- Brand strip ---------------- */
.brand-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.brand-strip .track { display: flex; gap: 64px; padding: 22px 0; animation: scroll-strip 28s linear infinite; width: max-content; }
.brand-strip .track span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--grey); white-space: nowrap; }
@keyframes scroll-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- What we do (alternating rows) ---------------- */
.pillar-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.pillar-row:first-of-type { border-top: none; }
.pillar-row:nth-of-type(even) { grid-template-columns: 1.1fr 0.9fr; }
.pillar-row:nth-of-type(even) .pillar-figure { order: 2; }
.pillar-figure {
  background: var(--panel); border: 1px solid var(--line); aspect-ratio: 4/3; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.pillar-figure svg { width: 42%; height: 42%; }
.pillar-index { font-family: var(--font-display); color: var(--purple); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.pillar-text h3 { margin-top: 6px; }
.pillar-text p { color: var(--grey); }

@media (max-width: 780px) {
  .pillar-row, .pillar-row:nth-of-type(even) { grid-template-columns: 1fr; }
  .pillar-row:nth-of-type(even) .pillar-figure { order: 0; }
}

/* ---------------- Vehicle showcase (horizontal scroll) ---------------- */
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.showcase-track {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.showcase-track::-webkit-scrollbar { height: 6px; }
.showcase-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.car-card {
  scroll-snap-align: start; flex: 0 0 300px; background: var(--panel);
  border: 1px solid var(--line); overflow: hidden; border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.car-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(92,253,2,0.16); }
.car-card .thumb { background: #000; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; padding: 18px; }
.car-card .thumb img, .car-card .thumb svg { width: 78%; height: 78%; object-fit: contain; }
.car-card .body { padding: 18px 20px 22px; }
.car-card .tier-tag { font-family: var(--font-display); font-size: 0.76rem; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: 0.03em; }
.car-card h3 { font-size: 1.1rem; margin: 6px 0 2px; }
.car-card .maker { color: var(--grey); font-size: 0.85rem; margin-bottom: 10px; }
.car-card .price { font-family: var(--font-display); font-weight: 700; color: var(--green); font-size: 1.08rem; }

/* ---------------- Gallery grid (gallery.php) ---------------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-bar a {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: #d7dae0; background: var(--panel);
}
.filter-bar a.active { background: var(--green); color: #000; border-color: var(--green); }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.car-grid .car-card { flex: none; width: auto; }

/* ---------------- Stats band ---------------- */
.stats-row { display: flex; flex-wrap: wrap; }
.stats-row .stat { flex: 1 1 220px; padding: 0 28px; border-left: 1px solid var(--line); }
.stats-row .stat:first-child { border-left: none; padding-left: 0; }
.stats-row .stat strong { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--green); }
.stats-row .stat span { color: var(--grey); font-size: 0.92rem; }
@media (max-width: 700px) {
  .stats-row { flex-direction: column; gap: 22px; }
  .stats-row .stat { border-left: none; padding-left: 0; padding-right: 0; }
}

/* ---------------- Process (genuine sequence — numbered) ---------------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-step { border-top: 3px solid var(--purple); padding-top: 16px; border-radius: 2px; }
.process-step .num { font-family: var(--font-display); font-size: 1.7rem; color: var(--line); font-weight: 800; }
.process-step h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.process-step p { color: var(--grey); font-size: 0.94rem; }
@media (max-width: 780px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process-list { grid-template-columns: 1fr; } }

/* ---------------- Blog ---------------- */
.post-row { display: flex; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); }
.post-row:first-of-type { border-top: none; }
.post-row .date { flex: 0 0 130px; color: var(--grey); font-size: 0.88rem; padding-top: 4px; font-family: var(--font-display); }
.post-row h3 { margin-bottom: 8px; }
.post-row h3 a:hover { color: var(--green); }
.post-row p { color: var(--grey); margin: 0; }
.post-content { max-width: 68ch; }
.post-content h2 { margin-top: 1.4em; }
.post-content p { max-width: none; color: #c7cbd1; }
.post-content ul, .post-content ol { margin: 0 0 1em 1.3em; color: #c7cbd1; }
.post-content li { margin-bottom: 0.4em; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(100deg, var(--green), var(--purple)); color: #000;
  padding: 52px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  border-radius: var(--radius-lg);
}
.cta-band h2 { color: #000; margin-bottom: 6px; }
.cta-band p { color: rgba(0,0,0,0.7); }

/* ---------------- Footer ---------------- */
.site-footer { background: #000; border-top: 1px solid var(--line); color: var(--grey); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; font-family: var(--font-display); font-weight: 700; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--green); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 34px; width: auto; }
.footer-logo span { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- Car detail page ---------------- */
.car-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
.car-hero .stage {
  background: var(--panel); border: 1px solid var(--line); padding: 40px; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
}
.car-hero .stage img, .car-hero .stage svg { width: 80%; height: 80%; object-fit: contain; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.spec-table tr { border-top: 1px solid var(--line); }
.spec-table tr:first-child { border-top: none; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; font-size: 0.94rem; vertical-align: top; }
.spec-table th { width: 38%; color: var(--grey); font-weight: 500; }
.spec-table td { font-weight: 500; color: #fff; }
.tier-pill {
  display: inline-block; background: rgba(170,15,255,0.08); border: 1px solid var(--purple); color: var(--purple);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; padding: 6px 16px; margin-bottom: 14px;
  border-radius: var(--radius-pill);
}
.price-tag { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--green); margin: 18px 0 24px; }

/* ---------------- Contact page ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 54px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); color: #fff;
  font-family: var(--font-body); font-size: 0.96rem; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(92,253,2,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-card {
  background: var(--panel); border: 1px solid var(--line); color: #fff; padding: 34px; border-radius: var(--radius-lg);
}
.contact-card h3 { color: #fff; }
.contact-card .item { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-card .item:first-of-type { border-top: none; }
.contact-card .item span { display: block; font-size: 0.78rem; color: var(--grey); margin-bottom: 3px; }
.contact-card .item a, .contact-card .item div { font-weight: 600; color: #fff; }
.alert { padding: 14px 18px; margin-bottom: 22px; font-size: 0.94rem; border: 1px solid; border-radius: var(--radius); }
.alert--success { background: rgba(92,253,2,0.08); color: var(--green); border-color: rgba(92,253,2,0.35); }
.alert--error { background: rgba(255,64,64,0.08); color: #ff6b6b; border-color: rgba(255,64,64,0.35); }
@media (max-width: 860px) { .contact-grid, .car-hero { grid-template-columns: 1fr; } }

/* ---------------- Page header ---------------- */
.page-header { padding: 52px 0 8px; }
.page-header .kicker { color: var(--purple); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; }
