/* =========================================
   COMPONENTS | HEADER · NAV · FOOTER · FLOAT
========================================= */

/* =========================================
   HEADER GLOBAL
========================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: rgba(8, 16, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.site-header.scrolled {
  background: rgba(8, 16, 24, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 60px;
}

/* =========================================
   LOGO
========================================= */

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-box {
  width: 48px;
  height: 48px;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
}

.logo:hover .logo-box {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================
   NAV
========================================= */

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.main-nav a:hover {
  color: #7fd4a7;
}

.main-nav a.active {
  color: #7fd4a7;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c56e 0%, #7fd4a7 100%);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* =========================================
   MENU TOGGLE
========================================= */

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(23, 138, 87, 0.12), transparent 28%),
    linear-gradient(180deg, #0d1712 0%, #0a130f 100%);
  color: rgba(255, 255, 255, 0.76);
  padding: 72px 0 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 138, 87, 0.14), transparent 72%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.75rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 320px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.footer-title,
.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-links ul,
.footer-contact ul,
.footer-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-contact li,
.footer-social li {
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition:
    color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.site-footer a:hover {
  color: #7fd4a7;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.56);
}

/* =========================================
   WHATSAPP FLOAT
========================================= */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e 0%, #17b26a 100%);
  box-shadow:
    0 18px 40px rgba(23, 178, 106, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 24px 48px rgba(23, 178, 106, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.whatsapp-float img {
  width: 27px;
  height: 27px;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.36);
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.42);
    opacity: 0;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

/* =========================================
   FOCUS ACCESSIBLE
========================================= */

.logo:focus-visible,
.main-nav a:focus-visible,
.menu-toggle:focus-visible,
.site-footer a:focus-visible,
.whatsapp-float:focus-visible {
  outline: 2px solid #7fd4a7;
  outline-offset: 4px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 1rem 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(8, 16, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .main-nav a {
    width: 100%;
    min-height: 42px;
  }

  .main-nav a::after {
    bottom: 2px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-container {
    min-height: 60px;
  }

  .logo-box {
    width: 42px;
    height: 42px;
    padding: 5px;
    border-radius: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer {
    padding-top: 56px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float img {
    width: 25px;
    height: 25px;
  }
}