/* ============================================
   GESTÃO EM MOVIMENTO — BASE COMPARTILHADA
   Componentes usados por 2+ páginas: header,
   mega-menu, botões, cards, FAQ, seção, footer,
   whatsapp-float, reveal-on-scroll.
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Fallback estático (sem JS); shared.js recalcula o valor real via
     updateScrollOffset() com base na altura de fato do header+anchor-nav. */
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  color: var(--grafite);
  background: var(--branco);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  transition: all 200ms ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--laranja);
  color: var(--branco);
}

.btn-primary:hover {
  background: var(--laranja-escuro);
  transform: translateY(-2px);
  box-shadow: var(--shadow-laranja);
}

.btn-outline {
  border: 1.5px solid rgba(247, 243, 232, 0.5);
  color: var(--branco-quente);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--laranja);
  color: var(--laranja);
}

.btn-outline-light {
  border: 1.5px solid rgba(247, 243, 232, 0.5);
  color: var(--branco-quente);
  background: transparent;
}

.btn-outline-light:hover {
  border-color: var(--laranja);
  background: var(--laranja);
  color: var(--branco);
}

.btn-outline-blue {
  border: 1.5px solid var(--azul-profundo);
  color: var(--azul-profundo);
  background: transparent;
}

.btn-outline-blue:hover {
  background: var(--laranja);
  border-color: var(--laranja);
  color: var(--branco);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 42, 61, 0.95);
  backdrop-filter: blur(10px);
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 200ms ease;
}

.header-scrolled {
  background: rgba(6, 42, 61, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-menu {
  display: flex;
  gap: 28px;
}

.header-menu a {
  color: rgba(247, 243, 232, 0.85);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
  transition: color 200ms ease;
  position: relative;
}

.header-menu a:hover,
.header-menu a.active {
  color: var(--laranja);
}

.header-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--laranja);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* ============================================
   ANCHOR NAV (sticky secundário, sem wrapper)
   ============================================ */

.anchor-nav {
  position: sticky;
  top: 56px;
  z-index: 900;
  background: var(--branco-quente);
  border-bottom: 1px solid var(--cinza-claro);
  box-shadow: 0 3px 14px rgba(6, 42, 61, 0.04);
}

.anchor-nav .container {
  display: flex;
  gap: 6px;
  padding: 5px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav .container::-webkit-scrollbar {
  display: none;
}

.anchor-nav a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--azul-profundo);
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.anchor-nav a:hover {
  border-color: var(--laranja);
  color: var(--laranja);
}

.anchor-nav a.active {
  background: var(--azul-profundo);
  color: var(--branco-quente);
}

/* ============================================
   MEGA-MENU (revelado ao passar o mouse nos
   itens do header; usado em todas as páginas)
   ============================================ */

.anchor-nav-wrapper {
  position: sticky;
  top: 56px;
  z-index: 900;
}

.anchor-nav-panels {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.35s;
}

.anchor-nav-wrapper:hover .anchor-nav-panels,
.anchor-nav-wrapper.open .anchor-nav-panels,
.anchor-nav-wrapper.past-hero .anchor-nav-panels,
.anchor-nav-wrapper:focus-within .anchor-nav-panels {
  max-height: 48px;
  opacity: 1;
  visibility: visible;
}

.anchor-nav-panels .anchor-nav {
  display: none;
  position: static;
}

.anchor-nav-panels .anchor-nav.active-panel {
  display: block;
}

/* ============================================
   SEÇÃO PADRÃO
   ============================================ */

.section {
  padding: 90px 0;
  /* Ao pular pra esta seção via âncora, ignora o padding interno do topo
     pro conteúdo (não a caixa da seção) ficar rente à barra sticky. */
  scroll-margin-top: -90px;
  min-height: 100vh;
}

.section-head {
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--laranja);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--azul-profundo);
  margin-bottom: 20px;
}

.section-title-light {
  color: var(--branco-quente);
}

.section-sub {
  font-size: 18px;
  color: var(--cinza-neutro);
  max-width: 1000px;
  margin-bottom: 24px;
  display: inline-block;
}

.section-sub-light {
  color: rgba(247, 243, 232, 0.8);
}

.center {
  text-align: center;
}

/* ============================================
   CARD (base + modificadores usados nas páginas)
   ============================================ */

.card {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ============================================
   FAQ / ACCORDION (marcação única do site;
   tabs são opcionais via .faq-tabs)
   ============================================ */

.faq {
  text-align: center;
}

.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.faq-tab {
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background: var(--branco);
  border: 1px solid var(--cinza-claro);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  color: var(--cinza-neutro);
  cursor: pointer;
  transition: all 200ms;
}

.faq-tab:hover {
  border-color: var(--laranja);
  color: var(--laranja);
}

.faq-tab.active {
  background: var(--laranja);
  color: var(--branco);
  border-color: var(--laranja);
}

.faq-content {
  display: none;
  text-align: left;
}

.faq-content.active {
  display: block;
}

.faq-list {
  text-align: left;
}

.faq-item {
  background: var(--branco);
  border: 1px solid var(--cinza-claro);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 20px 24px;
  font-weight: 500;
  font-size: 17px;
  color: var(--azul-profundo);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--laranja);
  transition: transform 300ms ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out, padding 300ms ease-out;
  padding: 0 24px;
  font-size: 15px;
  color: var(--cinza-neutro);
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 24px 20px 24px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--azul-profundo);
  color: var(--branco-quente);
}

.footer-top {
  padding: 20px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 243, 232, 0.7);
  margin: 0;
}

.footer-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--branco);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(247, 243, 232, 0.7);
  font-size: 14px;
  transition: color 200ms ease;
}

.footer-links a:hover {
  color: var(--laranja);
}

.footer-contact li {
  margin-bottom: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(247, 243, 232, 0.7);
  font-size: 14px;
  transition: color 200ms ease;
}

.footer-contact-item:hover {
  color: var(--laranja);
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-copyright p {
  font-size: 13px;
  color: rgba(247, 243, 232, 0.6);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--branco-quente);
  transition: all 300ms ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  background: var(--laranja);
  color: var(--branco);
  transform: translateY(-4px);
}

.footer-legal {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(247, 243, 232, 0.6);
  font-size: 13px;
  transition: color 200ms ease;
}

.footer-legal a:hover {
  color: var(--laranja);
}

.legal-separator {
  color: rgba(247, 243, 232, 0.3);
  font-size: 13px;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 200ms ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
