/* Extruck footer — desktop grid + mobile accordion + trust seals */

.ex-footer {
  background: #fff;
  border-top: 4px solid #f59e0b;
  color: #334155;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.06);
}

.ex-footer-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 7.5rem;
}

@media (min-width: 640px) {
  .ex-footer-wrap { padding: 2.25rem 1.5rem 7.5rem; }
}

@media (min-width: 1024px) {
  .ex-footer-wrap { padding: 2.75rem 2rem 2.25rem; }
}

/* Desktop main grid — RTL: first col = right, last = left (trust) */
.ex-footer-grid {
  display: none;
}

@media (min-width: 1024px) {
  .ex-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.75rem 1.5rem;
    align-items: start;
  }
  .ex-footer-grid.has-trust {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(200px, 0.95fr);
  }
}

.ex-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ex-footer-brand-text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.75;
  color: #475569;
  max-width: 18rem;
}

.ex-footer-col-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #e2e8f0;
  font-size: 0.82rem;
  font-weight: 900;
  color: #0f172a;
}

.ex-footer-col-title i {
  color: #d97706;
  font-size: 0.85rem;
}

.ex-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ex-footer-list a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.15s;
}

.ex-footer-list a:hover { color: #d97706; }

.ex-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1e293b;
}

.ex-footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.55;
}

.ex-footer-contact-row i {
  color: #d97706;
  margin-top: 0.15rem;
  width: 0.9rem;
  text-align: center;
  flex-shrink: 0;
}

.ex-footer-contact a {
  color: inherit;
  text-decoration: none;
}
.ex-footer-contact a:hover { color: #d97706; }

/* Trust / Enamad / licenses — visual LEFT on desktop (last grid col in RTL) */
.ex-footer-trust {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1.1rem;
  background: linear-gradient(165deg, #f8fafc 0%, #fff 50%, #fffbeb 100%);
  border: 2px solid #e2e8f0;
  box-shadow: 0 8px 0 #e2e8f0, 0 14px 28px rgba(15, 23, 42, 0.06);
  min-height: 11rem;
}

.ex-footer-trust-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ex-footer-trust-title i { color: #059669; }

.ex-footer-trust-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  flex: 1;
}

.ex-footer-trust-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.4rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  overflow: hidden;
}

.ex-footer-trust-slot:has(a),
.ex-footer-trust-slot:has(img),
.ex-footer-trust-slot:has(iframe),
.ex-footer-trust-slot.is-filled {
  border-style: solid;
  border-color: #e2e8f0;
}

.ex-footer-trust-slot img,
.ex-footer-trust-slot iframe {
  max-width: 100%;
  max-height: 4.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ex-footer-trust-html {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.ex-footer-trust-html img,
.ex-footer-trust-html iframe,
.ex-footer-trust-html a img {
  max-width: 100%;
  max-height: 5.5rem;
  object-fit: contain;
}

.ex-footer-trust-placeholder {
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
  padding: 0.25rem;
}

.ex-footer-trust-note {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.45;
  text-align: center;
}

/* Mobile brand strip */
.ex-footer-mobile-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .ex-footer-mobile-brand { display: none; }
}

.ex-footer-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 1024px) {
  .ex-footer-mobile { display: none; }
}

.ex-footer-acc {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  overflow: hidden;
}

.ex-footer-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  text-align: right;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.ex-footer-acc-btn span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 900;
  color: #0f172a;
}

.ex-footer-acc-btn i { color: #d97706; }

.ex-footer-acc-chevron {
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.ex-footer-acc-btn[aria-expanded="true"] .ex-footer-acc-chevron {
  transform: rotate(180deg);
}

.ex-footer-acc-panel {
  padding: 0 1rem 0.85rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.ex-footer-acc-panel .ex-footer-list {
  padding-top: 0.65rem;
  gap: 0.45rem;
}

.ex-footer-acc-panel .ex-footer-contact {
  padding-top: 0.65rem;
}

.ex-footer-mobile-trust {
  margin-top: 0.35rem;
}

.ex-footer-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.ex-footer-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 3.5rem;
  padding: 0.55rem 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 2px 0 #e2e8f0;
  transition: border-color 0.15s, color 0.15s;
}

.ex-footer-chip:hover {
  border-color: #fcd34d;
  color: #b45309;
}

.ex-footer-chip i { color: #d97706; font-size: 1rem; }
.ex-footer-chip span {
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.2;
}

.ex-footer-copy {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 2px solid #e2e8f0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .ex-footer-copy { font-size: 0.75rem; }
}
