/* ============================================
   NAME IT — Custom Overrides & Premium Design
   Keeping original black color scheme
   ============================================ */

/* --- 1. FIX INVISIBLE ELEMENTS --- */
[style*="opacity:0"],
[style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

/* --- 2. FIX HERO GRID — make it very subtle like original --- */
#inicio > .absolute.inset-0.opacity-5 {
  opacity: 0.03 !important;
}

/* --- 3. SCROLL ANIMATION SYSTEM --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- 4. HEADER GLASSMORPHISM --- */
header.bg-white {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.bg-white.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
}

/* --- 5. BUTTONS — pill-shaped, larger, premium feel --- */
button,
a.inline-flex,
a[class*="bg-primary"] {
  border-radius: 9999px !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  min-height: 2.85rem !important;
  font-size: 0.938rem !important;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
/* Header CTA — keep compact */
header button {
  min-height: 2.25rem !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  font-size: 0.8rem !important;
}
.bg-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}
.bg-primary:active {
  transform: translateY(0);
}
/* Outline / secondary buttons */
button.bg-white,
a[class*="border-input"] {
  border-radius: 9999px !important;
  min-height: 2.85rem !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  font-size: 0.938rem !important;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
button.bg-white:hover,
a[class*="border-input"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

/* --- 6. PROCESS CARDS --- */
#processo .bg-primary\/10 {
  transition: all 0.3s ease;
}
#processo .relative:hover .bg-primary\/10 {
  transform: scale(1.08);
}
#processo .text-center {
  transition: transform 0.3s ease;
}
#processo .relative:hover .text-center {
  transform: translateY(-4px);
}

/* --- 7. CERTIFICATE SECTION --- */
#certificado .border-2 {
  transition: box-shadow 0.4s ease;
}
#certificado .border-2:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* --- 8. BENEFITS CARDS --- */
#beneficios .border-gray-100 {
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
#beneficios .border-gray-100:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

/* --- 9. COMPARISON TABLE --- */
#comparativo table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
#comparativo thead tr {
  background: hsl(0 0% 9%) !important;
}
#comparativo thead th {
  color: #fff !important;
  padding: 16px !important;
  font-size: 1rem;
}
#comparativo thead th:first-child {
  color: #fff !important;
}
#comparativo tbody tr {
  transition: background 0.2s ease;
}
#comparativo tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
#comparativo tbody td:nth-child(2) {
  color: hsl(142, 71%, 45%);
  font-weight: 600;
}

/* --- 10. FAQ SECTION --- */
#faq details {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
#faq details:hover {
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
#faq details[open] {
  border-color: rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
#faq details summary span:last-child {
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}
#faq details[open] summary span:last-child {
  transform: rotate(45deg);
}

/* --- 11. FOOTER --- */
footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%) !important;
}
footer a {
  transition: color 0.2s ease !important;
}

/* --- 12. MOBILE MENU --- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 60;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1f2937;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 55;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav a {
  font-size: 1.15rem;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.mobile-nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* --- 13. WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  animation: whatsappPulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.55);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.whatsapp-float .tooltip {
  position: absolute;
  right: 72px;
  background: #fff;
  color: #1f2937;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.whatsapp-float .tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #fff;
}
.whatsapp-float:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 35px rgba(37, 211, 102, 0.7); }
}

/* --- 14. SCROLL TO TOP --- */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #1f2937;
  min-height: auto !important;
  padding: 0 !important;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  background: hsl(0 0% 9%);
  border-color: hsl(0 0% 9%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* --- 15. GENERAL POLISH --- */
html {
  scroll-behavior: smooth;
}
::selection {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}
img {
  transition: opacity 0.4s ease;
}

/* Better focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid hsl(0 0% 9%);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth nav link transitions */
nav a {
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: hsl(0 0% 9%);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}
nav a:hover::after {
  width: 80%;
}
