/*
 * INFAI - Componentes Específicos
 * Header, Hero, Footer, Navbar
 */

/* ========================================
   HEADER / NAVBAR
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: var(--bg-dark);
  box-shadow: var(--shadow-lg);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.navbar-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-link:hover {
  color: var(--primary-cyan);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-cta {
  margin-left: var(--space-4);
}

/* Menu Mobile */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.navbar-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary-cyan);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }
  
  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-cta {
    margin-left: 0;
    width: 100%;
  }
  
  .navbar-cta .btn {
    width: 100%;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

/* Efeito de grade animada no fundo */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--primary-cyan);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-16) 0;
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-description {
    font-size: var(--text-lg);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

/* ========================================
   SEÇÃO DE SERVIÇOS
   ======================================== */
.services-section {
  padding: var(--space-24) 0;
  background: var(--bg-darker);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--primary-cyan);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* ========================================
   SEÇÃO CTA (CALL TO ACTION)
   ======================================== */
.cta-section {
  padding: var(--space-24) 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
}

.cta-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-logo img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.footer-logo span {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--primary-cyan);
  border-color: var(--primary-cyan);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   BADGES E TAGS
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}