/* ============================================================
   XB CAR — footer.css
   Multi-column footer, contact strip, demo notice.
   ============================================================ */

.site-ftr{
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  padding-top:56px;
  position:relative;
}

/* thin green edge along the top */
.site-ftr::before{
  content:""; position:absolute; top:0; inset-inline:0; height:2px;
  background:linear-gradient(90deg, transparent, var(--green), transparent);
  opacity:.55;
}

.ftr-grid{
  display:grid; grid-template-columns:1fr; gap:34px;
  padding-bottom:40px;
}

.ftr-col h4{
  font-size:14px; margin-bottom:16px; letter-spacing:.02em;
  display:flex; align-items:center; gap:8px;
}
.ftr-col h4::before{ content:""; width:14px; height:2px; background:var(--green); flex:none; }

.ftr-brand .brand{ margin-bottom:14px; }
.ftr-about{ color:var(--muted); font-size:14px; line-height:1.85; margin-bottom:18px; max-width:42ch; }

.ftr-links{ display:flex; flex-direction:column; gap:10px; }
.ftr-links a{
  color:var(--muted); font-size:14px; width:fit-content;
  transition:color .2s, padding-inline-start .2s var(--ease);
  position:relative; padding-inline-start:0;
}
.ftr-links a::before{
  content:"‹"; position:absolute; inset-inline-start:0; opacity:0;
  color:var(--green); transition:opacity .2s;
}
html[dir="ltr"] .ftr-links a::before{ content:"›"; }
.ftr-links a:hover{ color:var(--green-ink); padding-inline-start:14px; }
.ftr-links a:hover::before{ opacity:1; }

.ftr-contact{ display:flex; flex-direction:column; gap:13px; }
.ftr-ci{ display:flex; align-items:flex-start; gap:11px; font-size:14px; color:var(--muted); }
.ftr-ci svg{ width:16px; height:16px; flex:none; color:var(--green-ink); margin-top:4px; }
.ftr-ci b{ color:var(--text); font-weight:600; display:block; font-size:13px; }
.ftr-ci a{ transition:color .2s; }
.ftr-ci a:hover{ color:var(--green-ink); }
.ftr-ci .h{ font-family:var(--ff-en); direction:ltr; }
html[dir="rtl"] .ftr-ci .h{ text-align:start; }

.ftr-soc{ display:flex; gap:8px; flex-wrap:wrap; }
.ftr-soc a{
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  border:1px solid var(--line); color:var(--muted);
  transition:border-color .22s, color .22s, background .22s, transform .2s var(--ease);
}
.ftr-soc a:hover{ border-color:var(--green); color:var(--green-ink); background:var(--green-soft); transform:translateY(-3px); }
.ftr-soc svg{ width:16px; height:16px; }

/* rating badge */
.ftr-rating{
  display:flex; align-items:center; gap:12px; padding:13px 16px;
  border:1px solid var(--line); border-radius:12px; background:var(--surface);
  margin-top:16px; width:fit-content;
}
.ftr-rating b{ font-family:var(--ff-en); font-size:22px; font-weight:800; color:var(--green-ink); line-height:1; }
.ftr-rating .rt-txt{ font-size:11.5px; color:var(--muted); line-height:1.5; }

/* ---- bottom bar ------------------------------------------ */
.ftr-bottom{
  border-top:1px solid var(--line);
  padding-block:22px calc(84px + env(safe-area-inset-bottom));
  text-align:center;
}
.ftr-loc{ color:var(--text); font-size:14px; font-weight:600; margin-bottom:8px; }
.ftr-demo{ color:var(--muted); font-size:12.5px; line-height:1.9; max-width:60ch; margin-inline:auto; }
.ftr-demo a{ color:var(--green-ink); font-weight:700; }
.ftr-demo a:hover{ text-decoration:underline; }
.ftr-copy{ color:var(--muted); font-size:11.5px; margin-top:10px; opacity:.75; }

/* ---- compact mobile footer ------------------------------- */
/* Stacked full-width columns made this ~1.7 screens tall on a phone.
   Same content, tighter: two-up link lists and trimmed spacing. */
@media(max-width:639px){
  .site-ftr{ padding-top:32px; }
  .ftr-grid{ gap:22px; padding-bottom:24px; }
  .ftr-col h4{ font-size:13px; margin-bottom:10px; }
  .ftr-brand .brand{ margin-bottom:10px; }
  .ftr-about{ font-size:13px; line-height:1.7; margin-bottom:14px; }
  .ftr-contact{ gap:10px; }
  .ftr-ci{ font-size:13px; }
  .ftr-ci svg{ margin-top:3px; }
  .ftr-soc a{ width:34px; height:34px; }
  .ftr-rating{ margin-top:12px; padding:10px 13px; gap:10px; }
  .ftr-rating b{ font-size:19px; }
  /* bottom padding still has to clear the fixed WhatsApp / theme buttons */
  .ftr-bottom{ padding-block:16px calc(72px + env(safe-area-inset-bottom)); }
  .ftr-loc{ font-size:13px; margin-bottom:6px; }
  .ftr-demo{ font-size:11.5px; line-height:1.7; }
  .ftr-copy{ font-size:10.5px; margin-top:7px; }
}

@media(min-width:640px){
  /* two columns now: brand and contact */
  .ftr-grid{ grid-template-columns:1.4fr 1fr; gap:40px; }
}
@media(min-width:960px){
  .ftr-grid{ grid-template-columns:1.6fr 1fr; gap:56px; }
  .ftr-bottom{ padding-bottom:26px; }
}
