/* Complementos de usabilidade, acessibilidade e responsividade. */

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.nav-cta:focus-visible,
.btn-primary:focus-visible {
  outline-color: var(--blue2);
}

.lead-form input[aria-invalid="true"],
.lead-form select[aria-invalid="true"] {
  border-color: #C62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .12);
}

.form-feedback {
  min-height: 1.25rem;
  margin: 0;
  color: #B42318;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.lead-form .btn[aria-busy="true"] {
  cursor: wait;
  opacity: .78;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float {
  border: 0;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.lead-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 17, 39, .7);
}

.lead-modal[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--light);
  color: var(--navy);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover {
  background: #e3ebf5;
}

.transformer-gallery {
  margin-top: 54px;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.gallery-head .kicker {
  margin-bottom: 7px;
}

.gallery-head h3 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.gallery-controls {
  display: flex;
  gap: 9px;
}

.gallery-control {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-size: 22px;
  transition: .2s;
}

.gallery-control:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.gallery-track {
  display: flex;
  transition: transform .45s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  height: clamp(300px, 43vw, 500px);
  background: var(--navy);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b6c2d1;
  cursor: pointer;
}

.gallery-dots button[aria-current="true"] {
  width: 24px;
  border-radius: 99px;
  background: var(--blue);
}

.location-map {
  margin-top: 0;
}

.location-section {
  background: var(--light);
}

.location-map-head {
  margin-bottom: 16px;
}

.location-map-head .kicker {
  color: var(--yellow);
  margin-bottom: 7px;
}

.location-map-head h3 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 350px;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

@media (max-width: 600px) {
  .nav {
    gap: 12px;
  }

  .nav-cta {
    min-height: 40px;
    text-align: center;
  }

  .hero-actions .btn,
  .service-cta .btn {
    width: 100%;
  }

  .lead-modal {
    padding: 14px;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-slide {
    height: 300px;
  }

  .location-map {
    margin-top: 0;
  }

  .location-map iframe {
    height: 300px;
  }

  .modal-dialog {
    max-height: calc(100vh - 28px);
    padding: 24px 20px;
  }

  .trust-line {
    gap: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
