/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Variáveis de tema (dark) ===== */
:root {
  --cor-fundo: #0B1120;       /* fundo principal, azul-escuro quase preto */
  --cor-fundo-alt: #111827;   /* fundo alternado das seções */
  --cor-texto: #F1F5F9;       /* texto principal claro */
  --cor-suave: #94A3B8;       /* texto secundário */
  --cor-marca: #6366F1;       /* roxo de destaque */
  --cor-marca-escura: #4F46E5;/* hover dos botões */
  --cor-card: #1E293B;        /* fundo dos cards */
  --cor-borda: #334155;       /* bordas suaves */
  --cor-rodape: #060B14;      /* fundo bem escuro do rodapé */
  --cor-zap: #25D366;
  --fonte: 'Poppins', sans-serif;

  /* Tokens de layout para manter o ritmo consistente */
  --raio: 16px;
  --raio-pequeno: 10px;
  --secao-y: 80px;
  --secao-y-mobile: 56px;
  --altura-topo: 72px;
  --largura-texto: 700px;

  /* Sombras padronizadas — escuras e sutis para o tema dark */
  --sombra-card: 0 4px 16px rgba(0, 0, 0, 0.35);
  --sombra-card-hover: 0 16px 36px rgba(0, 0, 0, 0.5);
  --sombra-marca: 0 8px 24px rgba(99, 102, 241, 0.45);
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
  /* impede que o conteúdo fique escondido sob o header fixo ao usar âncoras */
  scroll-padding-top: var(--altura-topo);
  /* faz controles nativos (select, scrollbar) renderizarem em modo escuro */
  color-scheme: dark;
}

body {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Utilitário de container ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== Ritmo vertical das seções =====
   Todas as seções de conteúdo compartilham o mesmo padding e alternam o fundo. */
#portfolio,
#pacotes,
#como-funciona,
#faq,
#orcamento {
  padding-top: var(--secao-y);
  padding-bottom: var(--secao-y);
}

/* Alternância de fundos — nunca duas iguais seguidas.
   hero(grad) · portfolio(fundo) · pacotes(alt) · como-funciona(fundo) · faq(alt) · orcamento(fundo) */
#portfolio,
#como-funciona,
#orcamento {
  background-color: var(--cor-fundo);
}

#pacotes,
#faq {
  background-color: var(--cor-fundo-alt);
}

/* ===== Cabeçalho padrão de seção (título + subtítulo) ===== */
.pacotes-cabecalho,
.portfolio-cabecalho,
.como-cabecalho,
.faq-cabecalho,
.orcamento-cabecalho {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

#pacotes h2,
#portfolio h2,
#como-funciona h2,
#faq h2,
#orcamento h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.pacotes-subtitulo,
.portfolio-subtitulo,
.como-subtitulo,
.faq-subtitulo,
.orcamento-subtitulo {
  color: var(--cor-suave);
  font-size: 1.05rem;
}

/* ===== Botão reutilizável ===== */
.btn-principal {
  display: inline-block;
  background-color: var(--cor-marca);
  color: #FFFFFF;
  font-family: var(--fonte);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--raio-pequeno);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-principal:hover {
  background-color: var(--cor-marca-escura);
  box-shadow: var(--sombra-marca);
  transform: translateY(-2px);
}

.btn-principal:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25);
}

.btn-principal:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.4);
  outline-offset: 2px;
}

/* ===== Header (#topo) ===== */
#topo {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cor-borda);
}

.topo-conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--cor-marca);
  text-decoration: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.menu-link {
  color: var(--cor-texto);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.menu-link:hover {
  color: var(--cor-marca);
}

/* Botão do menu um pouco mais compacto que o do hero */
.btn-menu {
  padding: 0.6rem 1.25rem;
}

/* ===== Hero (#hero) ===== */
#hero {
  background: linear-gradient(180deg, var(--cor-fundo) 0%, var(--cor-fundo-alt) 100%);
}

.hero-conteudo {
  max-width: var(--largura-texto);
  text-align: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-apoio {
  font-size: 1.125rem;
  color: var(--cor-suave);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-nota {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--cor-suave);
}

/* ===== Pacotes (#pacotes) ===== */
.pacotes-grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.card-pacote {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--cor-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio);
  padding: 2rem;
  box-shadow: var(--sombra-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Cards comuns ganham leve elevação e borda mais clara no hover */
.card-pacote:not(.card-destaque):hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-card-hover);
  border-color: var(--cor-suave);
}

.card-nome {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-preco {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.preco-valor {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--cor-texto);
  line-height: 1.1;
}

.preco-tipo {
  font-size: 0.875rem;
  color: var(--cor-suave);
}

.card-itens {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-itens li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
}

.card-itens li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cor-zap);
  font-weight: 700;
}

/* Botão ocupa a largura do card e fica fixo no rodapé */
.card-botao {
  display: block;
  width: 100%;
  margin-top: auto;
}

/* Card em destaque (Profissional) — glow roxo */
.card-destaque {
  border: 2px solid var(--cor-marca);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 16px 40px rgba(99, 102, 241, 0.35);
  transform: scale(1.03);
}

.card-destaque:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 22px 50px rgba(99, 102, 241, 0.45);
}

.card-etiqueta {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--cor-marca);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pacotes-observacao {
  text-align: center;
  max-width: 640px;
  margin: 2.5rem auto 0;
  font-size: 0.9rem;
  color: var(--cor-suave);
}

/* ===== Portfólio (#portfolio) ===== */
.portfolio-grade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card-portfolio {
  background-color: var(--cor-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-portfolio:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-card-hover);
  border-color: var(--cor-suave);
}

.card-portfolio-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cor-marca) 0%, var(--cor-marca-escura) 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.25rem;
}

.card-portfolio-texto {
  padding: 1.5rem;
}

.card-portfolio-nome {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-portfolio-desc {
  color: var(--cor-suave);
  font-size: 0.95rem;
}

/* ===== Como funciona (#como-funciona) ===== */
.passos-grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.passo {
  text-align: center;
  padding: 0 0.5rem;
}

.passo-numero {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cor-marca);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.passo-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.passo-desc {
  color: var(--cor-suave);
  font-size: 0.95rem;
}

/* ===== FAQ (#faq) ===== */
.faq-lista {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--cor-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-pequeno);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--cor-suave);
}

.faq-item[open] {
  box-shadow: var(--sombra-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

/* Remove o marcador padrão do summary */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--cor-marca);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Indicador + que vira − ao abrir */
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cor-marca);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-resposta {
  margin-top: 0.85rem;
  color: var(--cor-suave);
  font-size: 0.95rem;
}

/* ===== Inputs de formulário (reutilizáveis) ===== */
.campo,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  font-family: var(--fonte);
  font-size: 1rem;
  color: var(--cor-texto);
  background-color: var(--cor-fundo-alt);
  padding: 0.85rem 1rem;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-pequeno);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--cor-suave);
}

.campo:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--cor-marca);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Formulário de orçamento (#orcamento) ===== */
.form-orcamento {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--cor-card);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio);
  padding: 2.5rem;
  box-shadow: var(--sombra-card);
}

.campo-grupo {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-enviar {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===== Rodapé (#rodape) ===== */
#rodape {
  background-color: var(--cor-rodape);
  border-top: 1px solid var(--cor-borda);
  color: var(--cor-suave);
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 0.95rem;
}

#rodape a {
  color: var(--cor-suave);
  text-decoration: none;
  transition: color 0.2s ease;
}

#rodape a:hover {
  color: var(--cor-marca);
}

/* ===== Responsivo ===== */

/* Tablet: pacotes e portfólio empilham; passos viram 2 colunas */
@media (max-width: 900px) {
  .passos-grade {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .pacotes-grade,
  .portfolio-grade {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Sem scale no mobile para não cortar a borda/etiqueta */
  .card-destaque {
    transform: none;
  }

  .card-destaque:hover {
    transform: translateY(-4px);
  }
}

/* Mobile: menu de texto some, passos em coluna única, ritmo vertical menor */
@media (max-width: 700px) {
  :root {
    --secao-y: var(--secao-y-mobile);
  }

  .menu-link {
    display: none;
  }

  .passos-grade {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-conteudo {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .pacotes-cabecalho,
  .portfolio-cabecalho,
  .como-cabecalho,
  .faq-cabecalho {
    margin-bottom: 2.5rem;
  }

  .card-pacote {
    padding: 1.75rem 1.5rem;
  }

  .form-orcamento {
    padding: 1.75rem 1.25rem;
  }
}
