/* FourDark — mobile layout + performance polish */

/* Honeypot: fora da viewport, sem foco/leitura por leitores de tela */
.fd-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100vw;
}

/* Cheaper header: solid on mobile, light blur only on md+ */
.fd-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(7, 7, 9, 0.96);
}

@media (min-width: 768px) {
  .fd-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(7, 7, 9, 0.8);
  }
}

/* Header icons — SVG, sem depender de Material Symbols */
.fd-icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.fd-icon--sm {
  width: 0.9rem;
  height: 0.9rem;
}

.fd-icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 767px) {
  /* Garante que o menu desktop (e o chevron) nunca vazem no mobile */
  .fd-header nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .fd-hero-shader canvas {
    filter: blur(0.45px);
  }
}

/* Skip layout/paint work for off-screen sections */
.fd-lazy-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

@media (max-width: 639px) {
  .fd-section-label {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .fd-section-label .fd-label-line {
    display: none !important;
  }

  .fd-card-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .fd-card-url {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .fd-hero-cta {
    width: 100%;
  }

  .fd-capability-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  /* Kill expensive blurs on small screens */
  .backdrop-blur-xl,
  .backdrop-blur-md,
  .backdrop-blur {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

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

  .fd-hero-shader canvas {
    opacity: 0.85;
  }

  .fd-whatsapp {
    animation: none;
  }
}

/* Floating WhatsApp CTA */
.fd-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fd-whatsapp[hidden] {
  display: none !important;
}

.fd-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.fd-whatsapp:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.fd-whatsapp svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
}

@media (min-width: 768px) {
  .fd-whatsapp {
    right: 1.75rem;
    bottom: 1.75rem;
    width: 3.75rem;
    height: 3.75rem;
  }
}
