/* ===== VARIÁVEIS CSS ===== */
:root {
  /* Cores */
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --accent: #4cc9f0;

  /* Backgrounds */
  --header-bg: rgba(26, 26, 46, 0.98);
  --card-bg: rgba(17, 24, 39, 0.7);
  --hover-bg: rgba(99, 102, 241, 0.05);
  --icon-bg: rgba(99, 102, 241, 0.1);
  --dark-gradient: linear-gradient(to bottom, var(--dark), #141432);

  /* Cores de texto */
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;

  /* Bordas */
  --border-color: rgba(99, 102, 241, 0.1);
  --header-border: 1px solid rgba(255, 255, 255, 0.05);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 4px 20px rgba(99, 102, 241, 0.15);

  /* Transições */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET E BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-primary);
  background-color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVBAR ESTILIZADO ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--header-border);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar.scrolled {
  padding: 0.25rem 2rem;
  box-shadow: var(--shadow-md);
}

/* ===== LOGO ===== */
.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo {
  height: 100px;
  transition: var(--transition);
}

.navbar-brand:hover .logo {
  transform: scale(1.05);
}

/* ===== LINKS DE NAVEGAÇÃO ===== */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: var(--light);
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.nav-link i {
  font-size: 1.1rem;
  transition: var(--transition);
}

/* ===== BOTÃO CTA ===== */
.cta-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  margin-left: 1rem;
  color: var(--light);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--light);
}

.cta-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.cta-nav:hover::before {
  opacity: 1;
}

/* ===== MENU HAMBURGUER ===== */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.toggler-icon {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--light);
  margin: 5px 0;
  transition: var(--transition);
}

.navbar-toggler.active .toggler-icon:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler.active .toggler-icon:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MENU MOBILE ===== */
@media (max-width: 992px) {
  .navbar {
    padding: 0.5rem 1.5rem;
  }

  .navbar-toggler {
    display: block;
    order: 2;
  }

  .navbar-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: var(--transition);
  }

  .navbar-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    max-width: 250px;
    text-align: center;
    justify-content: center;
    padding: 1rem;
  }

  .cta-nav {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* ===== VERSÃO MOBILE PEQUENA ===== */
@media (max-width: 576px) {
  .logo {
    height: 50px;
  }

  .nav-link span {
    display: none;
  }

  .nav-link i {
    font-size: 1.3rem;
  }

  .cta-nav span {
    display: inline;
  }

  .navbar.scrolled {
    padding: 0.15rem 1.5rem;
  }
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: rgba(17, 24, 39, 0.7);
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    padding: 0 1.5rem;
    transform: translateY(-10px);
}

.faq-item.open .faq-answer {
    opacity: 1;
    padding: 0 1.5rem 1.5rem 1.5rem;
    transform: translateY(0);
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.faq-item.open .faq-icon {
    background: rgba(99, 102, 241, 0.2);
    transform: rotate(0deg);
}

.faq-question {
    position: relative;
    cursor: pointer;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question h3 {
    transition: color 0.3s ease;
    flex: 1;
}

.faq-item.open .faq-question {
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

/* Estilização do conteúdo dentro do FAQ */
.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: rgb(99, 102, 241);
    font-weight: 600;
}

.faq-answer a {
    color: rgb(99, 102, 241);
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    border-bottom-color: rgb(99, 102, 241);
}

/* Animação de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.open .faq-answer {
    animation: fadeInUp 0.3s ease-out forwards;
}
