@charset "UTF-8";

/* ==============================================
   Z-INDEX HIERARCHY / HIERARQUIA DE Z-INDEX
   ============================================== */
/*
   Hierarquia de empilhamento:
   50 - Notificações (topo absoluto)
   45 - Menu Móvel (acima de tudo)
   44 - Overlay do Menu (cobre a página)
   40 - Navegação Principal (valor mantido do HTML)
   1  - Conteúdo normal
*/

/* ==============================================
   BASE / CONFIGURAÇÃO GERAL
   BASE / GENERAL CONFIGURATION
   ============================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

/* ==============================================
   SCROLLBAR PERSONALIZADA / CUSTOM SCROLLBAR
   ============================================== */
/* Para navegadores Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #FFC107;
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #e6ad06;
}

/* Para Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #FFC107 #f1f1f1;
}

.section-spacing {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 3rem 0;
  }
}

/* ==============================================
   TOP BAR / BARRA SUPERIOR COM NOTÍCIAS
   TOP BAR / NEWS BAR
   ============================================== */
.top-bar {
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
  border-bottom: 2px solid #FFC107;
}

.news-ticker-wrapper {
  overflow: hidden;
  position: relative;
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
}

.news-ticker {
  display: flex;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

.news-ticker:hover {
  animation-play-state: paused;
}

.news-item {
  display: inline-flex;
  align-items: center;
  padding: 0 3rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.news-item:hover {
  color: #FFC107;
}

.news-separator {
  color: #FFC107;
  margin: 0 1rem;
  font-weight: bold;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.social-links {
  display: flex;
  gap: 0.5rem;
  padding-right: 1rem;
}

.social-link {
  width: 32px;
  height: 32px;
  background: rgba(255, 193, 7, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #FFC107;
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
  color: #FFC107;
}

.social-link:hover svg {
  color: #1e293b;
}

/* Esconder top bar em mobile */
@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
}

/* ==============================================
   NAVIGATION / BARRA DE NAVEGAÇÃO
   NAVIGATION / NAVIGATION BAR
   z-index: 40
   ============================================== */

/* ==============================================
   MOBILE MENU / MENU MÓVEL
   z-index: 45 (menu) e 44 (overlay)
   ============================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 45;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Personalizar scrollbar do menu móvel */
.mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: #f8fafc;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: #FFC107;
  border-radius: 10px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: #e6ad06;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 44;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Links do menu móvel */
.menu-link {
  display: block;
  padding: 1rem 0;
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 500;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: rgba(255, 193, 7, 0.2);
}

.menu-link:active {
  background: rgba(255, 193, 7, 0.1);
}

/* Botões de toggle dos submenus */
.submenu-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border: none;
  background: transparent;
  color: #1e293b;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: rgba(255, 193, 7, 0.2);
}

.submenu-toggle:active {
  background: rgba(255, 193, 7, 0.1);
}

.submenu-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

/* Submenus */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #f8fafc;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.submenu.open {
  max-height: 1000px;
}

.submenu-content {
  padding: 1rem;
}

.submenu-section {
  margin-bottom: 1.5rem;
}

.submenu-section:last-child {
  margin-bottom: 0;
}

.submenu-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.submenu-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #64748b;
  font-size: 0.875rem;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 0.375rem;
  -webkit-tap-highlight-color: rgba(255, 193, 7, 0.2);
}

.submenu-link:active {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
}

/* Divisor */
.menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1rem 0;
}

/* Dropdown Desktop - Correção DEFINITIVA de comportamento */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  margin-top: 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 41;
  pointer-events: none;
}

.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
}

.dropdown:hover::after {
  pointer-events: auto;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown:last-of-type .dropdown-menu {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(10px);
}

.dropdown:last-of-type:hover .dropdown-menu {
  transform: translateX(0) translateY(0);
}

@media (max-width: 768px) {
  .mobile-menu {
    width: 100%;
    max-width: none;
  }
}

/* ==============================================
   NOTIFICATIONS / NOTIFICAÇÕES
   z-index: 50 (topo absoluto)
   ============================================== */
#notificationContainer {
  z-index: 50;
}

.notification {
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  #notificationContainer {
    top: 3.5rem !important;
  }
}

@media (max-width: 1023px) {
  #notificationContainer {
    top: 1rem !important;
  }
}

/* ==============================================
   CARDS / CARTÕES
   CARDS / CARDS COMPONENT
   ============================================== */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* ==============================================
   HERO SECTION / SECÇÃO HERO
   HERO SECTION / HERO COMPONENT
   ============================================== */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

/* ==============================================
   SERVICES / SERVIÇOS
   SERVICES / SERVICES SECTION
   ============================================== */
.service-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.service-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.service-icon {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
}

/* ==============================================
   TESTIMONIALS / TESTEMUNHOS
   TESTIMONIALS / TESTIMONIALS SECTION
   ============================================== */
.testimonial-slide {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-dot:hover {
  background: rgba(255, 193, 7, 0.6);
  transform: scale(1.1);
}

.testimonial-dot.active {
  background: #FFC107;
  transform: scale(1.2);
}

.testimonial-dot.active::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(255, 193, 7, 0.3);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@media (max-width: 768px) {
  .testimonial-container {
    min-height: 320px;
  }
}

/* ==============================================
   CLIENTS / CLIENTES
   CLIENTS / CLIENTS SECTION
   ============================================== */
.client-page {
  transition: opacity 0.5s ease-in-out;
  display: none;
}

.client-page.active {
  display: grid;
}

.client-dot {
  transition: all 0.3s ease;
}

.client-dot.active {
  background: #FFC107 !important;
  transform: scale(1.2);
}

/* ==============================================
   ANIMATIONS / ANIMAÇÕES GERAIS
   ANIMATIONS / GENERAL ANIMATIONS
   ============================================== */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ==============================================
   NEWS SECTION / SECÇÃO NOTÍCIAS
   NEWS SECTION / NEWS COMPONENT
   ============================================== */
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-reaction {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.news-reaction:hover {
  color: #ef4444;
}

.share-button {
  position: relative;
}

.share-trigger {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.share-trigger:hover {
  color: #FFC107;
}

.share-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  display: none;
  gap: 0.5rem;
  z-index: 10;
}

.share-menu.active {
  display: flex;
}

.share-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-icon:hover {
  transform: translateY(-2px);
}

.share-icon.facebook {
  background: #1877f2;
}

.share-icon.twitter {
  background: #1da1f2;
}

.share-icon.linkedin {
  background: #0a66c2;
}

.share-icon.whatsapp {
  background: #25d366;
}

