.footer {
  margin-top: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-main {
  padding: 3.5rem 0 3rem;
  background: var(--brand-primary-color);
}

.footer-bottom {
  padding: 1.15rem 0;
  background: var(--brand-secondary-color);
}

.footer-block {
  height: 100%;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-home-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo {
  max-width: 180px !important;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-title {
  display: inline-block;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--brand-header-text-color);
  text-transform: uppercase;
}

.footer-heading {
  margin: 0 0 1.2rem;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--brand-header-text-color);
  white-space: nowrap;
}

.footer-address,
.footer-workhours,
.footer-contact,
.footer-navigation,
.footer-service-nav {
  color: var(--brand-secondary-color-light);
}

.footer-address {
  margin: 0;
  font-style: normal;
}

.footer-address p, .footer-contact p {
  line-height: 1.7;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  word-break: break-word;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  margin-right: 0.3rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-menu,
.footer-service-menu,
.footer-legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li,
.footer-service-menu li,
.footer-address p {
  margin: 0 0 0.35rem;
}

.footer-menu li:last-child,
.footer-service-menu li:last-child {
  margin-bottom: 0;
}

.footer-menu a,
.footer-service-menu a,
.footer-contact a,
.footer-address a {
  text-decoration: none;
  color: var(--brand-secondary-color-light);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible,
.footer-service-menu a:hover,
.footer-service-menu a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible,
.footer-address a:hover,
.footer-address a:focus-visible {
  color: var(--brand-accent-color);
}

.footer-bottom .row {
  min-height: 42px;
}

.footer-copyright {
  margin: 0;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 300;
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
}

.footer-legal-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

.footer-legal-menu li {
  margin-bottom: 0;
  position: relative;
}

.footer-legal-menu li:not(:last-child)::after {
  content: "|";
  margin-left: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-legal-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 300;
}

.footer-legal-menu a:hover,
.footer-legal-menu a:focus-visible {
  opacity: 1;
  color: var(--brand-accent-color);
  text-decoration: underline;
}

/* optional: hide old social block style if somewhere reused */
.footer-social {
  display: none;
}

.floating-buttons {
  position: fixed;
  right: 4rem;
  bottom: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.floating-button {
  padding: 0.4rem;
  width: 35px;
  height: 35px;
  background: var(--brand-accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.floating-button img {
  filter: brightness(0) invert(1);
}

.floating-button:hover {
  background: var(--brand-accent-color-hover);
  transform: scale(1.1);
}

@media (max-width: 991.98px) {
  .footer-main {
    padding: 3rem 0 2.5rem;
  }

  .footer-logo {
    max-width: 160px;
  }

  .footer-heading {
    font-size: 1.35rem;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .footer-legal-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .footer-main {
    padding: 2.5rem 0 2rem;
  }

  .footer-heading {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
  }

  .footer-logo {
    max-width: 140px;
    max-height: 60px;
  }

  .footer-bottom {
    padding: 1rem 0;
  }

  .footer-copyright {
    font-size: 0.92rem;
  }

  .footer-legal-menu {
    gap: 0.35rem 0.7rem;
  }

  .footer-legal-menu li:not(:last-child)::after {
    margin-left: 0.7rem;
  }

  footer .floating-buttons {
    display: none;
  }
}