/* ============ Tokens (seção 7 da spec) ============ */
:root {
  --cor-fundo: #EFEAE0;
  --cor-superficie: #FFFFFF;
  --cor-texto: #2E2B26;
  --cor-texto-suave: #6F675C;
  --cor-mostarda: #E0A62B;
  --cor-cta: #E0A62B;
  --cor-cta-hover: #C8921F;
  --sombra-suave: 0 1px 2px rgba(46, 43, 38, 0.05), 0 6px 20px rgba(46, 43, 38, 0.06);
  --sombra-alta: 0 2px 4px rgba(46, 43, 38, 0.06), 0 14px 34px rgba(46, 43, 38, 0.1);
}

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

body {
  margin: 0;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

::selection {
  background: var(--cor-mostarda);
  color: var(--cor-texto);
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

a {
  color: var(--cor-texto);
}

:focus-visible {
  outline: 3px solid var(--cor-mostarda);
  outline-offset: 2px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 780px;
}

/* Flor decorativa (eco da logo) */
.flor {
  width: 26px;
  height: auto;
  display: block;
  margin-bottom: 14px;
}

/* Swatch de maquiagem: a mancha de teste de produto, assinatura da página */
main h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 13px;
  margin-bottom: 0.875rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 13'%3E%3Cpath d='M2 8 C6 2 18 1 30 3 C40 4.5 46 7 44 9.5 C40 12 24 12 12 11 C5 10.5 0 10 2 8 Z' fill='%23E0A62B'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============ Header ============ */
.header {
  padding: 20px 20px 8px;
}

.logo-link {
  display: inline-block;
}

.logo {
  height: 48px;
  width: auto;
}

/* ============ Seções ============ */
main section {
  padding: 48px 0;
}

/* Bandas brancas alternadas */
[data-section="portfolio"],
[data-section="prova"] {
  background: var(--cor-superficie);
}

/* ============ Hero ============ */
.hero {
  padding-top: 28px;
  padding-bottom: 56px;
}

.hero-sub {
  color: var(--cor-texto-suave);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.beneficios {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(46, 43, 38, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  color: var(--cor-texto-suave);
  font-size: 0.9375rem;
}

.beneficios li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.beneficios li svg {
  color: var(--cor-mostarda);
  flex-shrink: 0;
}

.hero-figura {
  position: relative;
  margin: 2rem 0 0;
  width: 100%;
  max-width: 380px;
}

/* fundinho: painel mostarda deslocado atrás da foto */
.hero-figura::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--cor-mostarda);
  opacity: 0.16;
  border-radius: 14px;
  z-index: 0;
}

.hero-foto {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--sombra-alta);
}

.hero-frase {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 12px 16px;
  background: rgba(46, 43, 38, 0.62);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  color: #FFFFFF;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.35;
}

/* Mobile: conteúdo do hero centralizado na primeira tela, como página
   centralizada no meio. A foto continua logo abaixo, no rolar. */
@media (max-width: 767px) {
  .hero-conteudo {
    min-height: calc(100vh - 150px);
    min-height: calc(100svh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero-conteudo .flor {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .beneficios {
    width: 100%;
    align-items: center;
  }

  .beneficios li {
    justify-content: center;
  }

  .hero-figura {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============ CTA ============ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  background: var(--cor-cta);
  color: var(--cor-texto);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--sombra-suave);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover {
  background: var(--cor-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--sombra-alta);
}

.cta:active {
  transform: translateY(0);
}

.cta svg {
  flex-shrink: 0;
}

.microcopy {
  color: var(--cor-texto-suave);
  font-size: 0.875rem;
  margin-top: 0.875rem;
}

/* ============ Citações ============ */
blockquote {
  margin: 1.5rem 0;
  padding: 20px 24px;
  background: var(--cor-superficie);
  border-left: 3px solid var(--cor-mostarda);
  border-radius: 0 10px 10px 0;
  box-shadow: var(--sombra-suave);
}

blockquote p {
  margin: 0;
}

blockquote cite {
  display: block;
  margin-top: 0.625rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--cor-texto-suave);
}

blockquote cite:empty {
  display: none;
}

[data-section="cena"] blockquote p {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ============ Portfólio ============ */
[data-section="portfolio"] p {
  color: var(--cor-texto-suave);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 1.75rem;
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
}

/* ============ Como funciona ============ */
.passos {
  list-style: none;
  counter-reset: passo;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.passos li {
  counter-increment: passo;
  background: var(--cor-superficie);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: var(--sombra-suave);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.passos li:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-alta);
}

.passos li::before {
  content: counter(passo);
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--cor-mostarda);
  margin-bottom: 0.625rem;
}

/* ============ Serviços ============ */
.servicos-lista {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.servico-card {
  background: var(--cor-superficie);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.servico-card:hover {
  transform: scale(1.03);
  box-shadow: var(--sombra-alta);
}

/* Painel ilustrado: line-art da marca no lugar de foto */
.servico-arte {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E7E1D4;
  border-bottom: 1px solid rgba(46, 43, 38, 0.08);
}

.servico-arte svg {
  width: min(72%, 250px);
  height: auto;
}

/* Micro-animações dos painéis (CSS puro, sem JS) */
.anim-sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: cintilar 3.2s ease-in-out infinite;
}

.anim-sparkle.d1 { animation-delay: 1.1s; }
.anim-sparkle.d2 { animation-delay: 2.2s; }

@keyframes cintilar {
  0%, 100% { opacity: 0.25; transform: scale(0.55); }
  50% { opacity: 1; transform: scale(1); }
}

.anim-bolha {
  transform-box: fill-box;
  animation: bolha-sobe 3.8s ease-in infinite;
}

.anim-bolha.b2 { animation-delay: 1.3s; }
.anim-bolha.b3 { animation-delay: 2.5s; }

@keyframes bolha-sobe {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 0.9; }
  100% { transform: translateY(-24px); opacity: 0; }
}

.anim-buque {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: buque-balanca 5.5s ease-in-out infinite;
}

@keyframes buque-balanca {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}

.anim-petala {
  transform-box: fill-box;
  animation: petala-cai 6.5s linear infinite;
}

.anim-petala.p2 { animation-delay: 3.2s; }

@keyframes petala-cai {
  0% { transform: translateY(-4px) rotate(0deg); opacity: 0; }
  12% { opacity: 0.85; }
  80% { opacity: 0.5; }
  100% { transform: translateY(36px) rotate(90deg); opacity: 0; }
}

.anim-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-pulsa 3.6s ease-in-out infinite;
}

@keyframes halo-pulsa {
  0%, 100% { opacity: 0.2; transform: scale(0.95); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.servico-corpo {
  padding: 20px 22px 22px;
}

.servico-detalhe {
  color: var(--cor-texto-suave);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.servico-corpo p:not(.servico-detalhe) {
  margin-bottom: 1rem;
}

.servicos-fechamento {
  text-align: center;
  color: var(--cor-texto-suave);
  margin: 2rem auto 1.25rem;
  max-width: none;
}

.servicos-cta {
  text-align: center;
  margin: 0;
  max-width: none;
}

.link-whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  background: var(--cor-cta);
  color: var(--cor-texto);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(224, 166, 43, 0.35);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.link-whats:hover {
  background: var(--cor-cta-hover);
  color: var(--cor-texto);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(224, 166, 43, 0.45);
}

.link-whats:focus-visible {
  outline: 3px solid var(--cor-texto);
  outline-offset: 2px;
}

.link-whats svg {
  flex-shrink: 0;
}

/* Cards de serviço: botão ancorado na base e arte com flutuação */
.servico-card {
  display: flex;
  flex-direction: column;
}

.servico-corpo {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.servico-corpo p:last-of-type {
  margin-bottom: 18px;
}

.servico-corpo .link-whats {
  display: flex;
  margin-top: auto;
}

/* Link secundário "entenda mais" (card de noiva) */
.link-saiba {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cor-texto);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--cor-mostarda);
  text-decoration-thickness: 2px;
  transition: color 0.18s ease, gap 0.18s ease;
}

.link-saiba svg { flex-shrink: 0; transition: transform 0.18s ease; }

.link-saiba:hover {
  color: var(--cor-mostarda);
}

.link-saiba:hover svg {
  transform: translateX(3px);
}

.servico-arte svg {
  transition: transform 0.35s ease;
}

.servico-card:hover .servico-arte svg {
  transform: perspective(700px) rotateX(5deg) rotateY(-6deg) scale(1.05);
}

.anim-flutua {
  animation: flutuar-arte 4.6s ease-in-out infinite alternate;
}

.anim-sombra {
  transform-origin: 120px 134px;
  animation: sombra-arte 4.6s ease-in-out infinite alternate;
}

.servico-card:nth-child(2) .anim-flutua,
.servico-card:nth-child(2) .anim-sombra { animation-delay: -1.6s; }

.servico-card:nth-child(3) .anim-flutua,
.servico-card:nth-child(3) .anim-sombra { animation-delay: -3.1s; }

@keyframes flutuar-arte {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@keyframes sombra-arte {
  from { transform: scaleX(1); opacity: 0.16; }
  to { transform: scaleX(0.82); opacity: 0.09; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-flutua,
  .anim-sombra { animation: none; }
  .servico-card:hover .servico-arte svg { transform: none; }
}

/* ============ Prova social ============ */
.prova-grid {
  display: grid;
  gap: 14px;
  margin-top: 1.75rem;
}

.prova-card {
  margin: 0;
  background: var(--cor-fundo);
  border-left: none;
  border-radius: 10px;
  box-shadow: none;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.prova-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-suave);
}

.prova-card::before {
  content: "\201C";
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--cor-mostarda);
  display: block;
}

.prova-card p {
  flex: 1;
}

.prova-autor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prova-autor img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.prova-autor cite {
  margin-top: 0;
  color: var(--cor-texto);
}

.prova-cta {
  text-align: center;
  margin: 2.25rem 0 0;
  max-width: none;
}

/* ============ Sobre ============ */
.sobre-grid {
  display: grid;
  gap: 28px;
}

.sobre-foto {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--sombra-suave);
}

/* ============ FAQ (accordion sem JS) ============ */
.faq-lista {
  margin-top: 1.75rem;
}

.faq-item {
  background: var(--cor-superficie);
  border-radius: 10px;
  box-shadow: var(--sombra-suave);
  margin-bottom: 10px;
}

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

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

.faq-item summary::after {
  content: "+";
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cor-mostarda);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--cor-texto-suave);
}

/* ============ CTA final ============ */
.cta-final {
  text-align: center;
}

.cta-final h2,
.cta-final p {
  margin-left: auto;
  margin-right: auto;
}

.cta-final h2::before {
  margin-left: auto;
  margin-right: auto;
}

.cta-final p {
  color: var(--cor-texto-suave);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.cta-final .cta {
  text-align: left;
}

/* ============ Rodapé ============ */
.footer {
  border-top: 1px solid rgba(46, 43, 38, 0.12);
  padding: 36px 0 44px;
  text-align: center;
  color: var(--cor-texto-suave);
  font-size: 0.9375rem;
}

.footer .flor {
  margin: 0 auto 14px;
}

.footer p {
  margin: 0 auto 0.375rem;
}

.footer a {
  color: var(--cor-texto-suave);
  text-decoration-color: var(--cor-mostarda);
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--cor-texto);
}

.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 1.125rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(46, 43, 38, 0.25);
  border-radius: 50%;
  color: var(--cor-texto);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social-link:hover {
  background: var(--cor-mostarda);
  border-color: var(--cor-mostarda);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ============ Botão flutuante de WhatsApp (flor da marca) ============ */
.whats-flutuante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 58px;
  height: 58px;
  background: var(--cor-superficie);
  border: 1px solid rgba(46, 43, 38, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-alta);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whats-flutuante:hover {
  transform: scale(1.08);
}

.whats-balao {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cor-superficie);
  color: var(--cor-texto);
  border-left: 3px solid var(--cor-mostarda);
  border-radius: 10px 4px 4px 10px;
  box-shadow: var(--sombra-suave);
  padding: 9px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  animation: balao-entrada 8s ease 1.2s;
  transition: opacity 0.18s ease;
}

.whats-flutuante:hover .whats-balao,
.whats-flutuante:focus-visible .whats-balao {
  opacity: 1;
}

@keyframes balao-entrada {
  0% { opacity: 0; transform: translateY(-50%) translateX(6px); }
  6% { opacity: 1; transform: translateY(-50%) translateX(0); }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============ Desktop ============ */
@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .logo {
    height: 60px;
  }

  .header {
    padding: 28px 32px 12px;
  }

  main section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 76px;
  }

  .hero-sub {
    font-size: 1.1875rem;
  }

  .beneficios {
    flex-direction: row;
    gap: 2.5rem;
    margin-top: 2.75rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 56px;
    align-items: center;
  }

  .hero-figura {
    max-width: none;
    margin-top: 0;
  }

  /* Portfólio assimétrico: primeira foto em destaque */
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 2.25rem;
  }

  .portfolio-grid img:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .passos {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2.25rem;
  }

  .passos li {
    padding: 28px;
  }

  .passos li::before {
    font-size: 2.5rem;
    margin-bottom: 0.875rem;
  }

  .servicos-lista {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2.25rem;
  }

  .servico-arte {
    aspect-ratio: 4 / 3;
  }

  .servico-corpo {
    padding: 24px 26px 26px;
  }

  .prova-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2.25rem;
  }

  .prova-card {
    padding: 30px 28px 26px;
  }

  .sobre-grid {
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: start;
  }

  .sobre-foto {
    max-width: none;
  }
}

/* ============ Revelação ao rolar (CSS puro, progressivo) ============ */
/* Navegador sem suporte ignora o bloco e mostra tudo normal.
   O hero fica de fora de propósito: a primeira dobra converte, não espera. */
@supports (animation-timeline: view()) {
  main section:not(.hero) h2,
  main section:not(.hero) .container > p,
  main section:not(.hero) .container > ul,
  main section:not(.hero) .container > ol,
  main section:not(.hero) .container > blockquote,
  .portfolio-grid img,
  .prova-grid,
  .sobre-grid,
  .faq-lista {
    animation: surgir ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 240px;
  }
}

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

/* ============ Movimento reduzido ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
