/* ============================================================
   FOOTER.CSS — Premium site footer
   ============================================================ */

/* ============================================================
   FOOTER BASE
   ============================================================ */
.site-footer {
  background: var(--color-primary-dk);
  color: rgba(255, 255, 255, .72);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(240, 22, 38, .5) 30%,
    rgba(233, 185, 73, .5) 70%,
    transparent 100%);
  z-index: 3;
}

/* ============================================================
   MAIN FOOTER
   ============================================================ */
.footer-main {
  position: relative;
  padding: 90px 0 0;
}
.footer-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 60px;
  padding-bottom: 68px;
}

/* ---------- BRAND ---------- */
.footer-brand-link {
  display: inline-block;
  margin-bottom: 22px;
}
.footer-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
}
.footer-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .62);
  margin-bottom: 26px;
  max-width: 340px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- TITLES ---------- */
.footer-title {
  position: relative;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 26px;
  padding-bottom: 16px;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ---------- LINKS ---------- */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .68);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.footer-links i {
  font-size: 10px;
  color: rgba(255, 255, 255, .28);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-links a:hover i {
  color: var(--color-accent);
  transform: translateX(2px);
}

/* ---------- COMPANY EXTRAS ---------- */
.footer-hours {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
}
.footer-hours i {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(233, 185, 73, .12);
  border: 1px solid rgba(233, 185, 73, .25);
  border-radius: 10px;
  color: var(--color-gold);
  font-size: 14px;
}
.footer-hours strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.footer-hours span {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

/* ---------- CONTACT ---------- */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-contact-icon {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  color: var(--color-accent);
  font-size: 14px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.footer-contact-list li:hover .footer-contact-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.footer-contact-list small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  font-weight: 500;
  margin-bottom: 3px;
}
.footer-contact-list a,
.footer-contact-list li > div > span {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  transition: color .3s var(--ease);
  word-break: break-word;
}
.footer-contact-list a:hover { color: var(--color-accent); }

.footer-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: rgba(240, 22, 38, .1);
  border: 1px solid rgba(240, 22, 38, .3);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 999px;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.footer-contact-cta i {
  font-size: 11px;
  transition: transform .3s var(--ease);
}
.footer-contact-cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.footer-contact-cta:hover i { transform: translateX(3px); }

/* ============================================================
   TRUST ROW
   ============================================================ */
.footer-trust {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 24px;
  border-right: 1px solid rgba(255, 255, 255, .07);
  transition: background .3s var(--ease);
}
.footer-trust-item:last-child { border-right: none; }
.footer-trust-item:hover { background: rgba(255, 255, 255, .025); }
.footer-trust-item i {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(233, 185, 73, .12);
  border: 1px solid rgba(233, 185, 73, .25);
  border-radius: 12px;
  color: var(--color-gold);
  font-size: 15px;
}
.footer-trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -.1px;
}
.footer-trust-item span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */
.footer-bottom {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, .18);
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
}
.footer-copyright {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .55);
}
.footer-copyright strong {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: center;
}
.footer-legal li { position: relative; }
.footer-legal li + li::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 3px;
  background: rgba(255, 255, 255, .3);
  border-radius: 50%;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  transition: color .3s var(--ease);
}
.footer-legal a:hover { color: #fff; }

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.footer-top-link i {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  font-size: 11px;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.footer-top-link:hover { color: #fff; }
.footer-top-link:hover i {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================================
   BACK-TO-TOP (floating)
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  font-size: 15px;
  box-shadow: 0 14px 36px rgba(12, 26, 68, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s var(--ease), background .3s var(--ease);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--color-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .footer-grid { gap: 40px; }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { max-width: 520px; }
}

@media (max-width: 900px) {
  .footer-main { padding-top: 68px; }

  .footer-trust { grid-template-columns: repeat(2, 1fr); }
  .footer-trust-item:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .07); }
  .footer-trust-item:nth-child(even) { border-right: none; }
  .footer-trust-item:nth-child(1),
  .footer-trust-item:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
    padding: 26px 0;
  }
  .footer-legal { justify-self: center; }
  .footer-top-link { justify-self: center; }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-trust { grid-template-columns: 1fr; }
  .footer-trust-item { border-right: none !important; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .footer-trust-item:last-child { border-bottom: none; }

  .footer-legal { flex-wrap: wrap; gap: 14px; }
  .footer-legal li + li::before { display: none; }
}

@media (max-width: 520px) {
  .footer-copyright { font-size: 12.5px; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}