/* Componentes reutilizáveis. Depende de tokens.css e base.css. */

/* ---------- Rótulo manuscrito (kicker) ---------- */
.kicker {
  display: inline-block;
  margin: 0 0 .35em;
  font-family: var(--fonte-mao);
  font-weight: 600;
  font-size: var(--tam-mao);
  line-height: 1.1;
  color: var(--acao);
  transform: rotate(-1.5deg);
  transform-origin: left;
}
.escuro .kicker { color: var(--destaque); }

.intro { max-width: 60ch; color: var(--texto-suave); margin-top: 1.1em; font-size: 1.08em; }
.escuro .intro { color: var(--texto-inverso-suave); }
.credito { font-size: var(--tam-legenda); color: var(--texto-suave); margin-top: 1.2rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; padding: .8em 1.5em .85em 1.6em;
  border: 0; border-radius: var(--raio-pilula);
  background: var(--acao); color: var(--acao-texto);
  font-family: var(--fonte-texto); font-weight: 700; font-size: 1.08rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: var(--sombra-botao), var(--sombra);
  transition: background-color var(--dur-media) ease, transform var(--dur-media) ease, box-shadow var(--dur-media) ease;
}
.botao:hover { background: var(--acao-hover); transform: translateY(-1px); }
.botao:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .16); }
.botao__seta { width: 28px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-media) ease; }
.botao:hover .botao__seta { transform: translateX(3px); }
.botao--pequeno { min-height: 44px; padding: .55em 1.15em; font-size: 1rem; }
.botao--grande { font-size: 1.18rem; padding: .95em 1.8em; }
.botao--claro { background: var(--cor-creme); color: var(--cor-tinta); }
.botao--claro:hover { background: #fff6e8; }
.botao--contorno { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 2px currentColor; }
.botao--contorno:hover { background: rgba(42, 27, 18, .06); }
.botao[disabled], .botao[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.nota-compra { font-size: .95rem; color: var(--texto-suave); margin: .7em 0 0; }
.escuro .nota-compra { color: var(--texto-inverso-suave); }

.link-seta { font-weight: 700; color: var(--acao); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.link-seta::after { content: " →"; }
.escuro .link-seta { color: var(--destaque); }

/* ---------- Recortes orgânicos de imagem ---------- */
.lente { overflow: hidden; border-radius: var(--raio-lente); background: var(--cor-kraft); }
.seixo { overflow: hidden; border-radius: var(--raio-seixo); background: var(--cor-kraft); }
.lente img, .seixo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Divisor de lâminas (camadas de madeira prensadas em curva) ---------- */
.laminas { position: absolute; left: 0; top: -40px; width: 100%; height: 56px; display: block; pointer-events: none; }
.laminas .l1 { fill: var(--lamina-clara); }
.laminas .l2 { fill: var(--lamina-mel); }
.laminas .l3 { fill: var(--lamina-avermelhada); }
.laminas .l4 { fill: var(--lamina-clara); }
.laminas .l5 { fill: var(--lamina-escura); }
.laminas .base { fill: var(--secao-fundo, var(--fundo)); }

/* ---------- Cabeçalho ---------- */
.topo { position: sticky; top: 0; z-index: var(--z-topo); background: rgba(246, 238, 226, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--linha-suave); }
.topo__inner { width: min(100% - 2 * var(--gutter), var(--largura-ampla)); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.assinatura { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; margin-right: auto; }
.assinatura__nome { font-family: var(--fonte-titulo); font-style: italic; font-weight: 560; font-size: 1.3rem; font-variation-settings: "SOFT" 100, "opsz" 30; }
.assinatura__curso { font-size: .9rem; color: var(--texto-suave); }
.menu { display: flex; gap: 1.4rem; font-size: 1.02rem; }
.menu a { text-decoration: none; padding: .4em 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--dur-media) ease; }
.menu a:hover { background-size: 100% 1.5px; }
@media (max-width: 960px) { .menu { display: none; } }

/* ---------- Listas com check desenhado ---------- */
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.lista-check li { position: relative; padding-left: 2.1rem; }
.lista-check li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 1.3rem; height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='M3 14 C 7 16, 10 20, 12 23 C 16 14, 22 7, 30 3' fill='none' stroke='%23a3441c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.escuro .lista-check li::before, .lista-check--mel li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='M3 14 C 7 16, 10 20, 12 23 C 16 14, 22 7, 30 3' fill='none' stroke='%23e6ac5f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Perguntas (details) ---------- */
.faq details { border-bottom: 1px dashed var(--linha); }
.faq details:first-child { border-top: 1px dashed var(--linha); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.15rem 2.6rem 1.15rem 0; font-family: var(--fonte-titulo); font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); font-weight: 520; line-height: 1.3; font-variation-settings: var(--eixos-texto-serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font-family: var(--fonte-mao); font-size: 2rem; color: var(--acao); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details p { margin: 0 0 1.3rem; color: var(--texto-suave); max-width: 62ch; }

/* ---------- Vídeo de relato ---------- */
.video { position: relative; border-radius: 26px 30px 28px 32px; overflow: hidden; background: #000; aspect-ratio: 478 / 850; box-shadow: var(--sombra-escura); }
.video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50% 47% 52% 49%; background: var(--cor-creme); color: var(--cor-terracota); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); transition: transform var(--dur-media) ease, background-color var(--dur-media) ease; }
.video__play:hover { transform: scale(1.06); background: #fff6e8; }
.video__play svg { width: 38px; height: 38px; fill: currentColor; margin-left: 4px; }
.video__play[hidden] { display: none; }
.transcricao summary { cursor: pointer; color: var(--destaque); font-weight: 700; padding: .3em 0; list-style-position: inside; }
.transcricao[open] summary { margin-bottom: .6rem; }
.transcricao p { font-size: 1rem; color: var(--texto-inverso-suave); }

/* ---------- Campo de texto ---------- */
.campo { display: grid; gap: .4rem; }
.campo label, .campo__rotulo { font-weight: 700; font-size: 1rem; }
.campo input, .campo textarea, .campo select {
  font: inherit; font-size: 1.15rem; color: var(--texto);
  background: var(--fundo-elevado);
  border: 1.5px solid var(--linha); border-radius: var(--raio-campo);
  padding: .7em .9em; min-height: 52px; width: 100%;
  transition: border-color var(--dur-media) ease, box-shadow var(--dur-media) ease;
}
.campo input::placeholder, .campo textarea::placeholder { color: #766150; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--acao); box-shadow: 0 0 0 3px rgba(163, 68, 28, .22); }
.campo__ajuda { font-size: var(--tam-legenda); color: var(--texto-suave); }

/* ---------- Escolha por amostra (rádios de madeira/lâmina) ---------- */
.amostras { border: 0; padding: 0; margin: 0; min-width: 0; }
.amostras legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: .55rem; }
.amostras__lista { display: flex; flex-wrap: wrap; gap: .6rem .9rem; }
.amostra { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; cursor: pointer; font-size: .95rem; color: var(--texto-suave); }
.amostra input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amostra__chip {
  width: 52px; height: 52px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 6px 12px -8px rgba(60, 30, 10, .6);
  transition: transform var(--dur-media) var(--curva), box-shadow var(--dur-media) ease;
}
.amostra:hover .amostra__chip { transform: translateY(-2px) rotate(-3deg); }
.amostra input:checked + .amostra__chip { box-shadow: 0 0 0 3px var(--fundo-elevado), 0 0 0 5.5px var(--acao), 0 8px 14px -8px rgba(60, 30, 10, .7); }
.amostra input:checked ~ .amostra__nome { color: var(--texto); font-weight: 700; }
.amostra input:focus-visible + .amostra__chip { outline: 3px solid var(--foco); outline-offset: 6px; }

/* ---------- Selo redondo (imagem pequena em círculo) ---------- */
.selo { width: 72px; height: 72px; flex: none; border-radius: 50% 47% 52% 49%; object-fit: cover; box-shadow: 0 0 0 4px var(--fundo-elevado), 0 8px 16px -10px rgba(60, 30, 10, .6); }

/* ---------- Contagem (números grandes com rótulo manuscrito) ---------- */
.contagem { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin: 0; }
.contagem__item { display: flex; flex-direction: column; align-items: flex-start; }
.contagem strong { font-family: var(--fonte-titulo); font-weight: 600; font-size: clamp(4rem, 2.6rem + 5vw, 7.5rem); line-height: .9; color: var(--acao); font-variation-settings: var(--eixos-display); letter-spacing: -.03em; }
.contagem .mao { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); color: var(--texto-suave); margin-top: .2rem; transform: rotate(-2deg); }

/* ---------- Etiqueta (tag de peça artesanal) ---------- */
.etiqueta-sombra { filter: drop-shadow(0 30px 34px rgba(76, 38, 14, .28)) drop-shadow(0 2px 2px rgba(76, 38, 14, .12)); }
.etiqueta {
  position: relative;
  background-color: #e8d4b2;
  background-image: var(--textura-papel), linear-gradient(170deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 40%);
  padding: clamp(3.6rem, 6vw, 4.6rem) clamp(1.6rem, 4vw, 3.2rem) clamp(1.8rem, 4vw, 3rem);
  clip-path: polygon(44px 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%, 0 44px);
}
.etiqueta__furo { position: absolute; top: 22px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--fundo); box-shadow: 0 0 0 7px #d7bd94, inset 0 2px 3px rgba(60, 30, 10, .35); }
.etiqueta__costura { position: absolute; inset: 64px 16px 16px; border: 1.5px dashed rgba(132, 52, 15, .35); border-radius: 6px; pointer-events: none; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--cor-nogueira-media); color: var(--cor-creme-suave); padding: 2.6rem 0 3rem; font-size: 1rem; }
.rodape__grade { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.rodape p { margin: 0 0 .4rem; }
.rodape__curso { font-family: var(--fonte-titulo); font-size: 1.2rem; color: var(--cor-creme); }
.rodape a { color: var(--cor-creme); }
.rodape :focus-visible { outline-color: var(--cor-mel); }
@media (max-width: 560px) { .rodape__grade { grid-template-columns: 1fr; } }
