/* MODELO "PROFISSIONAL AUTÔNOMO" (26/10/2026) -- só estilo. O conteúdo (nome, frase, serviços, sobre, trabalhos, relatos, contato) vem dos módulos e da conta;
   nada de texto de negócio mora nas páginas. Visual inspirado em site de profissional de obra: topo escuro com foto, título pesado, laranja de destaque. */
:root {
  --id-principal: --principal; --id-destaque: --destaque; --id-derivadas: --hero-cor1 .55, --hero-cor2 .22; /* módulo identidadeSite: onde a cor da conta entra */
  --id-escuro: --escuro; --id-imagem-fundo: --hero-img; /* a foto de fundo que o profissional envia no painel entra no topo */
  --principal: #d4713b;
  --principal-escuro: #a9531f;
  --destaque: #f0a070;
  --destaque-claro: #fbe9dd;
  --escuro: #0f1437;
  --papel: #f5f6fa;
  --texto: #1c2140;
  --suave: #5b6180;
  --sombra: 0 12px 30px -12px rgba(15, 20, 55, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; } /* rolagem: o menu fixo não cobre o título da seção */
body { font-family: 'Inter', system-ui, sans-serif; color: var(--texto); background: var(--papel); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Barlow Condensed', 'Inter', sans-serif; margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: .2px; }
p { margin: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.faixa-demo { background: #070a22; color: #d9dcf0; font-size: 13px; text-align: center; padding: 8px 16px; }
.faixa-demo a { color: var(--destaque); font-weight: 700; text-decoration: underline; }

/* ---------- topo e menu ---------- */
.topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 20px; background: var(--escuro); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.marca { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.marca-logo { height: 36px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.marca-logo:not([src]) { display: none; }
.marca-nome { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .6px; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-desk { display: none; align-items: center; gap: 20px; margin-left: 28px; }
.nav-desk a { color: #d9dcf0; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav-desk a:hover, .nav-desk a[aria-current="page"] { color: var(--destaque); }
.nav-desk a.nav-cta { border: 1px solid var(--principal); color: var(--destaque); padding: 8px 16px; }
.nav-desk a.nav-cta:hover { background: var(--principal); color: #fff; }
.burger { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; background: transparent; color: #fff; flex: none; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 2px 0; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-desk.aberto { display: flex !important; position: absolute; top: calc(100% + 8px); right: 20px; left: auto; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; background: var(--escuro); padding: 8px; border-radius: 12px; min-width: 210px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.nav-desk.aberto a { width: 100%; padding: 12px 14px; border-radius: 8px; text-align: right; }

/* ---------- topo da página (hero) ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding: 84px 20px 76px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--escuro) 96%, transparent) 0%, color-mix(in srgb, var(--escuro) 82%, transparent) 52%, color-mix(in srgb, var(--escuro) 55%, transparent) 100%), var(--hero-img, none), linear-gradient(165deg, var(--hero-cor1, #1b2260) 0%, var(--hero-cor2, #0f1437) 100%); background-size: cover; background-position: center; }
.hero-in { max-width: 1120px; margin: 0 auto; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--destaque); margin-bottom: 18px; }
.hero-kicker::before { content: ''; width: 34px; height: 2px; background: var(--destaque); }
.hero h1 { font-size: clamp(40px, 8vw, 76px); max-width: 780px; margin-bottom: 18px; text-transform: none; }
.hero h1 em { color: var(--principal); font-style: normal; }
.hero-sub { max-width: 560px; font-size: 16.5px; line-height: 1.6; color: #cfd3ec; margin-bottom: 30px; }
.hero-botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--cheio { background: var(--principal); color: #12163f; border-color: var(--principal); }
.btn--linha { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--escuro { background: var(--escuro); color: #fff; border-color: var(--escuro); }

/* ---------- seções ---------- */
.secao { max-width: 1120px; margin: 0 auto; padding: 64px 20px; }
.secao--fundo { max-width: none; background: #fff; }
.secao--fundo > .secao-in { max-width: 1120px; margin: 0 auto; }
.secao:has([data-catalogo]:empty), .secao-in:has([data-catalogo]:empty) { display: none; }
.secao:has([data-texto-titulo]:empty):has([data-perfil-nome]:empty), .chamada:has([data-texto-titulo]:empty), .secao-in:has(h2[data-catalogo-titulo]:empty) { display: none; } /* sem o texto/serviços cadastrados a seção nem aparece */
.chamada-texto p { color: #cfd3ec; max-width: 520px; margin: 0 auto 26px; line-height: 1.6; }
h1[data-catalogo-titulo]:empty, h2[data-catalogo-titulo]:empty { display: none; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--principal-escuro); margin-bottom: 10px; }
.kicker::before { content: ''; width: 34px; height: 2px; background: var(--principal); }
.secao h2 { font-size: clamp(30px, 5.4vw, 46px); color: var(--escuro); margin-bottom: 26px; }
.pagina { max-width: 1120px; margin: 0 auto; padding: 56px 20px 72px; }
.pagina > h1 { font-size: clamp(34px, 6vw, 54px); color: var(--escuro); margin-bottom: 8px; }
.pagina > .lead { color: var(--suave); font-size: 16px; line-height: 1.6; margin: 0 0 30px; max-width: 640px; }

/* quem faz o serviço (perfil + texto) */
.sobre { display: grid; gap: 34px; align-items: center; }
@media (min-width: 820px) { .sobre { grid-template-columns: 360px 1fr; gap: 56px; } }
.perfil { position: relative; }
.perfil img, .perfil .avatar-letra--perfil { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--escuro); border-bottom: 5px solid var(--principal); }
.perfil .avatar-letra--perfil { display: grid; place-items: center; font: 800 110px 'Barlow Condensed', sans-serif; color: var(--destaque); }
.perfil-nome { margin-top: 14px; font: 800 26px 'Barlow Condensed', sans-serif; color: var(--escuro); }
.perfil-cargo { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--principal-escuro); margin-top: 2px; }
.perfil-bio { margin-top: 10px; color: var(--suave); font-size: 14.5px; line-height: 1.6; }
.texto-sobre h2 { margin-bottom: 18px; }
.texto-sobre [data-texto-corpo] p { font-size: 16px; line-height: 1.75; color: var(--suave); margin-bottom: 14px; }
.texto-sobre [data-texto-destaque] { margin-top: 18px; padding-left: 16px; border-left: 4px solid var(--principal); font-weight: 700; color: var(--escuro); line-height: 1.5; }

/* serviços (cartões e acordeão do módulo catalogoPublico) */
.servicos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dif { background: #fff; padding: 24px 22px; border-top: 4px solid var(--principal); box-shadow: var(--sombra); }
.dif h3 { font-size: 24px; color: var(--escuro); margin-bottom: 8px; }
.dif p { font-size: 14.5px; line-height: 1.6; color: var(--suave); }
.acordeao details { background: #fff; border-bottom: 1px solid #e3e5f0; padding: 0 20px; }
.acordeao summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 0; font: 800 24px 'Barlow Condensed', sans-serif; color: var(--escuro); }
.acordeao summary::-webkit-details-marker { display: none; }
.acordeao summary .n { font-size: 14px; letter-spacing: .1em; color: var(--principal); }
.acordeao details[open] summary { color: var(--principal-escuro); }
.acordeao details p { padding: 0 0 22px 38px; color: var(--suave); line-height: 1.65; font-size: 15px; }

/* trabalhos e relatos (módulo "Nossa loja" do painel, mostrado por ambienteLojaPublico) */
.ambiente-loja { max-width: none !important; padding: 0 !important; text-align: left !important; }
.ambiente-tit { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(30px, 5.4vw, 46px) !important; color: var(--escuro); }
.ambiente-texto { margin: 0 0 24px !important; max-width: 720px !important; color: var(--suave); font-size: 16px; }
.ambiente-comodidades { justify-content: flex-start !important; }
.ambiente-foto img { border-radius: 0 !important; }
.ambiente-foto figcaption { font-weight: 600; color: var(--texto); }
.ambiente-relato { border-radius: 0 !important; background: #fff !important; border-left: 4px solid var(--principal); box-shadow: var(--sombra); }
.ambiente-relato footer { color: var(--escuro); }

/* chamada final e contato */
.chamada { background: var(--escuro); color: #fff; text-align: center; padding: 64px 20px; }
.chamada h2 { color: #fff; font-size: clamp(30px, 5.4vw, 46px); margin-bottom: 12px; }
.chamada p { color: #cfd3ec; max-width: 520px; margin: 0 auto 26px; line-height: 1.6; }
.contato-grade { display: grid; gap: 28px; }
@media (min-width: 820px) { .contato-grade { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contatos li { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid #e3e5f0; }
.contatos li span { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--principal-escuro); }
.contatos li a, .contatos li em { font-size: 17px; font-weight: 600; font-style: normal; color: var(--escuro); text-decoration: none; overflow-wrap: anywhere; }
.links-imp { margin-top: 8px; }
.contatos li:has([data-config][style*="display: none"]) { display: none; } /* contato sem valor cadastrado: o cartão inteiro some (o módulo esconde só o valor) */
.agenda-titulo { font-size: 26px; color: var(--escuro); margin-bottom: 14px; }
.agenda-card { max-width: 640px; background: #fff; padding: 24px; box-shadow: var(--sombra); border-top: 4px solid var(--principal); }

.rodape { text-align: center; padding: 28px 20px 44px; font-size: 12.5px; color: var(--suave); background: #fff; }
.rodape a { color: var(--principal-escuro); font-weight: 700; text-decoration: none; }

/* ---------- chat ---------- */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; background: var(--principal); color: #fff; padding: 0; border-radius: 50%; box-shadow: 0 10px 26px -6px rgba(0, 0, 0, .45); }
.chat-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; animation: pulsar 2.2s ease-out infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .chat-fab::after { animation: none; } }
.chat-fab-emoji { font-size: 26px; }
.chat-dica { position: fixed; right: 18px; bottom: 82px; z-index: 41; max-width: 190px; background: #fff; color: var(--principal-escuro); padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 13.5px; font-weight: 700; line-height: 1.3; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); cursor: pointer; border: 1px solid var(--principal); }
.chat-dica[hidden], .chat[hidden] { display: none; }
@keyframes pulsar { 0% { box-shadow: 0 0 0 0 rgba(212, 113, 59, .55); } 70% { box-shadow: 0 0 0 16px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
.chat { position: fixed; z-index: 50; right: 16px; bottom: 16px; left: 16px; max-width: 380px; margin-left: auto; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .45); display: flex; flex-direction: column; height: min(560px, 78vh); }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--escuro); color: #fff; }
.chat-topo-emoji { font-size: 22px; }
.chat-topo div { flex: 1; line-height: 1.25; }
.chat-topo b { font-size: 14px; }
.chat-topo small { display: block; font-size: 11.5px; color: #cfd3ec; }
.chat-topo button { color: #fff; opacity: .8; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #f3f4fa; }
.m { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.m.eu { align-self: flex-end; background: var(--principal); color: #fff; border-bottom-right-radius: 3px; }
.m.bot { align-self: flex-start; background: #fff; border: 1px solid rgba(15, 20, 55, .1); border-bottom-left-radius: 3px; }
.m.pensando { display: flex; gap: 4px; padding: 13px; }
.m.pensando i { width: 6px; height: 6px; border-radius: 50%; background: #b9bde0; display: inline-block; animation: pisca 1.2s infinite; }
.m.pensando i:nth-child(2) { animation-delay: .2s; }
.m.pensando i:nth-child(3) { animation-delay: .4s; }
@keyframes pisca { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chat-atalhos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: #f3f4fa; }
.atalho { background: var(--destaque-claro); color: var(--principal-escuro); font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(15, 20, 55, .1); }
.chat-form input { flex: 1; border: 1.5px solid rgba(15, 20, 55, .18); border-radius: 999px; padding: 10px 16px; font-size: 14px; }
.chat-form input:focus { outline: none; border-color: var(--principal); }
.chat-form button { background: var(--principal); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#chat-mic { background: rgba(15, 20, 55, .08); color: var(--escuro); }
#chat-mic[aria-pressed="true"] { background: var(--principal); color: #fff; }
