/* Footer update: loaded after site.css. */
.miracle-footer {
  padding: 64px 0 74px;
  border-radius: 36px 36px 0 0;
  background: var(--brand);
  background: linear-gradient(110deg,
    color-mix(in srgb, var(--brand) 85%, #00548f),
    color-mix(in srgb, var(--brand) 88%, #0085cf));
  color: #fff;
}
.miracle-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 64px 44px;
  align-items: start;
  max-width: 1280px;
}
.miracle-footer .footer-brand {
  display: inline-block;
  width: min(192px, 100%);
}
.miracle-footer .footer-brand img {
  display: block;
  width: 100%;
  max-width: 192px;
  height: auto;
  max-height: none;
}
.miracle-footer h3 {
  margin: 0 0 9px;
  color: #fff;
  font: 700 16px/1.4 Montserrat, Arial, sans-serif;
}
.miracle-footer p,
.miracle-footer a {
  color: #fff;
  font: 400 15px/1.5 Montserrat, Arial, sans-serif;
}
.miracle-footer a { text-decoration: none; }
.miracle-footer a:hover { text-decoration: underline; }
.miracle-footer .footer-contact p { max-width: 235px; }
.miracle-footer .footer-contact a { overflow-wrap: anywhere; }
.miracle-footer .footer-privacy {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.miracle-footer .footer-bottom-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.miracle-footer .footer-icons {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}
.miracle-footer .footer-icon {
  display: inline-flex;
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
}
.miracle-footer .footer-icon img {
  display: block;
  width: 55px;
  height: 55px;
}
.miracle-footer a.footer-icon { transition: transform .2s; }
.miracle-footer a.footer-icon:hover { transform: translateY(-3px); }
.miracle-footer .footer-copyright {
  margin: 0;
  grid-column: auto;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
/* Keep the closing section white as requested. */
.closing { background: #fff; padding-bottom: 60px; }
.closing::before, .closing::after { display: none; }
@media (max-width: 1050px) {
  .miracle-footer .footer-grid { gap: 42px 28px; }
  .miracle-footer p, .miracle-footer a { font-size: 13px; }
  .miracle-footer h3 { font-size: 14px; }
  .miracle-footer .footer-bottom-title,
  .miracle-footer .footer-privacy,
  .miracle-footer .footer-copyright { font-size: 12px; }
  .miracle-footer .footer-icons { gap: 18px; }
}
@media (max-width: 767px) {
  .miracle-footer { padding: 40px 0 44px; border-radius: 26px 26px 0 0; }
  .miracle-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .miracle-footer .footer-brand { grid-column: 1 / -1; width: 180px; }
  .miracle-footer .footer-copyright { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .miracle-footer .footer-grid { grid-template-columns: 1fr; gap: 27px; }
  .miracle-footer .footer-brand,
  .miracle-footer .footer-copyright { grid-column: auto; }
  .miracle-footer .footer-contact p { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .miracle-footer a.footer-icon { transition: none; }
}
