/* ============================================================
   520 Créditos — Shared public stylesheet
   Cached once, reused across Index / Soluções / Blog
   ============================================================ */

/* Reset & base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip impede scroll horizontal acidental no mobile sem criar
   contexto de rolagem (não quebra position:sticky, ao contrário de hidden). */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: 'Inter', sans-serif;
  background: #06140B; color: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #06140B; }
::-webkit-scrollbar-thumb { background: #C09020; border-radius: 2px; }

/* Keyframes --------------------------------------------------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGold { 0%,100% { box-shadow: 0 0 0 0 rgba(192,144,32,.45); } 50% { box-shadow: 0 0 0 10px rgba(192,144,32,0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Header & navigation ---------------------------------------- */
.header-scrolled {
  background: rgba(6,20,11,.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(192,144,32,.15) !important;
}
/* O gradiente do topo some quando o header fica sólido (ao rolar) */
#hdr.header-scrolled #hdr-scrim { opacity: 0; }
.nav-link {
  color: rgba(255,255,255,.72); text-decoration: none;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; position: relative; transition: color .3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: #C09020; transition: width .3s;
}
.nav-link:hover { color: #C09020; }
.nav-link:hover::after { width: 100%; }

/* Scroll reveal ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Buttons ----------------------------------------------------- */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: #C09020; color: #06140B;
  text-decoration: none; font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 17px 42px; border-radius: 5px;
  border: none; cursor: pointer; min-height: 44px; line-height: 1;
  transition: background .3s, box-shadow .3s, transform .3s;
}
.btn-gold:hover { background: #d4a72e; box-shadow: 0 12px 40px rgba(192,144,32,.45); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: #C09020; text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; padding: 16px 40px;
  border-radius: 5px; border: 1px solid rgba(192,144,32,.55); min-height: 44px;
  transition: background .3s, border-color .3s, transform .3s; cursor: pointer;
}
.btn-outline:hover { background: rgba(192,144,32,.09); border-color: #C09020; transform: translateY(-2px); }

/* Footer links ------------------------------------------------ */
.foot-link { font-size: 14px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .25s; }
.foot-link:hover { color: rgba(255,255,255,.82); }

/* Floating WhatsApp ------------------------------------------ */
.wa-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 1100;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
  transition: transform .3s, box-shadow .3s; text-decoration: none;
}
.wa-btn:hover { transform: scale(1.12); box-shadow: 0 14px 48px rgba(37,211,102,.6); }

/* Responsive base -------------------------------------------- */
@media (max-width: 1000px) {
  .desktop-nav { display: none !important; }
  .mobile-btn  { display: flex !important; }
}
@media (max-width: 600px) {
  .wa-btn { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  .btn-gold, .btn-outline { padding: 15px 28px; }
}
@media (hover: none) {
  .nav-link:hover::after { width: 0; }
}
