/* Footer modernization — matches site design language */

.footer--modern {
  --footer-bg: #0f172a;
  --footer-bg-soft: #111827;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-muted: #94a3b8;
  --footer-text: #e2e8f0;
  --footer-brand: #da2127;
  background-color: var(--footer-bg);
}

.footer--modern .footer-primary {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer--modern__grid {
  align-items: flex-start;
}

@media (min-width: 992px) {
  .footer--modern__grid {
    display: grid;
    grid-template-columns: minmax(11rem, 1.25fr) repeat(5, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 1.25rem;
  }

  .footer--modern__grid > [class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding-left: 0;
    padding-right: 0;
  }

  .footer--modern .footer-widget-title {
    font-size: 0.8125rem;
  }

  .footer--modern .footer-widget-nav li a {
    font-size: 0.75rem;
  }

  .footer--modern__phone {
    font-size: 0.9375rem;
  }

  .footer--modern__address {
    font-size: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .footer--modern__grid {
    grid-template-columns: minmax(12.5rem, 1.35fr) repeat(5, minmax(0, 1fr));
    column-gap: 1.25rem;
  }
}

.footer--modern__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.15rem;
  text-decoration: none;
}

.footer--modern__logo {
  display: block;
  width: auto;
  max-width: 150px;
  height: auto;
  max-height: 48px;
}

.footer--modern .footer-widget {
  margin-bottom: 1.5rem;
}

.footer--modern .footer-widget-title {
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #fff;
}

.footer--modern .footer-widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background: var(--footer-brand);
}

.footer--modern__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer--modern__phone i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: var(--header-radius-sm, 0.375rem);
  background: rgba(218, 33, 39, 0.15);
  color: var(--footer-brand);
  font-size: 0.75rem;
}

.footer--modern__phone:hover,
.footer--modern__phone:focus {
  color: var(--footer-brand);
  text-decoration: none;
}

.footer--modern__address {
  margin: 0 0 1rem;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--footer-muted);
}

.footer--modern__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer--modern__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--footer-border);
  border-radius: var(--header-radius-sm, 0.375rem);
  color: var(--footer-muted);
  font-size: 0.75rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.footer--modern__social a:hover,
.footer--modern__social a:focus {
  background: var(--footer-brand);
  border-color: var(--footer-brand);
  color: #fff;
  text-decoration: none;
}

.footer--modern .footer-widget-nav li a {
  margin-bottom: 0.45rem;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--footer-muted);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.footer--modern .footer-widget-nav li a:hover,
.footer--modern .footer-widget-nav li a:focus {
  color: #fff;
  padding-left: 0.15rem;
}

.footer--modern .footer-copyrights {
  padding: 0.95rem 0;
  border-top: 1px solid var(--footer-border);
  background: var(--footer-bg-soft);
}

.footer--modern__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer--modern__copy p {
  margin: 0;
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--footer-muted);
}

@media (max-width: 991.98px) {
  .footer--modern .footer-primary {
    padding-top: 2.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .footer--modern__logo {
    max-height: 42px;
  }

  .footer--modern .footer-widget-title {
    font-size: 0.8125rem;
  }
}

/* ----- Floating action dock (WhatsApp + scroll top) ----- */
.float-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1045;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.float-actions > * {
  pointer-events: auto;
}

.wa-support {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.wa-support__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 17rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--header-radius-sm, 0.375rem);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wa-support__btn:hover,
.wa-support__btn:focus {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.2);
  color: inherit;
  text-decoration: none;
  outline: none;
}

.wa-support__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--header-radius-sm, 0.375rem) - 1px);
  background: #25d366;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

.wa-support__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  padding-right: 0.15rem;
}

.wa-support__label {
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.wa-support__hint {
  font-family: Rubik, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #64748b;
}

.scroll-top-btn,
#scrollTopBtn.scroll-top-btn,
#scrollTopBtn {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--header-radius-sm, 0.375rem) !important;
  background: #0f172a !important;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#scrollTopBtn.actived {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover,
#scrollTopBtn:focus {
  background: var(--header-brand, #da2127) !important;
  border-color: var(--header-brand, #da2127);
  color: #fff;
  box-shadow: 0 10px 26px rgba(218, 33, 39, 0.28);
  outline: none;
}

@media (max-width: 767.98px) {
  .float-actions {
    right: 0.85rem;
    bottom: 0.85rem;
    gap: 0.4rem;
  }

  .wa-support__btn {
    padding: 0.45rem;
    gap: 0;
    border-radius: var(--header-radius-sm, 0.375rem);
  }

  .wa-support__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .wa-support__icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
    font-size: 1.35rem;
    border-radius: calc(var(--header-radius-sm, 0.375rem) - 1px);
  }

  #scrollTopBtn {
    width: 2.75rem;
    height: 2.75rem;
  }
}