/* Modelo de site para negócios locais. Três temas por data-tema. Foto real no topo; uma só animação (a entrada do título). */
@font-face { font-family: "Bricolage"; src: url(fontes/bricolagegrotesque.woff2) format("woff2"); font-weight: 400 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fontes/fraunces.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fontes/archivo.woff2) format("woff2"); font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(fontes/bodonimoda.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

/* Café: creme de pastelaria, terracota, castanho de café (o estilo de que o cliente gostou) */
[data-tema="cafe"] {
  --t-titulo: "Fraunces", Georgia, serif; --t-peso: 700; --t-largura: 100%;
  --fundo: #f7efe3; --texto: #2b1d14; --suave: #7a6555; --linha: #e6d8c4; --cor: #b4542d; --cor-texto: #fff; --zona: #fffaf2;
  --c-principal: #b4542d; --c-escuro: #4a2c1d; --c-cafe: #6b3f26; --c-sombra: rgb(74 44 29 / .14); --c-azulejo: #1f4e8c;
}
/* Oficina: cinzento de betão, azul de fato-macaco */
[data-tema="oficina"] {
  --t-titulo: "Archivo", system-ui, sans-serif; --t-peso: 800; --t-largura: 72%;
  --fundo: #eef0f1; --texto: #14181c; --suave: #4d5761; --linha: #cfd4d8; --cor: #1b5fae; --cor-texto: #fff; --zona: #e2e6e9;
}
/* Barbearia: nogueira escura, latão, creme */
[data-tema="barbearia"] {
  --t-titulo: "Bodoni Moda", Georgia, serif; --t-peso: 600; --t-largura: 100%;
  --fundo: #1f1915; --texto: #efe6d8; --suave: #b9ab97; --linha: #3a312a; --cor: #b8925a; --cor-texto: #1f1915; --zona: #2a221d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 1.0625rem/1.6 "Bricolage", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cor); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--t-titulo); font-weight: var(--t-peso); font-stretch: var(--t-largura); line-height: 1.05; margin: 0 0 .45em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
p { max-width: 62ch; }
svg { width: 1.15em; height: 1.15em; flex: none; }

.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--cor); color: var(--cor-texto); border: 2px solid var(--cor); text-decoration: none;
  font: 650 1rem/1 "Bricolage", sans-serif; padding: .85em 1.25em; border-radius: 8px; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-claro { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .55); color: #fff; backdrop-filter: blur(6px); }
.btn-linha { background: transparent; color: var(--texto); border-color: var(--linha); }
.btn-largo { width: 100%; justify-content: center; padding: 1em; font-size: 1.05rem; }
.botoes { display: flex; flex-wrap: wrap; gap: 10px; }

.aviso-exemplo { margin: 0; background: #fff3c4; color: #3d3200; text-align: center; font-size: .9rem; padding: 8px 16px; max-width: none; }
.aviso-exemplo a { font-weight: 650; }

/* topo com foto */
.heroi { position: relative; isolation: isolate; min-height: min(88vh, 760px); display: flex; flex-direction: column; color: #fff; background: #333; }
.heroi-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.heroi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / 0) 28%, rgb(0 0 0 / .15) 50%, rgb(0 0 0 / .72) 100%); }
.topo { display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(20px, 5vw, 64px); }
.marca { font-family: var(--t-titulo); font-weight: var(--t-peso); font-stretch: var(--t-largura); font-size: 1.35rem; text-decoration: none; }
.topo-acao { color: #fff; font-weight: 650; text-decoration: none; border: 2px solid rgb(255 255 255 / .7); padding: .45em .9em; border-radius: 8px; }
.heroi-texto { margin-top: auto; padding: 0 clamp(20px, 5vw, 64px) clamp(36px, 6vw, 72px); max-width: 1180px; width: 100%; }
.heroi h1 { font-size: clamp(3rem, 10vw, 7.2rem); margin-bottom: .15em; text-shadow: 0 2px 30px rgb(0 0 0 / .3); }
.slogan { font-size: clamp(1.15rem, 2.4vw, 1.6rem); margin: 0 0 26px; max-width: 30ch; }
@media (prefers-reduced-motion: no-preference) {
  .heroi h1, .slogan, .heroi .botoes { animation: entrar .8s cubic-bezier(.2, .7, .2, 1) both; }
  .slogan { animation-delay: .08s; } .heroi .botoes { animation-delay: .16s; }
}
@keyframes entrar { from { opacity: 0; transform: translateY(16px); } }

/* barra de informação logo abaixo da foto */
.barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 16px clamp(20px, 5vw, 64px); background: var(--zona); border-bottom: 1px solid var(--linha); font-size: .98rem; }
.barra-item { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; color: var(--suave); }
.barra-item:hover { color: var(--texto); }
.estado { margin: 0; display: inline-flex; align-items: center; gap: .5em; font-weight: 650; }
.estado .ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--suave); }
.estado.aberto .ponto { background: #1f9d55; }
.estado.fechado .ponto { background: #c8372d; }

main > section { max-width: 1180px; margin: 0 auto; padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 64px); }
main > section + section { border-top: 1px solid var(--linha); }

/* quem somos */
.sobre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .sobre { grid-template-columns: 1fr; } }
.sobre-texto { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.destaques { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.destaques li { background: var(--zona); border-radius: 999px; padding: .35em .9em; font-size: .95rem; }
.galeria { display: grid; gap: 12px; }
.galeria.g2 { grid-template-columns: 1.2fr .8fr; }
.galeria img { width: 100%; height: clamp(220px, 30vw, 380px); object-fit: cover; border-radius: 6px; }
.galeria.g2 img:last-child { margin-top: 48px; }

/* menu / preçário: lista impressa, não cartões */
.colunas { columns: 3 300px; column-gap: clamp(28px, 5vw, 64px); margin-top: 12px; }
.grupo { break-inside: avoid; margin-bottom: 32px; }
.grupo h3 { font-size: 1.35rem; padding-bottom: 8px; border-bottom: 2px solid var(--cor); display: inline-block; }
.grupo ul { list-style: none; margin: 6px 0 0; padding: 0; }
.grupo li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.grupo .item em { display: block; font-style: normal; font-size: .85rem; color: var(--suave); }
.grupo .preco { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* pedido */
.pedido { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .pedido { grid-template-columns: 1fr; } }
.pedido-texto p { color: var(--suave); font-size: 1.12rem; }
.nota-wa { display: flex; align-items: center; gap: .5em; font-size: .95rem !important; }
.nota-wa svg { color: #1fa855; }
.formulario { display: grid; gap: 14px; background: var(--zona); padding: clamp(20px, 3vw, 28px); border-radius: 10px; }
.formulario label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.formulario :is(input, select, textarea) { font: inherit; font-weight: 400; padding: .75em .9em; border-radius: 6px; border: 1.5px solid var(--linha); background: var(--fundo); color: var(--texto); }
.formulario :is(input, select, textarea):focus { outline: none; border-color: var(--cor); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* opiniões */
.citacoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; margin-top: 8px; }
.citacoes figure { margin: 0; }
.estrelas { display: flex; gap: 2px; color: #e0a100; }
.estrelas svg { width: 18px; height: 18px; }
.citacoes blockquote { margin: 10px 0; font-family: var(--t-titulo); font-stretch: var(--t-largura); font-size: 1.25rem; line-height: 1.35; }
.citacoes figcaption { color: var(--suave); }

/* horário e morada */
.visita { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
@media (max-width: 820px) { .visita { grid-template-columns: 1fr; } }
.visita table { width: 100%; border-collapse: collapse; }
.visita th, .visita td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--linha); font-weight: 400; }
.visita td { text-align: right; color: var(--suave); font-variant-numeric: tabular-nums; }
.visita tr.hoje th, .visita tr.hoje td { font-weight: 700; color: var(--texto); }
.visita tr.hoje th::after { content: " (hoje)"; font-weight: 400; color: var(--suave); }
.morada { font-size: 1.2rem; }

.rodape { text-align: center; color: var(--suave); font-size: .9rem; padding: 32px 20px 96px; border-top: 1px solid var(--linha); }
.rodape p { margin: 0 auto; }

.wa-flutuante { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgb(0 0 0 / .35); }
.wa-flutuante svg { width: 30px; height: 30px; }

.dialogo { border: 0; border-radius: 12px; padding: 26px; max-width: 440px; width: calc(100% - 32px); background: var(--fundo); color: var(--texto); }
.dialogo::backdrop { background: rgb(0 0 0 / .5); }
.dialogo pre { white-space: pre-wrap; font: .95rem/1.5 "Bricolage", sans-serif; background: var(--zona); padding: 14px; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) { .dialogo[open] { animation: entrar .3s ease-out; } }

html.captura *, html.captura *::before { animation: none !important; }
html.embutido .aviso-exemplo, html.embutido .wa-flutuante { display: none; }

/* ===== topos diferentes por tipo ===== */
.topo-claro .marca, .topo-claro .topo-acao { color: #fff; }

/* Café: ilustração animada (chávena com vapor), faixa de azulejo e rolo de destaques */
.heroi-ilustrado { color: var(--texto); background: none; min-height: auto; }
.heroi-ilustrado::before { display: none; }
.heroi-ilustrado .topo-acao { color: var(--cor); border-color: var(--cor); }
.heroi-grelha { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; max-width: 1180px; margin: 0 auto; width: 100%; padding: 8px clamp(20px, 5vw, 64px) clamp(40px, 6vw, 80px); }
@media (max-width: 820px) { .heroi-grelha { grid-template-columns: 1fr; } .heroi-arte { order: -1; max-width: 230px; } }
.heroi-ilustrado .heroi-texto { padding: 0; margin: 0; }
.heroi-ilustrado h1 { text-shadow: none; font-size: clamp(3.2rem, 9vw, 7rem); }
.heroi-ilustrado .slogan { color: var(--suave); }
.heroi-ilustrado .estado { background: rgb(43 29 20 / .07); padding: .4em .9em; border-radius: 999px; margin-bottom: 14px; }
.heroi-arte { justify-self: center; width: 100%; max-width: 400px; }
.ilu { width: 100%; height: auto; color: var(--c-principal); filter: drop-shadow(0 30px 40px var(--c-sombra)); }
.ilu-cafe .vapor path { animation: vapor 3.2s ease-in-out infinite; transform-origin: center bottom; transform-box: fill-box; }
.ilu-cafe .v2 { animation-delay: .6s !important; } .ilu-cafe .v3 { animation-delay: 1.2s !important; }
@keyframes vapor { 0% { opacity: 0; transform: translateY(14px) scaleY(.8); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-16px) scaleY(1.1); } }
.faixa-azulejo { height: 60px; position: relative; overflow: hidden; background: color-mix(in srgb, var(--c-azulejo) 10%, var(--fundo)); }
.faixa-azulejo::before { content: ""; position: absolute; inset: 0; background: var(--c-azulejo); opacity: .55;
  -webkit-mask: var(--azulejo) 0 0 / 60px 60px repeat-x; mask: var(--azulejo) 0 0 / 60px 60px repeat-x; animation: azulejo 30s linear infinite; }
@keyframes azulejo { to { -webkit-mask-position: -600px 0; mask-position: -600px 0; } }
.rolo-caixa { overflow: hidden; padding: 18px 0; border-bottom: 1px solid var(--linha); }
.rolo { display: flex; gap: 44px; width: max-content; animation: rolo 26s linear infinite; }
.rolo span { font: 700 1.25rem/1 var(--t-titulo); white-space: nowrap; display: flex; align-items: center; gap: 44px; }
.rolo span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--cor); }
@keyframes rolo { to { transform: translateX(-50%); } }
[data-tema="cafe"] .barra .estado { display: none; }

/* Oficina: ecrã dividido, painel escuro com preços rápidos e foto à direita */
.heroi-dividido { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #14181c; min-height: min(86vh, 720px); }
.heroi-dividido::before { display: none; }
.heroi-dividido .heroi-foto { position: static; height: 100%; min-height: 360px; }
.painel { display: flex; flex-direction: column; }
.heroi-dividido .heroi-texto { margin: auto 0 0; }
.heroi-dividido h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); text-shadow: none; }
.heroi-dividido .estado { color: #cfd6dc; margin-bottom: 12px; }
.rapidos { list-style: none; padding: 0; margin: 30px 0 0; max-width: 460px; border-top: 1px solid #2c3339; }
.rapidos li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #2c3339; color: #cfd6dc; }
.rapidos b { color: #ffc23d; white-space: nowrap; }
@media (max-width: 820px) { .heroi-dividido { grid-template-columns: 1fr; } .heroi-dividido .heroi-foto { order: -1; height: 260px; min-height: 0; } }
[data-tema="oficina"] .barra .estado { display: none; }

/* Barbearia: foto inteira + vagas de hoje */
.heroi-foto-inteira .heroi-texto { text-align: center; margin: auto auto 0; display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; }
.heroi-foto-inteira .slogan { margin-left: auto; margin-right: auto; }
.heroi-foto-inteira .estado { color: #efe6d8; margin-bottom: 14px; }
.vagas { text-align: center; padding: 0 20px clamp(28px, 5vw, 48px); }
.vagas p { margin: 0 auto 10px; font-size: .9rem; color: #d8cbb6; max-width: none; }
.vagas-horas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vagas-horas a { color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / .45); background: rgb(0 0 0 / .25); backdrop-filter: blur(6px); padding: .5em .95em; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 600; }
.vagas-horas a:hover { background: var(--cor); color: var(--cor-texto); border-color: var(--cor); }
[data-tema="barbearia"] .barra .estado { display: none; }

@media (prefers-reduced-motion: reduce) { .ilu-cafe .vapor path, .faixa-azulejo::before, .rolo { animation: none; } }

/* estrelas com meias (ex.: 3,5) */
.estrelas { position: relative; display: inline-flex; }
.estrelas .vazias, .estrelas .cheias { display: flex; gap: 2px; }
.estrelas .vazias { color: color-mix(in srgb, var(--texto) 18%, transparent); }
.estrelas .cheias { position: absolute; inset: 0; color: #e0a100; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.media { color: var(--suave); margin-top: -.4em; }
.media b { font-size: 1.4rem; color: var(--texto); }
