/* =========================================================
   SuzukiParts Hub — Stylesheet
   ========================================================= */

/* ============ BASE RESET ============ */
*{margin:0;padding:0;box-sizing:border-box}
[hidden]{display:none !important}

/* ============ COLOR VARIABLES ============ */
/* The dark theme is the default. The light one is the same set of
   names further down, so every rule below works in both without
   asking which theme is on. */
:root{
  --bg:#0c0e12;
  --panel:#151920;
  --panel-2:#1b2029;
  --line:#262c37;
  --line-soft:#1f242d;
  --text:#e9edf3;
  --text-dim:#aab4c2;
  --muted:#8b97a8;
  --muted-2:#697585;
  --placeholder:#5d6878;
  --heading:#fff;
  --hover-line:#3b4350;
  --accent:#e01f26;
  --accent-2:#ff4d55;
  --accent-soft:rgba(224,31,38,.12);
  --header-bg:rgba(12,14,18,.82);
  --img-bg:#0f1218;
  --empty-bg:rgba(21,25,32,.4);
  --footer-bg:linear-gradient(180deg, rgba(21,25,32,.5), #090b0f);
  --scroll-thumb:#333a46;
  --scroll-thumb-hover:#414a59;
  --glow-a:rgba(224,31,38,.14);
  --glow-b:rgba(60,120,255,.09);
  --selection-bg:rgba(224,31,38,.32);
  --shadow:0 12px 32px rgba(0,0,0,.45);
  --shadow-lg:0 18px 44px rgba(0,0,0,.45);
  --toast-shadow:0 14px 36px rgba(0,0,0,.6);
  --radius:16px;
  --radius-sm:12px;
  --radius-pill:999px;
  --ring:2px solid var(--accent-2);
}

/* ============ LIGHT THEME ============ */
html[data-theme="light"]{
  --bg:#f2f5f9;
  --panel:#ffffff;
  --panel-2:#eceff5;
  --line:#dfe4ec;
  --line-soft:#eaedf3;
  --text:#141a24;
  --text-dim:#485367;
  --muted:#6d7889;
  --muted-2:#7d8798;
  --placeholder:#9ba5b4;
  --heading:#0d1220;
  /* A deeper red, so accent text keeps its contrast on white */
  --accent-2:#d31820;
  --accent-soft:rgba(224,31,38,.08);
  --header-bg:rgba(255,255,255,.86);
  --img-bg:#e9edf3;
  --empty-bg:rgba(255,255,255,.65);
  --footer-bg:linear-gradient(180deg, rgba(255,255,255,.6), #e7ecf3);
  --scroll-thumb:#c6cede;
  --scroll-thumb-hover:#aab5c7;
  --glow-a:rgba(224,31,38,.07);
  --glow-b:rgba(60,120,255,.07);
  --selection-bg:rgba(224,31,38,.2);
  --shadow:0 12px 28px rgba(17,26,44,.12);
  --shadow-lg:0 18px 40px rgba(17,26,44,.16);
  --toast-shadow:0 14px 32px rgba(17,26,44,.18);
}

/* ============ PAGE SETUP ============ */
html{scroll-behavior:smooth;scroll-padding-top:112px}

body{
  font-family:"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  background-image:
    radial-gradient(900px 520px at 85% -10%, var(--glow-a), transparent 62%),
    radial-gradient(760px 460px at -5% 8%, var(--glow-b), transparent 62%);
  background-attachment:fixed;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* Better Arabic rendering when the site is in Arabic mode */
html[lang="ar"] body{
  font-family:"Segoe UI","Tahoma","Arial","Helvetica",sans-serif;
  line-height:1.8;
}

img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}

.wrap{max-width:1240px;margin:0 auto;padding:0 22px}

/* ============ ACCESSIBILITY HELPERS ============ */
.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
/* One visible focus treatment for every interactive element */
:focus-visible{outline:var(--ring);outline-offset:3px}
:focus:not(:focus-visible){outline:none}

::selection{background:var(--selection-bg);color:var(--heading)}

/* Subtle scrollbar that matches the theme */
*{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:99px;border:2px solid var(--bg)}
*::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hover)}

/* ============ HEADER ============ */
.site-header{
  position:sticky;top:0;z-index:60;
  background:var(--header-bg);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:1240px;margin:0 auto;padding:13px 22px;
  display:flex;align-items:center;gap:18px;
}

.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}
.brand-mark{
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;
  font-weight:800;font-size:19px;color:#fff;
  background:linear-gradient(145deg,var(--accent-2),#96141a);
  box-shadow:0 4px 14px rgba(224,31,38,.32);
}
.brand-text{font-size:19px;font-weight:600;letter-spacing:.3px}
.brand-text b{color:var(--accent-2)}

/* Nine links plus the action buttons share one row above the breakpoint
   below, where the nav drops onto a row of its own instead. */
.main-nav{display:flex;gap:2px;margin-left:auto;flex-wrap:wrap}
.main-nav a{
  padding:8px 12px;border-radius:var(--radius-pill);font-size:14px;
  color:var(--muted);transition:color .2s, background .2s;white-space:nowrap;
}
.main-nav a:hover{color:var(--text);background:var(--panel-2)}

.header-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}

.search-field{display:flex;min-width:0}
.search{
  width:180px;padding:10px 16px;border-radius:var(--radius-pill);
  border:1px solid var(--line);background:var(--panel);
  color:var(--text);font-size:14px;outline:none;
  transition:border-color .22s, box-shadow .22s, width .22s;
}
.search::placeholder{color:var(--placeholder)}
/* Grows on focus. Kept modest: the header row is full, and a bigger jump
   shoves the nav onto a second line. */
.search:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(224,31,38,.14);
  width:200px;
}
/* The input is wrapped in a label for the visually-hidden text, so the
   focus ring has to travel to the input itself rather than the wrapper. */
.search-field:focus-within .search{border-color:var(--accent)}

/* ============ CIRCLE BUTTONS ============ */
.circle-btn{
  width:44px;height:44px;flex:0 0 44px;border-radius:50%;
  border:1px solid rgba(224,31,38,.4);
  background:linear-gradient(145deg,var(--accent-2),#951218);
  color:#fff;display:grid;place-items:center;cursor:pointer;
  box-shadow:0 4px 14px rgba(224,31,38,.28);
  transition:transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
  text-decoration:none;position:relative;
}
.circle-btn svg{width:19px;height:19px;fill:currentColor;display:block}
.circle-btn:hover{transform:scale(1.08);box-shadow:0 8px 22px rgba(224,31,38,.45)}
.circle-btn:active{transform:scale(.94)}
/* WhatsApp green, so it is recognisable before the icon is read */
.circle-btn.wa{
  border-color:rgba(37,211,102,.45);
  background:linear-gradient(145deg,#25d366,#128c7e);
  box-shadow:0 4px 14px rgba(18,140,126,.3);
}
.circle-btn.wa:hover{box-shadow:0 8px 22px rgba(18,140,126,.45)}

/* Language toggle — a quiet outline, not another red button */
.lang-toggle{
  width:38px;height:38px;flex:0 0 38px;font-size:13px;font-weight:800;
  letter-spacing:.4px;background:var(--panel-2);border-color:var(--line);
  color:var(--text-dim);box-shadow:none;
}
.lang-toggle:hover{background:var(--panel);color:var(--heading);border-color:var(--hover-line);box-shadow:none}
html[lang="ar"] .lang-toggle{font-size:11px}

/* Theme toggle — same quiet outline, sun/moon instead of letters */
.theme-toggle{
  width:38px;height:38px;flex:0 0 38px;
  background:var(--panel-2);border-color:var(--line);
  color:var(--text-dim);box-shadow:none;
}
.theme-toggle svg{width:17px;height:17px}
.theme-toggle:hover{background:var(--panel);color:var(--heading);border-color:var(--hover-line);box-shadow:none}

/* ============ HERO ============ */
.hero{padding:78px 0 52px;text-align:center}
.hero .badge{
  display:inline-block;padding:7px 18px;border-radius:var(--radius-pill);
  border:1px solid rgba(224,31,38,.32);background:var(--accent-soft);
  color:var(--accent-2);font-size:12.5px;letter-spacing:1.5px;
  text-transform:uppercase;margin-bottom:24px;font-weight:600;
}
html[lang="ar"] .hero .badge{letter-spacing:0;text-transform:none;font-size:14px}

.hero h1{
  font-size:clamp(34px,6vw,60px);line-height:1.08;
  font-weight:800;letter-spacing:-1.6px;
}
html[lang="ar"] .hero h1{letter-spacing:0;line-height:1.3}

.hero h1 span{
  background:linear-gradient(100deg,var(--accent-2),#ff9a9e);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
/* The pale pink end of the gradient disappears on a light background */
html[data-theme="light"] .hero h1 span{
  background:linear-gradient(100deg,#b4121a,#d94b46);
  -webkit-background-clip:text;background-clip:text;
}
.hero p{max-width:620px;margin:22px auto 34px;color:var(--text-dim);font-size:17px}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

.btn-pill{
  padding:13px 30px;border-radius:var(--radius-pill);font-size:15px;font-weight:600;
  border:1px solid transparent;cursor:pointer;
  transition:transform .2s, box-shadow .2s, border-color .2s, color .2s;
  display:inline-flex;align-items:center;gap:10px;
}
.btn-pill svg{width:18px;height:18px;fill:currentColor}
.btn-pill.primary{
  background:linear-gradient(145deg,var(--accent-2),#a8151b);
  color:#fff;box-shadow:0 8px 24px rgba(224,31,38,.3);
}
.btn-pill.primary:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(224,31,38,.42)}
.btn-pill.ghost{background:transparent;border-color:var(--line);color:var(--text)}
.btn-pill.ghost:hover{border-color:var(--hover-line);background:var(--panel)}
.btn-pill.wa{
  background:linear-gradient(145deg,#25d366,#128c7e);
  color:#fff;box-shadow:0 8px 24px rgba(18,140,126,.3);
}
.btn-pill.wa:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(18,140,126,.42)}

/* The phone number beside a WhatsApp button: shown, not clickable —
   the call button in the header and the floating one still dial. */
.call-plain{margin-top:16px;font-size:14px;color:var(--muted)}
.call-plain [data-phone-display]{
  color:var(--heading);font-weight:700;
  direction:ltr;unicode-bidi:isolate;display:inline-block;
}

.hero-stats{
  display:flex;justify-content:center;gap:54px;
  margin-top:54px;flex-wrap:wrap;
}
.hero-stats div{text-align:center}
.hero-stats strong{display:block;font-size:30px;font-weight:800;color:var(--heading);line-height:1.2}
.hero-stats small{color:var(--muted);font-size:12.5px;letter-spacing:1px;text-transform:uppercase}
html[lang="ar"] .hero-stats small{letter-spacing:0;text-transform:none;font-size:14px}

/* ============ SECTION TITLES ============ */
.section-title{text-align:center;margin-bottom:36px}
.section-title h2{font-size:clamp(23px,3.3vw,34px);font-weight:800;letter-spacing:-.8px}
html[lang="ar"] .section-title h2{letter-spacing:0}
.section-title p{color:var(--muted);margin-top:8px;font-size:15px}

/* ============ HOW TO ORDER ============ */
.steps{padding:18px 0 28px}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.step{
  border:1px solid var(--line);border-radius:var(--radius);
  background:var(--panel);padding:26px 24px;text-align:center;
  transition:border-color .24s, transform .24s;
}
.step:hover{transform:translateY(-4px);border-color:var(--hover-line)}
.step-num{
  width:46px;height:46px;margin:0 auto 14px;border-radius:50%;
  display:grid;place-items:center;font-size:18px;font-weight:800;
  color:var(--accent-2);background:var(--accent-soft);
  border:1px solid rgba(224,31,38,.28);
}
.step h3{font-size:16.5px;font-weight:700;margin-bottom:6px}
.step p{color:var(--muted);font-size:14px}

/* ============ MODEL CIRCLES ============ */
.models{padding:46px 0 60px}
.model-circles{display:flex;justify-content:center;flex-wrap:wrap;gap:26px 18px}
.model-circle{
  width:148px;color:var(--text);text-align:center;
  display:flex;flex-direction:column;align-items:center;
  gap:3px;cursor:pointer;font-weight:700;font-size:14.5px;
  transition:transform .24s cubic-bezier(.34,1.56,.64,1);
}
.model-circle-photo{
  width:118px;height:118px;border-radius:50%;overflow:hidden;
  display:block;background:var(--panel);
  border:2px solid var(--line);
  transition:border-color .22s, box-shadow .22s;
}
.model-circle-photo img{width:100%;height:100%;object-fit:cover;display:block}
.model-circle-blank{display:block;width:100%;height:100%}
.model-circle small{
  font-size:9.5px;font-weight:500;color:var(--muted);
  letter-spacing:.8px;text-transform:uppercase;
  max-width:124px;line-height:1.35;
}
html[lang="ar"] .model-circle small{letter-spacing:0;text-transform:none;font-size:11px}
.model-circle-name{display:block;margin-top:12px}
.model-circle-count{font-size:11px;color:var(--muted);font-weight:600}
.model-circle:hover{transform:translateY(-5px)}
.model-circle:hover .model-circle-photo{
  border-color:rgba(224,31,38,.6);
  box-shadow:0 12px 28px rgba(224,31,38,.26);
}

/* ============ MODEL HERO ============ */
.model-hero{
  position:relative;padding:52px 0 44px;
  border-bottom:1px solid var(--line);overflow:hidden;
}
.model-hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(700px 380px at 85% 10%, var(--accent), transparent 70%);
  opacity:.09;pointer-events:none;
}
.model-hero .wrap{position:relative;z-index:1}
.model-hero-grid{
  display:grid;grid-template-columns:1.15fr .85fr;
  gap:44px;align-items:center;
}
.model-hero-grid.no-photo{grid-template-columns:1fr}
.model-hero-text{min-width:0}
.model-hero-photo{
  border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);background:var(--panel);
  box-shadow:var(--shadow-lg);
  aspect-ratio:4/3;
}
.model-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.breadcrumb{
  display:inline-block;color:var(--muted);font-size:14px;
  margin-bottom:18px;transition:color .2s;
}
.breadcrumb:hover{color:var(--text)}
.model-hero .chip{
  display:inline-block;padding:5px 14px;border-radius:var(--radius-pill);
  background:var(--accent-soft);border:1px solid rgba(224,31,38,.28);
  color:var(--accent-2);font-size:11.5px;letter-spacing:1.2px;font-weight:600;
  text-transform:uppercase;margin-bottom:14px;
}
html[lang="ar"] .model-hero .chip{letter-spacing:0;text-transform:none;font-size:13px}
.model-hero h1{
  font-size:clamp(32px,5vw,54px);font-weight:800;
  letter-spacing:-1.6px;line-height:1.08;
}
html[lang="ar"] .model-hero h1{letter-spacing:0;line-height:1.3}
.model-hero .years{color:var(--muted);font-size:15px;margin:10px 0 14px}
.model-hero .desc{color:var(--text-dim);font-size:16px;max-width:640px}
.car-meta{display:flex;gap:34px;margin-top:26px;flex-wrap:wrap}
.car-meta span{font-size:13px;color:var(--muted)}
.car-meta strong{display:block;color:var(--heading);font-size:22px;font-weight:800;line-height:1.3}

/* ============ PARTS SECTIONS ============ */
.parts-section{padding:48px 0 60px}
.global-search{padding:48px 0 60px}

.parts-header{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:16px;margin-bottom:26px;padding-bottom:15px;
  border-bottom:1px solid var(--line);flex-wrap:wrap;
}
.parts-header h2{font-size:clamp(21px,3vw,29px);font-weight:800;letter-spacing:-.7px}
html[lang="ar"] .parts-header h2{letter-spacing:0}
.parts-count{font-size:12.5px;color:var(--muted);letter-spacing:1px;text-transform:uppercase}
html[lang="ar"] .parts-count{letter-spacing:0;text-transform:none;font-size:14px}

.parts-note{margin-top:7px;font-size:13px;color:var(--text-dim)}
html[lang="ar"] .parts-note{font-size:14px}

/* ============ PARTS TABLE ============
   Parts are listed, not pictured: one row each, grouped under a
   category heading, carrying the number the customer reads out. */
.parts-table-wrap{
  border:1px solid var(--line);border-radius:var(--radius);
  background:var(--panel);overflow-x:auto;
}
/* A model with no parts yet renders no table — no empty box. */
.parts-table-wrap:empty{display:none}

.parts-table{width:100%;border-collapse:collapse}

.parts-table thead th{
  padding:13px 16px;text-align:start;
  font-size:11px;font-weight:700;letter-spacing:1.1px;
  text-transform:uppercase;color:var(--muted-2);
  background:var(--panel-2);border-bottom:1px solid var(--line);
  white-space:nowrap;
}
html[lang="ar"] .parts-table thead th{letter-spacing:0;text-transform:none;font-size:12.5px}

/* The search filter sets the hidden attribute on rows, and on a whole
   category once its last row is gone. A bare [hidden] loses to
   display:table-row and table-row-group, so say it outright. */
.parts-table tbody[hidden],
.parts-table tr[hidden]{display:none}

.cat-row th{
  padding:11px 16px;text-align:start;
  font-size:12px;font-weight:800;letter-spacing:1.3px;
  text-transform:uppercase;color:var(--accent-2);
  background:var(--panel-2);border-bottom:1px solid var(--line);
}
html[lang="ar"] .cat-row th{letter-spacing:0;text-transform:none;font-size:14px}
/* Each category after the first gets a rule above its heading, so the
   groups read as separate blocks without a gap opening in the table. */
.parts-table tbody + tbody .cat-row th{border-top:1px solid var(--line)}

.cat-count{
  display:inline-block;margin-inline-start:8px;padding:1px 8px;
  border-radius:var(--radius-pill);background:var(--panel);
  border:1px solid var(--line);vertical-align:middle;
  font-size:11px;font-weight:700;color:var(--muted);
}

.part-row td{
  padding:12px 16px;border-bottom:1px solid var(--line-soft);
  vertical-align:middle;
}
.part-row:last-child td{border-bottom:0}
.part-row:hover td{background:var(--panel-2)}

/* These shrink to fit their contents; the name takes what is left. */
.col-model,.col-no,.col-status,.col-call{width:1%;white-space:nowrap}

.part-no{
  display:inline-block;direction:ltr;unicode-bidi:isolate;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12.5px;letter-spacing:.3px;color:var(--text-dim);
}
.part-name{color:var(--heading);font-weight:600;line-height:1.45}
.part-row.is-sold-out .part-name{color:var(--muted);font-weight:500}

.car-badge{
  display:inline-block;padding:4px 11px;border-radius:var(--radius-pill);
  font-size:10.5px;font-weight:700;letter-spacing:.8px;
  text-transform:uppercase;color:#fff;white-space:nowrap;
}
html[lang="ar"] .car-badge{letter-spacing:0;text-transform:none;font-size:12px}

.status-badge{
  display:inline-block;padding:4px 11px;border-radius:var(--radius-pill);
  border:1px solid var(--line);background:var(--panel-2);
  font-size:11.5px;font-weight:700;color:var(--muted);white-space:nowrap;
}
html[lang="ar"] .status-badge{font-size:12.5px}
/* The sold-out logo. Flip is_sold_out on the car_parts row to raise it. */
.status-badge.sold-out{
  border-color:transparent;color:#fff;
  background:linear-gradient(145deg,var(--accent-2),#951218);
}

.row-wa{width:38px;height:38px;flex:0 0 38px}
.row-wa svg{width:17px;height:17px}

/* ============ EMPTY STATE ============ */
.empty-state{
  text-align:center;padding:58px 20px;
  border:1px dashed var(--line);border-radius:var(--radius);
  margin-top:20px;background:var(--empty-bg);
}
.empty-state h3{font-size:19px;font-weight:700;margin-bottom:8px}
.empty-state p{color:var(--muted);font-size:15px;margin-bottom:22px}

/* ============ CALL BANNER ============ */
.call-banner{margin:10px 0 76px}
.call-banner-inner{
  border:1px solid rgba(224,31,38,.28);border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(224,31,38,.12), var(--panel) 62%);
  padding:32px 30px;display:flex;align-items:center;
  justify-content:space-between;gap:26px;flex-wrap:wrap;
}
.call-banner h3{font-size:clamp(19px,2.6vw,27px);font-weight:800;letter-spacing:-.6px}
html[lang="ar"] .call-banner h3{letter-spacing:0}
.call-banner p{color:var(--text-dim);font-size:15px;margin-top:6px}
.call-banner .btn-pill{flex-shrink:0}
/* Button above, the number as plain text below it */
.call-banner-action{display:flex;flex-direction:column;align-items:center;flex-shrink:0}
.call-banner-action .call-plain{margin-top:12px}

/* ============ FLOATING CONTACT BUTTONS ============
   One stack in the corner of every page; WhatsApp sits at the
   bottom, nearest the thumb. */
/* align-items keeps the WhatsApp button a circle: without it, flex would
   stretch it to match the phone pill as that one opens out. */
.float-actions{
  position:fixed;left:24px;bottom:24px;z-index:70;
  display:flex;flex-direction:column;gap:12px;align-items:flex-start;
}
.float-wa{
  width:58px;height:58px;border-radius:50%;
  color:#fff;display:grid;place-items:center;
  transition:transform .24s cubic-bezier(.34,1.56,.64,1), box-shadow .24s;
}
.float-wa svg{width:24px;height:24px;fill:currentColor}
.float-wa{
  background:linear-gradient(145deg,#25d366,#128c7e);
  box-shadow:0 8px 24px rgba(18,140,126,.42);
}
.float-wa:hover{transform:scale(1.07);box-shadow:0 12px 30px rgba(18,140,126,.55)}

/* The phone number, shown not dialled: a circle that opens out on hover.
   width:max-content holds the number at its natural size, and max-width
   clamps the pill shut — so the reveal needs no hard-coded end width and
   cannot clip however the number is written. Not a link, so no pointer. */
.float-phone{
  display:flex;align-items:center;gap:10px;
  width:max-content;max-width:58px;height:58px;padding:0 17px;
  border-radius:var(--radius-pill);overflow:hidden;cursor:default;
  background:linear-gradient(145deg,var(--accent-2),#951218);
  color:#fff;box-shadow:0 8px 24px rgba(224,31,38,.42);
  transition:max-width .36s cubic-bezier(.34,1.1,.64,1), box-shadow .24s;
}
.float-phone svg{width:24px;height:24px;fill:currentColor;flex:none}
.float-phone-num{
  flex:none;white-space:nowrap;opacity:0;
  font-size:14px;font-weight:700;
  direction:ltr;unicode-bidi:isolate;
  transition:opacity .18s .08s;
}
.float-phone:hover{max-width:300px;box-shadow:0 12px 30px rgba(224,31,38,.55)}
.float-phone:hover .float-phone-num{opacity:1}

/* ============ BACK TO TOP ============ */
.to-top{
  position:fixed;right:24px;bottom:24px;width:52px;height:52px;
  border-radius:50%;border:1px solid var(--line);
  background:var(--panel-2);color:var(--text-dim);font-size:20px;
  display:grid;place-items:center;cursor:pointer;
  opacity:0;pointer-events:none;transition:opacity .28s, transform .28s, background .2s;
  z-index:70;
}
.to-top.show{opacity:1;pointer-events:auto}
.to-top:hover{background:var(--panel);border-color:var(--hover-line);color:var(--heading);transform:translateY(-3px)}

/* ============ TOAST ============ */
.toast{
  position:fixed;left:50%;bottom:32px;
  transform:translate(-50%,150%);
  background:var(--panel-2);border:1px solid var(--line);
  color:var(--text);padding:13px 26px;border-radius:var(--radius-pill);
  font-size:14px;font-weight:600;
  box-shadow:var(--toast-shadow);
  transition:transform .34s cubic-bezier(.34,1.56,.64,1);
  z-index:90;max-width:90vw;text-align:center;
}
.toast.show{transform:translate(-50%,0)}

/* ============ FOOTER ============ */
.site-footer{
  border-top:1px solid var(--line);
  background:var(--footer-bg);
  padding:54px 0 0;
}
.footer-inner{
  max-width:1240px;margin:0 auto;padding:0 22px 44px;
  display:grid;grid-template-columns:1.8fr 1fr 1.2fr;gap:40px;
}
.footer-brand p{color:var(--muted);font-size:14px;margin-top:16px;max-width:310px}
.footer-col h4{
  font-size:12.5px;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--accent-2);margin-bottom:15px;font-weight:700;
}
html[lang="ar"] .footer-col h4{letter-spacing:0;text-transform:none;font-size:15px}
.footer-col a,.footer-col li{
  display:block;color:var(--muted);font-size:14px;
  padding:5px 0;list-style:none;transition:color .2s, padding .2s;
}
.footer-list{margin:6px 0 0}
/* Logical property so hover indent flips in RTL automatically */
.footer-col a:hover{color:var(--heading);padding-inline-start:5px}

.footer-phone{
  display:flex;align-items:center;gap:12px;margin-top:6px;
  font-size:17px;font-weight:800;color:var(--heading);
}
.footer-phone .mini-circle{
  width:38px;height:38px;flex:0 0 38px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(145deg,var(--accent-2),#951218);
  box-shadow:0 4px 14px rgba(224,31,38,.3);
}
.footer-phone .mini-circle svg{width:16px;height:16px;fill:#fff}
.footer-phone:hover{padding-inline-start:0;color:var(--heading)}

.footer-bottom{
  border-top:1px solid var(--line);padding:22px;
  text-align:center;font-size:13px;color:var(--muted-2);
}

/* ============ RTL FIXES ============ */
/* When document direction is RTL, flip the corner buttons */
[dir="rtl"] .float-actions{left:auto;right:24px}
[dir="rtl"] .to-top{right:auto;left:24px}
[dir="rtl"] .car-badge{left:auto;right:11px}

/* ============ RESPONSIVE ============ */
/* Below this the nine nav links no longer fit beside the action buttons —
   counting the extra width the search box takes when focused — so the nav
   takes a row of its own and scrolls sideways if it has to. */
@media (max-width:1240px){
  .header-inner{flex-wrap:wrap;gap:12px}
  .brand{order:1}
  .header-actions{order:2;margin-left:auto}
  .main-nav{
    order:3;display:flex;width:100%;margin-left:0;
    overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;gap:6px;padding-bottom:2px;
  }
  .main-nav::-webkit-scrollbar{display:none}
  .main-nav a{flex-shrink:0;background:var(--panel);border:1px solid var(--line);padding:7px 14px}
}
@media (max-width:1020px){
  .footer-inner{grid-template-columns:1fr 1fr}
  .steps-grid{grid-template-columns:1fr}
}
@media (max-width:860px){
  /* Stack the model photo under its heading rather than beside it */
  .model-hero-grid{grid-template-columns:1fr;gap:28px}
  .model-hero-photo{max-width:560px}
}
@media (max-width:780px){
  .hero{padding:52px 0 38px}
  .hero-stats{gap:32px;margin-top:44px}
  .model-circles{gap:20px 14px}
  .model-circle{width:126px;font-size:13.5px}
  .model-circle-photo{width:98px;height:98px}
  .model-circle small{max-width:104px}
  .call-banner-inner{justify-content:center;text-align:center}
  .model-hero{padding:38px 0 32px}
  .search{width:150px}
  .search:focus{width:175px}
  html{scroll-padding-top:138px}
}
/* Narrower than this the four columns cannot hold their contents, so each
   part becomes its own little block — name, number, status — with the call
   button pinned to the corner. */
@media (max-width:640px){
  .parts-table-wrap{border:0;border-radius:0;background:transparent;overflow-x:visible}
  .parts-table,
  .parts-table tbody,
  .parts-table tr,
  .parts-table th,
  .parts-table td{display:block}
  .parts-table thead{display:none}

  .cat-row{margin:0 0 10px}
  .cat-row th{display:block;padding:0 2px;border:0;background:transparent}
  .parts-table tbody + tbody .cat-row{margin-top:24px}

  .part-row{
    display:flex;flex-direction:column;position:relative;
    margin-bottom:10px;padding:13px 14px;
    border:1px solid var(--line);border-radius:var(--radius-sm);
    background:var(--panel);
  }
  .part-row td{padding:0;border:0}
  .part-row:hover td{background:transparent}

  /* These four are shrink-to-fit columns in the table above; stacked, they
     have to go back to full width or a 1%-wide box spills its contents. */
  .col-model,.col-no,.col-status,.col-call{width:auto;white-space:normal}

  .col-name{order:1}
  .col-model{order:2;margin-top:8px}
  .col-no{order:3;margin-top:7px}
  .col-status{order:4;margin-top:9px}

  .col-call{position:absolute;inset-inline-end:14px;top:13px}
}

@media (max-width:520px){
  .header-actions{width:100%}
  .search-field{flex:1}
  .search{width:100%}
  .search:focus{width:100%}
  .footer-inner{grid-template-columns:1fr;gap:28px}
  .parts-header{margin-bottom:20px}
  .float-actions{left:15px;bottom:15px;gap:10px}
  .float-phone,.float-wa{height:52px}
  .float-phone{max-width:52px;padding:0 14px}
  .float-wa{width:52px}
  .to-top{right:15px;bottom:15px;width:48px;height:48px}
  [dir="rtl"] .float-actions{left:auto;right:15px}
  [dir="rtl"] .to-top{right:auto;left:15px}
  .toast{bottom:78px}
  .lang-toggle{width:36px;height:36px;flex:0 0 36px;font-size:12px}
  .theme-toggle{width:36px;height:36px;flex:0 0 36px}
}
@media (max-width:400px){
  .part-row{padding:12px}
  .col-call{inset-inline-end:12px;top:12px}
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .model-circle:hover,
  .step:hover,
  .btn-pill.primary:hover,
  .to-top:hover{transform:none}
}
