/*
Theme Name: MHV EV
Theme URI: https://mhvev.com
Author: MHV EV
Author URI: https://mhvev.com
Description: A professional, credibility-focused WordPress theme for MHV EV — electric scooter manufacturer. Includes a custom Models catalog, interactive 3D hero, and a native enquiry form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mhv-ev
*/

:root{
  --bg:#FAF9F5; --bg-alt:#F2F0E9; --ink:#14151A; --steel:#66655F; --line:rgba(20,21,26,0.12);
  --blue:#2E5EFF; --blue-deep:#1B3FCC; --amber:#E8A23B;
  --panel:#101114; --panel-alt:#1B1C21; --panel-line:rgba(255,255,255,0.12);
  --display:'Manrope',sans-serif; --body:'Inter',sans-serif; --mono:'IBM Plex Mono',monospace;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{ background:var(--bg); color:var(--ink); font-family:var(--body); line-height:1.6; -webkit-font-smoothing:antialiased; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
img,svg,canvas{ display:block; max-width:100%; }
img{ height:auto; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
h1,h2,h3,h4{ font-family:var(--display); font-weight:800; letter-spacing:-0.015em; }
.screen-reader-text{ position:absolute !important; left:-9999px; }

/* admin bar offset */
.admin-bar header.site-header{ top:32px; }
@media (max-width:782px){ .admin-bar header.site-header{ top:46px; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--mono); font-size:12px;
  letter-spacing:.08em; text-transform:uppercase; color:var(--blue-deep);
  border:1px solid var(--line); background:#fff; padding:7px 14px; border-radius:999px; margin-bottom:20px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--blue); }

.btn{
  font-family:var(--body); font-weight:600; font-size:14.5px; padding:14px 26px; border-radius:8px;
  display:inline-flex; align-items:center; gap:8px; cursor:pointer; border:1px solid transparent;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary{ background:var(--blue); color:#fff; }
.btn-primary:hover{ background:var(--blue-deep); transform:translateY(-2px); box-shadow:0 8px 20px rgba(46,94,255,.25); }
.btn-outline{ border-color:var(--ink); color:var(--ink); background:transparent; }
.btn-outline:hover{ background:var(--ink); color:#fff; transform:translateY(-2px); }
.btn-outline.on-dark{ border-color:var(--panel-line); color:#fff; }
.btn-outline.on-dark:hover{ background:#fff; color:var(--ink); }
button.btn{ font-family:var(--body); }

/* header */
header.site-header{ position:sticky; top:0; z-index:60; background:rgba(250,249,245,.9); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width:1180px; margin:0 auto; }
.logo{ font-family:var(--display); font-weight:800; font-size:20px; letter-spacing:-.01em; display:flex; align-items:center; gap:8px; }
.logo img{ max-height:40px; width:auto; }
.logo span{ color:var(--blue); }
.nav-links{ display:flex; gap:34px; font-size:14px; font-weight:500; }
.nav-links a:hover{ color:var(--blue); }
.nav-cta{ display:flex; align-items:center; gap:22px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:5px 0; }
@media (max-width:900px){
  .nav-links{ display:none; }
  .nav-links.is-open{ display:flex; flex-direction:column; position:absolute; top:100%; left:0; right:0; background:var(--bg); padding:20px 32px; border-bottom:1px solid var(--line); gap:16px; }
  .nav-toggle{ display:block; }
}

/* hero — full-bleed photography, no illustration gimmicks */
.hero{ position:relative; padding:150px 0 100px; color:#fff; background-size:cover; background-position:center; overflow:hidden; }
.hero::before{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(16,17,20,.55) 0%, rgba(16,17,20,.82) 75%, rgba(16,17,20,.92) 100%); z-index:0; }
.hero .wrap{ position:relative; z-index:1; }
.hero-inner{ max-width:640px; }
.hero .eyebrow{ background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.25); }
.hero .eyebrow::before{ background:var(--blue); }
.hero h1{ font-size:clamp(34px,5vw,58px); line-height:1.05; margin-bottom:20px; color:#fff; }
.hero p.lede{ font-size:17px; color:rgba(255,255,255,.82); max-width:48ch; margin-bottom:32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.stat-row-plain{ display:flex; gap:40px; margin-top:48px; flex-wrap:wrap; padding-top:32px; border-top:1px solid rgba(255,255,255,.18); }
.stat-row-plain .item .num{ font-family:var(--mono); font-size:24px; font-weight:600; color:#fff; }
.stat-row-plain .item .lbl{ font-size:12px; color:rgba(255,255,255,.65); margin-top:4px; }

/* plain spec row (used on single-model pages instead of dial graphics) */
.spec-plain{ background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:36px 0; }
.spec-plain .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:28px; }
.spec-plain .item{ text-align:center; flex:1; min-width:110px; }
.spec-plain .num{ font-family:var(--mono); font-size:26px; font-weight:600; color:var(--ink); }
.spec-plain .unit{ font-family:var(--mono); font-size:12px; color:var(--blue-deep); margin-left:3px; }
.spec-plain .lbl{ font-size:12px; color:var(--steel); margin-top:8px; }

/* trust bar */
.trust-bar{ background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:28px 0; }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.trust-item .num{ font-family:var(--mono); font-size:19px; font-weight:600; color:var(--blue-deep); }
.trust-item .lbl{ font-size:12.5px; color:var(--steel); margin-top:4px; }
@media (max-width:900px){ .trust-grid{ grid-template-columns:repeat(2,1fr); } }

section{ padding:92px 0; }
.section-head{ max-width:620px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(27px,3.2vw,36px); margin-bottom:14px; }
.section-head p{ color:var(--steel); font-size:16px; }

/* segmented toggle */
.lineup-toggle{ display:inline-flex; background:var(--bg-alt); border:1px solid var(--line); border-radius:10px; padding:4px; margin-bottom:44px; }
.toggle-btn{ font-family:var(--body); font-weight:600; font-size:13.5px; padding:9px 18px; border-radius:7px; border:none; background:transparent; color:var(--steel); cursor:pointer; transition:background .2s ease, color .2s ease; }
.toggle-btn.active{ background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(20,21,26,.12); }
.lineup-view{ display:none; } .lineup-view.active{ display:block; }

.model-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.model-grid.cols-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:1100px){ .model-grid.cols-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:900px){ .model-grid{ grid-template-columns:1fr; } }
.model-card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:26px; display:flex; flex-direction:column; position:relative; transition:transform .25s ease, box-shadow .25s ease; }
.model-card:hover{ transform:translateY(-5px); box-shadow:0 18px 34px -16px rgba(20,21,26,.2); }
.model-swatch{ width:100%; height:150px; border-radius:9px; margin-bottom:18px; position:relative; overflow:hidden; background-size:cover; background-position:center; background-color:var(--bg-alt); display:flex; align-items:center; justify-content:center; }
.model-swatch-label{ font-family:var(--display); font-weight:700; font-size:15px; color:var(--steel); opacity:.35; letter-spacing:.01em; text-align:center; padding:0 16px; }
.premium-pill{ position:absolute; top:20px; right:20px; font-family:var(--mono); font-size:9.5px; letter-spacing:.06em; background:var(--panel); color:#fff; padding:4px 9px; border-radius:999px; z-index:2; }
.model-tag{ font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--steel); margin-bottom:8px; }
.model-card h3{ font-size:21px; margin-bottom:6px; }
.model-card .position{ font-size:13.5px; color:var(--steel); margin-bottom:20px; }
.model-stats{ display:flex; gap:8px; margin-bottom:22px; flex-wrap:wrap; }
.model-stats .chip{ background:var(--bg-alt); border-radius:999px; padding:5px 11px; font-family:var(--mono); font-size:11.5px; color:var(--ink); }
.model-price{ margin-top:auto; padding-top:16px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
.model-price .amt{ font-family:var(--mono); font-weight:600; font-size:15px; }
.model-price a{ font-family:var(--body); font-weight:600; font-size:13px; color:var(--blue); }
.tier-block{ margin-bottom:52px; } .tier-block:last-child{ margin-bottom:0; }
.tier-head{ display:flex; align-items:baseline; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.tier-head h3{ font-size:18px; }
.tier-head p{ font-size:13.5px; color:var(--steel); }
.price-note{ font-size:12px; color:var(--steel); margin-top:22px; }
.empty-note{ font-size:14px; color:var(--steel); padding:24px; border:1px dashed var(--line); border-radius:10px; }

/* technology */
.tech-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:44px; }
.tech-item .icon{ width:42px; height:42px; margin-bottom:20px; }
.tech-item h3{ font-size:17px; margin-bottom:9px; }
.tech-item p{ color:var(--steel); font-size:14px; }
@media (max-width:900px){ .tech-grid{ grid-template-columns:1fr; } }

/* photo band (real photography, with dark overlay for legible text) */
.photo-band{ position:relative; padding:110px 0; color:#fff; background-size:cover; background-position:center; overflow:hidden; }
.photo-band::before{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(16,17,20,.55) 0%, rgba(16,17,20,.85) 100%); z-index:0; }
.photo-band .wrap{ position:relative; z-index:1; max-width:640px; }
.photo-band .eyebrow{ background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.25); }
.photo-band .eyebrow::before{ background:var(--blue); }
.photo-band h2{ font-size:clamp(28px,4vw,42px); margin-bottom:16px; color:#fff; }
.photo-band p{ color:rgba(255,255,255,.85); font-size:16px; }
.photo-band .stat-row{ display:flex; gap:36px; margin-top:32px; flex-wrap:wrap; }
.photo-band .stat-row .num{ font-family:var(--mono); font-size:22px; font-weight:600; color:#fff; }
.photo-band .stat-row .lbl{ font-size:12px; color:rgba(255,255,255,.65); margin-top:2px; }

/* why electric */
.why-electric{ position:relative; background-size:cover; background-position:center; color:#fff; }
.why-electric::before{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(16,17,20,.8) 0%, rgba(16,17,20,.9) 100%); z-index:0; }
.why-electric .wrap{ position:relative; z-index:1; }
.why-electric .section-head p{ color:rgba(255,255,255,.6); }
.why-electric .eyebrow{ background:transparent; color:var(--amber); border-color:var(--panel-line); }
.why-electric .eyebrow::before{ background:var(--amber); }
.why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.why-card{ border:1px solid var(--panel-line); border-radius:14px; padding:28px; background:rgba(16,17,20,.4); backdrop-filter:blur(6px); }
.why-card .num{ font-family:var(--mono); font-size:26px; color:var(--blue); margin-bottom:12px; }
.why-card h4{ font-family:var(--display); font-size:15.5px; margin-bottom:8px; }
.why-card p{ font-size:13px; color:rgba(255,255,255,.6); }
@media (max-width:900px){ .why-grid{ grid-template-columns:1fr; } }

/* press */
.press{ padding:56px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.press .label{ font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--steel); text-align:center; margin-bottom:28px; }
.press-row{ display:flex; justify-content:center; align-items:center; gap:48px; flex-wrap:wrap; opacity:.55; }
.press-row span{ font-family:var(--display); font-weight:700; font-size:17px; letter-spacing:.02em; color:var(--ink); }

/* testimonials */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.testi-card{ border-left:2px solid var(--blue); padding-left:22px; }
.testi-card p.quote{ font-size:15px; line-height:1.5; margin-bottom:14px; }
.testi-card .who{ font-family:var(--mono); font-size:11.5px; color:var(--steel); }
@media (max-width:900px){ .testi-grid{ grid-template-columns:1fr; } }

/* dealer cta */
.dealer-cta{ position:relative; background-size:cover; background-position:center; color:#fff; text-align:center; }
.dealer-cta::before{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(16,17,20,.7) 0%, rgba(16,17,20,.88) 100%); z-index:0; }
.dealer-cta .wrap{ position:relative; z-index:1; }
.dealer-cta h2{ font-size:clamp(27px,3.8vw,40px); margin-bottom:16px; }
.dealer-cta p{ max-width:52ch; margin:0 auto 34px; color:rgba(255,255,255,.7); }
.dealer-cta .actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* generic page content */
.page-hero{ padding:64px 0 40px; border-bottom:1px solid var(--line); }
.page-hero h1{ font-size:clamp(32px,4vw,46px); margin-bottom:14px; }
.page-hero p{ color:var(--steel); font-size:16px; max-width:60ch; }
.page-hero.photo{ position:relative; padding:100px 0; border-bottom:none; background-size:cover; background-position:center; color:#fff; }
.page-hero.photo::before{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(16,17,20,.6) 0%, rgba(16,17,20,.85) 100%); z-index:0; }
.page-hero.photo .wrap{ position:relative; z-index:1; }
.page-hero.photo h1{ color:#fff; }
.page-hero.photo p{ color:rgba(255,255,255,.8); }
.page-hero.photo .eyebrow{ background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.25); }
.page-hero.photo .eyebrow::before{ background:var(--blue); }

.story-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
@media (max-width:900px){ .story-grid{ grid-template-columns:1fr; } }
.story-grid .photo{ border-radius:16px; background-size:cover; background-position:center; aspect-ratio:4/3; }
.stat-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:40px; }
@media (max-width:900px){ .stat-strip{ grid-template-columns:repeat(2,1fr); } }
.stat-strip .item{ border:1px solid var(--line); border-radius:12px; padding:20px; text-align:center; }
.stat-strip .item .num{ font-family:var(--mono); font-size:22px; font-weight:600; color:var(--blue-deep); }
.stat-strip .item .lbl{ font-size:12px; color:var(--steel); margin-top:4px; }

.entry-content{ padding:64px 0; max-width:760px; margin:0 auto; }
.entry-content h2{ font-size:26px; margin:36px 0 14px; }
.entry-content h3{ font-size:20px; margin:28px 0 12px; }
.entry-content p{ margin-bottom:16px; color:var(--ink); }
.entry-content ul, .entry-content ol{ margin:0 0 16px 20px; list-style:revert; }
.entry-content img{ border-radius:12px; margin:20px 0; }
.wrap.narrow{ max-width:760px; }

/* single model page */
.p-hero{ padding:28px 0 72px; }
.p-hero-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
@media (max-width:900px){ .p-hero-grid{ grid-template-columns:1fr; } }
.breadcrumb{ padding:22px 0 0; font-family:var(--mono); font-size:12px; color:var(--steel); }
.breadcrumb a:hover{ color:var(--blue); }
.p-tag{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--steel); margin-bottom:14px; }
.p-hero h1{ font-size:clamp(34px,5vw,52px); line-height:1.03; margin-bottom:14px; }
.p-hero .position{ font-size:17px; color:var(--steel); max-width:42ch; margin-bottom:26px; }
.p-price{ font-family:var(--mono); font-size:21px; font-weight:600; margin-bottom:28px; }
.p-price small{ font-family:var(--body); font-size:12.5px; color:var(--steel); font-weight:400; display:block; margin-top:4px; }
.visual-panel{ background:var(--bg-alt); border-radius:16px; aspect-ratio:4/3; position:relative; overflow:hidden; background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; }
.visual-panel-label{ font-family:var(--display); font-weight:700; font-size:20px; color:var(--steel); opacity:.3; }
.visual-panel.has-image .visual-panel-label{ display:none; }

.detail-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
@media (max-width:900px){ .detail-grid{ grid-template-columns:1fr; } }
.detail-card{ background:#fff; padding:32px; }
.detail-card h4{ font-family:var(--display); font-size:16px; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.kv{ display:flex; justify-content:space-between; padding:9px 0; font-size:14px; border-bottom:1px dashed var(--line); }
.kv:last-child{ border-bottom:none; }
.kv .k{ color:var(--steel); }
.kv .v{ font-family:var(--mono); font-weight:600; }

.enquiry{ background:var(--panel); color:#fff; }
.enquiry .section-head p{ color:rgba(255,255,255,.65); }
.enquiry-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; }
@media (max-width:900px){ .enquiry-grid{ grid-template-columns:1fr; } }
.enquiry-copy h3{ font-size:22px; margin-bottom:14px; }
.enquiry-copy p{ color:rgba(255,255,255,.65); font-size:14.5px; margin-bottom:24px; }
.enquiry-facts{ display:flex; flex-direction:column; gap:14px; }
.enquiry-facts li{ display:flex; gap:12px; align-items:flex-start; font-size:14px; color:rgba(255,255,255,.85); }
.enquiry-facts li::before{ content:'—'; color:var(--blue); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:900px){ .form-grid{ grid-template-columns:1fr; } }
.form-grid .full{ grid-column:1/-1; }
.form-grid label{ display:block; font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-bottom:8px; }
.form-grid input, .form-grid select, .form-grid textarea{ width:100%; background:transparent; border:1px solid var(--panel-line); color:#fff; padding:12px 14px; font-family:var(--body); font-size:14px; border-radius:6px; }
.form-grid input::placeholder, .form-grid textarea::placeholder{ color:rgba(255,255,255,.35); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus{ outline:none; border-color:var(--blue); }
.form-grid select option{ color:#000; }
.form-grid .btn-primary{ width:100%; justify-content:center; margin-top:6px; }
.form-note{ font-size:12.5px; margin-top:14px; }
.form-note.success{ color:#5FD98A; }
.form-note.error{ color:#FF8A80; }
.hp-field{ position:absolute; left:-9999px; }

.related{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
@media (max-width:900px){ .related{ grid-template-columns:1fr; } }
.related-card{ border:1px solid var(--line); padding:28px; display:flex; justify-content:space-between; align-items:center; border-radius:10px; }
.related-card h4{ font-family:var(--display); font-size:18px; margin-bottom:4px; }
.related-card p{ font-size:13px; color:var(--steel); }
.related-card a{ font-family:var(--mono); font-size:12px; color:var(--blue); }

/* footer */
footer.site-footer{ background:var(--bg-alt); border-top:1px solid var(--line); padding:64px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr repeat(4,1fr); gap:30px; padding-bottom:44px; border-bottom:1px solid var(--line); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } }
.footer-brand p{ font-size:13px; color:var(--steel); max-width:30ch; margin-top:12px; }
.footer-col h5{ font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--steel); margin-bottom:14px; }
.footer-col li{ margin-bottom:9px; font-size:13.5px; color:var(--ink); }
.footer-col a:hover{ color:var(--blue); }
.footer-addr{ font-size:12.5px; color:var(--steel); margin-bottom:10px; line-height:1.5; }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:22px; font-size:12px; color:var(--steel); flex-wrap:wrap; gap:10px; }

/* whatsapp float */
.wa-float{ position:fixed; bottom:22px; right:22px; z-index:70; background:#25D366; width:54px; height:54px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px rgba(0,0,0,.25); transition:transform .2s ease; }
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:26px; height:26px; }

.reveal{ opacity:0; transform:translateY(16px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; scroll-behavior:auto !important; } }
