/* ==========================================================================
   GROUP WAR LTDA - Components Stylesheet
   Design Corporativo, Navegação Limpa e Responsiva
   Desktop: Logo na Esquerda | Mobile: Menu na Esquerda, Logo na Direita
   ========================================================================== */

/* Remove bullet markers from all lists — do NOT remove margin/padding globally */
ul, ol {
  list-style: none;
  list-style-type: none;
}

li {
  list-style: none;
  list-style-type: none;
}

/* Specifically reset nav and footer list spacing */
.nav-menu,
.footer-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav-list li {
  margin: 0;
  padding: 0;
}

/* --- Fixed Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

/* Desktop Alignment Orders */
.mobile-toggle {
  order: 0;
}

.brand-logo {
  order: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

@media (max-width: 576px) {
  .brand-logo img {
    height: 32px;
  }
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none !important;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Alternador de Idiomas (EN | PT) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.lang-btn,
.lang-switcher-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover,
.lang-switcher-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active,
.lang-switcher-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
}

/* Botão Hambúrguer (Oculto no Desktop) */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
}

/* --- MOBILE & TABLET (<= 991px) --- */
@media (max-width: 991px) {

  /* Header bar container */
  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* Hamburger toggle: far LEFT */
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    order: 1 !important;
    flex-shrink: 0;
    margin: 0 !important;
    z-index: 10001;
  }

  /* Logo: far RIGHT */
  .brand-logo {
    order: 2 !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto !important;
    z-index: 10001;
  }

  /* Site-nav static container */
  .site-nav {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Header-actions hidden on mobile */
  .header-actions {
    display: none !important;
  }

  /* Full-width, full-height opaque dropdown overlay from header bottom */
  .nav-menu {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: calc(100vh - var(--header-height)) !important;
    background-color: #09090b !important;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 1.5rem 1.5rem 3rem 1.5rem !important;
    margin: 0 !important;
    gap: 0 !important;
    display: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    z-index: 9999 !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }

  .nav-menu.is-active {
    display: flex !important;
  }

  .nav-menu > li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1.1rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    text-align: left;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--text-primary);
  }

  .nav-menu > li:last-child .nav-link {
    border-bottom: none;
  }
}


/* --- Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4.5rem;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }
}

.hero-content {
  max-width: 850px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* --- Cards --- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  border-color: var(--border-light);
  background-color: var(--bg-card-hover);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.925rem;
  flex-grow: 1;
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* --- Steps --- */
.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  height: 100%;
}

.step-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.is-open {
  border-color: var(--border-light);
}

.faq-button {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 0.85rem;
}

.faq-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background-color: rgba(0, 0, 0, 0.2);
}

.faq-answer-inner {
  padding: 0 1.25rem 1.15rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.contact-detail-item {
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.contact-detail-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-detail-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-detail-value a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-top {
  display: block;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: none !important;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 480px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-nav-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-nav-list {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-nav-list a:hover {
  color: var(--text-primary);
}

.footer-company-details {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  word-wrap: break-word;
}

.footer-company-details strong {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 480px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
}
