/* Ágape Registros de Marcas. Identidade azul e prata:
   azul-noite #14213A, prata fria #B8C2D1, grafite #303642, cinza gelo #EEF1F5, branco.
   Títulos em Cormorant Garamond, texto em Montserrat. */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 300 700; font-display: swap; src: url('/fontes/cormorant-garamond.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 100 900; font-display: swap; src: url('/fontes/montserrat.woff2') format('woff2'); }

:root {
  --noite: #14213A; --noite-2: #1d2e4b; --prata: #B8C2D1; --grafite: #303642;
  --gelo: #EEF1F5; --branco: #fff; --ardosia: #4c5d78; --linha: #d9dfe8;
  --titulo: 'Cormorant Garamond', Georgia, serif;
  --texto: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --raio: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--noite); }
body { margin: 0; background: var(--branco); color: var(--grafite); font: 400 1rem/1.6 var(--texto); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
.largura { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Quebra fixa: cada linha é um bloco que nunca quebra, e o tamanho acompanha a largura da tela */
.quebra > span { display: block; white-space: nowrap; }
.h1 { font: 600 clamp(2rem, 10.4vw, 3.9rem)/1.04 var(--titulo); letter-spacing: -.01em; }
.h2 { font: 600 clamp(2rem, 9.4vw, 3.2rem)/1.06 var(--titulo); color: var(--noite); letter-spacing: -.005em; }
.sub, .txt { font-size: clamp(.94rem, 4.1vw, 1.15rem); line-height: 1.55; }
.rotulo { font: 600 .78rem/1 var(--texto); letter-spacing: .16em; text-transform: uppercase; color: var(--ardosia); margin-bottom: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border-radius: 999px; font: 600 1rem var(--texto); text-decoration: none; background: var(--noite); color: var(--branco);
  transition: transform .15s ease, background .15s ease; }
.btn img { width: 22px; height: 22px; }
.btn:hover { transform: translateY(-1px); background: var(--noite-2); }
.btn.claro { background: var(--branco); color: var(--noite); }

.btn.claro:hover { background: var(--gelo); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--prata); outline-offset: 3px; }

/* Topo */
.hero { position: relative; overflow: hidden; color: var(--branco);
  background: url('/img/fundo-hero.svg?v=3') right center / cover no-repeat, var(--noite); padding-bottom: 8px; }
.topo { padding-top: 22px; padding-bottom: 6px; }
.logo img { width: 168px; }
.hero-corpo { display: grid; gap: 18px; padding-top: 36px; }
.hero .rotulo { color: var(--prata); }
.hero h1 { margin-bottom: 18px; }
.hero .sub { color: rgba(255,255,255,.82); margin-bottom: 28px; }


/* Seções */
.secao { padding-top: 76px; padding-bottom: 8px; }
.secao .h2 { margin-bottom: 32px; }

.cards { list-style: none; display: grid; gap: 14px; }
.cards li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: center;
  padding: 20px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--branco); }
.cards img { grid-row: span 2; width: 64px; height: 64px; }
.cards h3, .passos h3 { font: 600 1.06rem/1.25 var(--texto); color: var(--noite); }
.cards p, .passos p { font-size: .95rem; color: var(--ardosia); }

.faixa-gelo { background: var(--gelo); margin-top: 76px; padding: 64px 0; }
.cnpj { display: grid; gap: 28px; }
.cnpj .h2 { margin-bottom: 16px; }
.cnpj .txt { color: var(--ardosia); }

.passos { list-style: none; display: grid; gap: 0; counter-reset: p; }
.passos li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--linha); }
.passos li:first-child { border-top: 0; padding-top: 0; }
.passos img { width: 64px; height: 64px; }
.num { display: block; font: 600 .74rem/1 var(--texto); letter-spacing: .14em; color: #6b7a92; margin-bottom: 6px; }

.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 600 1.02rem/1.35 var(--texto); color: var(--noite); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ardosia); border-bottom: 2px solid var(--ardosia);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 20px; color: var(--ardosia); max-width: 34em; }

/* Chamada final */
.final { position: relative; overflow: hidden; margin-top: 84px; background: var(--noite); color: var(--branco); text-align: center; padding: 84px 0; }
.final-corpo { position: relative; display: grid; justify-items: center; }
.final-a { position: absolute; width: 420px; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .07; pointer-events: none; }
.final .h2 { color: var(--branco); margin-bottom: 16px; }
.final .txt { color: rgba(255,255,255,.8); margin-bottom: 30px; }

.rodape { padding: 44px 0 110px; text-align: center; font-size: .9rem; }
.rodape-corpo { display: grid; justify-items: center; gap: 10px; }
.rodape-corpo > img { width: 170px; margin-bottom: 8px; }
.rodape a { color: var(--noite); text-underline-offset: 3px; }
.mudo { color: var(--ardosia); }

/* Botão flutuante: aparece depois do topo */
.flutuante { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--noite); box-shadow: 0 10px 30px rgba(20,33,58,.32);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 5; }
.flutuante.on { opacity: 1; transform: none; pointer-events: auto; }

@media (min-width: 900px) {
  .largura { padding: 0 40px; }
  .topo { padding-top: 34px; }
  .logo img { width: 210px; }
  .h1 { font-size: clamp(2.6rem, 4.6vw, 3.9rem); }
  .hero-corpo { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .hero .hero-arte { max-width: none; }
  .sub, .txt { font-size: 1.15rem; }
  .secao { padding-top: 110px; }
  .secao .h2 { margin-bottom: 44px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards li { grid-template-columns: 1fr; padding: 32px 28px; row-gap: 6px; align-items: start; }
  .cards img { grid-row: auto; margin-bottom: 14px; }
  .faixa-gelo { margin-top: 110px; padding: 96px 0; }
  .cnpj { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px; }
  .passos { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .passos li { grid-template-columns: 1fr; border-top: 2px solid var(--noite); padding: 26px 0 0; align-items: start; gap: 14px; }
  .passos li:first-child { padding-top: 26px; border-top: 2px solid var(--noite); }
  .final { margin-top: 120px; padding: 120px 0; }
  .final-a { width: 560px; }
}

/* Ilustrações embutidas (usam as fontes da página) */
.ilu { display: block; width: 100%; height: auto; }
.t-serif { font-family: var(--titulo); font-weight: 600; }
.t-sans { font-family: var(--texto); font-weight: 600; }
.hero-arte { max-width: 560px; margin: 0 auto; width: 100%; }

/* Grifos da hero */
.grifo { font-style: normal; color: var(--prata); position: relative; display: inline-block; }
.grifo::after { content: ''; position: absolute; left: 2%; right: 1%; bottom: -.02em; height: .16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C40 3.5 120 1.5 198 5' fill='none' stroke='%23B8C2D1' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.sub strong { color: var(--branco); font-weight: 600; }

/* Botão mais largo */
.btn { min-width: min(100%, 320px); }

/* Rodapé: Instagram */
.redes a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.redes img { width: 18px; height: 18px; flex: none; }

/* Celular */
@media (max-width: 899px) {
  .hero-corpo { padding-top: 28px; }
  .hero { background: linear-gradient(180deg, rgba(20,33,58,.5) 0%, rgba(20,33,58,.5) 52%, rgba(20,33,58,0) 78%), url('/img/fundo-hero.svg?v=3') right center / cover no-repeat, var(--noite); }
  .btn { width: 100%; max-width: 360px; }
}

/* Vídeo (mesmo player do site da Miamori: só play e pausar) */
.filme { position: relative; margin: 0 auto 40px; max-width: 420px; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden;
  background: var(--gelo) url('/video/agape.webp?v=2') center/cover; box-shadow: 0 16px 34px -14px rgba(20,33,58,.35); border: 1px solid var(--linha); }
.filme video { display: block; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 0 13%; border: 0; background: none; cursor: pointer; }
.play i { width: 74px; height: 74px; border-radius: 50%; background: var(--noite); display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(20,33,58,.6); }
.play svg { width: 28px; height: 28px; margin-left: 5px; fill: #fff; }
.play span { color: var(--noite); font: 600 15px var(--texto); }
.filme.tocando .play { display: none; }
.filme.pausado .play { background: rgba(20,33,58,.18); justify-content: center; padding: 0; }
.filme.pausado .play span { display: none; }
.pausa { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20,33,58,.55); display: none; place-items: center; cursor: pointer; }
.pausa svg { width: 18px; height: 18px; fill: #fff; }
.filme.tocando .pausa { display: grid; }
@media (min-width: 900px) { .filme { margin-bottom: 56px; } }
