/* =========================================================
   Auto Trader UAE — Creative Premium Footer (EN/AR)
   File: public/assets/css/front/footer.css
========================================================= */

:root{
  --atf-bg:#070A10;      /* near-black */
  --atf-bg2:#0B1220;     /* deep navy/black */
  --atf-card: rgba(255,255,255,.06);
  --atf-line: rgba(255,255,255,.10);
  --atf-text:#F3F4F6;    /* off-white */
  --atf-muted:#A1A1AA;
  --atf-white:#ffffff;

  --atf-accent:#ef4444;  /* AutoTrader red */
  --atf-accent2:#ff2d2d;

  --atf-radius:18px;
  --atf-radius2:14px;
  --atf-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.atf{
  background: linear-gradient(180deg, #05070c 0%, #090c14 100%);
  color: var(--atf-text);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.atf a{ color: var(--atf-text); text-decoration: none; }
.atf a:hover{ color: var(--atf-white); text-decoration: underline; }

.atf-container{
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===================== TOP ===================== */
.atf-glow{
  position:absolute;
  inset:-40px;
  pointer-events:none;
  background:
    radial-gradient(600px 260px at 60% 40%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(520px 220px at 30% 10%, rgba(239,68,68,.06), transparent 60%);
  opacity: .45;
  /* REMOVE THIS - it breaks Chrome scrolling */
  filter: none !important;
  -webkit-filter: none !important;
}

.atf-top{
  padding: 14px 0 0;
}

.atf-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.atf-topbar-copy{
  min-width: 0;
}

.atf-topbar-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.atf-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  opacity: .95;
}

.atf-title{
  margin: 8px 0 6px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.atf-sub{
  margin: 0;
  color: rgba(229,231,235,.92);
  line-height: 1.6;
  font-size: 13px;
  max-width: 620px;
}

.atf-teaser{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(156,163,175,.95);
}

.atf-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--atf-accent), var(--atf-accent2));
  border: 0;
  color:#fff !important;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255,59,59,.16);
  text-decoration:none !important;
  white-space: nowrap;
}
.atf-btn.ghost{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
.atf-btn:hover{ opacity: .98; }
/* ===================== MAIN ===================== */
.atf-main{
  padding: 22px 0 14px;
}

.atf-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
}

.atf-col h4{
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

.atf-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.atf-list a{
  font-size: 13px;
  color: rgba(229,231,235,.90);
  opacity: .95;
}
.atf-list a:hover{ opacity: 1; }

.atf-about-text{
  margin: 10px 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(229,231,235,.90);
}

.atf-social{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.atf-social a{
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration:none !important;
  font-size: 12px;
  font-weight: 800;
  color: rgba(229,231,235,.92);
}
.atf-social a:hover{
  background: rgba(255,255,255,.12);
}

.atf-divider{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 10px 0;
}

/* ===================== MOBILE ACCORDION ===================== */
.atf-acc{ display:none; margin-top: 16px; }
.atf-acc-item{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--atf-radius2);
  overflow:hidden;
  margin-bottom: 8px;
}
.atf-acc-item summary{
  cursor:pointer;
  padding: 12px 14px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  list-style:none;
}
.atf-acc-item summary::-webkit-details-marker{ display:none; }
.atf-acc-item .body{
  padding: 0 14px 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.atf-acc .atf-acc-item .body a{
  font-size: 13px;
  color: rgba(229,231,235,.92);
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 0;
  box-sizing:border-box;
}

/* ===================== BOTTOM ===================== */
.atf-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  padding: 12px 0;
}
.atf-bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.atf-bottom .copy{
  color: rgba(156,163,175,.95);
  font-size: 13px;
}
.atf-bottom .links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.atf-bottom .links a{
  color: rgba(156,163,175,.95);
  font-size: 13px;
}
.atf-bottom .links a:hover{ color:#fff; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px){
  .atf-topbar{
    flex-direction: column;
    align-items: flex-start;
  }
  .atf-topbar-actions{
    justify-content: flex-start;
  }
  .atf-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .atf{
    margin-top: 28px;
  }
  .atf-top{
    display:none;
  }
  .atf-main{
    padding: 16px 0 10px;
  }
  .atf-grid{ display:none; }
  .atf-acc{ display:block; }
  .atf-title{ font-size: 18px; }
  .atf-container{
    width: min(1180px, calc(100% - 20px));
  }
  .atf-bottom{
    padding: 10px 0;
  }
  .atf-bottom-inner{
    gap: 8px;
  }
  .atf-bottom .copy,
  .atf-bottom .links a{
    font-size: 12px;
  }
  .atf-teaser{
    display:none;
  }
}

/* ===================== RTL FIXES ===================== */
.atf-logo{height:44px;width:auto;display:block}
.atf-logo-white{
  filter: brightness(0) invert(1);
  opacity: .98;
}
.site-footer,
.site-footer * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.site-footer::before,
.site-footer::after {
  filter: none !important;
  -webkit-filter: none !important;
}
.site-footer {
  position: relative;
  background: #0b0f1a;
  color: #fff;
}

.site-footer::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  pointer-events:none;
}
.site-footer {
  contain: layout paint style;
  isolation: isolate;
}
.site-footer {
  box-shadow: 0 -8px 30px rgba(0,0,0,.08); /* keep it modest */
}
.atf,
.atf *{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.atf::before,
.atf::after{
  filter:none !important;
  -webkit-filter:none !important;
}

.atf{
  contain: layout paint style;
  isolation: isolate;
}

/* PSI exact nodes: footer accordion mobile touch targets */
.atf-acc .atf-acc-item .body {
  gap: 10px;
}

.atf-acc .atf-acc-item .body > a,
.atf-acc details.atf-acc-item .body > a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  box-sizing: border-box;
  line-height: 1.35;
}

/* PSI exact nodes: footer accordion touch-target spacing */
.atf-acc .atf-acc-item summary {
  margin-bottom: 8px;
}

.atf-acc .atf-acc-item .body {
  padding-top: 8px;
  padding-bottom: 16px;
  gap: 12px;
}

.atf-acc .atf-acc-item .body > a,
.atf-acc details.atf-acc-item .body > a {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 8px;
  box-sizing: border-box;
  line-height: 1.35;
}
