/* ==========================================================================
   Turbo Elite Motors — Precision Engineering design tokens
   Theme A: Precision Engineering Light / Theme B: Carbon Showroom
   Loaded after theme.css and shop.css. Tokens are the single source of truth.
   ========================================================================== */

/* ---------- Self-hosted typefaces (no third-party font CDN) ---------- */
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-500-arabic.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-700-arabic.woff2') format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/ibm-plex-sans-arabic-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/chakra-petch-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/chakra-petch-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Chakra Petch';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/chakra-petch-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* ---------- Primitive palette ---------- */
:root{
  --tem-white:#FFFFFF;
  --tem-black:#080B10;
  --tem-red-600:#D71920;
  --tem-red-500:#EB0A1E;
  --tem-red-400:#FF3B47;
  --tem-red-300:#FF6B75;
  --tem-gold-700:#7A5A1E;
  --tem-gold-500:#B98A2E;
  --tem-gold-300:#D6B26B;
  --tem-ink-900:#0C1220;
  --tem-ink-700:#2A3444;
  --tem-ink-500:#596577;
  --tem-ink-300:#8C98A9;
  --tem-paper-50:#F7F8FA;
  --tem-paper-100:#F2F4F7;
  --tem-paper-200:#E9EDF2;
  --tem-paper-300:#D5DCE6;
  --tem-paper-400:#B8C2D1;
  --tem-carbon-950:#080B10;
  --tem-carbon-900:#0A0D12;
  --tem-carbon-850:#0E1218;
  --tem-carbon-800:#11151C;
  --tem-carbon-750:#151A22;
  --tem-carbon-700:#181E27;
  --tem-carbon-600:#29313D;
  --tem-carbon-500:#3B4655;
  --tem-carbon-300:#A6B0BF;
  --tem-carbon-100:#F3F5F8;

  /* Semantic — Light is the default, class overrides follow. */
  --tem-bg:var(--tem-paper-100);
  --tem-bg-elevated:var(--tem-paper-50);
  --tem-surface:var(--tem-white);
  --tem-surface-2:var(--tem-paper-200);
  --tem-surface-3:var(--tem-paper-50);
  --tem-ink:var(--tem-ink-900);
  --tem-ink-2:var(--tem-ink-700);
  --tem-muted:var(--tem-ink-500);
  --tem-muted-2:var(--tem-ink-300);
  --tem-line:var(--tem-paper-300);
  --tem-line-strong:var(--tem-paper-400);
  --tem-accent:var(--tem-red-600);
  --tem-accent-hover:#B5121B;
  --tem-accent-soft:rgba(215,25,32,.09);
  --tem-on-accent:var(--tem-white);
  --tem-gold:var(--tem-gold-700);
  --tem-gold-soft:var(--tem-gold-500);
  --tem-success:#0B7A4B;
  --tem-warning:#9A6508;
  --tem-danger:#B42318;
  --tem-focus:#0B63CE;
  --tem-header-bg:rgba(255,255,255,.94);
  --tem-header-border:rgba(12,18,32,.10);
  --tem-footer-bg:var(--tem-carbon-900);
  --tem-footer-surface:#11161F;
  --tem-footer-text:#F5F7FA;
  --tem-footer-muted:#A8B2C1;
  --tem-footer-line:rgba(255,255,255,.14);
  --tem-field-bg:var(--tem-white);
  --tem-field-border:#CBD4E0;
  --tem-shadow-sm:0 1px 2px rgba(13,22,38,.05);
  --tem-shadow-md:0 8px 28px rgba(13,22,38,.08);
  --tem-shadow-lg:0 24px 64px rgba(13,22,38,.14);
  --tem-shadow-accent:0 18px 42px rgba(215,25,32,.22);
  --tem-overlay:rgba(8,11,16,.58);
  --tem-glass:rgba(255,255,255,.82);

  /* Typography */
  --tem-font-arabic:'IBM Plex Sans Arabic','Cairo','Alexandria',system-ui,sans-serif;
  --tem-font-display:'Chakra Petch','IBM Plex Sans Arabic','Cairo',system-ui,sans-serif;
  --tem-font-mono:'JetBrains Mono','IBM Plex Sans Arabic',ui-monospace,SFMono-Regular,Consolas,monospace;
  --tem-text-xs:0.75rem;
  --tem-text-sm:0.8125rem;
  --tem-text-base:0.9375rem;
  --tem-text-md:1rem;
  --tem-text-lg:1.125rem;
  --tem-text-xl:1.375rem;
  --tem-text-2xl:1.75rem;
  --tem-text-3xl:2.25rem;
  --tem-text-4xl:3rem;
  --tem-text-5xl:3.75rem;
  --tem-leading-tight:1.14;
  --tem-leading-snug:1.35;
  --tem-leading-body:1.7;

  /* Space, shape, motion */
  --tem-space-1:4px;
  --tem-space-2:8px;
  --tem-space-3:12px;
  --tem-space-4:16px;
  --tem-space-5:20px;
  --tem-space-6:24px;
  --tem-space-8:32px;
  --tem-space-10:40px;
  --tem-space-12:48px;
  --tem-space-16:64px;
  --tem-space-20:80px;
  --tem-space-24:96px;
  --tem-radius-sm:8px;
  --tem-radius-md:12px;
  --tem-radius-lg:16px;
  --tem-radius-xl:22px;
  --tem-radius-pill:999px;
  --tem-header-height:72px;
  --tem-container:1280px;
  --tem-ease:cubic-bezier(.2,.8,.2,1);
  --tem-ease-out:cubic-bezier(.16,1,.3,1);
  --tem-dur-fast:160ms;
  --tem-dur-base:280ms;
  --tem-dur-slow:560ms;

  /* Bridge into the existing WordPress preset variables. */
  --wp--preset--color--base:var(--tem-bg);
  --wp--preset--color--surface:var(--tem-surface);
  --wp--preset--color--surface-2:var(--tem-surface-2);
  --wp--preset--color--line:var(--tem-line);
  --wp--preset--color--paper:var(--tem-ink);
  --wp--preset--color--mist:var(--tem-muted);
  --wp--preset--color--accent:var(--tem-accent);
  --wp--preset--color--accent-text:var(--tem-accent);
  --wp--preset--color--gold:var(--tem-gold);
  --wp--preset--font-family--alexandria:var(--tem-font-arabic);
  --wp--preset--font-family--cairo:var(--tem-font-arabic);
  --wp--preset--font-family--mono:var(--tem-font-mono);
  color-scheme:light;
}

html.theme-b,body.theme-b{
  --tem-bg:var(--tem-carbon-900);
  --tem-bg-elevated:var(--tem-carbon-850);
  --tem-surface:var(--tem-carbon-800);
  --tem-surface-2:var(--tem-carbon-700);
  --tem-surface-3:var(--tem-carbon-850);
  --tem-ink:var(--tem-carbon-100);
  --tem-ink-2:#D8DEE8;
  --tem-muted:var(--tem-carbon-300);
  --tem-muted-2:#7E8A9B;
  --tem-line:var(--tem-carbon-600);
  --tem-line-strong:#3A4655;
  --tem-accent:var(--tem-red-400);
  --tem-accent-hover:var(--tem-red-300);
  --tem-accent-soft:rgba(255,59,71,.13);
  --tem-gold:var(--tem-gold-300);
  --tem-gold-soft:#E3C88E;
  --tem-success:#4ADE9B;
  --tem-warning:#F4C15D;
  --tem-danger:#FF7B85;
  --tem-focus:#8AB4FF;
  --tem-header-bg:rgba(10,13,18,.90);
  --tem-header-border:rgba(255,255,255,.09);
  --tem-footer-bg:var(--tem-carbon-950);
  --tem-footer-surface:#0E131B;
  --tem-footer-text:#F5F7FA;
  --tem-footer-muted:#9AA6B6;
  --tem-footer-line:rgba(255,255,255,.12);
  --tem-field-bg:#0E131B;
  --tem-field-border:#33404F;
  --tem-shadow-sm:0 1px 2px rgba(0,0,0,.35);
  --tem-shadow-md:0 10px 30px rgba(0,0,0,.38);
  --tem-shadow-lg:0 28px 70px rgba(0,0,0,.52);
  --tem-shadow-accent:0 18px 44px rgba(255,59,71,.20);
  --tem-overlay:rgba(0,0,0,.68);
  --tem-glass:rgba(17,21,28,.86);
  --wp--preset--color--accent-text:#FF6B75;
  color-scheme:dark;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{background:var(--tem-bg);scroll-behavior:smooth;scroll-padding-top:calc(var(--tem-header-height) + 20px);}
body{
  margin:0;
  background:var(--tem-bg);
  color:var(--tem-ink);
  font-family:var(--tem-font-arabic);
  font-size:var(--tem-text-base);
  font-weight:400;
  line-height:var(--tem-leading-body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  transition:background-color var(--tem-dur-base) var(--tem-ease),color var(--tem-dur-base) var(--tem-ease);
}
h1,h2,h3,h4,h5,h6{
  margin-block:0 .55em;
  color:var(--tem-ink);
  font-family:var(--tem-font-display);
  font-weight:700;
  line-height:var(--tem-leading-tight);
  letter-spacing:-.015em;
  text-wrap:balance;
}
h1{font-size:clamp(2.25rem,4.6vw,4.25rem);}
h2{font-size:clamp(1.75rem,3vw,2.5rem);}
h3{font-size:clamp(1.15rem,1.8vw,1.45rem);}
h4{font-size:1.0625rem;}
p{margin-block:0 1em;}
a{color:var(--tem-accent);text-decoration-thickness:1px;text-underline-offset:.18em;transition:color var(--tem-dur-fast) var(--tem-ease);}
a:hover{color:var(--tem-accent-hover);}
strong,b{font-weight:700;color:var(--tem-ink);}
small{font-size:var(--tem-text-sm);}
hr{border:0;border-block-start:1px solid var(--tem-line);margin-block:var(--tem-space-8);}
img{max-inline-size:100%;height:auto;}
svg{max-inline-size:100%;}
button,input,select,textarea{font:inherit;}
button{cursor:pointer;}
::selection{background:var(--tem-accent);color:var(--tem-on-accent);}
:focus-visible{outline:2px solid var(--tem-focus);outline-offset:3px;}
[hidden]{display:none!important;}

/* Numeric isolation: Arabic RTL copy must never reorder SKUs, prices, VINs or phones. */
.sku,.tem-num,bdi,time,[dir='ltr'],.price ins,.price bdi,.wc-block-components-product-price,.wc-block-components-product-sku,.wc-block-mini-cart__amount,.turbo-tier-card__meta{
  font-variant-numeric:tabular-nums;
  font-feature-settings:'tnum' 1;
  unicode-bidi:isolate;
}
.tem-ltr{direction:ltr;unicode-bidi:isolate;display:inline-block;}

/* The legacy reveal system can leave content invisible when its observer is delayed. */
.turbo-reveal--pending{opacity:1!important;transform:none!important;}

/* Theme switching without scroll locking or layout shift. */
html.tem-theme-transition body,
html.tem-theme-transition body *{transition:background-color 320ms var(--tem-ease),border-color 320ms var(--tem-ease),color 320ms var(--tem-ease),box-shadow 320ms var(--tem-ease)!important;}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
  .turbo-hero__slide.is-active .turbo-hero__slide-img{transform:none;}
}

/* WordPress utility defaults that are commonly unstyled in block themes. */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important;}
.wp-block-group.has-global-padding{padding-inline:clamp(16px,4vw,40px);--wp--style--root--padding-left:clamp(16px,4vw,40px);--wp--style--root--padding-right:clamp(16px,4vw,40px);}
.alignwide{max-inline-size:var(--tem-container);margin-inline:auto;}
.alignfull{max-inline-size:none;}

/* Forms — one visual language for WP, Woo, account and search forms. */
input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']),
select,textarea{
  inline-size:100%;
  min-block-size:48px;
  padding:11px 14px;
  border:1px solid var(--tem-field-border);
  border-radius:var(--tem-radius-md);
  background:var(--tem-field-bg);
  color:var(--tem-ink);
  font-family:var(--tem-font-arabic);
  font-size:var(--tem-text-base);
  line-height:1.5;
  box-shadow:none;
  transition:border-color var(--tem-dur-fast) var(--tem-ease),box-shadow var(--tem-dur-fast) var(--tem-ease),background-color var(--tem-dur-fast) var(--tem-ease);
}
textarea{min-block-size:132px;resize:vertical;}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 19px) 50%,calc(100% - 14px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-inline-end:38px;}
html[dir='rtl'] select{background-position:19px 50%,14px 50%;padding-inline:38px 14px;}
input::placeholder,textarea::placeholder{color:var(--tem-muted);opacity:1;}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--tem-accent);box-shadow:0 0 0 3px var(--tem-accent-soft);}
input[type='checkbox'],input[type='radio']{inline-size:18px;block-size:18px;accent-color:var(--tem-accent);}
label{color:var(--tem-ink-2);font-weight:500;font-size:var(--tem-text-sm);}

/* Native scrollbars */
*{scrollbar-width:thin;scrollbar-color:var(--tem-line-strong) transparent;}
*::-webkit-scrollbar{inline-size:8px;block-size:8px;}
*::-webkit-scrollbar-thumb{background:var(--tem-line-strong);border-radius:8px;}
*::-webkit-scrollbar-track{background:transparent;}
