.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  transition: all 0.3s ease-in-out;
}

.whatsapp-float img {
  width: clamp(30px, 3.2vw, 50px);
  height: clamp(30px, 3.2vw, 50px);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ========== Shared footer redesign (used on every page) ========== */
.footer-redesigned {
  --footer-mono: "Roboto Mono", "Courier New", Courier, monospace;
  background-color: #12141d;
  color: #ffffff;
  font-family: var(--footer-mono);
  position: relative;
  padding: 4rem 0 5rem;
  overflow: visible;
  isolation: isolate;
}

.footer-redesigned .footer-grid-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: flex-start;
}

.footer-redesigned .footer-col-brand .footer-brand-logo img {
  max-width: 220px;
  height: auto;
  display: block;
}

.footer-redesigned .footer-tagline {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-redesigned .footer-brand-desc {
  margin: 0;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.footer-redesigned .footer-heading {
  font-family: var(--footer-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem;
}

.footer-redesigned .footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-redesigned .footer-link-list li {
  margin: 0 0 1rem;
}

.footer-redesigned .footer-link-list a {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 4px;
  transition: color 0.25s ease, transform 0.25s ease, margin-left 0.25s ease;
}

.footer-redesigned .footer-link-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.footer-redesigned .footer-link-list a:hover,
.footer-redesigned .footer-link-list a:focus-visible {
  color: var(--accent-color);
  margin-left: 8px;
  outline: none;
}

.footer-redesigned .footer-link-list a:hover::after,
.footer-redesigned .footer-link-list a:focus-visible::after {
  transform: scaleX(1);
}

.footer-redesigned .footer-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-redesigned .footer-country-list li {
  margin: 0 0 0.65rem;
}

.footer-redesigned .footer-country-btn {
  font-family: var(--footer-mono);
  font-size: 0.9rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.footer-redesigned .footer-country-btn:hover {
  color: var(--accent-color);
}

.footer-redesigned .footer-country-btn.is-active {
  color: var(--accent-color);
  font-weight: 600;
}

.footer-redesigned .footer-icons-circles {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-redesigned .footer-icons-circles a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0a0a;
  margin-top: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-redesigned .footer-icons-circles a:hover {
  margin-top: 0;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-redesigned .footer-icons-circles .icon-social {
  width: 20px;
  height: 20px;
  fill: #181823;
}

.footer-redesigned .footer-icons-circles .icon-social.linked-in {
  width: 20px;
  height: 20px;
}

.footer-back-top {
  position: absolute;
  right: max(1rem, calc((100vw - 1280px) / 2));
  bottom: 2rem;
  height: 60px;
  min-width: 60px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #181823;
  font-family: var(--footer-mono);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: padding 0.35s ease, gap 0.35s ease, color 0.25s ease,
    box-shadow 0.25s ease;
  z-index: 2;
}

.footer-back-top__icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.35s ease, flex-basis 0.35s ease, width 0.35s ease;
}

.footer-back-top__icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.footer-back-top__label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transform: translateX(-4px);
  transition: max-width 0.35s ease, opacity 0.25s ease 0.05s,
    transform 0.3s ease;
}

.footer-back-top:hover,
.footer-back-top:focus-visible {
  color: var(--accent-color);
  padding-right: 1.4rem;
  gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  outline: none;
}

.footer-back-top:hover .footer-back-top__icon,
.footer-back-top:focus-visible .footer-back-top__icon {
  flex-basis: 46px;
  width: 46px;
  animation: footerBackTopJump 1.6s ease-in-out infinite;
}

.footer-back-top:hover .footer-back-top__label,
.footer-back-top:focus-visible .footer-back-top__label {
  max-width: 200px;
  opacity: 1;
  transform: translateX(0);
}

@keyframes footerBackTopJump {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-7px);
  }
  60% {
    transform: translateY(2px);
  }
  80% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-back-top,
  .footer-back-top__icon,
  .footer-back-top__label {
    transition: none;
  }
  .footer-back-top:hover .footer-back-top__icon,
  .footer-back-top:focus-visible .footer-back-top__icon {
    animation: none;
  }
}

.footer-redesigned .footer-col-address {
  position: relative;
  z-index: 5;
  overflow: visible;
}

.footer-redesigned .footer-address-block {
  position: relative;
  overflow: visible;
}

.footer-contact-tooltip {
  position: fixed;
  z-index: 11000;
  width: min(384px, calc(100vw - 24px));
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.footer-contact-tooltip.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.footer-contact-tooltip[hidden] {
  display: none !important;
}

.footer-contact-tooltip__panel {
  position: relative;
  pointer-events: auto;
  width: 100%;
  background: #ffffff;
  color: #0a0a0a;
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  font-family: var(--footer-mono);
}

.footer-contact-tooltip__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #0a0a0a;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s ease;
}

.footer-contact-tooltip__close svg {
  width: 14px;
  height: 14px;
  display: block;
}

.footer-contact-tooltip__close:hover {
  opacity: 0.85;
}

.footer-contact-tooltip__title {
  margin: 0 1.75rem 0.85rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a0a0a;
}

.footer-contact-tooltip__rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-contact-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
}

.footer-contact-row__icon {
  flex-shrink: 0;
  color: #0a0a0a;
  margin-top: 1px;
}

.footer-contact-row__icon svg {
  width: 16px;
  height: 16px;
}

.footer-contact-row__text {
  color: #0a0a0a;
  word-break: break-word;
}

.footer-contact-row__link {
  color: #0a0a0a;
  text-decoration: none;
}

.footer-contact-row__link:hover {
  color: var(--accent-color);
}

/* Tablet (≤1199px) — keep 4 cols but ease the brand width */
@media (max-width: 1199px) {
  .footer-redesigned {
    padding: 3.5rem 0 6rem;
  }

  .footer-redesigned .footer-grid-main {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer-back-top {
    right: 1.25rem;
    bottom: 1.5rem;
  }
}

/* Small tablet (≤991px) — brand on top row spanning full width */
@media (max-width: 991px) {
  .footer-redesigned .footer-grid-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }

  .footer-redesigned .footer-col-brand {
    grid-column: 1 / -1;
    max-width: 540px;
  }

  .footer-redesigned .footer-brand-desc {
    max-width: 100%;
  }
}

/* Mobile landscape (≤767px) — 2 columns under brand */
@media (max-width: 767px) {
  .footer-redesigned {
    padding: 3rem 0 6rem;
  }

  .footer-redesigned .footer-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .footer-redesigned .footer-col-brand {
    grid-column: 1 / -1;
  }

  .footer-redesigned .footer-heading {
    margin-bottom: 1rem;
  }

  .footer-back-top {
    right: 1rem;
    bottom: 1rem;
    height: 52px;
    min-width: 52px;
  }

  .footer-back-top__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }

  .footer-back-top__icon svg {
    width: 22px;
    height: 22px;
  }

  .footer-back-top:hover .footer-back-top__icon,
  .footer-back-top:focus-visible .footer-back-top__icon {
    flex-basis: 40px;
    width: 40px;
  }

  .footer-back-top:hover,
  .footer-back-top:focus-visible {
    padding-right: 1.1rem;
    gap: 0.3rem;
  }
}

/* Mobile (≤479px) — single column, tighter rhythm */
@media (max-width: 479px) {
  .footer-redesigned {
    padding: 2.5rem 0 5.5rem;
  }

  .footer-redesigned .footer-grid-main {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-redesigned .footer-col-brand .footer-brand-logo img {
    max-width: 180px;
  }

  .footer-redesigned .footer-tagline {
    font-size: 0.9rem;
    margin: 1rem 0 0.6rem;
  }

  .footer-redesigned .footer-brand-desc {
    font-size: 0.85rem;
  }

  .footer-redesigned .footer-heading {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }

  .footer-redesigned .footer-link-list li {
    margin: 0 0 0.75rem;
  }

  .footer-redesigned .footer-icons-circles {
    gap: 0.5rem;
  }

  .footer-redesigned .footer-icons-circles a {
    width: 40px;
    height: 40px;
  }

  .footer-redesigned .footer-icons-circles .icon-social,
  .footer-redesigned .footer-icons-circles .icon-social.linked-in {
    width: 18px;
    height: 18px;
  }

  /* Tooltip on small phones — fill almost full width */
  .footer-contact-tooltip {
    width: calc(100vw - 24px) !important;
  }

  .footer-contact-tooltip__panel {
    padding: 1rem 1.1rem 1rem;
  }

  .footer-back-top {
    height: 48px;
    min-width: 48px;
  }

  .footer-back-top__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .footer-back-top__icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ========== Shared bottom-bar (copyright + legal links) ========== */
.bottom-bar-container {
  padding-top: 20px;
  font-size: 14px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  color: #747474;
}

.bottom-bar-container p {
  margin: 0;
}

.bottom-bar-container a:nth-child(1) {
  border-right: 1px solid #747474;
}

.bottom-bar-container a {
  color: #747474;
  padding: 0 10px;
  transition: all 0.2s linear;
  text-decoration: none;
}

.bottom-bar-container a:hover {
  color: var(--accent-color);
}

@media (min-width: 640px) {
  .bottom-bar-container {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .bottom-bar-container a {
    padding: 0 20px;
  }
}
