/*
Theme Name: VoltRide Mobility
Theme URI: https://www.voltride.com
Author: VoltRide
Description: B2B powered wheelchair export theme. Multilingual (Polylang ready), WCAG 2.1 AA, product custom post type with full technical + commercial fields, built-in RFQ inbox.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: voltride
Tags: accessibility-ready, translation-ready, custom-menu, featured-images, two-columns
*/

:root{
  --ink:#0b2545; --body:#3c4a5f; --muted:#64748b; --line:#e3e9f2;
  --surface:#f5f8fc; --surface-2:#eef3fa; --white:#fff;
  --brand:#0b63d6; --brand-dark:#084bb0; --brand-soft:#e8f0fd;
  --ok:#0f9d76; --warn:#b45309; --danger:#b3261e;
  --radius:14px; --radius-sm:8px;
  --shadow:0 1px 2px rgba(11,37,69,.04), 0 8px 24px rgba(11,37,69,.06);
  --maxw:1200px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0; background:var(--white); color:var(--body);
  font-family:"Inter","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:17px; line-height:1.65; font-weight:400;
}
h1,h2,h3,h4{color:var(--ink); font-weight:600; line-height:1.2; letter-spacing:-.01em; margin:0 0 .5em}
h1{font-size:clamp(2.1rem,4.4vw,3.4rem)}
h2{font-size:clamp(1.6rem,2.8vw,2.25rem)}
h3{font-size:1.25rem}
p{margin:0 0 1rem}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}
img,svg{max-width:100%; height:auto}
.artimg{display:block; width:100%; height:auto; object-fit:contain; border-radius:12px}
.card__art .artimg{max-height:150px}
.pd__art .artimg{max-height:330px}
.logo__img{height:34px; width:auto; display:block}
:focus-visible{outline:3px solid var(--brand); outline-offset:2px; border-radius:4px}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px}
.section{padding:clamp(56px,7vw,96px) 0}
.section--alt{background:var(--surface)}
.skip{
  position:absolute; left:-9999px; top:0; background:var(--brand); color:#fff;
  padding:12px 20px; border-radius:0 0 var(--radius-sm) 0; z-index:100;
}
.skip:focus{left:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.eyebrow{
  display:inline-block; font-size:.82rem; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--brand); margin-bottom:16px;
}
.lead{font-size:1.15rem; color:var(--body); max-width:62ch}
.center{text-align:center}
.center .lead{margin-left:auto; margin-right:auto}

/* header */
.hdr{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line); backdrop-filter:saturate(180%) blur(8px)}
.hdr__in{display:flex; align-items:center; gap:24px; min-height:76px; flex-wrap:wrap}
.logo{display:flex; align-items:center; gap:10px; font-weight:600; font-size:1.2rem; color:var(--ink); letter-spacing:.02em}
.logo:hover{text-decoration:none}
.logo__mark{width:30px; height:30px; border-radius:8px; background:var(--brand);
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:.8rem; font-weight:600; flex:0 0 auto}
.nav{margin-left:auto}
.nav ul{display:flex; gap:28px; align-items:center; list-style:none; margin:0; padding:0; flex-wrap:wrap}
.nav a{color:var(--body); font-size:1rem; font-weight:500}
.nav a[aria-current="page"]{color:var(--brand); font-weight:600}
.nav li.current-menu-item > a,.nav li.current_page_parent > a{color:var(--brand); font-weight:600}
.langsel{font-size:.95rem; padding:8px 10px; border:1px solid var(--line);
  border-radius:var(--radius-sm); background:var(--white); color:var(--body); min-height:42px}
@media(max-width:860px){
  .nav{margin-left:0; width:100%; order:3; padding-bottom:12px}
  .nav ul{gap:18px}
}

/* buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:14px 28px; border-radius:999px; font-size:1.02rem; font-weight:600;
  border:1px solid transparent; cursor:pointer; transition:background .15s,color .15s,border-color .15s}
.btn--primary{background:var(--brand); color:#fff}
.btn--primary:hover{background:var(--brand-dark); text-decoration:none; color:#fff}
.btn--ghost{background:transparent; color:var(--brand); border-color:#c7d6ee}
.btn--ghost:hover{background:var(--brand-soft); text-decoration:none}
.btn-row{display:flex; flex-wrap:wrap; gap:14px; margin-top:32px}

/* hero */
.hero{padding:clamp(48px,6vw,88px) 0 clamp(40px,5vw,72px)}
.hero__grid{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center}
.hero__art{background:var(--surface); border:1px solid var(--line); border-radius:24px;
  padding:32px; display:flex; align-items:center; justify-content:center; min-height:320px}
@media(max-width:900px){.hero__grid{grid-template-columns:1fr; gap:32px}}

/* trust strip */
.trust{background:var(--surface-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:36px 0}
.trust__row{display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:center}
.badge{display:inline-flex; align-items:center; gap:10px; background:var(--white);
  border:1px solid var(--line); border-radius:999px; padding:10px 20px; font-size:.95rem; font-weight:600; color:var(--ink)}
.badge span{font-weight:400; color:var(--muted); font-size:.85rem}
.trust__note{text-align:center; color:var(--muted); font-size:.95rem; margin:18px 0 0}

/* cards */
.grid{display:grid; gap:24px}
.grid--4{grid-template-columns:repeat(4,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--2{grid-template-columns:repeat(2,1fr)}
@media(max-width:1000px){.grid--4{grid-template-columns:repeat(2,1fr)}.grid--3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.grid--4,.grid--3,.grid--2{grid-template-columns:1fr}}
.card{background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; box-shadow:var(--shadow); display:flex; flex-direction:column}
.card h3{margin-bottom:8px}
.card p{color:var(--body); margin-bottom:0}
.card__art{background:var(--surface); border-radius:12px; margin:-8px 0 20px; padding:20px;
  display:flex; align-items:center; justify-content:center}
.card__meta{display:flex; gap:18px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line);
  font-size:.9rem; color:var(--muted)}
.card__meta b{display:block; color:var(--ink); font-size:1.05rem; font-weight:600}
.card__cta{margin-top:auto; padding-top:20px; font-weight:600}
.cat{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:26px}
.cat:hover{border-color:#c7d6ee}
.cat__ico{width:46px; height:46px; border-radius:12px; background:var(--brand-soft); color:var(--brand);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px}

/* spec table */
.spec{width:100%; border-collapse:collapse; font-size:1rem}
.spec caption{text-align:left; color:var(--muted); font-size:.95rem; padding-bottom:12px}
.spec th,.spec td{text-align:left; padding:14px 16px; border-bottom:1px solid var(--line); vertical-align:top}
.spec th{width:42%; font-weight:500; color:var(--muted)}
.spec td{color:var(--ink); font-weight:500}
.spec tbody tr:nth-child(even){background:var(--surface)}
.compare-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--white)}
.compare{width:100%; border-collapse:collapse; min-width:760px; font-size:.96rem}
.compare th,.compare td{padding:14px 18px; border-bottom:1px solid var(--line); text-align:left}
.compare thead th{background:var(--surface); color:var(--ink); font-weight:600; white-space:nowrap}
.compare tbody th{font-weight:500; color:var(--muted)}
.compare tbody tr:nth-child(even) td{background:var(--surface)}

.chips{display:flex; flex-wrap:wrap; gap:10px; margin:0; padding:0; list-style:none}
.chips li{background:var(--brand-soft); color:var(--brand-dark); border-radius:999px;
  padding:8px 16px; font-size:.9rem; font-weight:600}
.bullets{margin:0; padding:0; list-style:none; display:grid; gap:14px}
.bullets li{display:flex; gap:14px; align-items:flex-start; color:var(--body)}
.bullets li::before{content:""; flex:0 0 auto; width:9px; height:9px; margin-top:11px;
  border-radius:50%; background:var(--brand)}

/* product detail */
.pd{display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:start}
@media(max-width:900px){.pd{grid-template-columns:1fr; gap:32px}}
.pd__art{background:var(--surface); border:1px solid var(--line); border-radius:24px; padding:36px;
  display:flex; align-items:center; justify-content:center; position:sticky; top:100px}
@media(max-width:900px){.pd__art{position:static}}
.pd__code{font-size:.9rem; font-weight:600; letter-spacing:.08em; color:var(--brand); text-transform:uppercase}
.subhead{font-size:1.35rem; margin-top:48px; padding-bottom:12px; border-bottom:1px solid var(--line)}

/* misc */
.two{display:grid; grid-template-columns:1fr 1fr; gap:48px}
@media(max-width:820px){.two{grid-template-columns:1fr; gap:24px}}
.callout{background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--brand);
  border-radius:var(--radius); padding:24px 28px}
.callout--warn{border-left-color:var(--warn)}
.note{font-size:.95rem; color:var(--muted)}
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:32px}
@media(max-width:680px){.stats{grid-template-columns:repeat(2,1fr)}}
.stat b{display:block; font-size:2rem; color:var(--ink); font-weight:600; line-height:1.1}
.stat span{font-size:.95rem; color:var(--muted)}
.crumbs{font-size:.9rem; color:var(--muted); padding:20px 0}
.crumbs a{color:var(--muted)}
.crumbs ol{list-style:none; display:flex; gap:8px; margin:0; padding:0; flex-wrap:wrap}
.crumbs li+li::before{content:"/"; margin-right:8px}

/* form */
.form{display:grid; gap:20px; max-width:720px}
.field{display:flex; flex-direction:column; gap:8px}
.field label{font-weight:600; color:var(--ink); font-size:.98rem}
.field label .opt{font-weight:400; color:var(--muted); font-size:.88rem}
.field label .req{color:var(--danger)}
.field input,.field select,.field textarea{
  font:inherit; font-size:1rem; color:var(--ink); background:var(--white);
  border:1px solid #cdd8e8; border-radius:var(--radius-sm); padding:12px 14px; min-height:50px}
.field textarea{min-height:120px; resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand)}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:20px}
@media(max-width:640px){.grid2{grid-template-columns:1fr}}
.form-msg{padding:16px 20px; border-radius:var(--radius-sm); margin-bottom:24px; font-weight:500}
.form-msg--ok{background:#e6f6ef; border:1px solid #a8ddc6; color:#0b6b4f}
.form-msg--err{background:#fdecec; border:1px solid #f2b8b5; color:#8c1f18}
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}

/* footer */
.ftr{background:var(--ink); color:#c8d3e6; padding:64px 0 32px; margin-top:0}
.ftr a{color:#c8d3e6}
.ftr h4{color:#fff; font-size:1rem; margin-bottom:16px; font-weight:600}
.ftr__grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px}
@media(max-width:900px){.ftr__grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.ftr__grid{grid-template-columns:1fr}}
.ftr ul{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.ftr__bar{border-top:1px solid rgba(255,255,255,.14); margin-top:48px; padding-top:24px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:.9rem}
.ftr__logo{color:#fff; font-size:1.2rem; font-weight:600; margin-bottom:14px}

/* floating contact */
.fab{position:fixed; right:20px; bottom:20px; z-index:60; display:flex; flex-direction:column;
  align-items:flex-end; gap:10px}
.fab__btn{display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:0 22px;
  border-radius:999px; background:#128c7e; color:#fff; font-weight:600; font-size:1rem;
  border:none; cursor:pointer; box-shadow:0 6px 20px rgba(11,37,69,.18)}
.fab__btn:hover{background:#0e7a6e; text-decoration:none; color:#fff}
.fab__status{display:inline-flex; align-items:center; gap:8px; background:var(--white);
  border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-size:.88rem; color:var(--body)}
.dot{width:9px; height:9px; border-radius:50%; background:var(--muted)}
.dot--on{background:var(--ok)}
@media(max-width:560px){.fab__btn span{display:none}.fab__btn{padding:0; width:52px; justify-content:center}}

/* editor content */
.entry{font-size:1.05rem}
.entry h2{margin-top:1.6em}
.entry ul,.entry ol{padding-left:1.2em}
.entry li{margin-bottom:.4em}
.entry img{border-radius:12px}
.alignwide{max-width:var(--maxw); margin-left:auto; margin-right:auto}
.paging{display:flex; gap:10px; justify-content:center; padding:40px 0; list-style:none; margin:0}
.paging a,.paging span{display:inline-block; min-width:44px; min-height:44px; line-height:44px; text-align:center;
  border:1px solid var(--line); border-radius:var(--radius-sm)}
.paging .current{background:var(--brand); color:#fff; border-color:var(--brand)}

/* admin notice on site */
.vr-setup-note{background:#fff8e1; border-left:4px solid #f0ad4e; padding:16px 20px; margin:0}

@media print{.hdr,.fab,.ftr{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
