/*
Theme Name: Agência Base
Description: Tema base com segmentos prontos (agência, pet shop, automotivo, hotel, restaurante). Crie temas filhos com tools/novo-site.sh.
Version: 3.2.0
Text Domain: agencia-base
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --bg: #fafaf9; --surface: #fff; --text: #1c1917; --muted: #57534e;
  --line: #e7e5e4; --accent: #0f766e; --max: 1120px; --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.section { padding: 72px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.page-title { padding: 56px 0 24px; }
.entry-content { max-width: 720px; }
.ap-content { width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Botões */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 600;
  text-decoration: none; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  cursor: pointer; font-size: .95rem; font-family: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,249,.95); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.site-brand { font-weight: 700; color: var(--text); text-decoration: none; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.main-nav a:hover { color: var(--text); }
.header-transparente .site-header { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; }
.header-transparente .site-brand, .header-transparente .main-nav a { color: #fff; }
.header-transparente .main-nav a:hover { opacity: .8; }

/* Hero */
.hero { position: relative; min-height: 80vh; display: flex; align-items: center; color: #fff; background: #1c1917 center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--overlay, .45)); }
.hero--sem-imagem { color: var(--text); background: var(--surface); border-bottom: 1px solid var(--line); }
.hero--sem-imagem::before { display: none; }
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 80px; }
.hero .lead { font-size: 1.15rem; max-width: 640px; opacity: .9; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero--sem-imagem .btn--ghost { color: var(--accent); }
.hero:not(.hero--sem-imagem) .btn--ghost { color: #fff; border-color: #fff; }

/* Filtro de categorias */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; list-style: none; padding: 0; }
.filtros a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-decoration: none; font-size: .9rem; }
.filtros a[aria-current="page"], .filtros a:hover { border-color: var(--accent); color: var(--accent); }

/* Grades */
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Cards de projeto e depoimento */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card a { text-decoration: none; color: inherit; display: block; }
.card img, .card .sem-foto { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--line); }
.card .corpo { padding: 20px; }
.card .corpo p { color: var(--muted); font-size: .9rem; margin: 0; }
.card--pad { padding: 28px; }
.depoimento blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.depoimento cite { font-style: normal; color: var(--muted); font-size: .9rem; }

/* Ficha do projeto */
.ficha { display: grid; gap: 12px; margin: 24px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.ficha dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.ficha dd { margin: 0 0 8px; }

/* Formulário */
.form { display: grid; gap: 16px; }
.form label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.notice--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hp { position: absolute; left: -9999px; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.site-footer nav a { text-decoration: none; }
