/*
Theme Name: EV Fleet
Theme URI: https://example.com/
Author: Custom
Description: Modern WordPress theme for electric vehicle / shuttle / fleet companies. Hero, vehicle models with specs, performance and charging, customization and CTA sections. Everything editable from Appearance > Customize and the Vehicles menu.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: evfleet
*/

:root {
  --evf-primary: #12c281;
  --evf-dark: #0a1713;
  --evf-dark-2: #11231d;
  --evf-light: #f4f8f6;
  --evf-text: #1c2b26;
  --evf-muted: #6b7c76;
  --evf-radius: 18px;
  --evf-shadow: 0 18px 50px rgba(10, 23, 19, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--evf-text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.evf-container { width: min(1180px, 92%); margin-inline: auto; }
.evf-section { padding: 90px 0; }
.evf-eyebrow {
  display: inline-block; color: var(--evf-primary); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; margin-bottom: 14px;
}
.evf-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.evf-center { text-align: center; }
.evf-lead { color: var(--evf-muted); max-width: 640px; }
.evf-center .evf-lead { margin-inline: auto; }

/* Buttons */
.evf-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px;
  border-radius: 50px; font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid var(--evf-primary); background: var(--evf-primary); color: #04130d;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.evf-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18, 194, 129, .35); }
.evf-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.evf-btn--ghost:hover { border-color: var(--evf-primary); color: var(--evf-primary); box-shadow: none; }
.evf-btn--dark { background: var(--evf-dark); border-color: var(--evf-dark); color: #fff; }
.evf-btn--dark:hover { background: var(--evf-primary); border-color: var(--evf-primary); color: #04130d; }

/* Header */
.evf-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 18px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.evf-header.is-scrolled, .evf-header.is-solid {
  background: rgba(10, 23, 19, .96); backdrop-filter: blur(10px); padding: 10px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.evf-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.evf-logo { color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.evf-logo span { color: var(--evf-primary); }
.evf-logo img { max-height: 52px; width: auto; }
.evf-nav ul { display: flex; align-items: center; gap: 34px; }
.evf-nav a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.evf-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--evf-primary); transition: width .3s;
}
.evf-nav a:hover, .evf-nav .current-menu-item > a, .evf-nav .current_page_item > a { color: #fff; }
.evf-nav a:hover::after, .evf-nav .current-menu-item > a::after, .evf-nav .current_page_item > a::after { width: 100%; }
.evf-header__cta { padding: 10px 24px; font-size: .88rem; }
.evf-burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.evf-burger span, .evf-burger span::before, .evf-burger span::after {
  content: ''; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: .3s;
}
.evf-burger span { top: 21px; }
.evf-burger span::before { top: -7px; left: 0; right: 0; }
.evf-burger span::after { top: 7px; left: 0; right: 0; }
.evf-burger.is-open span { background: transparent; }
.evf-burger.is-open span::before { top: 0; transform: rotate(45deg); }
.evf-burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.evf-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% 20%, rgba(18,194,129,.22), transparent 60%),
              linear-gradient(135deg, var(--evf-dark) 0%, var(--evf-dark-2) 100%);
  color: #fff; padding: 140px 0 80px;
}
.evf-hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -120px; bottom: -160px;
  border-radius: 50%; border: 1px solid rgba(18,194,129,.25);
  box-shadow: 0 0 0 60px rgba(18,194,129,.04), 0 0 0 130px rgba(18,194,129,.03);
}
.evf-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.evf-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 20px; }
.evf-hero h1 em { font-style: normal; color: var(--evf-primary); }
.evf-hero p.evf-hero__text { color: rgba(255,255,255,.75); font-size: 1.08rem; max-width: 520px; margin-bottom: 34px; }
.evf-hero__img { position: relative; }
.evf-hero__img img { width: 100%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.5)); animation: evfFloat 6s ease-in-out infinite; }
@keyframes evfFloat { 50% { transform: translateY(-14px); } }
.evf-hero__features { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 46px; }
.evf-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 50px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px);
  font-size: .9rem; font-weight: 500;
}
.evf-chip img, .evf-chip i { width: 26px; height: 26px; object-fit: contain; }
.evf-chip i { display: grid; place-items: center; border-radius: 50%; background: var(--evf-primary); color: #04130d; font-style: normal; font-size: .8rem; font-weight: 700; }

/* Placeholder */
.evf-ph {
  width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center;
  border-radius: var(--evf-radius); color: rgba(255,255,255,.55); font-size: .85rem; padding: 20px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, rgba(255,255,255,.08) 14px 28px);
  border: 1px dashed rgba(255,255,255,.25);
}
.evf-ph--light { color: var(--evf-muted); background: repeating-linear-gradient(45deg, #eef3f1 0 14px, #e6edea 14px 28px); border-color: #c8d5d0; }

/* Performance */
.evf-perf { background: var(--evf-light); }
.evf-perf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 50px; }
.evf-table { background: #fff; border-radius: var(--evf-radius); box-shadow: var(--evf-shadow); overflow: hidden; }
.evf-table__row { display: grid; grid-template-columns: 1fr 1fr; padding: 18px 28px; border-bottom: 1px solid #eef2f0; }
.evf-table__row:last-child { border: 0; }
.evf-table__row--head { background: var(--evf-dark); color: #fff; font-weight: 600; }
.evf-table__row strong { color: var(--evf-primary); }
.evf-bars { margin-top: 28px; display: grid; gap: 20px; }
.evf-bar__top { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.evf-bar__track { height: 10px; background: #dde7e3; border-radius: 10px; overflow: hidden; }
.evf-bar__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--evf-primary), #6ef0bd); border-radius: 10px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

/* Highlights */
.evf-hl__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.evf-hl { position: relative; border-radius: var(--evf-radius); overflow: hidden; background: var(--evf-dark); color: #fff; min-height: 360px; display: flex; align-items: flex-end; transition: transform .35s; }
.evf-hl:hover { transform: translateY(-8px); }
.evf-hl img.evf-hl__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.evf-hl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,23,19,.92)); }
.evf-hl__body { position: relative; z-index: 1; padding: 30px; }
.evf-hl__body h3 { margin: 0; font-size: 1.35rem; }
.evf-hl__num { color: var(--evf-primary); font-weight: 700; font-size: .85rem; letter-spacing: .15em; margin-bottom: 8px; display: block; }

/* Vehicles */
.evf-vehicles { background: var(--evf-dark); color: #fff; }
.evf-vehicles .evf-lead { color: rgba(255,255,255,.65); }
.evf-vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 54px; }
.evf-vcard {
  background: var(--evf-dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--evf-radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .35s, border-color .35s, box-shadow .35s;
}
.evf-vcard:hover { transform: translateY(-8px); border-color: var(--evf-primary); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.evf-vcard__img { background: radial-gradient(circle at 50% 60%, rgba(18,194,129,.18), transparent 70%); padding: 26px 22px 6px; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.evf-vcard__img img { max-height: 100%; width: auto; object-fit: contain; transition: transform .5s; }
.evf-vcard:hover .evf-vcard__img img { transform: scale(1.06); }
.evf-vcard__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.evf-vcard h3 { font-size: 1.4rem; margin-bottom: 16px; }
.evf-specs { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.evf-specs li { display: flex; justify-content: space-between; gap: 14px; font-size: .86rem; padding-bottom: 9px; border-bottom: 1px dashed rgba(255,255,255,.12); }
.evf-specs li span { color: rgba(255,255,255,.55); white-space: nowrap; }
.evf-specs li b { font-weight: 500; text-align: right; }
.evf-vcard .evf-btn { justify-content: center; width: 100%; }
.evf-more { text-align: center; margin-top: 50px; }

/* Stats */
.evf-stats { background: linear-gradient(135deg, var(--evf-primary), #0b8f61); color: #04130d; padding: 70px 0; }
.evf-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; text-align: center; }
.evf-stat strong { display: block; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: 1; }
.evf-stat span { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.evf-stat p { margin: 10px 0 0; opacity: .8; font-size: .92rem; }

/* Customize */
.evf-custom__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.evf-custom__img img, .evf-custom__img .evf-ph { border-radius: var(--evf-radius); box-shadow: var(--evf-shadow); }
.evf-ticks { margin: 24px 0 34px; display: grid; gap: 14px; }
.evf-ticks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.evf-ticks li::before {
  content: '\2713'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--evf-primary); color: #04130d; font-size: .8rem; font-weight: 700; margin-top: 2px;
}
.evf-services { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.evf-service { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 14px; background: var(--evf-light); font-weight: 600; }
.evf-service img { width: 30px; height: 30px; object-fit: contain; }

/* CTA */
.evf-cta { background: var(--evf-dark); color: #fff; position: relative; overflow: hidden; }
.evf-cta::before { content: ''; position: absolute; width: 480px; height: 480px; left: -140px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(18,194,129,.3), transparent 70%); }
.evf-cta__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; position: relative; }
.evf-cta p { color: rgba(255,255,255,.72); max-width: 500px; margin-bottom: 30px; }
.evf-cta__img img { max-height: 420px; margin-inline: auto; width: auto; }

/* Page / blog */
.evf-pagehead { background: linear-gradient(135deg, var(--evf-dark), var(--evf-dark-2)); color: #fff; padding: 150px 0 70px; text-align: center; }
.evf-pagehead h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.evf-content { padding: 70px 0; }
.evf-content .evf-container { max-width: 860px; }
.evf-content img { border-radius: 12px; }
.evf-content h2, .evf-content h3 { margin-top: 1.6em; }
.evf-content a { color: var(--evf-primary); text-decoration: underline; }
.evf-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.evf-post { border-radius: var(--evf-radius); overflow: hidden; background: #fff; box-shadow: var(--evf-shadow); }
.evf-post__body { padding: 24px; }
.evf-post h2 { font-size: 1.25rem; }
.evf-pagination { text-align: center; margin-top: 40px; }
.evf-pagination .page-numbers { display: inline-block; padding: 8px 16px; margin: 3px; border-radius: 8px; background: var(--evf-light); }
.evf-pagination .current { background: var(--evf-primary); }

/* Single vehicle */
.evf-vsingle { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.evf-vsingle__img { background: var(--evf-light); border-radius: var(--evf-radius); padding: 40px; }
.evf-vsingle .evf-specs li { border-color: #dfe8e4; font-size: 1rem; }
.evf-vsingle .evf-specs li span { color: var(--evf-muted); }

/* Contact form */
.evf-form { display: grid; gap: 16px; max-width: 640px; }
.evf-form input, .evf-form textarea {
  width: 100%; padding: 15px 18px; border: 1px solid #d5e0db; border-radius: 12px; font: inherit; background: #fff;
}
.evf-form input:focus, .evf-form textarea:focus { outline: 2px solid var(--evf-primary); border-color: transparent; }
.evf-form button { justify-self: start; }
.evf-notice { padding: 14px 20px; border-radius: 12px; background: #e4f8ef; color: #0b6b47; margin-bottom: 20px; }
.evf-notice--err { background: #fde8e8; color: #9b1c1c; }
.evf-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.evf-contact-card { background: var(--evf-light); border-radius: var(--evf-radius); padding: 24px; }
.evf-contact-card h4 { color: var(--evf-primary); margin-bottom: 6px; }

/* Footer */
.evf-footer { background: #06100c; color: rgba(255,255,255,.7); padding: 80px 0 0; }
.evf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 60px; }
.evf-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.evf-footer li { margin-bottom: 12px; font-size: .92rem; }
.evf-footer a:hover { color: var(--evf-primary); }
.evf-footer .evf-logo { margin-bottom: 16px; }
.evf-social { display: flex; gap: 12px; margin-top: 18px; }
.evf-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 700; color: #fff; }
.evf-social a:hover { background: var(--evf-primary); color: #04130d; }
.evf-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .86rem; }

/* Reveal */
.evf-reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s, transform .8s; }
.evf-reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .evf-vgrid, .evf-hl__grid { grid-template-columns: repeat(2, 1fr); }
  .evf-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .evf-burger { display: block; }
  .evf-header__cta { display: none; }
  .evf-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84%); background: var(--evf-dark);
    padding: 100px 30px 30px; transform: translateX(100%); transition: transform .35s; box-shadow: -20px 0 50px rgba(0,0,0,.4);
  }
  .evf-nav.is-open { transform: none; }
  .evf-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .evf-burger { position: relative; z-index: 120; }
  .evf-hero__grid, .evf-perf__grid, .evf-custom__grid, .evf-cta__grid, .evf-vsingle { grid-template-columns: 1fr; }
  .evf-hero { padding-top: 120px; text-align: center; }
  .evf-hero p.evf-hero__text { margin-inline: auto; }
  .evf-hero__features { justify-content: center; }
  .evf-section { padding: 64px 0; }
  .evf-cta__img { order: -1; }
}
@media (max-width: 600px) {
  .evf-vgrid, .evf-hl__grid, .evf-footer__grid { grid-template-columns: 1fr; }
  .evf-stats__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .evf-reveal { opacity: 1; transform: none; }
}

/* Accessibility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; background: #fff; color: #000; padding: 10px 16px; z-index: 999; top: 8px; left: 8px; }
