/* SanJorge Equipamentos: tema claro. Azul-marinho do logo em texto e faixa do topo, vermelho do logo só em botões, preço e etiquetas. */
:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --ink: #18204F;
  --muted: #59627D;
  --line: #DFE3EC;
  --navy: #2A3585;
  --on-navy: #FFFFFF;
  --accent: #D32F2F;
  --accent-ink: #FFFFFF;
  --accent-text: #C62828;
  --tint: #FBE9E9;
  --ok: #2B6A3C;
  --warn: #85600E;
  --bad: #8E2020;
  --head-bg: #FFFFFF;
  --head-ink: #18204F;
  --head-line: #DFE3EC;
  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; text-transform: uppercase; }
.label { font-family: var(--f-data); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
section[id] { scroll-margin-top: 90px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font: 600 15px var(--f-body); letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 14px 22px; text-decoration: none; border: 1px solid var(--accent); cursor: pointer; min-width: 0; }
.btn:hover { filter: brightness(1.07); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.sm { padding: 10px 14px; font-size: 13px; }
.link { background: none; border: 0; padding: 4px; color: var(--accent-text); font: 500 14px var(--f-body); text-decoration: underline; cursor: pointer; }

/* topo */
.topbar { background: var(--navy); color: var(--on-navy); font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-block: 6px; }
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--head-line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.logo { display: block; line-height: 0; }
.logo img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.burger { display: none; background: transparent; border: 0; color: var(--head-ink); padding: 8px; cursor: pointer; }
.burger svg { width: 26px; height: 26px; display: block; }
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--head-bg); border-bottom: 1px solid var(--head-line); padding: 4px 16px 12px; }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--head-line); }
}

/* hero com busca */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: 36px 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hero h1 { font-size: clamp(34px, 6.5vw, 62px); max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.lead { margin: 0; color: var(--muted); max-width: 60ch; font-size: 17px; }
.bigsearch { position: relative; display: flex; gap: 0; max-width: 600px; }
.bigsearch input { flex: 1 1 0; width: 0; min-width: 0; font: 400 16px var(--f-body); padding: 11px 14px; border: 2px solid var(--ink); border-right: 0; background: var(--surface); color: var(--ink); border-radius: 0; }
.bigsearch input:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.bigsearch .btn { padding: 0 20px; font-size: 14px; min-height: 0; }
.sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--surface); border: 2px solid var(--ink); border-top: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.18); text-align: left; }
.sug a, .sug button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px; text-decoration: none; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 15px var(--f-body); cursor: pointer; text-align: left; }
.sug a:hover, .sug button:hover, .sug [aria-selected="true"] { background: var(--tint); }
.sug small { font-family: var(--f-data); color: var(--muted); font-size: 12px; white-space: nowrap; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip { font: 500 14px var(--f-body); background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; cursor: pointer; border-radius: 999px; }
.qchip:hover { border-color: var(--accent); }
.qchip b { font-family: var(--f-data); font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 12px; }

.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 20px; padding-block: 14px; font-size: 14px; }
.trust span { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* catálogo */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-block: 28px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); padding: 16px; display: grid; gap: 14px; position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 100px); overflow: auto; }
.f-head { display: flex; justify-content: space-between; align-items: center; }
.f-head h2 { font-size: 24px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.filters legend { padding: 0; margin-bottom: 6px; }
.rad { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; cursor: pointer; font-size: 14.5px; }
.rad:hover { background: var(--bg); }
.rad input { position: absolute; opacity: 0; }
.rad:has(input:checked) { background: var(--ink); color: var(--surface); }
.rad:has(input:focus-visible) { outline: 3px solid var(--accent); }
.rad small { font-family: var(--f-data); font-size: 12px; opacity: .75; }
.f { display: grid; gap: 4px; }
select { font: 400 15px var(--f-body); background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 10px; border-radius: 0; width: 100%; }
.chk { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--muted); margin: -6px 0 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.toolbar .count { margin-right: auto; font-weight: 600; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.toolbar select { width: auto; }
.fbtn { display: none; font: 600 14px var(--f-body); background: var(--ink); color: var(--surface); border: 0; padding: 10px 16px; cursor: pointer; }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.achip { font: 500 13px var(--f-body); background: var(--tint); color: var(--ink); border: 1px solid var(--accent); padding: 5px 10px; cursor: pointer; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .fbtn { display: inline-block; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: grid; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.14); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
.card.sold { opacity: .72; }
.photo { aspect-ratio: 4 / 5; max-width: 100%; position: relative; display: grid; place-items: center; overflow: hidden; background: repeating-linear-gradient(135deg, #E6E9F1 0 10px, #EEF0F6 10px 20px); color: #59627D; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .code { font-family: var(--f-data); font-size: 13px; letter-spacing: .06em; border: 1px solid currentColor; padding: 4px 10px; }
.ribbon { position: absolute; left: 10px; top: 10px; background: var(--accent); color: var(--accent-ink); font: 600 12px var(--f-body); letter-spacing: .08em; padding: 4px 10px; text-transform: uppercase; z-index: 1; }
.ribbon.warn { background: #F0B429; color: #3A2A00; }
.ribbon.bad { background: #444B63; color: #fff; }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.meta b { color: var(--accent-text); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.meta span { color: var(--muted); font-variant-numeric: tabular-nums; }
.body h3 { font-size: 25px; }
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; }
.sub { font-size: 14px; color: var(--muted); }
.spec { font-size: 13.5px; font-family: var(--f-data); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.price { font-family: var(--f-display); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.price.consult { font-size: 19px; line-height: 1.2; letter-spacing: .01em; }
.pill { font-size: 13px; font-weight: 500; border: 1px solid currentColor; padding: 4px 10px; background: transparent; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); }
.addlist { position: relative; z-index: 2; margin-top: 10px; font: 600 13px var(--f-body); background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 9px; cursor: pointer; }
.addlist[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.grid.list { grid-template-columns: minmax(0, 1fr); }
.grid.list .card { flex-direction: row; }
.grid.list .photo { width: 220px; aspect-ratio: 4 / 5; flex: none; }
.grid.list .body { padding-block: 12px; }
@media (max-width: 560px) { .grid.list .card { flex-direction: column; } .grid.list .photo { width: 100%; } }
.empty { border: 1px dashed var(--muted); padding: 28px 16px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

.wanted { grid-template-columns: minmax(0, 1fr); margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 20px; display: grid; gap: 10px; }
.wanted h2 { font-size: 30px; }
.wanted p { margin: 0; color: var(--muted); max-width: 60ch; }
.wanted form { display: flex; gap: 8px; flex-wrap: wrap; }
.wanted input { flex: 1 1 240px; min-width: 0; font: 400 16px var(--f-body); padding: 12px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 0; }
.demo { background: var(--surface); border: 1px dashed var(--warn); color: var(--warn); font-family: var(--f-data); font-size: 12.5px; padding: 8px 12px; margin-top: 20px; }

/* sobre e contato */
.sec-h { padding-block: 40px 18px; }
.sec-h h2 { font-size: clamp(32px, 5vw, 46px); }
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 8px; }
.about p { margin: 0 0 14px; max-width: 60ch; }
.gears { width: 110px; height: auto; display: block; margin-bottom: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.tbl th { width: 36%; font-family: var(--f-data); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tblwrap { overflow-x: auto; }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } }
.contact { margin-top: 36px; background: var(--navy); color: var(--on-navy); }
.contact .wrap { padding-block: 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.contact h2 { font-size: clamp(32px, 5vw, 48px); }
.contact p { margin: 0; max-width: 56ch; opacity: .9; }
.ccard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.ccard > div { border: 1px solid rgba(255,255,255,.3); padding: 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ccard .label { color: inherit; opacity: .75; }
.ccard .num { font-family: var(--f-data); font-size: 22px; overflow-wrap: anywhere; }
.ccard a:not(.btn) { color: inherit; }
.copy { justify-self: start; background: transparent; border: 1px solid currentColor; color: inherit; font: 500 12px var(--f-body); padding: 5px 10px; cursor: pointer; }
footer { background: var(--surface); border-top: 1px solid var(--line); }
footer .wrap { padding-block: 32px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
footer h4 { font-family: var(--f-display); font-size: 20px; text-transform: uppercase; margin: 0 0 8px; }
footer p, footer li { color: var(--muted); font-size: 14.5px; margin: 0 0 4px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer a { text-decoration: none; } footer a:hover { color: var(--accent-text); text-decoration: underline; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); }
.index-list { columns: 2 260px; }

/* lista de interesse e WhatsApp flutuante */
.listbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: min(720px, calc(100% - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--ink); color: var(--surface); padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.listbar .lb-n { margin-right: auto; }
.listbar .lb-clear { background: transparent; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: 500 14px var(--f-body); }
.wafloat { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; text-decoration: none; font: 600 14px var(--f-body); padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.wafloat svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
body.has-bar .wafloat { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 480px) { .wafloat span { display: none; } .wafloat { padding: 13px; } body.has-bar .wafloat { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); } }
body { padding-bottom: 76px; }

/* página do equipamento */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); padding-block: 16px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.item-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .item-grid { grid-template-columns: minmax(0, 1fr); } }
.gallery .photo { aspect-ratio: 4 / 5; max-height: 680px; border: 1px solid var(--line); }
.gallery .photo img { object-fit: contain; background: #F1F3F8; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { width: 84px; height: 64px; padding: 0; border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.info h1 { font-size: clamp(34px, 6vw, 52px); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.facts div { padding: 10px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-family: var(--f-data); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts-wrap { margin: 0; }
.cta-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cta-col .row2 { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-col .btn { flex: 1 1 auto; }
.banner { background: var(--tint); border-left: 6px solid var(--accent); padding: 12px 14px; }
.sec { padding-block: 28px 0; }
.sec h2 { font-size: 32px; margin-bottom: 12px; }
.sec p { margin: 0; max-width: 66ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.steps li { background: var(--surface); border: 1px solid var(--line); padding: 14px; display: grid; gap: 4px; }
.steps b { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; }
.steps span { color: var(--muted); font-size: 14.5px; }

/* bloco "Quer vender seu equipamento?" */
.sell { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 32px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); padding: 24px; align-items: center; }
.sell h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.sell p { margin: 0 0 10px; max-width: 54ch; }
.sell .fine { font-size: 13.5px; color: var(--muted); }
.sell ul { margin: 8px 0 16px; padding-left: 20px; }
.sell li { margin-bottom: 4px; }
@media (max-width: 760px) { .sell { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

.pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.pager-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pager .pg { min-width: 40px; min-height: 40px; padding: 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: pointer; font: 600 14px var(--f-body); }
.pager .pg:hover:not(:disabled) { border-color: var(--ink); }
.pager .pg[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .pg:disabled { opacity: .4; cursor: default; }
.pager .gap { color: var(--muted); padding: 0 4px; }

.aviso { background: var(--accent-soft, #FDECEC); border-bottom: 1px solid var(--line); }
.aviso p { margin: 0; padding-block: 10px; font-size: 14px; line-height: 1.45; color: var(--ink, inherit); }
.aviso-item { margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid var(--accent); background: var(--accent-soft, #FDECEC); font-size: 14px; line-height: 1.45; border-radius: 0 6px 6px 0; }
