/* Evo Cars website — layout modelled on the structure of musacars.com.sy; colours, logo and content are Evo Cars' own. */
:root {
  --g1: #47B88D;          /* Evo light green (logo) */
  --g2: #3C9173;          /* Evo mid green (logo) */
  --g3: #2A4F48;          /* Evo dark green (logo) */
  --ink: #1B1E1D;
  --text: #212529;
  --mute: #5E6B67;
  --line: #E3EAE7;
  --soft: #F4F7F6;
  --white: #FFFFFF;
  --grad: linear-gradient(120deg, var(--g2) 0%, var(--g3) 100%);
  --radius: 10px;
  --shadow: 0 8px 30px rgba(27, 30, 29, .10);
  --font: "Lexend", system-ui, sans-serif;
}
html[lang="ar"] { --font: "Readex Pro", "Lexend", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--g2); text-decoration: none; }
a:hover { color: var(--g3); }
h1, h2, h3, h4 { font-weight: 500; color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Draft ribbon (remove before publishing) */
.draft { background: #FFF4D6; color: #6B5000; font-size: 13px; text-align: center; padding: 6px 16px; }
.draft b { font-weight: 700; }
.tbc { display: inline-block; background: #FFF4D6; color: #6B5000; border-radius: 6px; padding: 0 6px; font-size: .8em; font-weight: 500; }

/* ---------- Header: floating pill ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0 10px; background: linear-gradient(var(--white) 70%, rgba(255,255,255,0)); }
.pill { display: flex; align-items: center; gap: 18px; background: var(--white); border-radius: 50px; box-shadow: var(--shadow); padding: 10px 14px 10px 26px; }
html[dir="rtl"] .pill { padding: 10px 26px 10px 14px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a, .more > button { color: #555; padding: 9px 20px; border-radius: 40px; font-size: 16px; white-space: nowrap; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav > a:hover, .more > button:hover { color: var(--g3); background: var(--soft); }
.nav > a.active { background: var(--grad); color: var(--white); }
.more { position: relative; }
.more > button { font-size: 22px; line-height: 1; padding: 6px 16px; }
.more-menu { display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; min-width: 220px; }
.more.open .more-menu { display: block; }
.more-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); }
.more-menu a:hover, .more-menu a.active { background: var(--soft); color: var(--g3); }
.tools { display: flex; align-items: center; gap: 14px; }
.tools .phone { color: #555; font-size: 14px; white-space: nowrap; direction: ltr; display: inline-flex; gap: 8px; align-items: center; }
.social { display: flex; gap: 12px; }
.social a { color: var(--g2); display: inline-flex; }
.social a:hover { color: var(--g3); }
.lang { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--text); font-size: 14px; }
.lang:hover { border-color: var(--g1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--grad); color: var(--white); border: 0; border-radius: 6px; padding: 11px 22px; font-family: inherit; font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--white); filter: brightness(1.08); }
.btn.ghost { background: var(--white); color: var(--g3); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--g1); filter: none; }
.btn.block { width: 100%; }
.burger { display: none; background: none; border: 0; color: var(--g3); padding: 6px; cursor: pointer; }
.burger .icon { width: 28px; height: 28px; }

/* Off-canvas (mobile) */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(27,30,29,.45); }
.drawer .panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(320px, 86vw); background: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.drawer .panel .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer .panel .top img { height: 36px; }
.drawer .panel a.item { padding: 12px 14px; border-radius: 8px; color: var(--text); }
.drawer .panel a.item.active { background: var(--grad); color: var(--white); }
.drawer .panel .foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Hero + search ---------- */
/* Hero: Damascus Sword photo (musacars cover with the citadel removed) */
.hero { position: relative; min-height: clamp(600px, calc(100vh - 140px), 800px); margin-top: 6px; padding-bottom: 50px; overflow: hidden;
  background: #8FB6DA url("img/hero-damascus-sword.jpg") 30% bottom / cover no-repeat; }
.search-box { position: relative; margin-top: 50px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); color: var(--text); padding: 44px 44px 40px; box-shadow: var(--shadow); }
.search-box h1 { font-size: 36px; font-weight: 700; margin-bottom: 18px; }
.search-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 30px; align-items: end; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field select, .field input, .field textarea { width: 100%; height: 46px; border: 1px solid #ced4da; border-radius: 4px; background: var(--white); padding: 0 12px; font-family: inherit; font-size: 17px; color: var(--text); }
.field textarea { height: 90px; padding: 10px 12px; resize: vertical; }
/* iPhone Safari gives date fields their own minimum width and centres the text, so they stuck out
   past the location box. Keep every field inside its column and aligned like the select. */
.field { min-width: 0; }
.field input[type="datetime-local"], .field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: start; line-height: 44px; }
.field input::-webkit-date-and-time-value { text-align: start; margin: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(71,184,141,.45); border-color: var(--g1); }
.search-grid .btn { height: 46px; min-width: 180px; border-radius: 2px; }
.form-msg { margin-top: 12px; color: #B42318; font-size: 14px; min-height: 1em; }

/* ---------- Cover band ---------- */
.band { background: #0F1716; color: var(--white); text-align: center; padding: 34px 16px 30px; }
.band h2 { color: var(--white); font-size: 54px; font-weight: 400; margin: 0 0 6px; }
.band p { margin: 0 0 14px; font-size: 18px; }
.band a { color: var(--g1); font-weight: 700; font-size: 24px; direction: ltr; display: inline-block; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .6fr 1fr; gap: 40px; }
.site-footer h3 { font-size: 19px; margin-bottom: 18px; }
.site-footer p { margin: 0; max-width: 620px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--ink); margin-top: 5px; }
.contact-list a, .contact-list span { color: var(--g2); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.badges { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 7px; background: #000; color: #fff; border-radius: 7px; padding: 5px 11px 5px 9px; border: 1px solid #A6A6A6; direction: ltr; cursor: default; }
.badge svg { width: 20px; height: 20px; }
.badge small { display: block; font-size: 8px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.badge b { display: block; font-size: 15px; font-weight: 500; line-height: 1.1; }
.soon { font-size: 12px; color: var(--mute); }
.foot-bottom { margin-top: 36px; display: flex; gap: 20px; align-items: center; color: var(--mute); font-size: 15px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--mute); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--soft); padding: 46px 0 40px; margin-top: 6px; }
.page-head h1 { font-size: 38px; margin: 0; }
.page-head p { margin: 8px 0 0; color: var(--mute); }
.section { padding: 46px 0 60px; }
.prose { max-width: 860px; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose p, .prose li { color: #343a40; }

/* Cars list */
.cars-bar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 18px; align-items: end; }
.cars-bar .btn { height: 46px; }
.cars-meta { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 16px; gap: 12px; flex-wrap: wrap; }
.cars-meta select { height: 40px; border: 1px solid #ced4da; border-radius: 4px; padding: 0 10px; font-family: inherit; }
.car { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 20px; overflow: hidden; }
.car-row { display: grid; grid-template-columns: 300px 1fr 240px; gap: 26px; padding: 22px; align-items: center; }
.car-img { background: var(--white); border-radius: 8px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.car-img img { width: 100%; height: 100%; object-fit: contain; }
.car .cls { display: inline-block; font-size: 12px; color: var(--g3); background: #EAF6F1; border-radius: 20px; padding: 1px 10px; margin-bottom: 6px; }
.car h3 { font-size: 21px; margin-bottom: 2px; }
.car .similar { color: var(--mute); font-size: 14px; margin-bottom: 12px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: #495057; }
.specs li { display: flex; gap: 8px; align-items: center; }
.specs .icon { color: var(--g2); }
.price-col { text-align: center; border-inline-start: 1px solid var(--line); padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; }
.price-col .ask { font-size: 20px; font-weight: 500; color: var(--g3); }
.price-col .days { color: var(--mute); font-size: 14px; }
.options { display: none; border-top: 1px solid var(--line); background: #FAFCFB; padding: 24px 22px; }
.car.open .options { display: block; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.opt-grid h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.check { display: flex; gap: 10px; align-items: center; padding: 7px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--g2); }
.opt-actions { margin-top: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.note { color: var(--mute); font-size: 14px; }

/* Offers / FAQ / contact */
.empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--mute); }
.empty .icon { width: 42px; height: 42px; color: var(--g1); margin: 0 auto 12px; display: block; }
.faq details { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--g2); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: #495057; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); }
.card h2 { font-size: 20px; }
.form-grid { display: grid; gap: 16px; }
.map { width: 100%; height: 300px; border: 0; border-radius: 8px; margin-top: 18px; background: var(--soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .tools .phone { display: none; }
  .nav > a, .more > button { padding: 9px 13px; }
}
@media (max-width: 991px) {
  .nav, .tools .lang, .tools .btn { display: none; }
  .burger { display: inline-flex; }
  .pill { justify-content: space-between; padding: 8px 12px 8px 20px; }
  html[dir="rtl"] .pill { padding: 8px 20px 8px 12px; }
  .search-grid, .cars-bar { grid-template-columns: 1fr 1fr; }
  .search-grid .field:first-child, .cars-bar .field:first-child { grid-column: 1 / -1; }
  .search-grid .btn, .cars-bar .btn { grid-column: 1 / -1; width: 100%; }
  .car-row { grid-template-columns: 1fr; }
  .price-col { border: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .opt-grid, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .band h2 { font-size: 36px; }
}
@media (max-width: 575px) {
  .brand img { height: 34px; }
  .social { gap: 10px; }
  .hero { min-height: 780px; background-position: 23% bottom; }
  .search-box { margin-top: 24px; padding: 26px 18px; }
  .search-box h1 { font-size: 28px; }
  .search-grid, .cars-bar { grid-template-columns: 1fr; gap: 16px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .car-img { aspect-ratio: 16/10; }
  .car-img img { width: 86%; }
  .page-head h1 { font-size: 30px; }
  .band h2 { font-size: 30px; }
  .band a { font-size: 20px; }
}
