/* ============ Auto parts trade site — light theme ============ */
:root {
  --navy: #0a3b28;      /* brand green */
  --navy2: #114933;
  --accent: #8a6a2f;    /* brand gold */
  --accent2: #c9a75c;   /* light gold */
  --bg: #ffffff;
  --bg-soft: #f4f6f1;
  --text: #22302b;
  --muted: #66746d;
  --line: #e3e8e2;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(10, 59, 40, .09);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
[dir="rtl"] .wrap { direction: rtl; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: .2s; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6f5524; transform: translateY(-1px); }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-quote { background: var(--accent); color: #fff; padding: 9px 20px; font-size: 14px; }
.btn-quote:hover { background: #6f5524; }

/* ---------- header ---------- */
.topbar { background: var(--navy); color: #c9d6ce; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.lang-sw button {
  background: none; border: 1px solid rgba(255,255,255,.25); color: #c9d6ce; font-size: 11px;
  padding: 2px 8px; margin-inline-start: 5px; border-radius: 4px; cursor: pointer;
}
.lang-sw button.on, .lang-sw button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.navbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); }
.logo-badge {
  background: var(--accent); color: #fff; width: 38px; height: 38px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; letter-spacing: .5px;
}
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--muted); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a.on, .nav-links a:hover { color: var(--navy); border-color: var(--accent); }
/* products hover dropdown */
.has-drop { position: relative; display: inline-block; }
.nav-drop {
  position: absolute; top: 100%; inset-inline-start: -14px; min-width: 216px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px 0; display: none; z-index: 60;
}
.has-drop:hover .nav-drop { display: block; }
.nav-drop a {
  display: block; padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--line); border-radius: 0;
}
.nav-drop a:last-child { border-bottom: none; }
.nav-drop a:hover { background: var(--bg-soft); color: var(--accent); }
/* second level: models flyout */
.drop-item { position: relative; }
.drop-item > a { display: flex; justify-content: space-between; align-items: center; }
.drop-item > a::after { content: "▸"; color: var(--accent); font-size: 11px; }
.nav-sub {
  position: absolute; top: -7px; inset-inline-start: 100%; min-width: 176px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px 0; display: none; max-height: 340px; overflow-y: auto;
}
.drop-item:hover .nav-sub { display: block; }
.nav-sub a { border-bottom: 1px solid var(--line); font-weight: 500; padding: 7px 14px; font-size: 13px; }
/* sidebar model accordion */
.side-item .tw { cursor: pointer; color: var(--accent); font-size: 11px; transition: transform .15s; user-select: none; padding: 2px 4px; }
.side-item .lbl { flex: 1; }
.side-models { margin: 2px 0 8px 8px; border-inline-start: 2px solid var(--line); padding-inline-start: 6px; }
.side-model { padding: 5px 10px; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 6px; font-weight: 500; }
.side-model:hover { background: var(--bg-soft); color: var(--navy); }
.nav-burger { display: none; background: none; border: none; font-size: 24px; color: var(--navy); cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 20px 16px; border-top: 1px solid var(--line); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 10px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
[dir="rtl"] .nav-links, [dir="rtl"] .nav-mobile { direction: rtl; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy2) 55%, #34506e 100%);
  color: #fff; padding: 96px 0 110px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset-inline-end: -120px; top: -80px; width: 460px; height: 460px;
  border-radius: 50%; border: 70px solid rgba(255,255,255,.05);
}
.hero-badge {
  display: inline-block; background: rgba(201,167,92,.15); border: 1px solid rgba(201,167,92,.5);
  color: #e6cf8f; font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; line-height: 1.2; max-width: 720px; margin-bottom: 18px; }
.hero h1 em { color: var(--accent2); font-style: normal; }
.hero p { max-width: 640px; color: #b9c4d2; font-size: 17px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--accent2); color: #0a3b28; }
.hero .btn-primary:hover { background: #d9bc76; }

/* ---------- stats strip ---------- */
.stats { background: #fff; box-shadow: var(--shadow); border-radius: 14px; margin-top: -54px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 10px; }
.stat { text-align: center; border-inline-end: 1px solid var(--line); }
.stat:last-child { border: none; }
.stat b { display: block; font-size: 30px; color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
section.block { padding: 76px 0; }
section.block.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.sec-head h2 { font-size: 32px; color: var(--navy); margin-bottom: 10px; }
.sec-head h2::after { content: ""; display: block; width: 46px; height: 3px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }
.sec-head p { color: var(--muted); }

/* ---------- brand cards ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.brand-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; text-align: center;
  transition: .2s; background: #fff;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-logo {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px;
}
.brand-card h3 { color: var(--navy); margin-bottom: 6px; }
.brand-card p { color: var(--muted); font-size: 14px; }
.brand-card .models { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.brand-card .models span { background: var(--bg-soft); border-radius: 14px; padding: 3px 12px; font-size: 12px; color: var(--navy2); font-weight: 600; }
.brand-card .models span.more { background: var(--accent); color: #fff; }
.brand-grid { grid-auto-rows: 1fr; }

/* ---------- product grid ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-card img { width: 100%; height: 190px; object-fit: cover; }
.p-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; letter-spacing: .4px; }
.p-body h3 { font-size: 16px; color: var(--navy); line-height: 1.4; flex: 1; }
.p-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.p-meta b { color: var(--text); }
.p-body .btn { padding: 9px 0; font-size: 14px; }
.no-results { text-align: center; color: var(--muted); padding: 60px 0; font-size: 17px; grid-column: 1/-1; }

/* ---------- catalog toolbar ---------- */
.catalog-layout { display: grid; grid-template-columns: 252px 1fr; gap: 28px; align-items: start; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.side-card h3 {
  font-size: 15px; color: var(--navy); margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent); display: inline-block; letter-spacing: .3px;
}
.side-item {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px;
  color: var(--muted); font-weight: 600; transition: .15s;
}
.side-item:hover, .side-item.on { background: var(--bg-soft); color: var(--navy); }
.side-item .cnt { color: var(--muted); font-weight: 400; font-size: 12px; }
@media (max-width: 900px) { .catalog-layout { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.toolbar input, .toolbar select {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; color: var(--text);
}
.toolbar input { flex: 1; min-width: 220px; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ---------- why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { background: #fff; border-radius: var(--radius); padding: 28px 22px; border: 1px solid var(--line); }
.why-item .ico { font-size: 30px; margin-bottom: 14px; }
.why-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.why-item p { font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, #14503a, #0a3b28); color: #fff; text-align: center; padding: 66px 0; }
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { opacity: .9; margin-bottom: 26px; }
.cta-band .btn { background: var(--accent2); color: #0a3b28; font-weight: 700; }

/* ---------- about page ---------- */
.about-story { max-width: 800px; margin: 0 auto 50px; color: var(--muted); font-size: 16.5px; display: grid; gap: 16px; }
.about-story p { line-height: 1.85; }
.strength-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 60px; }
.strength { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.strength h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.strength h3::before { content: "✔"; color: var(--accent); margin-inline-end: 8px; }
.strength p { color: var(--muted); font-size: 14.5px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 64px; }
.step { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 14px; }
.step b { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.step h4 { color: var(--navy); font-size: 15.5px; }
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 16px 20px; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.form-card, .info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card label { font-size: 13px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 5px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: var(--bg-soft); color: var(--text);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid rgba(138,106,47,.4); border-color: var(--accent); }
.form-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.form-msg { margin-top: 14px; font-size: 14px; font-weight: 600; display: none; }
.form-msg.ok { display: block; color: #1a7f37; }
.form-msg.err { display: block; color: #b3261e; }
.info-card h3 { color: var(--navy); margin-bottom: 16px; }
.info-line { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.info-line b { color: var(--text); display: block; }
.info-line .ico { font-size: 20px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #b9c4d2; margin-top: 80px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 52px 20px 34px; }
.footer .logo-text { color: #fff; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 15px; }
.footer-grid > div > a, .footer-grid > div > span { display: block; padding: 4px 0; color: #b9c4d2; }
.footer-grid > div > a:hover { color: #fff; }
.footer-blurb { margin-top: 14px; max-width: 340px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #9db3a8; }
.footer-note { max-width: 520px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 34px; margin-bottom: 8px; }
.page-hero p { color: #b9c4d2; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; margin-inline-start: auto; }
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat:nth-child(2) { border: none; }
  .brand-grid, .why-grid, .process { grid-template-columns: 1fr 1fr; }
  .contact-grid, .strength-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .brand-grid, .why-grid, .process, .stats-grid { grid-template-columns: 1fr; }
  .stat { border: none; }
  .hero h1 { font-size: 26px; }
  .sec-head h2 { font-size: 25px; }
}

/* ---------- image lightbox ---------- */
.p-img { cursor: zoom-in; transition: transform .25s; }
.p-card:hover .p-img { transform: scale(1.04); }
.ap-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  background: rgba(10, 20, 15, .88); padding: 30px; }
.ap-lightbox.open { display: flex; }
.ap-lightbox figure { margin: 0; text-align: center; max-width: 94vw; }
.ap-lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.ap-lightbox figcaption { color: #fff; margin-top: 14px; font-size: 15px; opacity: .9; }
.ap-lb-close { position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff;
  font-size: 44px; line-height: 1; cursor: pointer; opacity: .8; }
.ap-lb-close:hover { opacity: 1; }

/* ---------- seo text block ---------- */
#seo-text h2 { font-size: 22px; margin-bottom: 14px; }
#seo-text p { max-width: 960px; margin: 0 0 12px; color: #4a544d; font-size: 15px; line-height: 1.8; }
