/* ANDALUS_SITE_FOOTER_V3 (owner, 23 Oct 2026) — the one footer of every page (includes/footer.php).
   «يعاد هيكلته لينتاسب مع كل الشاشات ويكون شيك»; then «المسافات… واللون ياخد من ألوان اللوجو»:
   the logo's graphite plate (#1b1921 → #2d2a35) with white only — «لون مع الأبيض بس… الأحمر مع الأزرق بيزغلل العين»
   — so no red on the dark ground; one 8px spacing scale.
   Computers: visit band (showroom | تواصل سريع), brand + 3 link columns, payments, bottom line.
   Tablets: brand across, 3 link columns under it.  Phones: one column, link groups fold (tap the title).
   New class names (an-ft__*) so the older footer layers don't reach inside; the root keeps .an-site-footer
   for the scripts that look for it. Nothing is stretched: every box keeps its natural height. */

html body footer.an-site-footer.an-ft{
  --ft-bg:#1b1921;--ft-bg-2:#14121a;--ft-card:#25222d;--ft-card-2:rgba(255,255,255,.045);--ft-line:rgba(255,255,255,.09);
  --ft-text:#f5f3f7;--ft-muted:#c4bfcb;--ft-soft:#948e9e;
  --ft-accent:#ffffff;--ft-accent-soft:rgba(255,255,255,.88);
  --ft-wa:#128c4a;--ft-wa-2:#0f7a40;
  position:relative;margin:56px 0 0!important;padding:40px 0 calc(20px + env(safe-area-inset-bottom,0px))!important;
  background:linear-gradient(180deg,#2d2a35 0%,var(--ft-bg) 100%)!important;
  border-top:0!important;color:var(--ft-text)!important;font-family:'Tajawal',Arial,sans-serif!important;direction:rtl;text-align:right;
  overflow:visible!important;line-height:1.6
}
html body .an-ft *{box-sizing:border-box}
html body .an-ft a{color:inherit;text-decoration:none}
html body .an-ft a:focus-visible,html body .an-ft summary:focus-visible{outline:3px solid rgba(255,255,255,.6);outline-offset:3px;border-radius:8px}
html body .an-ft ul{list-style:none;margin:0;padding:0}
html body .an-ft h2,html body .an-ft h3{margin:0!important;color:var(--ft-text)!important;font-weight:900!important;line-height:1.35!important;letter-spacing:0}
html body .an-ft svg{display:block;fill:currentColor}
.an-ft__wrap{width:min(2400px,calc(100% - 48px));margin-inline:auto}

/* 1) visit band: the showroom | quick contact */
.an-ft__visit{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,440px);gap:24px 40px;align-items:center;margin:0 0 32px;padding:24px 28px;border-radius:20px;
  background:var(--ft-card);border:1px solid var(--ft-line);box-shadow:0 16px 36px rgba(0,0,0,.22)}
.an-ft__visit-copy{min-width:0}
.an-ft__kicker{display:inline-block;font-size:13px;font-weight:900;color:var(--ft-soft)}
.an-ft__visit-title{display:block;margin:4px 0 12px;font-size:clamp(19px,1.6vw,24px);font-weight:900;line-height:1.35;color:#fff}
.an-ft__visit-facts{display:grid;gap:8px}
.an-ft__visit-facts li{display:flex;align-items:flex-start;gap:8px;font-size:14.5px;font-weight:700;line-height:1.6;color:var(--ft-muted)}
.an-ft__visit-facts svg{flex:0 0 16px;width:16px;height:16px;margin-top:3px;color:var(--ft-accent)}
.an-ft__map{display:inline-flex;align-items:center;gap:8px;margin-top:14px;min-height:40px;padding:6px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.35);color:#fff!important;font-size:14px;font-weight:900;transition:background .15s,border-color .15s}
.an-ft__map svg{width:16px;height:16px}
.an-ft__map:hover{background:rgba(255,255,255,.1);border-color:#fff}

.an-ft__quick{display:grid;gap:8px;padding-inline-start:40px;border-inline-start:1px solid var(--ft-line)}
.an-ft__quick-lbl{font-size:13px;font-weight:900;color:var(--ft-soft)}
.an-ft__btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px 14px;border-radius:14px;border:1px solid var(--ft-line);background:var(--ft-card-2);color:#fff!important;font-size:15px;font-weight:900;white-space:nowrap;transition:background .15s,border-color .15s,transform .15s}
.an-ft__btn svg{flex:0 0 18px;width:18px;height:18px}
.an-ft__btn:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.22);transform:translateY(-1px)}
.an-ft__btn--wa{min-height:52px;font-size:16px;background:#fff;border-color:#fff;color:#1b1921!important;box-shadow:0 10px 22px rgba(0,0,0,.25)}
.an-ft__btn--wa small{padding:1px 8px;border-radius:999px;background:#1b1921;color:#fff;font-size:11.5px;font-weight:800}
.an-ft__btn--wa:hover{background:#eceaf0;border-color:#eceaf0}
.an-ft__calls{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.an-ft__btn--call{justify-content:flex-start}
.an-ft__btn--call svg{color:#fff}
.an-ft__call-copy{display:flex;flex-direction:column;line-height:1.2;text-align:right}
.an-ft__call-copy small{font-size:11.5px;font-weight:700;color:var(--ft-soft)}
.an-ft__call-copy b{font-size:15px;font-weight:900;letter-spacing:.3px}

/* 2) columns */
/* row 1: brand + 3 link columns; row 2: ratings and social across the whole width (the owner: «التقييمات جنبها نصف الشاشة اليسار فاضي») */
.an-ft__grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);grid-template-areas:"brand c1 c2 c3" "trust trust trust trust";gap:24px 40px;padding:0 0 28px}
.an-ft__brand{grid-area:brand}
.an-ft__grid>details:nth-of-type(1){grid-area:c1}
.an-ft__grid>details:nth-of-type(2){grid-area:c2}
.an-ft__grid>details:nth-of-type(3){grid-area:c3}
.an-ft__trust{grid-area:trust;display:flex;align-items:center;gap:16px 32px;padding-top:24px;border-top:1px solid var(--ft-line)}
.an-ft__trust-head{flex:0 0 auto;display:grid;gap:4px}
html body .an-ft__trust-head h3{font-size:18px!important}
.an-ft__trust-head span{font-size:13px;font-weight:700;color:var(--ft-soft)}
.an-ft__trust .an-ft__ratings{flex:1 1 0;min-width:0;margin:0;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr))}
.an-ft__name{font-size:24px!important}
.an-ft__about{margin:8px 0 16px;max-width:520px;font-size:14.5px;font-weight:700;line-height:1.8;color:var(--ft-muted)}
.an-ft__promises{display:grid;gap:8px;margin-bottom:18px}
.an-ft__promises li{display:flex;align-items:center;gap:10px;min-width:0;color:#fff;font-size:14.5px;font-weight:800;line-height:1.4}
.an-ft__ico{flex:0 0 32px;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#fff;color:#1b1921;box-shadow:0 6px 14px rgba(0,0,0,.25)}
.an-ft__ico svg{width:18px;height:18px}
.an-ft__ratings{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-bottom:16px;max-width:520px}
.an-ft__rating{position:relative;display:grid;gap:6px;padding:14px 16px;border-radius:16px;overflow:hidden;
  background:linear-gradient(160deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,.03) 60%);border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 24px rgba(0,0,0,.2);transition:transform .18s,border-color .18s,box-shadow .18s}
.an-ft__rating:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 16px 32px rgba(0,0,0,.3)}
.an-ft__rating-top{display:flex;align-items:center;gap:8px}
.an-ft__rating-logo{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#fff;color:#1b1921}
/* the platforms' own colours (the owner: «علامة جوجل وعلامة فيس بوك بألوانهم الطبيعية») */
.an-ft__rating-logo--facebook{background:#1877f2;color:#fff}
.an-ft__rating-logo svg{width:18px;height:18px}
.an-ft__rating-logo--facebook svg{width:20px;height:20px;transform:translateY(2px)}
.an-ft__rating-src{font-size:13.5px;font-weight:900;color:#fff}
.an-ft__rating-mid{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.an-ft__rating-mid b{font-size:30px;font-weight:900;line-height:1;color:#fff;letter-spacing:.5px}
/* star yellow, filled to the real rating; the rest of the five stays grey */
.an-ft__stars{position:relative;display:inline-block;font-size:20px;line-height:1;letter-spacing:3px;direction:ltr}
.an-ft__stars>span:first-child{color:rgba(255,255,255,.2)}
.an-ft__stars>span:last-child{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:#fbbc04;text-shadow:0 0 12px rgba(251,188,4,.35)}
.an-ft__rating-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;font-weight:700;color:var(--ft-soft)}
.an-ft__rating-foot i{font-style:normal;font-weight:900;color:#fff;white-space:nowrap;transition:transform .18s}
.an-ft__rating:hover .an-ft__rating-foot i{transform:translateX(-3px)}
.an-ft__col summary{display:block;list-style:none;cursor:default;margin-bottom:12px}
.an-ft__col summary::-webkit-details-marker{display:none}
html body .an-ft__col h3{position:relative;display:inline-block;font-size:16px!important;padding-bottom:10px}
.an-ft__col h3:after{content:"";position:absolute;right:0;bottom:0;width:32px;height:3px;border-radius:3px;background:#fff}
.an-ft__links{display:grid;gap:0}
.an-ft__links--2{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.an-ft__links a{display:inline-flex;align-items:center;min-height:34px;font-size:14.5px;font-weight:700;color:var(--ft-muted)!important;transition:color .15s,transform .15s}
.an-ft__links a:hover{color:#fff!important;transform:translateX(-3px)}

/* computers: each rating card reads in one line — platform | stars + number | count + link */
@media (min-width:1100px){
  .an-ft__trust .an-ft__rating{display:flex;align-items:center;gap:24px;padding:16px 20px}
  .an-ft__trust .an-ft__rating-top{flex:0 0 auto;flex-direction:column;align-items:flex-start;gap:6px}
  .an-ft__trust .an-ft__rating-logo{width:36px;height:36px;border-radius:10px}
  .an-ft__trust .an-ft__rating-mid{flex:0 0 auto}
  .an-ft__trust .an-ft__rating-foot{flex:1 1 auto;flex-direction:column;align-items:flex-end;gap:4px}
}

/* 3) payments band: cash | installment companies | banks — one tile size for every logo */
.an-ft__pay{display:grid;gap:14px;padding:18px 20px;margin-bottom:20px;border-radius:18px;background:var(--ft-card-2);border:1px solid var(--ft-line)}
.an-ft__pay-grp{display:flex;align-items:flex-start;gap:8px 16px}
.an-ft__pay-grp+.an-ft__pay-grp{padding-top:14px;border-top:1px solid var(--ft-line)}
.an-ft__pay-lbl{flex:0 0 96px;padding-top:12px;font-size:14px;font-weight:900;color:var(--ft-text)}
.an-ft__tiles{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;gap:8px}
html body .an-ft .an-ft__tiles .anpm-row{display:contents}
html body .an-ft .an-ft__tiles .anpm,.an-ft__tile{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:92px;height:44px;padding:8px 10px;border-radius:11px;background-color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.18);border:0}
html body .an-ft .an-ft__tiles .anpm{background-size:contain;background-origin:content-box;background-repeat:no-repeat;background-position:center}
.an-ft__tile img,html body .an-ft .an-ft__tile .an-fp-logo{display:block;max-width:100%;max-height:26px;width:auto;height:auto;object-fit:contain}
.an-ft__tile--name{padding:4px 8px;color:#2d2a35;font-size:12px;font-weight:900;line-height:1.25;text-align:center;white-space:normal}

/* 4) bottom line: © year (+ the 15–31 December welcome) | follow us | back to top */
.an-ft__bottom{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--ft-line)}
.an-ft__copy{font-size:13px;font-weight:700;color:var(--ft-soft)}
.an-ft__newyear{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:#fff;color:#1b1921;font-size:13px;font-weight:900;box-shadow:0 6px 18px rgba(0,0,0,.25);animation:anFtGlow 2.4s ease-in-out infinite}
.an-ft__newyear[hidden]{display:none}
.an-ft__newyear b{font-weight:900}
.an-ft__newyear i{font-style:italic;font-weight:800;color:#6b6575;font-family:Georgia,'Times New Roman',serif;letter-spacing:.2px}
@keyframes anFtGlow{0%,100%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 0 rgba(255,255,255,.25)}50%{box-shadow:0 6px 18px rgba(0,0,0,.25),0 0 0 6px rgba(255,255,255,0)}}
.an-ft__follow{display:flex;align-items:center;gap:8px;margin-inline:auto}
.an-ft__follow-lbl{font-size:13px;font-weight:900;color:var(--ft-muted);margin-inline-end:4px}
.an-ft__follow-link{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:#fff!important;box-shadow:0 6px 14px rgba(0,0,0,.3);transition:transform .18s}
.an-ft__follow-link svg{width:18px;height:18px}
.an-ft__follow-link:hover{transform:translateY(-2px) scale(1.05)}
.an-ft__follow-link--facebook{background:#1877f2}
.an-ft__follow-link--instagram{background:radial-gradient(circle at 30% 110%,#ffd600 0 10%,#ff7a00 28%,#ff0169 52%,#d300c5 72%,#7638fa 100%)}
.an-ft__follow-link--tiktok{background:#050505;box-shadow:-2px 1px 0 #25f4ee,2px -1px 0 #fe2c55,0 6px 14px rgba(0,0,0,.3)}
.an-ft__follow-link--youtube{background:#ff0000}
.an-ft__top{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 14px;border-radius:999px;border:1px solid var(--ft-line);font-size:13px;font-weight:800;color:var(--ft-muted)!important;transition:color .15s,border-color .15s}
.an-ft__top:hover{color:#fff!important;border-color:rgba(255,255,255,.4)}

@media (min-width:1500px){
  .an-ft__grid{grid-template-columns:minmax(360px,560px) minmax(300px,420px) repeat(2,minmax(170px,260px));justify-content:space-between;gap:24px 48px}
}

/* tablets */
@media (max-width:1099px){
  html body footer.an-site-footer.an-ft{padding-top:32px!important}
  .an-ft__wrap{width:calc(100% - 32px)}
  .an-ft__visit{grid-template-columns:1fr;gap:20px;padding:20px 24px;margin-bottom:28px}
  .an-ft__quick{padding-inline-start:0;padding-top:20px;border-inline-start:0;border-top:1px solid var(--ft-line);grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:center;column-gap:8px}
  .an-ft__quick-lbl{grid-column:1/-1}
  .an-ft__grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);grid-template-areas:"brand brand brand" "trust trust trust" "c1 c2 c3";gap:24px 32px;padding-bottom:28px}
  .an-ft__brand>.an-ft__promises{margin-bottom:0;grid-template-columns:repeat(3,auto);justify-content:start;column-gap:20px}
  .an-ft__trust{flex-direction:column;align-items:stretch;gap:12px;padding:0 0 24px;border-top:0;border-bottom:1px solid var(--ft-line)}
  .an-ft__trust .an-ft__ratings{flex:none}
}

/* phones */
@media (max-width:699px){
  html body footer.an-site-footer.an-ft{margin-top:40px!important;padding-top:24px!important}
  .an-ft__wrap{width:calc(100% - 24px)}
  .an-ft__visit{padding:18px 16px;border-radius:18px;gap:16px;margin-bottom:24px}
  .an-ft__visit-title{font-size:18px;margin-bottom:10px}
  .an-ft__visit-facts li{font-size:14px}
  .an-ft__map{margin-top:12px}
  .an-ft__quick{display:grid;grid-template-columns:1fr;padding-top:16px}
  .an-ft__calls{grid-template-columns:1fr 1fr}
  .an-ft__btn--call{padding:8px 10px}
  .an-ft__call-copy b{font-size:14px}
  .an-ft__grid{grid-template-columns:1fr;grid-template-areas:"brand" "trust" "c1" "c2" "c3";gap:0;padding:0 0 24px}
  .an-ft__trust{gap:12px;padding-bottom:20px;border-bottom:0}
  .an-ft__brand{padding-bottom:16px!important}
  .an-ft__brand{display:block;padding-bottom:20px;border-bottom:0}
  .an-ft__name{font-size:21px!important}
  .an-ft__about{margin-bottom:14px}
  .an-ft__promises,.an-ft__ratings{margin-bottom:14px}
  .an-ft__brand>.an-ft__promises{grid-template-columns:1fr}
  .an-ft__trust .an-ft__ratings{grid-template-columns:1fr 1fr}
  .an-ft__rating{padding:12px}
  .an-ft__rating-mid b{font-size:26px}
  .an-ft__stars{font-size:17px;letter-spacing:2px}
  .an-ft__rating-foot{flex-direction:column;align-items:flex-start;gap:2px}
  .an-ft__col{border-top:1px solid var(--ft-line)}
  .an-ft__col:last-child{border-bottom:1px solid var(--ft-line)}
  .an-ft__col summary{position:relative;display:flex;align-items:center;min-height:52px;margin:0;cursor:pointer}
  html body .an-ft__col h3{padding:0;font-size:16px!important}
  .an-ft__col h3:after{display:none}
  .an-ft__col summary:after{content:"";position:absolute;left:6px;top:50%;width:9px;height:9px;margin-top:-7px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg);transition:transform .2s}
  .an-ft__col[open] summary:after{transform:rotate(135deg);margin-top:-2px}
  .an-ft__col .an-ft__links{grid-template-columns:1fr 1fr;column-gap:12px;padding:0 0 12px}
  .an-ft__links a{min-height:40px;font-size:14px}
  .an-ft__pay{padding:16px;gap:14px;margin-bottom:16px}
  .an-ft__pay-grp{flex-direction:column;gap:10px}
  .an-ft__pay-lbl{flex:none;padding-top:0}
  .an-ft__tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}
  html body .an-ft .an-ft__tiles .anpm,.an-ft__tile{width:auto;height:40px;padding:6px 7px}
  .an-ft__tile img,html body .an-ft .an-ft__tile .an-fp-logo{max-height:22px}
  .an-ft__tile--name{font-size:11px}
  .an-ft__bottom{flex-direction:column;align-items:center;text-align:center;gap:12px}
  .an-ft__follow{order:-2;margin:0}
  .an-ft__newyear{order:-1}
  .an-ft__top{align-self:stretch;justify-content:center}
  .an-ft__trust-head{gap:2px}
}
/* room for the fixed bottom bars on phones (the site script measures them) */
@media (max-width:1024px){
  html body.an-has-bottom-cta footer.an-site-footer.an-ft{padding-bottom:calc(var(--an-bottom-cta-space,92px) + 20px + env(safe-area-inset-bottom,0px))!important}
}
@media (prefers-reduced-motion:reduce){html body .an-ft *{transition:none!important;animation:none!important}}
/* the «أسئلة بتتكرر» band (assets/andalus-faq-v1.css) in the footer's own colours and spacing */
html body .an-ft .an-faq-band{margin:0 0 16px;padding:16px 20px;border-radius:18px;background:var(--ft-card-2);border:1px solid var(--ft-line)}
html body .an-ft .an-faq-band__text span{color:var(--ft-muted)}
