/* TEMA 39 — SERRALHERIA: "metal e solda". Aço escovado, grafite, chapa xadrez e laranja de brasa. Títulos Russo One, texto Inter. */
:root {
  --c39-grafite: #1c2026; --c39-grafite2: #262b33; --c39-aco: #8d96a3; --c39-aco2: #c7cdd5; --c39-brasa: #ff6a00; --c39-brasa2: #ffb000;
  --c39-txt: #e9edf2; --c39-txt2: #aab3bf;
  --cn-cor: #ff6a00; --cn-cor-txt: #fff; --cn-midia-prop: 74%;
  --c39-xadrez: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg fill='%23ffffff' fill-opacity='.05'%3E%3Crect x='4' y='6' width='12' height='4' rx='2' transform='rotate(45 10 8)'/%3E%3Crect x='20' y='24' width='12' height='4' rx='2' transform='rotate(45 26 26)'/%3E%3Crect x='20' y='6' width='12' height='4' rx='2' transform='rotate(-45 26 8)'/%3E%3Crect x='4' y='24' width='12' height='4' rx='2' transform='rotate(-45 10 26)'/%3E%3C/g%3E%3C/svg%3E");
  --c39-escovado: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px), linear-gradient(180deg, #d5dae1, #9aa3ae);
}
html { scroll-behavior: smooth; }
body.c39-corpo { margin: 0; background: #111418 var(--c39-xadrez); color: var(--c39-txt); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.c39-corpo.c39-com-barra { padding-bottom: 78px; }
.c39 { max-width: 560px; margin: 0 auto; background: var(--c39-grafite) var(--c39-xadrez); min-height: 100vh; box-shadow: 0 0 50px rgba(0,0,0,.6); overflow: hidden; }
.c39 a { color: inherit; }

/* TOPO: moldura de aço com rebites + faíscas */
.c39-moldura { position: relative; padding: 12px; background: var(--c39-escovado); clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%); }
.c39-capa { position: relative; overflow: hidden; background: #000; clip-path: polygon(0 0, 100% 0, 100% 86%, 87% 100%, 0 100%); }
.c39-capa .cn-midia { border-radius: 0; }
.c39-capa-img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 7; object-fit: cover; }
.c39-rebite { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8d96a3 55%, #4a525d); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.c39-moldura .c39-rebite:nth-of-type(1) { left: 1px; top: 1px; } .c39-moldura .c39-rebite:nth-of-type(2) { right: 1px; top: 1px; } .c39-moldura .c39-rebite:nth-of-type(3) { left: 1px; bottom: 1px; } .c39-moldura .c39-rebite:nth-of-type(4) { right: 40%; bottom: 1px; }
.c39-faiscas { position: absolute; right: 22%; bottom: 26%; z-index: 3; width: 4px; height: 4px; pointer-events: none; }
.c39-faiscas i { position: absolute; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(var(--c39-brasa2), var(--c39-brasa)); box-shadow: 0 0 6px var(--c39-brasa2); opacity: 0; animation: c39Faisca 1.6s infinite; }
.c39-faiscas i:nth-child(1) { --r: -60deg; animation-delay: 0s; } .c39-faiscas i:nth-child(2) { --r: -30deg; animation-delay: .2s; } .c39-faiscas i:nth-child(3) { --r: 0deg; animation-delay: .4s; } .c39-faiscas i:nth-child(4) { --r: 30deg; animation-delay: .6s; }
.c39-faiscas i:nth-child(5) { --r: 60deg; animation-delay: .8s; } .c39-faiscas i:nth-child(6) { --r: -80deg; animation-delay: 1s; } .c39-faiscas i:nth-child(7) { --r: 80deg; animation-delay: 1.2s; } .c39-faiscas i:nth-child(8) { --r: 15deg; animation-delay: 1.4s; }
@keyframes c39Faisca { 0% { opacity: 0; transform: rotate(var(--r)) translateY(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--r)) translateY(-70px); } }
.c39-id { position: relative; z-index: 4; display: flex; gap: 14px; align-items: center; padding: 0 18px 8px; margin-top: -40px; }
.c39-porca { flex: 0 0 auto; width: 118px; height: 118px; padding: 9px; box-sizing: border-box; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: var(--c39-escovado); filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.c39-porca-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: inset 0 0 0 4px #5e6672, inset 0 0 0 7px var(--c39-aco2); }
.c39-porca-in img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.c39-porca-in span { font: 30px 'Russo One', sans-serif; color: var(--c39-grafite); }
.c39-nome { flex: 1; min-width: 0; padding-top: 40px; }
.c39-nome h1 { margin: 0; font: 26px/1.05 'Russo One', sans-serif; text-transform: uppercase; color: #fff; word-break: break-word; }
.c39-nome h1.c39-longo { font-size: 21px; }
.c39-nome p { margin: 6px 0 0; color: var(--c39-txt2); font-size: 13.5px; }
.c39-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.c39-chip { background: var(--c39-grafite2); color: var(--c39-aco2); font-size: 12px; font-weight: 600; padding: 4px 10px; display: inline-flex; gap: 6px; align-items: center; }
.c39-chip a { color: var(--c39-aco2); }

/* TÍTULOS com cordão de solda incandescente */
.c39-bloco { padding: 26px 18px 8px; }
.c39-tit { margin: 0 0 16px; font: 23px/1.1 'Russo One', sans-serif; text-transform: uppercase; color: #fff; }
.c39-tit span { display: inline-block; padding-bottom: 10px; position: relative; }
.c39-tit span::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; min-width: 120px; height: 6px; border-radius: 3px; background: repeating-radial-gradient(circle at 3px 3px, var(--c39-brasa2) 0 2px, var(--c39-brasa) 2px 3px, #8a3a10 3px 4px) 0 0 / 7px 6px; box-shadow: 0 0 10px rgba(255,106,0,.7); animation: c39Esfria 3s ease-in-out infinite alternate; }
@keyframes c39Esfria { from { filter: brightness(1.25); } to { filter: brightness(.8) saturate(.8); } }

/* CONTATOS: barras de aço com rebites */
.c39-barras { display: grid; gap: 8px; }
.c39-perfil { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 34px 12px 12px; background: var(--c39-escovado); color: var(--c39-grafite) !important; text-decoration: none !important; font-weight: 700; word-break: break-word; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); transition: transform .15s; }
.c39-perfil:hover { transform: translateX(4px); }
.c39-perfil i { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--c39-grafite); color: var(--c39-brasa); font-size: 15px; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.c39-c-whatsapp i { color: #3ddc84; }
.c39-perfil span { flex: 1; min-width: 0; }
.c39-rebite-p { position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #6c7480 60%, #3a414b); }

/* AVALIAÇÕES */
.c39-trilho { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
.c39-trilho::-webkit-scrollbar { display: none; }
.c39-depo { flex: 0 0 84%; scroll-snap-align: start; margin: 0; background: var(--c39-grafite2); padding: 16px; border-left: 4px solid var(--c39-brasa); }
.c39-estrelas { color: var(--c39-brasa2); letter-spacing: 2px; }
.c39-depo blockquote { margin: 8px 0 12px; color: var(--c39-txt2); font-style: italic; }
.c39-depo figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.c39-depo img, .c39-ini { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.c39-ini { display: flex; align-items: center; justify-content: center; background: var(--c39-aco); color: var(--c39-grafite); font: 15px 'Russo One', sans-serif; }
.c39-setas { display: flex; justify-content: flex-end; gap: 8px; }
.c39-setas button { width: 40px; height: 40px; border: 0; background: var(--c39-brasa); color: #fff; cursor: pointer; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }

/* BOTÕES */
.c39-acoes { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 18px 6px; }
.c39-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 0; font: 15px 'Russo One', sans-serif; text-transform: uppercase; text-decoration: none !important; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.c39-btn-brasa { background: linear-gradient(180deg, #ff8a2a, var(--c39-brasa)); color: #fff !important; }
.c39-btn-aco { background: var(--c39-escovado); color: var(--c39-grafite) !important; }
.c39-btn:hover { filter: brightness(1.1); }

/* A EMPRESA: placa de aço escovado */
.c39-placa { position: relative; padding: 22px 20px; background: var(--c39-escovado); color: var(--c39-grafite); box-shadow: 0 8px 18px rgba(0,0,0,.45), inset 0 1px 0 #fff; }
.c39-placa .c39-rebite:nth-of-type(1) { left: 8px; top: 8px; } .c39-placa .c39-rebite:nth-of-type(2) { right: 8px; top: 8px; } .c39-placa .c39-rebite:nth-of-type(3) { left: 8px; bottom: 8px; } .c39-placa .c39-rebite:nth-of-type(4) { right: 8px; bottom: 8px; }
.c39-texto { color: #2b3038; font-size: 15px; font-weight: 500; }
.c39-texto p { margin: 0 0 8px; }
.c39-texto .cn-leia { color: #b84a00; }

/* SERVIÇOS: cordão de solda + numeração estampada */
.c39-servicos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c39-servico { background: var(--c39-grafite2); cursor: pointer; box-shadow: 0 6px 14px rgba(0,0,0,.45); transition: transform .2s; }
.c39-servico:hover { transform: translateY(-3px); }
.c39-servico-img { position: relative; aspect-ratio: 1; background: #333 center / cover no-repeat; filter: saturate(.85); }
.c39-estampa { position: absolute; left: 8px; top: 8px; font: 22px 'Russo One', sans-serif; color: rgba(255,255,255,.92); text-shadow: 1px 1px 0 rgba(0,0,0,.6); padding: 2px 8px; border: 2px solid rgba(255,255,255,.8); }
.c39-solda { height: 6px; background: repeating-radial-gradient(circle at 3px 3px, #f3c27a 0 1.5px, #b06a2a 1.5px 2.5px, #5a3a20 2.5px 3.5px) 0 0 / 6px 6px; }
.c39-servico-txt { padding: 10px 12px 12px; }
.c39-servico-txt h3 { margin: 0 0 6px; font: 15px/1.15 'Russo One', sans-serif; text-transform: uppercase; color: #fff; }
.c39-ver { font-size: 12.5px; font-weight: 700; color: var(--c39-brasa); }

/* GALERIA: grade de portão */
.c39-portao { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; background: #0d0f12; border: 6px solid #3a414b; box-shadow: inset 0 0 0 2px #5e6672; }
.c39-foto { aspect-ratio: 3 / 4; border: 0; padding: 0; background: #333 center / cover no-repeat; cursor: zoom-in; box-shadow: 0 0 0 3px #3a414b; }

/* PRODUTOS */
.c39-busca { display: flex; align-items: center; gap: 8px; background: var(--c39-grafite2); color: var(--c39-txt); border-bottom: 3px solid var(--c39-brasa); padding: 0 12px; margin: 0 0 14px; }
.c39-busca input { flex: 1; border: 0; outline: none; padding: 12px 0; font: inherit; background: transparent; color: var(--c39-txt); }
.c39-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c39-prod { background: var(--c39-grafite2); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.c39-prod-img { height: 130px; background: #333 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #666; font-size: 30px; }
.c39-prod-txt { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.c39-prod-txt h3 { margin: 0; font: 14px/1.2 'Russo One', sans-serif; text-transform: uppercase; color: #fff; }
.c39-prod-ver { margin-top: auto; color: var(--c39-brasa); font-weight: 700; font-size: 13px; }
.c39-nada { grid-column: 1 / -1; text-align: center; }
.c39-carrinho { width: 100%; margin-top: 14px; }

/* QR e FORMULÁRIO */
.c39-qr { text-align: center; } .c39-qr .code { display: flex; justify-content: center; margin-bottom: 12px; }
.c39-qr .code canvas, .c39-qr .code img { width: 200px !important; height: 200px !important; background: #fff; padding: 10px; box-sizing: content-box; border: 6px solid #3a414b; }
.c39-form { display: grid; gap: 10px; padding: 16px; background: var(--c39-grafite2); border-top: 6px solid; border-image: repeating-radial-gradient(circle at 3px 3px, #f3c27a 0 1.5px, #b06a2a 1.5px 2.5px, #5a3a20 2.5px 3.5px) 6; }
.c39-form input, .c39-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #3a414b; border-radius: 0; padding: 12px; font: inherit; background: #15181d; color: var(--c39-txt); }
.c39-form input::placeholder, .c39-form textarea::placeholder { color: #7d8794; }
.c39-form input:focus, .c39-form textarea:focus { outline: none; border-color: var(--c39-brasa); box-shadow: 0 0 0 3px rgba(255,106,0,.25); }
.c39-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c39-form .result { color: #fff; }

/* BARRA FIXA */
.c39-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; max-width: 560px; margin: 0 auto; background: var(--c39-escovado); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(0,0,0,.5); }
.c39-barra a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; color: var(--c39-grafite) !important; text-decoration: none !important; font: 13px 'Russo One', sans-serif; text-transform: uppercase; }
.c39-barra a i { font-size: 19px; }
.c39-barra a.c39-barra-zap { background: linear-gradient(180deg, #ff8a2a, var(--c39-brasa)); color: #fff !important; flex: 1.3; }
.c39-com-barra .radio-float { bottom: 88px !important; }

.c39-corpo .creditos-cartaodigital { max-width: 560px; margin: 0 auto !important; background: #0d0f12; }
.c39-corpo .modal { color: #222; }
@media (min-width: 600px) { .c39 { margin: 18px auto; } .c39-depo { flex-basis: 68%; } }
@media (max-width: 360px) { .c39-porca { width: 96px; height: 96px; } .c39-nome h1 { font-size: 21px; } .c39-servicos { grid-template-columns: 1fr; } }
