/* ==========================================================================
   FacialMe — folha de estilo do site
   O layout vem dos estilos embutidos, copiados do design. Aqui ficam apenas
   a tipografia base e os estados interativos (hover, foco, acordeão, animação
   de entrada), que o design descrevia por atributos style-hover/style-focus.
   ========================================================================== */

/* Archivo — SIL Open Font License 1.1, servida pelo próprio site. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/static/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/static/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --tinta: #0f1b34;
  --tinta-suave: #54617c;
  --fundo: #eef3fb;
  --azul: #1a5ef0;
  --azul-escuro: #1249d6;
  --azul-claro: #e4edff;
  --borda: #d8e2f4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  text-wrap: pretty;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

img {
  max-width: 100%;
}

a {
  color: var(--azul);
  text-decoration: none;
}

a:hover {
  color: var(--azul-escuro);
  text-decoration: underline;
}

/* Foco de teclado visível e consistente em todo o site. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--azul-claro);
  color: var(--tinta);
}

/* Atalho para quem navega por teclado ou leitor de tela. */
.pular-para-conteudo {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #ffffff;
  color: var(--tinta);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}

.pular-para-conteudo:focus {
  left: 0;
}

.apenas-leitor-de-tela {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Botões e links de ação
   -------------------------------------------------------------------------- */

.btn-primario,
.btn-secundario,
.btn-branco,
.btn-contorno-claro,
.btn-texto,
.lnk-menu,
.lnk-rodape {
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-primario:hover {
  background: var(--azul-escuro);
  color: #ffffff;
  text-decoration: none;
}

.btn-secundario:hover {
  border-color: var(--azul);
  color: var(--azul);
  text-decoration: none;
}

.btn-branco:hover {
  background: var(--azul-claro);
  color: var(--azul);
  text-decoration: none;
}

.btn-contorno-claro:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
}

.btn-texto:hover {
  color: var(--azul-escuro);
  text-decoration: none;
}

.lnk-menu:hover {
  background: var(--fundo);
  color: var(--azul);
  text-decoration: none;
}

.lnk-rodape:hover {
  opacity: 1;
  color: #8cb1ff;
  text-decoration: none;
}

.lnk-topo:hover {
  opacity: 1;
  text-decoration: underline;
}

.cartao-elevado {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cartao-elevado:hover {
  box-shadow: 0 20px 48px rgba(15, 27, 52, 0.14);
}

/* --------------------------------------------------------------------------
   Formulários
   -------------------------------------------------------------------------- */

.campo:focus {
  outline: none;
  border-color: var(--azul);
  background: #ffffff;
}

.campo[aria-invalid='true'] {
  border-color: #c0392b;
  background: #fff6f5;
}

.campo-escuro:focus {
  outline: none;
  border-color: #4b87ff;
}

.campo-escuro::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.opcao-assunto:hover {
  border-color: var(--azul);
  color: var(--azul);
}

.opcao-assunto:has(input:checked) {
  border-color: var(--azul);
  background: var(--azul-claro);
  color: var(--azul-escuro);
}

.opcao-assunto:has(input:focus-visible) {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}

.erro-campo {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 20px;
  color: #c0392b;
}

/* Campo isca contra robôs: fora da tela e fora da ordem de tabulação. */
.isca {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Acordeão das perguntas frequentes (details/summary, funciona sem script)
   -------------------------------------------------------------------------- */

.faq > summary {
  width: 100%;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--tinta);
  cursor: pointer;
  list-style: none;
  transition: color 0.18s ease;
}

.faq > summary::-webkit-details-marker {
  display: none;
}

.faq > summary:hover {
  color: var(--azul);
}

.faq-sinal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--azul-claro);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 18px;
  line-height: 1;
}

.faq-sinal::before {
  content: '+';
}

.faq[open] .faq-sinal::before {
  content: '−';
}

/* --------------------------------------------------------------------------
   Animação de entrada — só é aplicada quando há script e movimento permitido
   -------------------------------------------------------------------------- */

.revelar {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.revelar.visivel {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .revelar,
  .revelar.visivel {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Espaço reservado para as fotos que ainda não foram fornecidas
   -------------------------------------------------------------------------- */

.foto-reservada {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #e4edff 0%, #f6f9ff 55%, #dbe7ff 100%);
  color: #54617c;
  font-size: 14px;
  line-height: 22px;
}

/* --------------------------------------------------------------------------
   Telas estreitas
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .menu-principal {
    width: 100%;
    margin-left: 0 !important;
    justify-content: flex-start;
  }

  .menu-principal .btn-primario {
    margin-left: 0 !important;
    width: 100%;
    text-align: center;
  }
}
