/* =========================================================================
   Pouso Alegre Mais — estilo (Fase 0)
   Google-like: branco, muito espaço, azul só em ações. Sem web font pesada
   (usa fonte do sistema) para carregar rápido. Ícones via Font Awesome.
   ========================================================================= */

:root {
    --ink:      #1f2328;
    --muted:    #5f6469;
    --line:     #e6e8eb;
    --paper:    #ffffff;
    --paper-2:  #f7f8fa;
    --blue:     #1a6fe0;
    --blue-dark:#1557b0;
    --blue-soft:#eaf1fd;
    --wa:       #1f9d55;
    --danger:   #c5323a;
    --radius:   12px;
    --shadow:   0 1px 2px rgba(20,25,35,.04), 0 8px 30px rgba(20,25,35,.07);
    --wrap:     1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
    background: var(--blue); color: #fff; font-weight: 800; letter-spacing: -.02em;
}
.brand strong { color: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { background: var(--blue); color: #fff !important; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--blue-dark); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 64px 0 30px; text-align: center; }
.hero .logo-big {
    display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 18px;
    background: var(--blue); color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(26px, 4.5vw, 40px); }
.hero .sub { color: var(--muted); font-size: 17px; margin-top: -4px; }

/* -------------------------------------------------------------- busca */
.search { max-width: 620px; margin: 26px auto 0; }
.search form { display: flex; align-items: center; gap: 8px; }
.search .field {
    flex: 1; display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px 4px 18px;
    box-shadow: var(--shadow); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.search .field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search .field i { color: var(--muted); }
.search input {
    flex: 1; border: 0; outline: 0; font: inherit; padding: 12px 4px; background: transparent; color: var(--ink);
}
.search .btn-voice {
    border: 0; background: transparent; cursor: pointer; color: var(--muted);
    width: 40px; height: 40px; border-radius: 50%; font-size: 16px;
}
.search .btn-voice:hover { background: var(--paper-2); color: var(--blue); }
.search .btn-voice.rec { color: #fff; background: var(--danger); }
.search .btn { border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 600;
    padding: 13px 22px; border-radius: 999px; cursor: pointer; }
.search .btn:hover { background: var(--blue-dark); }

/* ---------------------------------------------------------------- seções */
.section { padding: 34px 0; }
.section h2 { font-size: 20px; display: flex; align-items: center; gap: 9px; }
.section h2 .count { color: var(--muted); font-weight: 400; font-size: 15px; }
.section-lead { color: var(--muted); margin: -4px 0 20px; }
.section .head-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section .head-row h2 { margin: 0; }
.see-all { font-size: 14px; font-weight: 600; }

/* grid de categorias (ícones FA) */
.cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); list-style: none; margin: 0; padding: 0; }
.cat {
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px; color: var(--ink);
    transition: .14s ease; background: #fff;
}
.cat:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.cat i { font-size: 24px; color: var(--blue); }
.cat span { font-weight: 600; font-size: 14.5px; }
.cat .badge { font-size: 12px; color: var(--muted); font-weight: 500; }

/* chips (subcategorias) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 26px; }
.chip { border: 1px solid var(--line); background: var(--paper-2); padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink); font-weight: 500; }
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* cards de empresa */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
    display: flex; flex-direction: column; transition: .14s ease;
}
.card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.card a.card-body { display: block; padding: 16px; color: var(--ink); }
.card a.card-body:hover { text-decoration: none; }
.card .thumb { width: 100%; height: 132px; object-fit: cover; background: var(--paper-2); }
.card .thumb-ph { width: 100%; height: 132px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 34px; font-weight: 800; }
.card h3 { font-size: 16px; margin: 0 0 4px; }
.card .meta { color: var(--muted); font-size: 13.5px; }
.card .tag-new { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.card .wa { display: block; text-align: center; padding: 9px; background: var(--wa); color: #fff; font-weight: 600; font-size: 14px; }
.card .wa:hover { background: #157f43; text-decoration: none; }

/* lista simples (busca / categoria) */
.biz-list { display: grid; gap: 12px; }
.biz { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; color: var(--ink); }
.biz:hover { border-color: var(--blue); text-decoration: none; }
.biz .th { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--paper-2); }
.biz .th-ph { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 20px; }
.biz .name { font-weight: 600; font-size: 16px; }
.biz .meta { color: var(--muted); font-size: 13.5px; }
.biz .go { color: var(--blue); font-weight: 600; white-space: nowrap; }

/* empresa (detalhe) */
.detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(24px, 4vw, 34px); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.btn:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #157f43; color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; margin-top: 22px; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1em; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); background: var(--paper-2); }

/* adsense */
.adsense-container { margin: 30px auto; min-height: 100px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); max-width: 760px; }
.field-b { margin-bottom: 16px; }
.field-b label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field-b input, .field-b select, .field-b textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field-b input:focus, .field-b select:focus, .field-b textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field-b textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #fdecec; border: 1px solid #f4c9c9; color: var(--danger); }
.alert-ok { background: #e9f6ee; border: 1px solid #c3e6d1; color: #17663a; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; }
.actions { display: flex; gap: 12px; margin-top: 22px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 50px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); font-weight: 500; font-size: 14px; }
.footer-links a:hover { color: var(--blue); text-decoration: none; }
.footer-copy { color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
    .field-row { grid-template-columns: 1fr; }
    .biz { grid-template-columns: 48px 1fr; }
    .biz .go { grid-column: 2; }
    .search .btn { padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
