/* =====================================================================
   Footer Override
   Replaces existing template footer with design_3 structure.
===================================================================== */

/* ============================================================
   FOOTER COLORS & LAYOUT
============================================================ */
.d3-foot {
  background: #fbfcfd; /* --paper */
  color: #45566E;
  font-family: var(--d3-ff-body, 'Rubik', system-ui, sans-serif);
  border-top: 1px solid rgba(100, 117, 137, .2);
}

.d3-foot .d3-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.d3-foot .d3-wrap {
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.d3-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.8rem) clamp(1rem, 2.5vw, 2rem);
}

.d3-foot__brand .d3-brand {
  font-family: var(--d3-ff-disp, 'Poppins', system-ui, sans-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #031031; /* --ink */
  letter-spacing: -.01em;
  display: block;
}

.d3-foot__brand .d3-brand b {
  color: #FC372E; /* --brand */
  font-weight: 600;
}

.d3-foot__brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin: .65rem 0 0;
  max-width: 34ch;
  color: #45566E; /* --ink-soft */
}

.d3-foot h4 {
  font-size: .88rem;
  font-weight: 600;
  color: #031031; /* --ink */
  margin: 0 0 1rem;
}

.d3-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.d3-foot ul li {
  margin-bottom: .7rem;
}

.d3-foot ul li:last-child {
  margin-bottom: 0;
}

.d3-foot ul a {
  color: #45566E; /* --ink-soft */
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s;
}

.d3-foot ul a:hover {
  color: #FC372E; /* --brand */
}

/* ============================================================
   COPYRIGHT BAR
============================================================ */
.d3-copy {
  border-top: 1px solid rgba(100, 117, 137, .2);
  text-align: center;
  color: #647589; 
  font-size: .82rem;
  padding: 1.4rem 0;
  margin-top: 20px;
}

.d3-copy span {
  color: #FC372E; /* --brand */
  font-weight: 700;
}

/* ============================================================
   BACK TO TOP BUTTON
============================================================ */
.d3-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #FC372E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.d3-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.d3-top-btn:hover {
  background: #0058BD;
}

.d3-top-btn i {
  font-size: 16px;
  line-height: 1;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .d3-foot__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .d3-foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1.2rem;
  }
  .d3-foot__brand {
    grid-column: 1 / -1;
  }
}
