html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-width: 320px;
  position: relative;
  background-color: #eef3f6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../assets/img/background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  background: #000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  position: relative;
  color: #e6f7ff;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.site-nav .nav-link {
  position: relative;
  color: #e6f7ff;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.22s cubic-bezier(.2, .9, .2, 1), color 0.18s ease, box-shadow 0.22s;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scaleX(0.95) translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(.2, .9, .2, 1);
  pointer-events: none;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 8px;
  height: 3px;
  background: linear-gradient(90deg, #0ab0ff, rgba(255, 255, 255, 0.9));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(.2, .9, .2, 1), opacity 0.18s;
  opacity: 0;
  z-index: 1;
  border-radius: 3px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  transform: translateY(-4px);
  color: #fff;
  outline: none;
  box-shadow: 0 12px 30px rgba(11, 16, 20, 0.35);
}

.site-nav .nav-link:hover::before,
.site-nav .nav-link:focus::before {
  opacity: 1;
  transform: scaleX(1) translateY(0);
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus::after {
  transform: scaleX(1);
  opacity: 1;
}

.site-nav .nav-link.active {
  color: #fff;
  font-weight: 700;
}

.site-nav .nav-link.active::before {
  opacity: 1;
  transform: scaleX(1) translateY(0);
  background: linear-gradient(90deg, rgba(10, 176, 255, 0.10), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(10, 176, 255, 0.12);
}

.site-nav .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav .nav-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(10, 176, 255, 0.12);
  border-radius: 12px;
}

.nav-toggle-cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #e6f7ff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 820px) {
  .site-nav {
    justify-content: center;
    padding: 10px 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    margin-top: 8px;
    background: rgba(3, 10, 18, 0.97);
    backdrop-filter: blur(14px);
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(.2, .9, .2, 1);
  }

  .nav-toggle-cb:checked ~ .nav-links {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links .nav-link {
    display: block;
    width: 100%;
    padding: 10px 10px;
    margin: 2px 0;
    color: #fff;
    text-align: center;
  }

  .nav-links .nav-link::after {
    bottom: 4px;
  }
}

.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  z-index: 9999;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.whatsapp-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  background: transparent;
}

.whatsapp-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

#solution-placeholder:empty,
#banner-clients-placeholder:empty,
#carousel-clients-placeholder:empty,
#carousel-colab-placeholder:empty,
#form-placeholder:empty,
#map-container:empty,
#footer-placeholder:empty {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#solution-placeholder:empty {
  max-width: 1280px;
  min-height: 960px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 40px;
  border-radius: 24px;
}

#banner-clients-placeholder:empty {
  min-height: 340px;
  aspect-ratio: 16 / 5;
}

#carousel-clients-placeholder:empty {
  min-height: 280px;
  aspect-ratio: 16 / 4;
}

#carousel-colab-placeholder:empty {
  min-height: 680px;
  aspect-ratio: 16 / 9;
}

#form-placeholder:empty {
  min-height: 760px;
  aspect-ratio: 16 / 10;
}

#map-container:empty {
  min-height: 360px;
  aspect-ratio: 16 / 6;
  margin-top: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#footer-placeholder:empty {
  min-height: 250px;
  aspect-ratio: 16 / 4;
  background: #0b1220;
}

@media (max-width: 820px) {
  #solution-placeholder:empty {
    min-height: 1320px;
    aspect-ratio: 4 / 5;
    margin-bottom: 28px;
    border-radius: 18px;
  }

  #banner-clients-placeholder:empty {
    min-height: 160px;
    aspect-ratio: 16 / 6;
  }

  #carousel-clients-placeholder:empty {
    min-height: 180px;
    aspect-ratio: 16 / 7;
  }

  #carousel-colab-placeholder:empty {
    min-height: 420px;
    aspect-ratio: 4 / 5;
  }

  #form-placeholder:empty {
    min-height: 980px;
    aspect-ratio: 4 / 5;
  }

  #map-container:empty {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  #footer-placeholder:empty {
    min-height: 320px;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 480px) {
  .whatsapp-fab {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
