/* ==========================================================================
   Evolve footer — solid, simple, editorial
   Fonts / colors / spacing from variables.css
   ========================================================================== */

.evolve-footer {
  width: 100%;
  /* Horizontal inset via __inner — match .site-header__inner / .container */
  padding: clamp(52px, 7vw, 88px) 0 22px;
  background: var(--color-ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

.evolve-footer,
.evolve-footer * {
  box-sizing: border-box;
}

.evolve-footer a {
  color: inherit;
  text-decoration: none;
}

.evolve-footer a:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 4px;
}

.evolve-footer__inner {
  width: min(100% - (var(--page-inline) * 2), var(--container));
  margin-inline: auto;
}

/* Contact row */
.evolve-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-7);
  padding-bottom: clamp(2.4rem, 4vw, 3.4rem);
  border-bottom: 1px solid var(--border-on-dark);
}

.evolve-footer__intro {
  max-width: 700px;
}

.evolve-footer__eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--color-lime);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.evolve-footer__title {
  margin: 0;
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.4vw, var(--text-4xl));
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: -0.04em;
}

.evolve-footer__title em {
  color: var(--color-lime);
  font-family: var(--font-heading);
  font-weight: var(--weight-light);
  font-style: italic;
}

.evolve-footer__description {
  max-width: 520px;
  margin: var(--space-4) 0 0;
  color: var(--text-on-dark-soft);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.8;
}

.evolve-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.evolve-footer__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-lime);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-lime) !important;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.evolve-footer__email svg {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.evolve-footer__email:hover {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-text) !important;
  text-decoration: none;
}

.evolve-footer__email:hover svg {
  transform: translateX(3px);
}

.evolve-footer__phone {
  color: var(--text-on-dark) !important;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  transition: color var(--transition);
}

.evolve-footer__phone:hover,
.evolve-footer__text-link:hover {
  color: var(--color-lime) !important;
  text-decoration: none;
}

/* Partner badges */
.evolve-footer__badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-5);
}

.evolve-footer__badge-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
}

.evolve-footer__badge-link img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Office list */
.evolve-footer__offices {
  padding: clamp(2rem, 4vw, 2.6rem) 0 clamp(2.2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-on-dark);
}

.evolve-footer__offices-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.evolve-footer__offices-heading h3 {
  margin: 0;
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
}

.evolve-footer__offices-heading p {
  margin: 0;
  color: var(--text-on-dark-soft);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
}

.evolve-footer__office-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.evolve-footer__office {
  min-width: 0;
  margin: 0;
  padding: var(--space-1) var(--space-6) var(--space-1) 0;
}

.evolve-footer__office + .evolve-footer__office {
  padding-left: var(--space-6);
  border-left: 1px solid var(--border-on-dark);
}

.evolve-footer__office-label {
  margin: 0 0 var(--space-2);
  color: var(--color-lime);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.evolve-footer__office h4 {
  margin: 0 0 var(--space-3);
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  line-height: 1.35;
}

.evolve-footer__address {
  display: block;
  max-width: 360px;
  min-height: 72px;
  margin-bottom: var(--space-4);
  color: var(--text-on-dark-soft) !important;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.8;
  transition: color var(--transition);
}

.evolve-footer__address:hover {
  color: var(--color-lime) !important;
  text-decoration: none;
}

.evolve-footer__contact-list {
  display: grid;
  gap: var(--space-2);
}

.evolve-footer__text-link {
  width: fit-content;
  max-width: 100%;
  color: var(--text-on-dark) !important;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  overflow-wrap: anywhere;
  transition: color var(--transition);
}

.evolve-footer__text-link span {
  display: inline-block;
  min-width: 52px;
  margin-right: var(--space-3);
  color: var(--text-on-dark-soft);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Bottom navigation */
.evolve-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-5);
}

.evolve-footer__copyright {
  margin: 0;
  color: var(--text-on-dark-soft);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
}

.evolve-footer__links,
.evolve-footer__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.evolve-footer__links a {
  color: var(--text-on-dark-soft);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  transition: color var(--transition);
}

.evolve-footer__links a:hover {
  color: var(--color-lime);
  text-decoration: none;
}

.evolve-footer__socials {
  gap: var(--space-3);
}

.evolve-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--text-on-dark) 28%, transparent);
  border-radius: 50%;
  color: var(--text-on-dark);
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.evolve-footer__socials a:hover {
  color: var(--color-lime);
  border-color: var(--color-lime);
  background: color-mix(in srgb, var(--color-lime) 10%, transparent);
  text-decoration: none;
}

.evolve-footer__socials svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .evolve-footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: start;
  }

  .evolve-footer__badges {
    justify-content: flex-start;
  }

  .evolve-footer__office {
    padding-right: var(--space-5);
  }

  .evolve-footer__office + .evolve-footer__office {
    padding-left: var(--space-5);
  }
}

@media (max-width: 680px) {
  .evolve-footer {
    padding: var(--space-7) 0 var(--space-5);
  }

  .evolve-footer__top {
    padding-bottom: var(--space-7);
  }

  .evolve-footer__title {
    font-size: clamp(2rem, 9vw, var(--text-3xl));
  }

  .evolve-footer__description {
    font-size: var(--text-base);
  }

  .evolve-footer__badges {
    gap: var(--space-4);
  }

  .evolve-footer__badge-link {
    flex-basis: 112px;
    width: 112px;
    height: 112px;
  }

  .evolve-footer__offices {
    padding: var(--space-6) 0 var(--space-3);
  }

  .evolve-footer__offices-heading {
    display: block;
    margin-bottom: var(--space-4);
  }

  .evolve-footer__offices-heading h3 {
    font-size: var(--text-xl);
  }

  .evolve-footer__offices-heading p {
    margin-top: var(--space-2);
  }

  .evolve-footer__office-grid {
    grid-template-columns: 1fr;
  }

  .evolve-footer__office,
  .evolve-footer__office + .evolve-footer__office {
    padding: var(--space-5) 0;
    border-left: 0;
    border-top: 1px solid var(--border-on-dark);
  }

  .evolve-footer__office:first-child {
    border-top: 0;
  }

  .evolve-footer__address {
    min-height: 0;
    margin-bottom: var(--space-3);
  }

  .evolve-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
  }

  .evolve-footer__links {
    gap: var(--space-3) var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .evolve-footer * {
    transition-duration: 0.01ms !important;
  }
}

/* ---- Floating WhatsApp button ---- */
.evolve-whatsapp {
  position: fixed;
  right: max(var(--space-5), env(safe-area-inset-right));
  bottom: max(var(--space-5), env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.evolve-whatsapp:hover,
.evolve-whatsapp:focus-visible {
  background: var(--color-whatsapp-hover);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.evolve-whatsapp:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.evolve-whatsapp .qlwapp__icon,
.evolve-whatsapp .qlwapp-whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 0;
}

.evolve-whatsapp .qlwapp__icon svg,
.evolve-whatsapp .qlwapp-whatsapp-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .evolve-whatsapp {
    right: max(var(--space-4), env(safe-area-inset-right));
    bottom: max(var(--space-4), env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evolve-whatsapp {
    transition: none;
  }

  .evolve-whatsapp:hover,
  .evolve-whatsapp:focus-visible {
    transform: none;
  }
}
