/* Accessibility helpers and mobile-safe floating contact controls. */

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border: 2px solid #111;
  border-radius: 0 0 0.375rem 0.375rem;
  background: #fff;
  color: #111;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.15s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0.75rem);
}

:focus-visible {
  outline: 3px solid #111 !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #fff !important;
}

.lines-button {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 991px) {
  #header #mainMenu-trigger {
    width: 44px;
  }

  .mainMenu-open #header #mainMenu {
    width: 100%;
  }

  #mainMenu-trigger .lines-button {
    width: 44px;
    height: 44px;
  }

  body.mainMenu-open .floating-contacts {
    display: none;
  }
}

.owl-carousel .owl-nav > button,
.owl-carousel .owl-dots > button,
.carousel .owl-nav > button,
.carousel .owl-dots > button,
.inspiro-slider .owl-nav > button,
.inspiro-slider .owl-dots > button {
  position: relative;
  touch-action: manipulation;
}

.owl-carousel .owl-nav > button::after,
.carousel .owl-nav > button::after,
.inspiro-slider .owl-nav > button::after {
  content: "";
  position: absolute;
  inset: -5px;
}

#blog .post-item .post-item-description > p {
  color: #666;
}

[data-animate] {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

#topbar .social-icons li,
#topbar .social-icons li a,
footer .social-icons li,
footer .social-icons li a {
  min-width: 44px;
  min-height: 44px;
}

#topbar .social-icons li a,
footer .social-icons li a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

footer .social-icons li {
  padding: 0 !important;
}

.btn-success,
.btn-success:focus {
  border-color: #17652c !important;
  background-color: #1f7a38 !important;
  color: #fff !important;
}

.btn-success:hover,
.btn-success:active {
  border-color: #104d21 !important;
  background-color: #145f2a !important;
  color: #fff !important;
}

/* Lightweight home-page components. */
.home-hero__content {
  max-width: 58rem;
  margin-inline: auto;
  padding: 3rem 1rem;
}

.home-hero__kicker,
.home-kicker {
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero__kicker {
  font-size: 0.875rem;
}

.home-kicker {
  color: #555;
}

.home-kicker + h2 + .lead {
  color: #666;
}

.home-service-highlights img {
  display: block;
  aspect-ratio: 400 / 106;
  object-fit: contain;
}

.video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.video-facade > button,
.video-facade > iframe {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}

.video-facade > button {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.video-facade > button > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  border-radius: 0.75rem;
  background: #c00;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}

.video-facade__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  transform: translate(-50%, -50%);
}

.video-facade > button:hover .video-facade__play,
.video-facade > button:focus-visible .video-facade__play {
  background: #a00;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-items: center;
}

.brand-grid > [role="listitem"] {
  min-width: 0;
}

.brand-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 275 / 148;
  object-fit: contain;
}

@media (max-width: 991px) {
  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }

  .home-section-title {
    padding-bottom: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.floating-contact {
  position: fixed !important;
  bottom: max(22px, env(safe-area-inset-bottom)) !important;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 44px;
  height: 64px;
  min-height: 44px;
  padding: 4px;
  border-radius: 0.5rem;
  box-sizing: border-box;
  touch-action: manipulation;
  text-align: center;
  text-decoration: none;
}

.floating-contact img {
  display: block;
  width: 56px;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
}

.floating-contact--whatsapp {
  right: auto !important;
  left: 12px !important;
}

.floating-contact--instagram {
  right: auto !important;
  left: 84px !important;
}

.floating-contact--maps {
  right: 12px !important;
  left: auto !important;
}

.floating-contact--waze {
  right: 84px !important;
  left: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (max-width: 480px) {
  body:has(.floating-contact) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .floating-contact {
    bottom: 0 !important;
    width: 25%;
    min-width: 44px;
    height: calc(72px + env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.14);
  }

  .floating-contact--whatsapp {
    right: auto !important;
    left: 0 !important;
  }

  .floating-contact--instagram {
    right: auto !important;
    left: 25% !important;
  }

  .floating-contact--maps {
    right: auto !important;
    left: 50% !important;
  }

  .floating-contact--waze {
    right: auto !important;
    left: 75% !important;
  }
}
