/* Skyler João Pessoa · BIO PRIME (Profissional)
   Direção: a página se fecha como uma camisa. Marinho do letreiro da fachada, linho e areia da campanha
   de Natal (camisa azul e calça chino). O nome, largo como o letreiro, é abotoado na carcela da Hero. */

:root {
  --marinho: #14284B;
  --tinta: #0F1B33;
  --linho: #F6F2EA;
  --areia: #E6D9C3;
  --oxford: #A9C3E0;
  --tinta-suave: #4A556B;
  --branco: #FFFFFF;

  --f-nome: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --f-texto: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --raio: 14px;
  --raio-p: 10px;

  --motion-instant: 100ms;
  --motion-fast: 180ms;
  --motion-standard: 260ms;
  --motion-emphasis: 560ms;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasis: cubic-bezier(0.7, 0, 0.18, 1);
  --ease-botao: cubic-bezier(0.34, 1.56, 0.64, 1);

  --largura: min(100vw, 560px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linho);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--oxford); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marco { position: absolute; top: 160px; left: 0; width: 1px; height: 1px; }

.pular {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--marinho); color: var(--branco);
  padding: 12px 16px; border-radius: var(--raio-p);
}
.pular:focus { top: 12px; }

header, main, footer { max-width: 560px; margin: 0 auto; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding-bottom: 8px; }
.hero-foto { margin: 0; aspect-ratio: 4 / 5; max-height: 64svh; max-height: 64vh; overflow: hidden; background: var(--areia); }
@supports (height: 1svh) { .hero-foto { max-height: 64svh; } }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

.carcela {
  position: relative;
  margin-top: -44px;
  padding: 22px 20px 30px;
  color: var(--branco);
  text-align: center;
  isolation: isolate;
}
/* as duas frentes da camisa: o fundo marinho é feito de duas metades que se fecham na carcela */
.carcela::before,
.carcela::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background: var(--marinho);
  z-index: -1;
}
.carcela::before { left: 0; border-radius: 22px 0 0 0; }
.carcela::after { right: 0; border-radius: 0 22px 0 0; }

.carcela-topo { display: flex; align-items: center; justify-content: center; gap: 12px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.arroba {
  font-weight: 600; font-size: 15px; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.nome { margin: 14px 0 0; font-weight: 400; }
.nome-linha {
  display: flex; justify-content: center;
  font-family: var(--f-nome);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: clamp(44px, 15vw, 70px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.metade { display: block; width: 50%; }
.metade-esq { text-align: right; }
.metade-dir { text-align: left; }
.nome-cidade {
  display: block; margin-top: 8px;
  font-family: var(--f-nome); font-stretch: 112%; font-variation-settings: 'wdth' 112;
  font-weight: 600; font-size: 17px; letter-spacing: 0.06em;
  color: var(--oxford);
}

/* a carcela: a costura no centro e os três botões */
.botoes-carcela {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin: 18px auto 16px; padding: 6px 0;
  width: 44px;
}
.botoes-carcela::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  border-left: 1.5px dashed rgba(169, 195, 224, 0.55);
  translate: -50% 0;
}
.botao {
  position: relative;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #E9EEF6 55%, #C9D4E4 100%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.botao::before {   /* os quatro furos */
  content: ''; position: absolute; inset: 5px;
  background:
    radial-gradient(circle, var(--marinho) 1.1px, transparent 1.4px) 0 0 / 4px 4px;
  opacity: 0.7;
}

.proposta { margin: 0 auto; max-width: 30ch; font-size: 17px; line-height: 1.5; color: #E8EDF5; }
.ancoras { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
.ancoras a {
  min-height: 48px; display: inline-flex; align-items: center;
  font-weight: 600; font-size: 15px; text-decoration: underline;
  text-decoration-color: var(--oxford); text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}

/* ---------- Abertura: a camisa sendo abotoada ---------- */

@keyframes fecha-esq { from { transform: translateX(calc(var(--largura) * -1)); } }
@keyframes fecha-dir { from { transform: translateX(var(--largura)); } }
@keyframes abotoa {
  0% { transform: scale(0) rotate(-120deg); }
  70% { transform: scale(1.18) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes surge { from { opacity: 0; transform: translateY(10px); } }
@keyframes some-surge { from { opacity: 0; } }
@keyframes revela-seguro { to { opacity: 1; visibility: visible; } }
@keyframes gira-botao { to { transform: rotate(360deg); } }

/* conteúdo que espera a abertura só fica escondido com JS, e volta sozinho aos 2,6 s */
.js .hero:not(.aberta) .carcela-topo,
.js .hero:not(.aberta) .hero-texto { opacity: 0; animation: revela-seguro 0s 2.6s forwards; }
/* antes de a abertura começar, as frentes ainda não chegaram (a foto, acima, já está visível) */
.js .hero:not(.aberta):not(.abertura) .carcela::before,
.js .hero:not(.aberta):not(.abertura) .carcela::after,
.js .hero:not(.aberta):not(.abertura) .nome-linha,
.js .hero:not(.aberta):not(.abertura) .botao { opacity: 0; animation: revela-seguro 0s 2.6s forwards; }

.hero.abertura .carcela::before,
.hero.abertura .metade-esq { animation: fecha-esq var(--motion-emphasis) var(--ease-emphasis) both; }
.hero.abertura .carcela::after,
.hero.abertura .metade-dir { animation: fecha-dir var(--motion-emphasis) var(--ease-emphasis) both; }
.hero.abertura .botao { animation: abotoa 300ms var(--ease-botao) both; }
.hero.abertura .botao:nth-child(1) { animation-delay: 520ms; }
.hero.abertura .botao:nth-child(2) { animation-delay: 640ms; }
.hero.abertura .botao:nth-child(3) { animation-delay: 760ms; }
.hero.abertura .carcela-topo { animation: surge 380ms var(--ease-enter) 420ms both; }
.hero.abertura .hero-texto { animation: surge 420ms var(--ease-enter) 820ms both; }

.hero.sem-abertura .nome-linha,
.hero.sem-abertura .carcela-topo,
.hero.sem-abertura .hero-texto { animation: some-surge 300ms var(--ease-standard) both; }

.hero.eco .botao { animation: gira-botao 420ms var(--ease-enter) both; }
.hero.eco .botao:nth-child(2) { animation-delay: 90ms; }
.hero.eco .botao:nth-child(3) { animation-delay: 180ms; }

/* ---------- Seções ---------- */

main > section { padding: 44px 20px 8px; }
.titulo {
  margin: 0;
  font-family: var(--f-nome);
  font-stretch: 112%; font-variation-settings: 'wdth' 112;
  font-weight: 700;
  font-size: clamp(26px, 7.4vw, 32px);
  line-height: 1.12;
  color: var(--marinho);
  max-width: 18ch;
}
.apoio { margin: 10px 0 0; max-width: 40ch; color: var(--tinta-suave); }

/* itens de contato: o ícone num botão de camisa */
.lista { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 16px 10px 10px;
  background: var(--branco);
  border: 1px solid #E4DCCD;
  border-radius: 40px var(--raio) var(--raio) 40px;
  text-decoration: none;
  transition: transform var(--motion-instant) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.item:active { transform: scale(0.98); background: #FBF8F2; }
.disco {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--areia); color: var(--marinho); font-size: 19px;
  box-shadow: inset 0 0 0 3px var(--branco), inset 0 0 0 4px rgba(20, 40, 75, 0.25);
}
.item-whats .disco { background: var(--marinho); color: var(--branco); }
.item-txt { display: flex; flex-direction: column; font-weight: 600; font-size: 16px; line-height: 1.3; }
.item-txt small { font-weight: 400; font-size: 14px; color: var(--tinta-suave); }
.item-whats { border-color: rgba(20, 40, 75, 0.35); }

/* ---------- Vitrine ---------- */

.seletor { border: 0; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seletor legend { font-size: 14px; font-weight: 600; color: var(--tinta-suave); margin-bottom: 8px; padding: 0; }
.seletor label, .opcao, .chip { position: relative; cursor: pointer; }
.seletor input, .opcao input, .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seletor span, .chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid rgba(20, 40, 75, 0.3);
  font-weight: 600; font-size: 15px;
  transition: background-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.seletor input:checked + span, .chip input:checked + span { background: var(--marinho); border-color: var(--marinho); color: var(--branco); }
.seletor input:focus-visible + span, .opcao input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--oxford); outline-offset: 2px; }

.pecas { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.peca { display: flex; flex-direction: column; background: var(--branco); border-radius: var(--raio-p); overflow: hidden; }
.peca img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--areia); }
.peca-larga { grid-column: 1 / -1; }
.peca-larga img { aspect-ratio: 1 / 1; }
.peca-lado { display: grid; grid-template-columns: 46% 1fr; }
.peca-lado img { aspect-ratio: auto; height: 100%; min-height: 220px; }
.peca-info { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.peca-info h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; }
.peca-info p { margin: 0; font-size: 14px; color: var(--tinta-suave); flex: 1; }
.peca-cta {
  margin-top: 6px; align-self: flex-start;
  min-height: 44px; display: inline-flex; align-items: center;
  font-weight: 600; font-size: 15px; color: var(--marinho);
  text-decoration: underline; text-decoration-color: var(--oxford); text-decoration-thickness: 2px; text-underline-offset: 5px;
}

/* ---------- Loja on-line ---------- */

.online .categorias { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.categorias a {
  display: grid; place-items: center; min-height: 52px; padding: 0 4px;
  background: var(--areia); border-radius: var(--raio-p);
  font-weight: 600; font-size: 14px; text-decoration: none; color: var(--marinho); text-align: center;
  transition: transform var(--motion-instant) var(--ease-standard);
}
.categorias a:active { transform: scale(0.96); }
.btn-sec {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--marinho);
  color: var(--marinho); font-weight: 600; font-size: 15px; text-decoration: none; background: transparent;
  transition: transform var(--motion-instant) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}
.btn-sec:active { transform: scale(0.97); background: rgba(20, 40, 75, 0.06); }
.btn-largo { width: 100%; margin-top: 14px; }

/* ---------- Presente / separar ---------- */

.presente-foto { margin: 0 0 22px; border-radius: var(--raio); overflow: hidden; aspect-ratio: 16 / 10; background: var(--areia); }
.presente-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.form { margin-top: 20px; display: grid; gap: 18px; }
.campo { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.campo legend, .campo label { font-weight: 600; font-size: 15px; padding: 0; }
.campo legend { margin-bottom: 8px; }
.opcional { font-weight: 400; color: var(--tinta-suave); }
.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opcoes-tres { grid-template-columns: repeat(3, 1fr); }
.opcao span {
  display: grid; place-items: center; text-align: center; min-height: 52px; padding: 6px 8px;
  border-radius: var(--raio-p); background: var(--branco); border: 1.5px solid #DDD3C2;
  font-weight: 600; font-size: 15px; line-height: 1.25;
  transition: border-color var(--motion-fast) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
}
.opcao input:checked + span { border-color: var(--marinho); background: #EEF2F8; box-shadow: inset 0 0 0 1px var(--marinho); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.campo-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campo input[type="text"], .campo input[type="date"] {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--tinta);
  background: var(--branco); border: 1.5px solid #CFC4B1; border-radius: var(--raio-p);
  -webkit-appearance: none; appearance: none;
}
.campo input:focus-visible { outline: 3px solid var(--oxford); outline-offset: 1px; border-color: var(--marinho); }
.campo input[aria-invalid="true"] { border-color: #A3261B; }
.form-erro { margin: 0; color: #A3261B; font-weight: 600; font-size: 15px; }

.btn-principal {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 20px;
  border: 0; border-radius: 999px;
  background: var(--marinho); color: var(--branco);
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform var(--motion-instant) var(--ease-standard), background-color var(--motion-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.btn-principal:active { transform: scale(0.97); background: #0E1D38; }
.btn-principal .fa-whatsapp { font-size: 20px; }

/* ---------- Lojas ---------- */

.fachada { margin: 22px 0 0; border-radius: var(--raio); overflow: hidden; aspect-ratio: 4 / 3; background: var(--marinho); }
.fachada img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.loja { padding: 22px 0; border-bottom: 1px solid #E0D6C5; }
.loja:last-child { border-bottom: 0; }
.loja h3 {
  margin: 0; font-family: var(--f-nome); font-stretch: 112%; font-variation-settings: 'wdth' 112;
  font-weight: 700; font-size: 21px; color: var(--marinho);
}
.endereco { margin: 6px 0 0; color: var(--tinta-suave); }
.mapa {
  margin-top: 14px; border-radius: var(--raio-p); overflow: hidden;
  background: repeating-linear-gradient(135deg, #EFE7D9 0 14px, #E9E0D0 14px 28px);
  min-height: 56px; display: grid;
}
.mapa iframe { width: 100%; height: 240px; border: 0; display: block; }
.mapa-abrir {
  min-height: 56px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--marinho);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.loja-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.loja-acoes .btn-sec { flex: 1 1 140px; }

/* ---------- Final ---------- */

main > section.final { padding-bottom: 40px; }
.final-botoes { display: grid; gap: 10px; margin-top: 22px; }

/* ---------- Rodapé ---------- */

.rodape {
  padding: 30px 20px calc(110px + env(safe-area-inset-bottom));
  background: var(--marinho); color: #DCE4F0; text-align: center; font-size: 14px;
}
.rodape p { margin: 0; }
.credito {
  display: flex; width: fit-content; align-items: center; gap: 14px;
  min-height: 44px; margin: 18px auto 0; text-align: left;
  font-size: 13px; line-height: 1.35; text-decoration: none; color: var(--branco);
  -webkit-tap-highlight-color: transparent;
}
.credito-txt strong {
  display: block; font-size: 15px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.selo-b2 {
  --seal-ink: currentColor;
  --seal-accent: var(--oxford);
  --seal-ring: 1.2 1.6;
  --seal-font: var(--f-nome);
  flex: none; width: 72px; height: 72px; overflow: visible;
  transition: rotate 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.selo-borda, .selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: 0.7; stroke-dasharray: var(--seal-ring); opacity: 0.75; }
.selo-texto { fill: var(--seal-ink); font-family: var(--seal-font); font-size: 6.3px; font-weight: 600; letter-spacing: 0.8px; }
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }
.credito:active .selo-b2 { rotate: -10deg; }
.selo-giro { transform-box: view-box; transform-origin: 50px 50px; }
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still, .selo-b2.is-still .selo-giro,
  .is-page-hidden .selo-b2, .is-page-hidden .selo-giro { animation-play-state: paused; }
}

/* ---------- CTA flutuante e folha ---------- */

.cta-flutuante {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  background: var(--marinho); color: var(--branco);
  font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 27, 51, 0.28), inset 0 0 0 1px rgba(169, 195, 224, 0.35);
  visibility: hidden; opacity: 0; transform: translate(-50%, 16px);
  transition: opacity 260ms var(--ease-enter), transform 260ms var(--ease-enter), visibility 0s linear 260ms;
}
.cta-flutuante .fa-whatsapp { font-size: 20px; }
.cta-flutuante.is-visivel { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition-delay: 0s; }
.cta-flutuante:active { transform: translate(-50%, 0) scale(0.97); }

.folha {
  width: 100%; max-width: 560px; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 22px 22px 0 0; background: var(--linho); color: var(--tinta);
}
.folha::backdrop { background: rgba(15, 27, 51, 0.5); }
.folha[open] { animation: folha-sobe 300ms var(--ease-enter); }
@keyframes folha-sobe { from { transform: translateY(40px); opacity: 0; } }
.folha-corpo { display: grid; gap: 10px; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
.folha-corpo h2 { margin: 0 0 6px; font-family: var(--f-nome); font-stretch: 112%; font-variation-settings: 'wdth' 112; font-size: 22px; color: var(--marinho); }
.folha-fechar {
  min-height: 48px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- Revelação leve ---------- */

.js .revela { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease-enter), transform 420ms var(--ease-enter); }
.js .revela.is-visto { opacity: 1; transform: none; }

@media (min-width: 561px) {
  body { background: var(--areia); }
  header, main { background: var(--linho); }
}

@media (max-width: 350px) {
  .online .categorias { grid-template-columns: repeat(2, 1fr); }
  .opcoes-tres { grid-template-columns: 1fr; }
  .campo-duplo { grid-template-columns: 1fr; }
  .peca-lado { grid-template-columns: 1fr; }
  .peca-lado img { aspect-ratio: 4 / 5; min-height: 0; }
}

/* ---------- Movimento reduzido: a camisa já chega abotoada ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero.abertura *, .hero.abertura .carcela::before, .hero.abertura .carcela::after,
  .hero.eco .botao, .hero.sem-abertura * { animation: none !important; }
  .js .hero:not(.aberta) .carcela-topo,
  .js .hero:not(.aberta) .hero-texto { opacity: 1; animation: none; }
  .carcela { animation: some-surge 200ms linear both; }
  .js .revela { opacity: 1; transform: none; transition: none; }
  .cta-flutuante { transform: translate(-50%, 0); transition: opacity 200ms linear, visibility 0s linear 200ms; }
  .cta-flutuante.is-visivel { transition: opacity 200ms linear; }
  .item, .btn-principal, .btn-sec, .categorias a { transition: none; }
  .folha[open] { animation: none; }
  .credito:active .selo-b2 { rotate: none; }
}
