/* =========================================================
   ضبط الجوال والتابلت — يُحمَّل آخر ملف
   ========================================================= */

/* ---------- عام لكل الأجهزة اللمسية ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
a,button,label,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
img{-webkit-user-drag:none}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:6px}

/* أهداف لمس مريحة (44px) */
.promo-go{min-height:34px}
.promo-x{width:34px!important;height:34px!important;margin-top:-17px!important}
.mini-toggle button{min-height:34px}
.f-reset{padding:8px 4px}

@media (max-width:960px){
  /* منع تكبير iOS التلقائي عند الكتابة */
  input,select,textarea{font-size:16px!important}
  .hd-box input{font-size:16px!important}

  /* مساحات آمنة لأجهزة الآيفون (الشق وشريط الرجوع) */
  .bottom-nav,.m-cta{bottom:calc(10px + env(safe-area-inset-bottom))!important}
  body{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  .cmp-bar{bottom:calc(96px + env(safe-area-inset-bottom))!important}
  .filters{height:100dvh;padding-bottom:env(safe-area-inset-bottom)}

  /* الشريط السفلي ثابت دائماً */
  .bottom-nav{transform:none!important;opacity:1!important}
  .bottom-nav a{min-height:48px;justify-content:center}

  /* أهداف لمس */
  .crumbs a{padding:8px 2px}
  .hd-row2 a{min-height:40px}
  .icon-btn,.fav,.g-btn{min-width:42px;min-height:42px}

  /* عرض اليوم: الصورة فوق والتفاصيل تحتها */
  .deal{flex-direction:column;align-items:stretch;text-align:start;gap:16px;padding:14px!important}
  .deal-img{width:100%!important;aspect-ratio:16/9;border-radius:16px}
  .deal-info{padding-inline:4px}
  .deal-info h3{font-size:20px}

  /* القسم الداكن للكول سنتر */
  .cc-num{font-size:clamp(32px,10vw,56px)!important;white-space:nowrap}

  /* الحاسبة */
  .res-list div{gap:12px}
  .res-list div b{white-space:nowrap}
}

/* ---------- الهواتف ---------- */
@media (max-width:640px){
  .container{padding-inline:16px}
  section{padding-top:56px}
  .sec-head{margin-bottom:22px}
  .sec-head h2{font-size:clamp(24px,7vw,30px)}

  /* شريط العرض: سطر للنص وسطر للعداد والزر */
  .promo-in{padding:8px 44px 10px;gap:6px 10px}
  .promo-msg{font-size:12.5px;line-height:1.5}
  .promo-cd span{padding:2px 6px}

  /* الهيرو */
  .hero-card{min-height:auto}
  .hero h1{font-size:clamp(32px,10vw,44px)}
  .hero p.lead{font-size:15px}
  .hero-ctas .btn{flex:1;padding-inline:14px}

  /* الحاسبة */
  .calc-form h2{font-size:24px}
  .calc-result .monthly{font-size:clamp(38px,12vw,52px)}
  .res-list div{font-size:14px}

  /* مركز التواصل */
  .ct-head .near-btn{width:100%;justify-content:center}
  .dep-tabs button{padding:12px 6px;font-size:13px}
  .sh-acts{grid-template-columns:1fr 1fr auto}

  /* الفوتر */
  .ft-cta h2{font-size:clamp(28px,9vw,40px)}
  .ft-links nav{justify-content:flex-start}

  /* صفحة السيارة */
  .p-title{font-size:clamp(22px,6.5vw,28px)}
  .g-thumb{flex-basis:70px}
  .cp-sec{padding:20px 16px}
  .cp-h{font-size:20px}
  .bank-monthly b{font-size:18px}

  /* صفحة السيارات */
  .toolbar .btn{height:42px}
  .ph-card h1{font-size:clamp(26px,8vw,34px)}
}

/* ---------- الهواتف الصغيرة (SE وأقل من 380) ---------- */
@media (max-width:380px){
  .container{padding-inline:12px}
  .promo-msg{font-size:12px}
  .promo-cd b{min-width:16px;font-size:12px}
  .promo-go{padding:5px 10px;font-size:12px}
  .hd-act{padding:4px 5px!important;font-size:10px!important}
  .hd-ic .icon{width:20px;height:20px}
  .logo-text b{font-size:15px!important}
  .logo-word{width:80px!important}
  .logo-mark{width:38px!important;height:38px!important;border-radius:13px!important}
  .hero-content{padding-inline:16px!important}
  .hero-stats{padding:14px!important}
  .hero-stats .big{font-size:28px!important}
  .thumbs span{width:34px;height:34px}
  .bento{gap:8px}
  .bt{padding:14px;min-height:128px}
  .bt-wm{font-size:14px}
  .cats{gap:8px}
  .cat{min-height:190px;padding:14px}
  .cat h3{font-size:15px}
  .years{grid-template-columns:repeat(5,1fr);gap:6px}
  .years button{height:42px}
  .dep-tabs{gap:6px}
  .p-price{grid-template-columns:1fr!important}
  .p-quick{grid-template-columns:repeat(2,1fr)!important}
  .feat-list{grid-template-columns:1fr!important}
  .perf{gap:8px}
  .perf-val b{font-size:22px}
  .bottom-nav{inset-inline:8px!important;padding:6px!important}
  .bottom-nav a{padding:6px 6px!important;font-size:10px!important}
  .m-cta .btn{padding-inline:12px}
  .m-cta b{font-size:16px}
  .ft-btns .btn{font-size:13px}
}

/* ---------- الجوال بالعرض (Landscape) ---------- */
@media (max-height:500px) and (orientation:landscape){
  .hd.scrolled .hd-row1{padding-block:6px}
  .hd-row2{padding-bottom:6px}
  .hero-content{padding-top:300px!important;padding-bottom:40px!important}
  .hero-stats{position:relative!important;inset:auto!important;width:auto!important;margin:0 20px 20px}
  .bottom-nav{display:none!important}
  body{padding-bottom:16px!important}
  .m-cta{bottom:8px!important}
  .filters{height:100dvh}
}

/* ---------- التابلت ---------- */
@media (min-width:641px) and (max-width:960px){
  .cars{grid-template-columns:repeat(2,1fr)}
  .shows{grid-template-columns:repeat(2,1fr)!important}
  .why{grid-template-columns:repeat(2,1fr)}
  .bento{grid-template-columns:repeat(3,1fr)!important}
  .bt.big{grid-column:span 3!important}
  .hero-content{padding-top:260px!important}
  .p-quick{grid-template-columns:repeat(6,1fr)}
  .feat-list{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:961px) and (max-width:1180px){
  .shows{grid-template-columns:repeat(3,1fr)!important}
}
@media (max-width:960px){.ft-links nav{margin-inline:0!important;gap:2px}}
@media (max-width:640px){.ft-links nav a{padding:8px 10px;font-size:13px}.f-colors button{width:38px;height:38px}}
@media (max-width:640px){.g-badges{max-width:calc(100% - 160px);flex-wrap:wrap;top:12px!important;inset-inline-start:12px!important}.g-tools{top:10px!important;inset-inline-end:10px!important;gap:6px!important}.g-btn{width:38px!important;height:38px!important;min-width:0!important;min-height:0!important}}
@media (max-width:380px){.g-badges .chip.hot{display:none}}
@media (max-width:600px){.ctl-head .opt{display:none}}
.ctl-head label{white-space:nowrap}@media (max-width:400px){.dp-vals .js-down-amt{width:72px}.dp-vals .ctl-val{padding:6px 8px}}

/* ---------- شريط العرض على الجوال: سطر للنص وسطر للعدّاد ---------- */
@media (max-width:640px){
  .promo{font-size:12px}
  .promo-in{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px 8px;padding:9px 12px 12px;min-height:0}
  .promo-msg{flex-basis:100%;margin-inline:30px;text-align:center;font-size:12.5px!important;line-height:1.5;white-space:nowrap;overflow:hidden}
  .pm-t{display:inline-block}
  .promo-msg.marq{text-align:start;-webkit-mask:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);mask:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent)}
  .promo-msg.marq .pm-t{display:inline-flex;animation:pmMarq var(--dur,12s) linear infinite}
  .promo-msg.marq .pm-t i{font-style:normal;padding-inline-end:40px}
  .promo-x{top:6px!important;margin-top:0!important;inset-inline-end:6px!important;width:26px!important;height:26px!important;font-size:10px}
  .promo-cd{gap:3px}
  .promo-cd span{padding:2px 5px}
  .promo-cd b{font-size:12px;min-width:15px}
  .promo-go{min-height:26px;padding:3px 11px;font-size:12px}
}
@keyframes pmMarq{to{transform:translateX(50%)}}

/* زر "احجز الآن" ينبض مثل القلب */
.promo-go{position:relative;animation:heartbeat 1.6s ease-in-out infinite;transform-origin:center}
.promo-go::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 0 rgba(255,255,255,.7);animation:hbRing 1.6s ease-out infinite;pointer-events:none}
.promo-go:hover{animation-play-state:paused}
@keyframes heartbeat{0%,40%,100%{transform:scale(1)}10%{transform:scale(1.1)}20%{transform:scale(1)}30%{transform:scale(1.07)}}
@keyframes hbRing{0%{box-shadow:0 0 0 0 rgba(255,255,255,.65)}45%,100%{box-shadow:0 0 0 9px rgba(255,255,255,0)}}
@media (prefers-reduced-motion:reduce){.promo-go,.promo-go::after{animation:none}}

/* ---------- الشاشات القصيرة: أزرار الهيرو تظهر فوق الشريط السفلي ---------- */
@media (max-width:640px) and (max-height:760px){
  .hero-content{padding:24px 18px 18px!important}
  .hero h1{font-size:clamp(30px,9vw,38px)!important;margin:12px 0 8px!important;line-height:1.25}
  .hero p.lead{font-size:13.5px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .hero-ctas{margin-top:16px}
}
@media (max-width:640px){
  .hero-ctas{flex-wrap:nowrap!important}
  .hero-ctas .btn{flex:1 1 0;min-width:0;white-space:nowrap;padding-inline:10px!important;gap:8px}
}
@media (max-width:380px){
  .hero-ctas .btn .arrow{display:none}
  .hero-ctas .btn{font-size:13px!important}
}
@media (max-width:640px) and (max-height:640px){
  .hero p.lead{display:none}
  .hero .eyebrow{display:none}
  .hero h1{margin-top:0!important}
}
@media (max-width:380px){.promo-msg{font-size:11.5px!important;margin-inline:28px!important}}

/* ================= الجوال: مركز التواصل ================= */
@media (max-width:640px){
  .cc,.cc-main,.cc-depts{min-width:0}
  .cc{grid-template-columns:minmax(0,1fr)!important}
  .cc-main{padding:20px 16px 18px!important;gap:10px}
  .cc-tag{flex-wrap:wrap;gap:6px 8px;font-size:12.5px}
  .cc-num{font-size:clamp(24px,8.2vw,34px)!important;letter-spacing:.3px;white-space:nowrap;text-align:start;direction:ltr;unicode-bidi:isolate}
  .cc-num{display:flex;flex-direction:column;align-items:flex-end}
  .cc-num small{font-size:12px;margin-top:6px}
  .cc-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px}
  .cc-acts .btn{height:46px;min-width:0;padding-inline:10px;font-size:14px}
  .cc-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;font-size:12px;margin-top:4px}
  .cc-meta span{min-width:0}
  .cc-meta span:last-child:nth-child(odd){grid-column:1/-1}
  .cc-depts{padding:18px 16px!important}
  .cc-depts h4{font-size:15px}
  .dep-tabs{gap:8px;margin-top:12px}
  .dep-tabs button{flex-direction:row;justify-content:flex-start;gap:10px;padding:10px;border-radius:14px;font-size:13px;text-align:start}
  .dep-tabs button .ic{width:34px;height:34px;border-radius:10px;flex-shrink:0}
  .dep-card{padding:14px;gap:12px;border-radius:16px}
  .dep-card .txt{min-width:0}
  .dep-card b{font-size:15px}
  .dep-card .acts{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .dep-card .btn{height:42px;padding-inline:8px;font-size:13.5px;min-width:0}
}

/* ================= الجوال: حاسبة تمويل مدمجة ================= */
@media (max-width:640px){
  .calc-wrap{padding:10px;gap:10px;border-radius:22px}
  .calc-form{padding:10px 6px 4px!important}
  .calc-form .kicker-line{font-size:12px}
  .calc-form h2{font-size:20px!important;margin-top:4px!important;letter-spacing:-.2px}
  .calc-form > p{display:none}
  .ctl{margin-top:14px}
  .ctl-head{margin-bottom:8px;gap:8px}
  .ctl-head label{font-size:13.5px}
  .ctl-val{padding:3px 10px;border-radius:10px;gap:4px}
  .ctl-val input{width:84px;height:30px}
  .dp-vals{gap:5px}
  .dp-vals .js-down-amt{width:74px!important}
  .dp-pct input{width:34px!important}
  .ctl-val small{font-size:11px}
  .range-scale{display:none}
  input[type=range]{height:6px}
  input[type=range]::-webkit-slider-thumb{width:22px;height:22px;border-width:5px}
  .years{gap:6px}
  .years button{height:38px;border-radius:10px;font-size:14px}
  .ctl-hint{font-size:11.5px;margin-top:6px}
  .dp-warn{padding:6px 10px}
  .elig{padding:10px 12px;font-size:12px}

  .calc-result{padding:18px 16px!important;border-radius:18px}
  .calc-mark{width:200px;height:180px;bottom:-60px;inset-inline-start:-70px}
  .res-top{flex-direction:row!important;align-items:center!important}
  .calc-result .lbl{font-size:12.5px}
  .calc-result .monthly{font-size:36px!important;margin-top:2px;letter-spacing:-1px}
  .calc-result .monthly small{font-size:14px}
  .gauge{width:96px!important;margin:0!important}
  .g-cap{display:none}
  .split{height:8px;margin-top:14px}
  .legend{font-size:11.5px;margin-top:8px;gap:14px}
  .res-list{margin-top:10px}
  .res-list div{padding:8px 0;font-size:13px!important}
  .calc-cta{margin-top:14px!important}
  .calc-result .btn{height:44px;font-size:14px}
  .calc-note{font-size:10.5px;line-height:1.6;margin-top:10px}
}
@media (max-width:640px){
  .calc-form h2{font-size:19px!important}
  .res-list{grid-template-columns:1fr 1fr;gap:6px!important;margin-top:12px}
  .res-list div{flex-direction:column;justify-content:flex-start;gap:2px!important;padding:8px 10px!important;border:0!important;background:rgba(255,255,255,.06);border-radius:var(--rr-sm)}
  .res-list div span{font-size:11px;line-height:1.4}
  .res-list div b{font-size:14px}
  .res-list div:last-child{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center;background:rgba(255,255,255,.1)}
  .res-list div:last-child b{font-size:15px}
}
