/* =========================================================================
   Studio Vitória Marchiori — style.css
   Camada de identidade visual sobre o Tailwind (CDN).
   Tudo aqui é aditivo: cores, textura, tipografia e movimento.
   ========================================================================= */

:root {
  --brand-50: #faf6f4;
  --brand-100: #f5ebe6;
  --brand-200: #ead7cd;
  --brand-300: #dbbaa9;
  --brand-400: #c79883;
  --brand-500: #b17a63;
  --brand-600: #96614d;
  --brand-700: #7a4e3f;
  --brand-800: #634036;

  --accent-300: #e5d2a2;
  --accent-400: #d4b978;
  --accent-500: #bd9c52;

  --ink-50: #faf9f8;
  --ink-100: #f0ecea;
  --ink-200: #e0d9d5;
  --ink-400: #8a7d76;
  --ink-600: #4a403b;
  --ink-800: #241e1b;
  --ink-900: #171310;
  --ink-950: #0d0a09;

  --whatsapp: #25d366;
  --whatsapp-dark: #1eb959;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #ffffff;
  color: var(--ink-800);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-variation-settings: 'SOFT' 20, 'WONK' 0;
  letter-spacing: -0.012em;
}

/* Corpo em sans leve: a serifada carrega o peso, o texto fica arejado. */
body { font-weight: 300; }
strong, b { font-weight: 500; }

::selection {
  background: var(--brand-200);
  color: var(--ink-900);
}

img { max-width: 100%; height: auto; }

/* Alvo de toque mínimo 48x48 — exigência mobile-first */
@media (max-width: 768px) {
  .min-tap { min-height: 48px; min-width: 48px; }
}

/* -------------------------------------------------------------------------
   Hero claro — gradiente nude com textura discreta
   Usado nas páginas internas.
   ------------------------------------------------------------------------- */
.hero-soft {
  position: relative;
  isolation: isolate;
  background-color: var(--brand-50);
  background-image:
    radial-gradient(120% 80% at 88% 0%, rgba(219, 186, 169, 0.45) 0%, transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgba(212, 185, 120, 0.16) 0%, transparent 62%),
    linear-gradient(180deg, var(--brand-50) 0%, #ffffff 100%);
}

/* Textura de pontos: dá profundidade sem competir com o texto */
.hero-soft::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%23b17a63' fill-opacity='0.18'/%3E%3Ccircle cx='36' cy='36' r='1.4' fill='%23b17a63' fill-opacity='0.12'/%3E%3C/svg%3E");
  mask-image: radial-gradient(75% 65% at 50% 35%, #000 0%, transparent 100%);
}

/* -------------------------------------------------------------------------
   Hero profundo — usado em faixas escuras de destaque
   ------------------------------------------------------------------------- */
.hero-deep {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  background-color: var(--ink-950);
  background-image:
    radial-gradient(110% 90% at 80% 0%, rgba(177, 122, 99, 0.5) 0%, transparent 62%),
    radial-gradient(80% 70% at 5% 100%, rgba(212, 185, 120, 0.18) 0%, transparent 58%),
    linear-gradient(165deg, #3a2a24 0%, var(--ink-950) 74%);
}

/* Grade suave sobre a faixa escura */
.hero-deep::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 60% 35%, #000 0%, transparent 100%);
}

/* -------------------------------------------------------------------------
   Superfícies e cartões
   ------------------------------------------------------------------------- */
.surface-mint { background: var(--brand-50); }

/* Cantos generosos: a marca é suave, acolhedora. */
.card-lift {
  border-radius: 1rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  border-color: var(--brand-300);
  box-shadow: 0 22px 40px -26px rgba(58, 42, 36, 0.4);
}

/* Cartão em destaque (o serviço carro-chefe) */
.card-featured {
  position: relative;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 1px rgba(219, 186, 169, 0.5), 0 26px 52px -30px rgba(122, 78, 63, 0.4);
}

/* Selo redondo com ícone, usado nas listas de benefício */
.badge-round {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 1.05rem;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
#site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  backdrop-filter: saturate(140%) blur(10px);
}
#site-header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(6, 10, 14, 0.55);
}

/* Sublinhado animado da navegação */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--brand-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* -------------------------------------------------------------------------
   Conteúdo editorial dos posts
   ------------------------------------------------------------------------- */
.post-body { color: var(--ink-600); line-height: 1.8; }
.post-body > * + * { margin-top: 1.15rem; }
.post-body h2 {
  margin-top: 2.6rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.25;
}
.post-body h3 {
  margin-top: 2rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-900);
}
.post-body ul, .post-body ol { padding-left: 1.35rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 0.5rem; }
.post-body a { color: var(--brand-700); font-weight: 600; text-decoration: underline; }
.post-body strong { color: var(--ink-900); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.post-body th, .post-body td { border: 1px solid var(--ink-100); padding: 0.7rem 0.85rem; text-align: left; }
.post-body th { background: var(--brand-50); color: var(--ink-900); font-weight: 700; }

/* Caixa de aviso dentro do conteúdo (cuidados, contraindicações) */
.nota-saude {
  border-left: 3px solid var(--accent-400);
  background: var(--brand-50);
  border-radius: 0 1rem 1rem 0;
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--brand-800);
}
.nota-saude strong { color: var(--ink-900); font-weight: 500; }

/* -------------------------------------------------------------------------
   Movimento
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay='1'] { transition-delay: 0.08s; }
[data-reveal][data-delay='2'] { transition-delay: 0.16s; }
[data-reveal][data-delay='3'] { transition-delay: 0.24s; }
[data-reveal][data-delay='4'] { transition-delay: 0.32s; }

/* Entrada escalonada do hero (sem depender de JS) */
.hero-in {
  animation: heroIn 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-in[data-delay='1'] { animation-delay: 0.08s; }
.hero-in[data-delay='2'] { animation-delay: 0.16s; }
.hero-in[data-delay='3'] { animation-delay: 0.24s; }
.hero-in[data-delay='4'] { animation-delay: 0.32s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { color: var(--brand-700); }
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* -------------------------------------------------------------------------
   Captação de orçamento — modal e formulário
   ------------------------------------------------------------------------- */
.svm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 10, 14, 0.72);
  backdrop-filter: blur(5px);
}
.svm-modal.is-open {
  display: flex;
  animation: sfpFade 0.25s ease both;
}

.svm-modal__card {
  position: relative;
  width: 100%;
  max-width: 31rem;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 2rem;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
  animation: sfpRise 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.svm-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-600);
  background: var(--ink-100);
  transition: background 0.2s ease, color 0.2s ease;
}
.svm-modal__close:hover {
  background: var(--brand-500);
  color: #ffffff;
}

@keyframes sfpFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sfpRise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.svm-lead-fields {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.svm-input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid var(--ink-200);
  background: #ffffff;
  color: var(--ink-800);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}
.svm-input--area { min-height: 5.5rem; resize: vertical; line-height: 1.55; }
.svm-input::placeholder { color: #b0a49d; }
.svm-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(177, 122, 99, 0.22);
}
select.svm-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' stroke='%234a403b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.25rem;
  padding-right: 2.75rem;
}

.svm-lead-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 1.5rem;
  border-radius: 999px;
  background: var(--brand-600);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 18px 32px -18px rgba(122, 78, 63, 0.7);
  transition: transform 0.25s ease, background 0.25s ease;
}
.svm-lead-submit:hover:not(:disabled) {
  background: var(--brand-700);
  transform: translateY(-2px);
}
.svm-lead-submit:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

/* Atalho para o WhatsApp, revelado só depois do envio */
.svm-lead-wa {
  margin-top: 0.9rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #ffffff;
  font-weight: 800;
  transition: background 0.25s ease;
}
.svm-lead-wa:hover { background: var(--whatsapp-dark); }
.svm-lead-wa[hidden] { display: none; }

.svm-lead-feedback {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}
.svm-lead-feedback[data-state='error'] { color: #c0392b; }
.svm-lead-feedback[data-state='success'] { color: var(--brand-700); }

.svm-lead-legal {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-400);
}

/* Armadilha de robô: fora da tela, invisível para quem enxerga e para leitor de tela */
.svm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   Paginação do blog
   ------------------------------------------------------------------------- */
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.7rem;
  margin: 0 0.2rem;
  border-radius: 1rem;
  border: 1px solid var(--ink-100);
  color: var(--ink-600);
  font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #ffffff;
}

/* -------------------------------------------------------------------------
   Acessibilidade
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--brand-600);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
