/* Perto Aqui — front-end 2026 · mobile-first, sem frameworks */
:root {
  --brand: #0f4c81;
  --brand-2: #1f7ae0;
  --brand-dark: #0a3560;
  --accent: #ff8a00;
  --accent-dark: #e07800;
  --wa: #1fa855;
  --ink: #16202b;
  --muted: #5b6875;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 32 51 / .06), 0 6px 20px rgb(16 32 51 / .07);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand-2); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--brand-dark); text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand img { width: auto; height: 46px; }
.burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.burger__bar, .burger__bar::before, .burger__bar::after { content: ""; display: block; width: 20px; height: 2px; background: var(--brand-dark); position: relative; transition: transform .2s, opacity .2s; }
.burger__bar::before { position: absolute; top: -6px; }
.burger__bar::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] .burger__bar { background: transparent; }
.burger[aria-expanded="true"] .burger__bar::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar::after { transform: translateY(-6px) rotate(-45deg); }

.menu { display: none; position: absolute; inset: 100% 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; box-shadow: var(--shadow); }
.menu.is-open { display: block; }
.menu ul { list-style: none; display: grid; }
.menu li a { display: block; padding: .8rem .25rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.menu li a[aria-current="page"] { color: var(--brand-2); }
.menu__cta { display: grid; gap: .5rem; margin-top: 1rem; }

@media (min-width: 900px) {
  .burger { display: none; }
  .menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0; align-items: center; gap: 1.25rem; background: transparent; }
  .menu ul { display: flex; gap: .25rem; }
  .menu li a { border: 0; padding: .5rem .75rem; border-radius: 8px; }
  .menu li a:hover { background: var(--bg-alt); }
  .menu__cta { display: flex; margin: 0; }
}

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #1b1200; }
.btn--accent:hover { background: var(--accent-dark); color: #1b1200; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a46; color: #fff; }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-dark); }
.btn--danger { background: #fff; color: var(--danger); border-color: #f0c4be; }
.btn--lg { padding: .9rem 1.5rem; font-size: 1.05rem; }
.btn--sm { padding: .35rem .7rem; font-size: .85rem; }

/* ---------- Hero / carrossel ---------- */
.hero { position: relative; background: var(--bg-alt); overflow: hidden; }
.hero__track { position: relative; width: min(100%, 1940px); margin-inline: auto; }
.hero__slide { display: none; }
.hero__slide.is-active { display: block; animation: fade .5s ease; }
.hero__slide img { width: 100%; height: auto; object-fit: cover; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.hero__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .85); color: var(--brand-dark); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.hero__nav:hover { background: #fff; }
.hero__nav--prev { left: .75rem; } .hero__nav--next { right: .75rem; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: .6rem; display: flex; justify-content: center; gap: .5rem; }
.hero__dot { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: rgb(255 255 255 / .7); box-shadow: 0 0 0 1px rgb(0 0 0 / .25); cursor: pointer; }
.hero__dot.is-active { background: var(--brand-2); box-shadow: 0 0 0 1px #fff; }
@media (max-width: 640px) { .hero__nav { display: none; } }
.hero__count { position: absolute; right: .6rem; bottom: .5rem; background: rgb(0 0 0 / .6); color: #fff; font-size: .75rem; padding: .1rem .55rem; border-radius: 999px; }

/* ---------- Intro / busca ---------- */
.intro { background: linear-gradient(180deg, #eef4fb, #fff); padding: 2.25rem 0 1.5rem; }
.intro__in { text-align: center; max-width: 820px; }
.intro__lead { color: var(--muted); font-size: 1.1rem; }
.search { display: grid; gap: .6rem; margin: 1.25rem auto 0; max-width: 980px; }
.search input, .search select { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.search input:focus, .search select:focus { border-color: var(--brand-2); outline: 3px solid rgb(31 122 224 / .25); }
.search .btn { padding-block: .85rem; }
.search--page { margin: 0 0 1.5rem; max-width: none; }
@media (min-width: 900px) { .search { grid-template-columns: minmax(0, 1fr) 190px 210px auto; max-width: 980px; } }
@media (min-width: 640px) and (max-width: 899px) { .search { grid-template-columns: 1fr 1fr; } .search__field--q { grid-column: 1 / -1; } .search .btn { grid-column: 1 / -1; } }
.search__field { min-width: 0; }

/* ---------- Seções ---------- */
.section { padding: 2.25rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section__title { margin-bottom: 1rem; }
.section__head .section__title { margin: 0; }
.link-more { font-weight: 700; text-decoration: none; }
.link-more::after { content: " →"; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.chip:hover { border-color: var(--brand-2); box-shadow: var(--shadow); color: var(--brand-dark); }
.chip__n { background: var(--bg-alt); color: var(--muted); font-size: .78rem; padding: .05rem .45rem; border-radius: 999px; }

/* ---------- Grid de cards ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card--vip { border-color: #ffd39a; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.badge { position: absolute; top: .6rem; left: .6rem; background: var(--accent); color: #1b1200; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; }
.badge--warn { position: static; display: inline-block; background: #fff2d8; color: #7a4b00; }
.card__body { padding: .85rem 1rem 1rem; display: grid; gap: .15rem; align-content: start; }
.card__cat { margin: 0; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card__title { margin: 0; font-size: 1.05rem; }
.card__title a { color: var(--brand-dark); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* card inteiro clicável */
.card { position: relative; }
.card__sub { margin: 0; font-size: .9rem; color: var(--muted); }
.card__meta { margin: .4rem 0 0; display: grid; gap: .3rem; list-style: none; font-size: .9rem; color: var(--muted); }
.card__meta a { position: relative; z-index: 2; color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card__meta .js-tel { text-decoration: underline dotted; text-underline-offset: 3px; } /* no celular indica que dá para tocar e ligar */
.card__meta .js-tel:hover { color: var(--brand); }
.card__meta .wa-link { color: #128a48; font-weight: 700; }
.card__meta .wa-link:hover { color: #0c6b37; text-decoration: underline; }
.wa-ico { flex: none; }
/* Telefone só é clicável em aparelhos de toque (celular/tablet); no computador só o WhatsApp abre. */
@media (hover: hover) and (pointer: fine) {
  a.js-tel { pointer-events: none; cursor: default; text-decoration: none !important; }
  .btn.js-tel { background: var(--bg-alt); color: var(--brand-dark); border-color: var(--line); }
}

@media (max-width: 599px) {
  .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .card__body { padding: .6rem .7rem .8rem; }
  .card__title { font-size: .95rem; }
  .card__meta { font-size: .8rem; }
}

/* ---------- Páginas ---------- */
.page { padding: 1.25rem 0 3rem; }
.page--narrow { width: min(100% - 2rem, 820px); }
.page__head { margin-bottom: 1.25rem; }
.page__head--row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.lead { font-size: 1.1rem; color: var(--muted); }
.count { color: var(--muted); font-size: .95rem; margin-bottom: .75rem; }
.empty { padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius); }
.related { margin-top: 2.5rem; }

.crumbs { margin-bottom: 1rem; font-size: .88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li + li::before { content: "›"; margin-right: .25rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1.75rem; }
.pager__a { min-width: 40px; padding: .5rem .8rem; text-align: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.pager__a:hover { border-color: var(--brand-2); }
.pager__a.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__gap { padding: .5rem .25rem; color: var(--muted); }

.alpha { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; }
.alpha a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.letter h2 { border-bottom: 2px solid var(--line); padding-bottom: .25rem; margin-top: 1.5rem; }
.cols { list-style: none; columns: 1; column-gap: 2rem; }
.cols li { break-inside: avoid; padding: .25rem 0; }
@media (min-width: 640px) { .cols { columns: 2; } }
@media (min-width: 960px) { .cols { columns: 3; } }

/* ---------- Empresa ---------- */
.empresa__head { display: grid; gap: 1.25rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
.empresa__logo { width: 140px; height: 140px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; background: #fff; }
.eyebrow { margin: 0 0 .25rem; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { color: var(--brand-2); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
@media (min-width: 700px) { .empresa__head { grid-template-columns: auto 1fr; align-items: center; } .empresa__logo { width: 180px; height: 180px; } }
.empresa__cols { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .empresa__cols { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .empresa__side { position: sticky; top: 84px; } }
.empresa__main section { margin-bottom: 2rem; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.box + .box, .box + p { margin-top: 1rem; }
.box__title { font-size: 1.05rem; }
.box address { font-style: normal; margin-bottom: .75rem; }
.plain { list-style: none; display: grid; gap: .35rem; margin-bottom: .75rem; }
.prose { max-width: 70ch; }
.prose :is(h2, h3) { margin-top: 1.5em; }
.prose img { border-radius: 8px; }
.prose table { max-width: 100%; display: block; overflow-x: auto; }
.video, .map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.map { aspect-ratio: 16 / 10; }
.video iframe, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { list-style: none; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }

/* ---------- CTA ---------- */
.cta { background: var(--brand); color: #fff; padding: 2rem 0; }
.cta h2 { color: #fff; margin-bottom: .25rem; }
.cta p { margin: 0; color: #dbe8f7; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cta--inline { margin-top: 2.5rem; border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.cta--inline .cta__in { gap: .75rem; }

/* ---------- Faixa de banners ---------- */
.strip__list { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: center; }
.strip__list img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.strip--parceiros .strip__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1.1rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem 1.25rem; margin: 0; min-width: 0; }
legend { font-weight: 800; padding: 0 .4rem; color: var(--brand-dark); }
.field { display: grid; gap: .35rem; margin-top: .75rem; min-width: 0; }
.field-row { display: grid; gap: .75rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .field--grow { grid-column: span 2; } }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .85rem; border: 1px solid #c8d1dc; border-radius: 10px; font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-2); outline: 3px solid rgb(31 122 224 / .25); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--danger); }
.thumb-preview { border-radius: 10px; border: 1px solid var(--line); margin-bottom: .4rem; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; }
.alert ul { padding-left: 1.1rem; }
.alert--ok { background: #e7f6ec; color: #145a2e; border: 1px solid #b9e2c7; }
.alert--err { background: #fdeceb; color: #8a2419; border: 1px solid #f3c1bb; }
.photo-admin { list-style: none; display: grid; gap: .75rem; margin-bottom: 1rem; }
.photo-admin li { display: grid; grid-template-columns: 120px 1fr; gap: .75rem; align-items: center; }
.photo-admin img { border-radius: 8px; width: 120px; height: 90px; object-fit: cover; }
.photo-admin form { display: flex; flex-wrap: wrap; gap: .4rem; }
.photo-admin input { flex: 1 1 160px; padding: .4rem .6rem; border: 1px solid #c8d1dc; border-radius: 8px; }
.page--auth .form { max-width: 460px; }

/* ---------- Rodapé ---------- */
.footer { background: #0c2238; color: #cfdbe8; margin-top: 0; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 2rem; padding: 2.5rem 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer__title { color: #fff; font-size: 1.05rem; }
.footer ul { list-style: none; display: grid; gap: .35rem; }
.footer .social { display: flex; gap: 1rem; margin-top: .5rem; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / .12); padding: 1rem 0; font-size: .88rem; }
.footer__bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgb(8 16 26 / .94); padding: 3.5rem 3.5rem 4rem; }
.lb.is-open { display: grid; }
.lb__fig { margin: 0; display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.lb img { max-width: min(calc(100vw - 7rem), 1400px); max-height: calc(100vh - 8rem); width: auto; height: auto; border-radius: 8px; background: #fff; transition: opacity .15s; }
.lb img.is-loading { opacity: .35; }
.lb__cap { position: fixed; bottom: .9rem; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; padding: 0 4rem; }
.lb__close, .lb__nav { position: absolute; border: 0; border-radius: 50%; cursor: pointer; background: rgb(255 255 255 / .92); color: var(--brand-dark); line-height: 1; display: grid; place-items: center; }
.lb__close:hover, .lb__nav:hover { background: #fff; }
.lb__close { top: .75rem; right: .75rem; width: 44px; height: 44px; font-size: 1.7rem; }
.lb__nav { top: 50%; translate: 0 -50%; width: 52px; height: 52px; font-size: 2.2rem; padding-bottom: .2rem; }
.lb__nav--prev { left: .75rem; } .lb__nav--next { right: .75rem; }
@media (max-width: 640px) {
  .lb { padding: 3.5rem .5rem 4.5rem; }
  .lb img { max-width: calc(100vw - 1rem); }
  .lb__nav { top: auto; bottom: .6rem; translate: 0 0; width: 44px; height: 44px; font-size: 1.8rem; }
  .lb__cap { padding: 0 3.6rem .2rem; font-size: .85rem; bottom: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .topbar, .footer, .hero, .cta, .actions { display: none !important; } }

/* ---------- Voltar ao topo ---------- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); }
.to-top svg { width: 22px; height: 22px; }
@media print { .to-top { display: none !important; } }

.chip__city { color: var(--muted); font-weight: 400; font-size: .8rem; }
