/* ================================================================
   كار إنجين | Car Engine — نظام التصميم (Mobile First, RTL)
   ================================================================ */
:root {
  --maroon: #650D20;
  --maroon-2: #7A1428;
  --maroon-dark: #390710;
  --maroon-deep: #2A050C;
  --black: #090909;
  --card: #171315;
  --white: #FFFFFF;
  --gray: #BDB8BA;
  --gray-2: #6E6669;
  --ink: #1D1719;
  --muted: #5D5457;
  --line: #E9E3E5;
  --soft: #F6F2F3;
  --accent: #E25C73;
  --wa: #1FA855;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow: 0 6px 18px rgba(40, 6, 14, .10), 0 1px 3px rgba(40, 6, 14, .08);
  --font: 'Cairo', 'Segoe UI', Tahoma, 'Noto Sans Arabic', 'Geeza Pro', sans-serif;
  --gutter: 14px;
  --dock-h: 112px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: #fff;
  font-size: 16px; line-height: 1.75; overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + var(--safe-b));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; right: 10px; background: var(--maroon); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #7B1228, #5A0B1C); color: #fff; border-color: #8E2338; }
.btn-primary:hover { background: linear-gradient(180deg, #8A162E, #650D20); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #19944A; }
.btn-outline { background: #fff; color: var(--maroon); border-color: var(--maroon); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light { background: #fff; color: var(--maroon); }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: linear-gradient(180deg, #4E0A18, #3F0813); color: #fff; font-size: 11.5px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 8px; }
.tb-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tb-item .ic { width: 15px; height: 15px; }
.tb-sep { width: 1px; height: 16px; background: rgba(255,255,255,.55); flex: none; }
.tb-hours { display: none; }
.tb-wa .ic { width: 17px; height: 17px; }
.tb-wa-txt { display: none; }
@media (min-width: 600px) { .tb-hours { display: inline-flex; } span.tb-sep.tb-hours { display: block; } .tb-wa-txt { display: inline; } }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 6px; color: var(--black); margin-inline-end: auto; }
.logo-emblem { width: 34px; height: 34px; flex: none; }
.logo-text { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 9px; }
.logo-roof { position: absolute; top: -1px; inset-inline: -8px -2px; width: calc(100% + 10px); height: 13px; }
.logo-ar { font-size: 16px; font-weight: 800; line-height: 1.1; letter-spacing: -.2px; }
.logo-en { font-size: 8.5px; font-weight: 700; color: var(--maroon); line-height: 1.3; letter-spacing: .2px; white-space: nowrap; }
.logo--light { color: #fff; }
.logo--light .logo-emblem path:first-child { fill: #fff; }
.logo--light .logo-emblem circle { fill: var(--black); }
.logo--light .logo-en { color: var(--gray); }
.logo--light .logo-roof path { stroke: var(--accent); }
.btn-book { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; background: linear-gradient(180deg, #6E1124, #4D0A19); color: #fff; box-shadow: 0 2px 6px rgba(80,10,25,.25); }
.btn-book .ic { width: 19px; height: 19px; }
.menu-btn { background: none; border: 0; padding: 6px; color: var(--maroon-dark); cursor: pointer; display: inline-flex; }
.menu-btn .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.desk-nav { display: none; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(9,9,9,.55); z-index: 60; }
.drawer {
  position: fixed; inset-block: 0; left: 0; width: min(86vw, 360px); background: #fff; z-index: 61;
  overflow-y: auto; padding: 14px 16px calc(24px + var(--safe-b)); box-shadow: 0 0 40px rgba(0,0,0,.3);
  transform: translateX(-100%); transition: transform .25s ease;
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.drawer-close { background: var(--soft); border: 0; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--maroon); }
.drawer-list, .drawer-list ul { list-style: none; margin: 0; padding: 0; }
.drawer-list > li > a { display: block; padding: 11px 4px; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer-list a[aria-current] { color: var(--maroon); }
.drawer-sub > span { display: block; margin-top: 12px; font-size: 13px; color: var(--gray-2); font-weight: 700; }
.drawer-sub ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.drawer-sub a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); }
.drawer-actions { display: grid; gap: 8px; margin-top: 16px; }

/* ================================================================
   HOME — Hero
   ================================================================ */
.hero { position: relative; background: #151012; color: #fff; overflow: hidden; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 214px; display: flex; align-items: center; }
.slide-media { position: absolute; inset-block: 0; left: 0; width: 60%; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 60%; }
.slide-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, #151012 0%, rgba(21,16,18,.82) 14%, rgba(21,16,18,0) 48%), linear-gradient(0deg, rgba(21,16,18,.35), rgba(21,16,18,0) 40%);
}
.slide::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(101,13,32,.35), transparent 60%); pointer-events: none; }
.slide-text { position: relative; z-index: 1; margin-inline-start: 0; width: 58%; padding: 14px var(--gutter) 30px 0; }
.slide .eyebrow { color: var(--accent); font-size: 11.5px; font-weight: 600; margin: 0 0 2px; line-height: 1.5; }
.slide h1, .slide .h1 { font-size: 24px; line-height: 1.3; font-weight: 800; margin: 0 0 6px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.slide h1 small, .slide .h1 small { display: block; font-size: .52em; font-weight: 700; color: #F1E9EB; margin-top: 2px; }
.slide-desc { font-size: 11px; line-height: 1.65; color: #EDE6E8; margin: 0 0 10px; }
.btn-hero { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; background: linear-gradient(180deg, #7E1429, #5E0C1E); border: 1.5px solid #B23A51; color: #fff; }
.btn-hero .ic { width: 17px; height: 17px; }
.hero-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; direction: ltr; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button[aria-current="true"] { background: var(--accent); }

/* ---------- Features strip ---------- */
.features { background: linear-gradient(180deg, #43091A 0%, #2E060F 100%); color: #fff; }
.features ul { list-style: none; margin: 0; padding: 12px 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); }
.features li { text-align: center; padding: 2px 4px; position: relative; }
.features li + li::before { content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 1px; background: rgba(255,255,255,.18); }
.feat-ic { width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #94203A, #6A0F22); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 3px 8px rgba(0,0,0,.3); }
.feat-ic .ic { width: 20px; height: 20px; }
.features h3 { font-size: 11.5px; font-weight: 700; margin: 0; line-height: 1.4; }
.features span.en { display: block; font-size: 9.5px; color: #D7CDD0; line-height: 1.4; }

/* ---------- Section titles ---------- */
.sec { padding: 22px 0; }
.sec-soft { background: var(--soft); }
.title-lined { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--maroon); font-size: 17px; text-align: center; margin: 0 0 10px; }
.title-lined::before, .title-lined::after { content: ""; flex: 0 1 56px; height: 1px; background: var(--maroon); opacity: .65; }
.title-under { color: var(--maroon); font-size: 17px; display: inline-block; margin: 0 0 12px; position: relative; padding-bottom: 4px; }
.title-under::after { content: ""; position: absolute; bottom: 0; right: 0; width: 70%; height: 2.5px; background: var(--maroon); border-radius: 2px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.sec-head .see-all { font-size: 12px; white-space: nowrap; color: var(--maroon); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; }
.sec-lead { color: var(--muted); font-size: 14.5px; max-width: 760px; }

/* ---------- Brands ---------- */
.brands-sec { padding: 12px 0 14px; background: #fff; border-bottom: 1px solid var(--line); }
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); direction: ltr; }
.brands li + li { border-left: 1px solid var(--line); }
.brand { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 2px 3px; color: #2A2426; transition: color .2s; }
.brand:hover { color: var(--maroon); }
.brand-word { font-size: 10.5px; font-weight: 700; letter-spacing: .1px; white-space: nowrap; font-family: 'Segoe UI', Arial, var(--font); }
.brand--mercedes .brand-word { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 10px; }
.brand--bmw .brand-word { font-weight: 800; letter-spacing: .5px; }
.brand--audi .brand-word { color: #B3121F; font-weight: 800; letter-spacing: .4px; }
.brand--porsche .brand-word { font-weight: 700; letter-spacing: .3px; }
.brand--volkswagen .brand-word { font-weight: 500; }

/* ---------- Service cards ---------- */
.svc-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: none; }
.svc-rail::-webkit-scrollbar { display: none; }
.svc-rail > * { scroll-snap-align: start; }
.svc-card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.svc-link { display: flex; flex-direction: column; height: 100%; }
.svc-img { aspect-ratio: 2.65 / 1; overflow: hidden; background: #1a1416; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 8px 6px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.svc-body h3 { font-size: 11.5px; white-space: nowrap; color: var(--maroon); margin: 0 0 2px; font-weight: 800; }
.svc-body p { font-size: 10.5px; line-height: 1.6; color: #3A3235; margin: 0 0 8px; flex: 1; }
.svc-go { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, #7B1228, #5A0B1C); color: #fff; display: grid; place-items: center; }
.svc-go .ic { width: 16px; height: 16px; }
.rail-dots { display: flex; justify-content: center; gap: 7px; direction: ltr; }
.rail-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #D4CDD0; cursor: pointer; }
.rail-dots button[aria-current="true"] { background: var(--maroon); }

.grid-svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid-svc .svc-body h3 { font-size: 14px; white-space: normal; }
.related .svc-body h3 { white-space: normal; }
.grid-svc .svc-body p { font-size: 12.5px; }

/* ---------- Cars / offers / posts cards ---------- */
.grid-cars { display: grid; grid-template-columns: 1fr; gap: 10px; }
.car-card a { display: block; height: 100%; padding: 16px; border-radius: var(--radius); background: linear-gradient(160deg, #1E1719, #0E0B0C); color: #fff; border: 1px solid #2B2226; position: relative; overflow: hidden; }
.car-card a::after { content: ""; position: absolute; inset: auto -30px -40px auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(101,13,32,.55), transparent 70%); }
.car-word { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .5px; color: var(--accent); direction: ltr; margin-bottom: 4px; }
.car-card h3 { font-size: 17px; margin: 0 0 4px; }
.car-card p { font-size: 13.5px; color: #CFC6C9; margin: 0 0 8px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent); }
.grid-offers { display: grid; grid-template-columns: 1fr; gap: 12px; }
.offer-card a, .post-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.offer-img, .post-img { position: relative; aspect-ratio: 2.7 / 1; overflow: hidden; background: #1a1416; }
.offer-img img, .post-img img { width: 100%; height: 100%; object-fit: cover; }
.offer-tag { position: absolute; top: 10px; right: 10px; background: var(--maroon); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.offer-body, .post-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.offer-body h3, .post-body h3 { font-size: 16px; color: var(--maroon-dark); margin: 0 0 4px; }
.offer-body p, .post-body p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; flex: 1; }
.offer-body .more { color: var(--maroon); }
.grid-posts { display: grid; grid-template-columns: 1fr; gap: 12px; }
.post-cat { font-size: 11.5px; font-weight: 700; color: var(--maroon); background: #F7E8EB; border-radius: 20px; padding: 1px 10px; align-self: flex-start; margin-bottom: 6px; }
.post-body time { font-size: 12px; color: var(--gray-2); }

/* ---------- Home: about + location ---------- */
.about-grid { display: grid; gap: 16px; }
.about-grid p { color: var(--muted); font-size: 15px; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.check-list .ic { color: var(--maroon); margin-top: 4px; }
.loc-card { background: var(--card); color: #fff; border-radius: var(--radius); padding: 18px; }
.loc-card h2, .loc-card h3 { color: #fff; font-size: 18px; }
.loc-card ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.loc-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: #E6DEE1; }
.loc-card li .ic { color: var(--accent); margin-top: 4px; }
.loc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.loc-actions .btn { font-size: 14px; padding: 0 10px; }
.loc-actions .btn:first-child { grid-column: 1 / -1; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #6A0F22 0%, #43091A 55%, #2A050C 100%); color: #fff; padding: 26px 0; border-radius: 26px 26px 0 0; margin-top: 10px; }
.cta-in { display: grid; gap: 14px; }
.cta-band h2 { font-size: 22px; margin: 0 0 4px; }
.cta-band p { color: #EBDDE1; margin: 0 0 6px; font-size: 14.5px; }
.cta-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px !important; }
.cta-meta .ic { color: var(--accent); }
.cta-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cta-actions .btn { padding: 0 8px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #CFC7CA; font-size: 14px; }
.footer-grid { display: grid; gap: 22px; padding-top: 30px; padding-bottom: 22px; }
.f-about p { margin: 12px 0 0; line-height: 1.8; }
.f-note { font-size: 12.5px; color: #8F8689; }
.f-title { color: #fff; font-size: 15px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--maroon); display: inline-block; }
.f-col ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 4px; }
.f-col a { color: #CFC7CA; }
.f-col a:hover { color: #fff; }
.f-col:not(.f-contact) ul { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.f-info li { display: flex; gap: 8px; align-items: flex-start; }
.f-info .ic { color: var(--accent); margin-top: 3px; }
.footer-bottom { border-top: 1px solid #221C1E; font-size: 12.5px; color: #8F8689; }
.fb-in { padding-block: 14px; display: grid; gap: 2px; text-align: center; }
.fb-in p { margin: 0; }

/* ---------- Dock (mobile bottom) ---------- */
.dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; filter: drop-shadow(0 -4px 14px rgba(30,5,10,.18)); }
.dock-bar { background: linear-gradient(180deg, #4E0A19, #33060F); border-radius: 26px 26px 0 0; padding: 9px 46px 9px; }
.dock-cta { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.32); background: linear-gradient(180deg, #7B1429, #5C0C1E); color: #fff; font-weight: 700; font-size: 15px; }
.dock-cta span { flex: 1; text-align: center; }
.dock-cta .ic { width: 22px; height: 22px; }
.dock-nav { background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px calc(4px + var(--safe-b)); }
.dock-item { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 0; font-size: 12px; font-weight: 600; color: #2E2729; }
.dock-item .ic { width: 23px; height: 23px; color: var(--maroon-dark); }
.dock-item.is-active { color: var(--maroon); font-weight: 800; }
.dock-item.is-active .ic { color: var(--maroon); fill: rgba(101,13,32,.12); }
body.no-bar { --dock-h: 62px; }

/* ================================================================
   Inner pages
   ================================================================ */
.page-hero { position: relative; background: #151012; color: #fff; overflow: hidden; }
.ph-media { position: absolute; inset: 0; }
.ph-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ph-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(21,16,18,.96) 10%, rgba(21,16,18,.7) 60%, rgba(57,7,16,.65)); }
.page-hero--noimg { background: radial-gradient(120% 120% at 0% 100%, rgba(101,13,32,.65), transparent 60%), linear-gradient(160deg, #1D1517, #0B0809); }
.ph-in { position: relative; padding-top: 16px; padding-bottom: 26px; }
.page-hero h1 { font-size: 25px; margin: 4px 0 8px; }
.page-hero .eyebrow { color: var(--accent); font-weight: 700; font-size: 13.5px; margin: 6px 0 0; }
.ph-lead { color: #E7DFE2; font-size: 15px; max-width: 760px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-actions .btn { min-height: 42px; font-size: 14px; padding: 0 14px; }
.brand-badge { display: inline-block; direction: ltr; font-weight: 800; font-size: 13px; letter-spacing: 1px; color: #fff; background: rgba(101,13,32,.8); border: 1px solid rgba(255,255,255,.2); border-radius: 30px; padding: 2px 14px; margin-top: 8px; }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: #CDBFC3; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 4px; color: var(--accent); }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.layout { display: grid; gap: 22px; padding-top: 22px; padding-bottom: 30px; }
.prose { font-size: 16.5px; line-height: 1.95; color: #2A2326; min-width: 0; }
.prose h2 { font-size: 21px; color: var(--maroon-dark); margin: 1.6em 0 .55em; padding-inline-start: 12px; border-inline-start: 4px solid var(--maroon); }
.prose h3 { font-size: 17.5px; color: var(--maroon); margin: 1.3em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--maroon); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--maroon); }
.prose strong { color: #170F12; }
.prose .note { background: #FBF3F5; border: 1px solid #EED6DC; border-inline-start: 4px solid var(--maroon); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--maroon-dark); color: #fff; font-weight: 700; }
.prose tr:nth-child(even) td { background: #FBF8F9; }
.prose figure { margin: 0 0 1.2em; }
.prose figure img { border-radius: 12px; width: 100%; }
.prose figcaption { font-size: 13px; color: var(--gray-2); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; }
.chips a, .chips li > span { display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; font-size: 14px; font-weight: 700; text-decoration: none !important; }

.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 1.4em; }
.toc summary { font-weight: 800; cursor: pointer; color: var(--maroon-dark); }
.toc ol { margin: 8px 0 0; padding-inline-start: 1.2em; font-size: 14.5px; }
.toc li { margin: 2px 0; }
.toc a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: #D8CDD0; margin: 0 0 10px; }

.side { display: grid; gap: 16px; align-content: start; }
.side-box { background: var(--card); color: #fff; border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.side-box h2 { font-size: 18px; margin: 0; }
.side-box p { margin: 0; color: #DCD3D6; font-size: 14px; }
.sb-hours { display: flex; gap: 6px; align-items: center; }
.sb-hours .ic, .sb-map .ic { color: var(--accent); }
.sb-map { display: flex; gap: 6px; align-items: center; font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.link-list { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.link-list h2 { font-size: 16px; color: var(--maroon-dark); margin: 0 0 6px; }
.link-list ul { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px dashed var(--line); }
.link-list li:last-child { border: 0; }
.link-list a { display: block; padding: 6px 0; font-size: 14.5px; font-weight: 600; }
.link-list a:hover { color: var(--maroon); }

.steps-block { margin: 1.6em 0; }
.steps-block h2 { font-size: 21px; color: var(--maroon-dark); }
.steps { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 !important; font-size: 15px; line-height: 1.8; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

.faq { margin: 1.8em 0; }
.faq h2 { font-size: 21px; color: var(--maroon-dark); }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 15.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform .2s; color: var(--maroon); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-a { padding: 0 14px 12px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.faq-a p { margin: 0; }

.related { margin: 1.8em 0 0; }
.related h2 { font-size: 20px; color: var(--maroon-dark); }

/* listing pages */
.list-sec { padding: 22px 0 34px; }
.intro-txt { color: var(--muted); max-width: 820px; font-size: 15.5px; }

/* ---------- Booking form ---------- */
.booking-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.bf-grid { display: grid; gap: 12px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.req { color: var(--maroon); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1.5px solid #DCD3D6; border-radius: 10px; padding: 8px 12px; background: #fff; font-size: 16px; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(101,13,32,.12); }
.field [aria-invalid="true"] { border-color: #C0263D; background: #FFF7F8; }
.err { color: #B3172F; font-size: 13px; margin: 4px 0 0; font-weight: 600; }
.bf-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 14px 0; line-height: 1.8; }
.bf-note .ic { color: var(--maroon); margin-top: 4px; }
.bf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-review { margin-top: 14px; border: 1.5px dashed var(--maroon); border-radius: 12px; padding: 12px 14px; background: #FDF8F9; }
.bf-review h3 { font-size: 16px; color: var(--maroon); margin: 0 0 6px; }
.bf-review dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14.5px; }
.bf-review dt { font-weight: 700; color: var(--muted); }
.bf-review dd { margin: 0; }
.bf-status { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #EEF8F1; color: #155B31; font-size: 14.5px; }

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 50px 0 60px; }
.err-page .code { font-size: 64px; font-weight: 800; color: var(--maroon); line-height: 1; }

/* ================================================================
   Breakpoints
   ================================================================ */
@media (min-width: 420px) {
  .slide { min-height: 248px; }
  .slide h1, .slide .h1 { font-size: 27px; }
  .slide-desc { font-size: 12.5px; }
  .features h3 { font-size: 13.5px; }
  .brand-word { font-size: 12px; }
  .svc-body h3 { font-size: 12.5px; }
  .svc-body p { font-size: 11.5px; }
  .logo-ar { font-size: 17px; }
}

@media (min-width: 640px) {
  :root { --gutter: 22px; }
  .grid-svc { grid-template-columns: repeat(3, 1fr); }
  .grid-cars { grid-template-columns: repeat(2, 1fr); }
  .grid-offers, .grid-posts { grid-template-columns: repeat(2, 1fr); }
  .bf-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .f-col:not(.f-contact) ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  .topbar { font-size: 13px; }
  .topbar-in { justify-content: flex-start; gap: 16px; min-height: 38px; }
  .header-in { min-height: 76px; gap: 18px; }
  .logo-emblem { width: 44px; height: 44px; }
  .logo-ar { font-size: 21px; }
  .logo-en { font-size: 10px; }
  .logo-roof { height: 16px; }
  .logo-text { padding-top: 11px; }
  .btn-book { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .slide { min-height: 420px; }
  .slide-media { width: 58%; }
  .slide-text { width: 50%; padding: 40px var(--gutter) 60px 0; }
  .slide .eyebrow { font-size: 17px; }
  .slide h1, .slide .h1 { font-size: 42px; }
  .slide-desc { font-size: 16px; max-width: 520px; }
  .btn-hero { min-height: 48px; padding: 0 22px; font-size: 16.5px; }
  .hero-dots { bottom: 18px; }
  .features ul { padding: 20px 0; }
  .feat-ic { width: 56px; height: 56px; }
  .feat-ic .ic { width: 28px; height: 28px; }
  .features h3 { font-size: 17px; }
  .features span.en { font-size: 13px; }
  .title-lined { font-size: 24px; }
  .title-lined::before, .title-lined::after { flex-basis: 120px; }
  .brand { min-height: 60px; }
  .brand-word { font-size: 17px; }
  .brand--mercedes .brand-word { font-size: 17px; }
  .sec { padding: 40px 0; }
  .title-under { font-size: 28px; }
  .svc-rail { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; }
  .svc-body { padding: 12px 10px 14px; }
  .svc-body h3 { font-size: 17px; }
  .svc-body p { font-size: 14px; }
  .svc-go { width: 38px; height: 38px; }
  .page-hero h1 { font-size: 36px; }
  .ph-in { padding-top: 26px; padding-bottom: 44px; }
  .cta-band { padding: 40px 0; border-radius: 40px 40px 0 0; }
  .cta-band h2 { font-size: 30px; }
  .booking-wrap { padding: 26px; }
  .dock-bar { padding-inline: 18%; }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
    .desk-nav { display: flex; gap: 4px; margin-inline-end: auto; }
  .desk-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 15.5px; color: #2A2326; }
  .desk-nav a:hover, .desk-nav a[aria-current] { color: var(--maroon); background: var(--soft); }
  .logo { margin-inline-end: 12px; }
  .menu-btn { display: none; }
  .slide-text { padding-right: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); width: 50%; }
  .slide-desc { font-size: 17px; }
  .slide { min-height: 520px; }
  .slide h1, .slide .h1 { font-size: 52px; }
  .slide-media { width: 60%; }
  .slide-text { width: 46%; }
  .svc-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
  .rail-dots { display: none; }
  .grid-svc { grid-template-columns: repeat(4, 1fr); }
  .grid-cars { grid-template-columns: repeat(5, 1fr); }
  .grid-offers { grid-template-columns: repeat(3, 1fr); }
  .grid-posts { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 34px; }
  .cta-in { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 34px; }
  .side { position: sticky; top: 96px; }
  .page-hero h1 { font-size: 42px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 28px; }
  .f-about { grid-column: auto; }
  .fb-in { grid-template-columns: 1fr auto; text-align: start; }
}

@media (min-width: 1440px) {
  .slide { min-height: 580px; }
  .slide h1, .slide .h1 { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* post meta inside article body */
.prose .post-meta { color: var(--gray-2); }
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-meta .ic { width: 1em; height: 1em; }

/* ================================================================
   مساعد كار إنجين الذكي
   ================================================================ */
.ai-fab {
  position: fixed; left: 12px; bottom: calc(var(--dock-h) + 12px + var(--safe-b)); z-index: 49;
  display: inline-flex; align-items: center; gap: 8px; height: 54px; min-width: 54px; padding: 0;
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 18px; cursor: pointer; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #8E1A32 0%, #5A0B1C 55%, #2A050C 100%);
  box-shadow: 0 8px 22px rgba(70,8,22,.45), 0 0 0 0 rgba(226,92,115,.5);
  opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .35s ease, transform .35s ease, box-shadow .2s;
  font-family: var(--font);
}
.ai-fab.is-ready { opacity: 1; transform: none; animation: ai-glow 3.2s ease-in-out 1.2s 2; }
.ai-fab:hover { box-shadow: 0 10px 26px rgba(70,8,22,.55), 0 0 0 6px rgba(226,92,115,.18); }
.ai-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--maroon); }
.ai-fab-ic { width: 52px; height: 52px; display: grid; place-items: center; flex: none; }
.ai-fab-ic .ai-ic { width: 28px; height: 28px; }
.ai-fab-label { display: none; font-weight: 700; font-size: 14.5px; padding-inline-end: 16px; white-space: nowrap; }
.ai-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }
@keyframes ai-glow { 0%,100% { box-shadow: 0 8px 22px rgba(70,8,22,.45), 0 0 0 0 rgba(226,92,115,.45); } 50% { box-shadow: 0 8px 22px rgba(70,8,22,.45), 0 0 0 10px rgba(226,92,115,0); } }

.ai-panel {
  position: fixed; z-index: 70; inset-inline: 0; top: var(--ai-top, 0px); height: var(--ai-vh, 100dvh);
  display: flex; flex-direction: column; background: #FBF8F9; color: var(--ink);
  opacity: 0; transform: translateY(16px); transition: opacity .18s ease, transform .18s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ai-panel.is-open { opacity: 1; transform: none; }
html.ai-open { overflow: hidden; }
@media (min-width: 640px) { html.ai-open { overflow: auto; } }
.ai-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: linear-gradient(135deg, #5E0C1E, #2A050C); color: #fff; flex: none; }
.ai-avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); flex: none; }
.ai-avatar .ai-ic { width: 24px; height: 24px; }
.ai-head-txt { flex: 1; min-width: 0; }
.ai-head h2 { font-size: 15.5px; margin: 0; line-height: 1.3; }
.ai-status { margin: 0; font-size: 11.5px; color: #E9DCE0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; line-height: 1.4; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); }
.ai-mode { font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 0 8px; background: rgba(255,255,255,.14); }
.ai-mode[data-mode="local"] { background: #E9B949; color: #2A1B00; }
.ai-hbtn { width: 38px; height: 38px; border-radius: 11px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.ai-hbtn:hover { background: rgba(255,255,255,.2); }
.ai-hbtn .ic { width: 20px; height: 20px; }
.ai-mode-note { margin: 0; font-size: 12px; line-height: 1.7; background: #FFF6DD; color: #5B4300; padding: 7px 12px; border-bottom: 1px solid #F1E2B3; flex: none; }

.ai-log { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-msg { display: flex; flex-direction: column; max-width: 88%; }
.ai-msg--user { align-self: flex-start; }
.ai-msg--bot { align-self: flex-end; }
.ai-bubble { padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.8; word-wrap: break-word; }
.ai-bubble p { margin: 0 0 .5em; } .ai-bubble p:last-child { margin: 0; }
.ai-msg--user .ai-bubble { background: linear-gradient(180deg, #7B1228, #5A0B1C); color: #fff; border-start-start-radius: 16px; border-start-end-radius: 4px; }
.ai-msg--bot .ai-bubble { background: #fff; border: 1px solid var(--line); border-start-start-radius: 4px; box-shadow: 0 1px 2px rgba(40,6,14,.05); }
.ai-msg--bot a { color: var(--maroon); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ai-msg--err .ai-bubble { background: #FFF1F3; border-color: #F2C6CF; color: #7A1428; }
.ai-retry { margin-top: 6px; border: 1.5px solid var(--maroon); color: var(--maroon); background: #fff; border-radius: 9px; padding: 3px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ai-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ai-act { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 11px; border-radius: 10px; border: 1.5px solid #E2D5D9; background: #fff; color: var(--maroon-dark); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.ai-act--wa { background: var(--wa); border-color: var(--wa); color: #fff !important; }
.ai-act--primary { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.ai-sum { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 4px 0 8px; font-size: 13.5px; }
.ai-sum dt { color: var(--muted); font-weight: 700; } .ai-sum dd { margin: 0; }
.ai-warn { font-size: 12.5px; color: #6B4E00; background: #FFF6DD; border-radius: 8px; padding: 6px 8px; }
.ai-typing .ai-bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: #B9A9AE; animation: ai-dot 1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .15s; } .ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.ai-chips { padding: 4px 12px 8px; display: flex; flex-wrap: wrap; gap: 6px; flex: none; max-height: 45%; overflow-y: auto; }
.ai-welcome { width: 100%; margin: 0 0 4px; font-weight: 700; color: var(--maroon-dark); font-size: 14.5px; }
.ai-chip { border: 1.5px solid #E6D3D8; background: #fff; color: var(--maroon-dark); border-radius: 20px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: start; }
.ai-chip:hover { border-color: var(--maroon); background: #FBF0F3; }
.ai-chip--alt { background: var(--soft); }
.ai-chips--inline { padding: 6px 0 0; max-height: none; }

.ai-contact-wrap { padding: 0 12px; flex: none; }
.ai-contact-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #D7C2C8; background: transparent; color: var(--maroon); font: inherit; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 5px; cursor: pointer; }
.ai-contact-btn .ic { width: 16px; height: 16px; }
.ai-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.ai-contact a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--maroon-dark); text-align: center; }
.ai-contact a:nth-child(2) { background: var(--wa); color: #fff; border-color: var(--wa); }
.ai-contact .ic { width: 20px; height: 20px; }

.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 6px; flex: none; }
.ai-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; border: 1.5px solid #DCCFD3; border-radius: 14px; padding: 11px 12px; font: inherit; font-size: 16px; line-height: 1.4; background: #fff; }
.ai-form textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(101,13,32,.12); }
.ai-send { width: 46px; height: 46px; border-radius: 14px; border: 0; background: linear-gradient(180deg, #7B1228, #5A0B1C); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.ai-send:disabled { opacity: .5; cursor: progress; }
.ai-foot { margin: 0; padding: 0 12px 8px; font-size: 11px; color: var(--gray-2); text-align: center; flex: none; }
.ai-foot a { color: var(--maroon); text-decoration: underline; }

@media (min-width: 640px) {
  .ai-panel { inset-inline: auto; left: 20px; top: auto; bottom: calc(var(--dock-h) + 16px); width: 400px; height: min(640px, calc(100vh - var(--dock-h) - 120px)); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(30,5,10,.35); border: 1px solid #E6D9DD; padding-bottom: 0; }
  .ai-head { padding-top: 12px; }
  .ai-fab-label { display: inline; }
  .ai-fab { padding-inline-end: 0; }
}
@media (min-width: 1024px) {
  .ai-fab { left: 22px; bottom: 22px; }
  .ai-panel { bottom: 22px; height: min(660px, calc(100vh - 60px)); }
}
@media (prefers-reduced-motion: reduce) { .ai-fab.is-ready { animation: none; } }

/* ---------- صور متجاوبة وشعارات العلامات ---------- */
picture { display: contents; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.brand { gap: 4px; }
.brand-logo { height: 22px; width: auto; flex: none; }
.brand--audi .brand-logo { height: 13px; }
.brand--audi .brand-word { display: none; }
.brand-word { font-size: 9.5px; }
.brand--mercedes .brand-word { font-size: 9px; }
.car-emblem { position: absolute; top: 14px; left: 14px; width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.35); z-index: 1; }
.car-emblem .brand-logo { height: 36px; max-width: 42px; object-fit: contain; }
.brand-badge { display: inline-flex; align-items: center; gap: 8px; padding: 3px 14px 3px 4px; }
.brand-badge-logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.brand-badge-logo .brand-logo { height: 24px; max-width: 28px; object-fit: contain; }
.about-side { display: grid; gap: 14px; }
.about-fig { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: #1a1416; box-shadow: var(--shadow); }
.about-fig img { width: 100%; height: 100%; object-fit: cover; }
.ph-media img { opacity: .55; }
@media (min-width: 420px) { .brand-word { font-size: 10.5px; } .brand-logo { height: 24px; } }
@media (min-width: 768px) {
  .brand { gap: 8px; }
  .brand-logo { height: 36px; }
  .brand--audi .brand-logo { height: 22px; }
  .brand--audi .brand-word { display: inline; }
  .brand-word { font-size: 15px; }
  .brand--mercedes .brand-word { font-size: 15px; }
}
/* شريط العلامات على الجوال: الشعار فوق الاسم لتفادي التداخل */
@media (max-width: 767.98px) {
  .brand { flex-direction: column; gap: 2px; min-height: 54px; padding: 4px 2px; }
  .brand-logo { height: 26px; }
  .brand--audi .brand-logo { height: 15px; margin: 5px 0 6px; }
  .brand--audi .brand-word { display: inline; }
  .brand-word, .brand--mercedes .brand-word { font-size: 9.5px; line-height: 1.2; }
}

/* معرض صور المركز */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: #1a1416; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery li:hover img { transform: scale(1.04); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } .gallery li:nth-child(n+7) { display: none; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery li:nth-child(n+7) { display: list-item; } }
.about-fig { aspect-ratio: 3 / 2; }

/* بطاقات المقالات بدون صور */
.post-card a { border-top: 4px solid var(--maroon); transition: transform .2s ease, box-shadow .2s ease; }
.post-card a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40,6,14,.14); }
.post-body { padding: 16px 16px 14px; }
.post-body h3 { line-height: 1.5; }
.post-body time { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }

/* توقيع المطوّر FAYEZ */
.dev-credit { margin: 0; font-size: 11.5px; line-height: 1.6; }
.dev-credit a, .dev-inner { display: inline-flex; align-items: center; gap: 8px; color: #A79EA1; text-decoration: none; letter-spacing: .2px; transition: color .25s ease; }
.dev-sep { width: 14px; height: 1px; background: linear-gradient(90deg, transparent, #C9A66B, transparent); opacity: .8; }
.dev-name { color: #C9A66B; font-weight: 700; letter-spacing: 2px; font-size: 11px; transition: color .25s ease, letter-spacing .25s ease; }
.dev-credit:hover .dev-inner, .dev-credit a:hover { color: #D6CED1; }
.dev-credit:hover .dev-name { color: #E2C48E; letter-spacing: 2.6px; }
@media (min-width: 1024px) { .fb-in { grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; } }
/* مساحة أسفل الفوتر حتى لا يغطي زر المساعد العائم آخر سطر (التوقيع والحقوق) */
.footer-bottom { padding-bottom: 62px; }
@media (min-width: 1024px) { .footer-bottom { padding-bottom: 0; } .fb-in { padding-left: max(var(--gutter), calc(260px - (100vw - 1240px) / 2)); } }
