/* S3 Bortolini Auto Center — CSS próprio, mobile first (chão 360) */

@font-face { font-family: "Crimson Pro"; src: url("fonts/crimson-pro-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("fonts/crimson-pro-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --creme: #FCF9F4;
  --tinta: #1A1A1A;
  --verde: #004D40;
  --laranja: #FF761D;
  --laranja-hover: #E8640F;
  --branco: #FFFFFF;
  --linha: #E6DED0;
  --apoio: #4A4A44;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --raio: 4px;
  --header: 56px;
  --ease-out: cubic-bezier(0.23,1,0.32,1);
  --ease-in-out: cubic-bezier(0.77,0,0.175,1);
}
:root { interpolate-size: allow-keywords; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--verde); }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--verde);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-weight: 700; font-size: 32px; line-height: 1.05; }
h2 { font-weight: 600; font-size: 28px; line-height: 1.12; }
h3 { font-weight: 600; font-size: 22px; line-height: 1.2; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.lede { font-size: 17px; color: var(--apoio); max-width: 38em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botões — retangulares, raio 4 px */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--laranja); color: var(--tinta);
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 0; border-radius: var(--raio); cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--verde); outline-offset: 2px;
}
.btn-full { display: flex; width: 100%; }
.btn-line {
  background: transparent; color: var(--verde);
  box-shadow: inset 0 0 0 2px var(--verde);
}

.more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--verde); text-decoration: underline; text-underline-offset: 4px;
}
.more::after { content: "→"; margin-left: 6px; text-decoration: none; }
.acts { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--creme); box-shadow: 0 1px 0 var(--linha);
}
.top-in {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  height: var(--header); display: flex; align-items: center; gap: 10px;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; text-decoration: none; color: var(--tinta); margin-right: auto; white-space: nowrap; }
.logo b { font-family: var(--serif); font-weight: 700; font-size: 25px; color: var(--verde); line-height: 1; }
.logo span { font-size: 12px; font-weight: 500; padding-top: 5px; }
.top-nav { display: none; }
.btn-top { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn-top .wide { display: none; }
.burger {
  width: 44px; height: 44px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--linha); border-radius: var(--raio); cursor: pointer; padding: 0;
}
.burger { transition: transform 160ms var(--ease-out); }
.burger span { display: block; width: 20px; height: 2px; background: var(--verde); }
.drawer {
  position: fixed; left: 0; right: 0; top: var(--header); z-index: 29;
  visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s linear 150ms;
  background: var(--creme); border-bottom: 1px solid var(--linha);
  padding: 4px 16px 12px;
}
.drawer.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s; }
body.menu-open { overflow: hidden; }
.drawer a {
  display: flex; align-items: center; min-height: 48px;
  border-bottom: 1px solid var(--linha);
  color: var(--tinta); font-weight: 500; text-decoration: none;
}
.drawer a:last-child { border-bottom: 0; }

@media (max-width: 359px) { .logo span { display: none; } }

/* Herói da home: traço de bairro + card verde + caixa */
.hero { padding-bottom: 8px; }
.hero-art { position: relative; height: 150px; overflow: hidden; background: var(--creme); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(rgba(252, 249, 244, 0), var(--creme)); pointer-events: none; }
.hero-panel { position: relative; margin-top: -44px; display: grid; gap: 16px; }
.hero-card {
  background: var(--verde); color: var(--creme);
  border-radius: var(--raio); padding: 22px 20px 16px;
}
.hero-card h1 { color: var(--creme); margin-bottom: .35em; }
.hero-card p { margin-bottom: 4px; color: #E4EEEB; }
.hero-card .more { color: var(--creme); }

/* Caixa "Ache a oficina" */
.find {
  background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio);
  box-shadow: 0 8px 24px rgba(26, 26, 26, .08);
  padding: 20px 16px;
}
.find h2 { font-size: 26px; margin-bottom: .25em; }
.find > p { font-size: 15px; color: var(--apoio); margin-bottom: 14px; }
.find-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field { display: block; margin-bottom: 12px; }
.find-row .field { margin-bottom: 0; }
.find-row { margin-bottom: 12px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.field select, .field input {
  width: 100%; min-height: 48px; padding: 0 12px;
  font: 400 16px/1.2 var(--sans); color: var(--tinta);
  background: var(--branco); border: 1px solid #BDB5A6; border-radius: var(--raio);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23004D40' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.find-erro { color: #A3360B; font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.find-nota { font-size: 13px; color: var(--apoio); margin: 10px 0 0; }

/* Seções */
.section { padding: 56px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--apoio); }

/* Serviços da home */
.feature {
  display: grid; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden;
}
.feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-body { padding: 20px 16px 16px; }
.feature-body h3 { font-size: 30px; }
.cards { display: grid; gap: 16px; margin-top: 16px; }
.card { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px 16px 12px; }
.card p { color: var(--apoio); margin-bottom: 6px; }
.ico { width: 32px; height: 32px; fill: none; stroke: var(--verde); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.after { margin-top: 20px; }

/* Banda verde */
.band { background: var(--verde); color: var(--creme); }
.band-grid { display: grid; }
.band-photo img { width: 100%; height: 260px; object-fit: cover; object-position: 45% 40%; }
.band-body { padding: 40px 16px 48px; max-width: 620px; }
.band h2 { color: var(--creme); }
.band p { color: #D7E5E1; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; }
.checks li { position: relative; padding: 12px 0 12px 36px; border-top: 1px solid rgba(252, 249, 244, .2); }
.checks li:last-child { border-bottom: 1px solid rgba(252, 249, 244, .2); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 18px; width: 16px; height: 9px;
  border-left: 2px solid var(--creme); border-bottom: 2px solid var(--creme); transform: rotate(-45deg);
}

/* Split foto + texto */
.split { display: grid; gap: 24px; align-items: center; }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); }

/* Bairros */
.bairros { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linha); }
.bairros li { border-bottom: 1px solid var(--linha); }
.bairros > li > a, .bairros .row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  min-height: 56px; padding: 16px 0; text-decoration: none; color: var(--tinta);
}
.bairros h3 { margin: 0; font-size: 24px; }
.bairros p { margin: 0; color: var(--apoio); grid-column: 1; }
.bairros .seta { grid-row: 1 / span 2; grid-column: 2; color: var(--verde); font-size: 22px; }
.bairros .row .btn-line { grid-column: 1 / -1; justify-self: start; margin-top: 8px; min-height: 44px; }

/* Cabeça de página interna */
.page-head { padding: 36px 0 8px; }
.page-head .lede { margin-bottom: 0; }
.page-split { padding: 28px 0 8px; }
.page-split .split-photo img { aspect-ratio: 3 / 2; }

/* Faixas de serviço */
.strips { display: grid; gap: 20px; }
.strip { display: grid; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.strip-body { padding: 20px 16px 16px; }
.strip-body h2 { font-size: 30px; }
.lista { margin: 0 0 12px; padding-left: 20px; }
.lista li { margin-bottom: 6px; }

/* Passos */
.passos { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: p; }
.passos li { counter-increment: p; position: relative; padding-left: 52px; }
.passos li::before {
  content: counter(p); position: absolute; left: 0; top: -6px;
  font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; color: var(--verde);
}
.passos h3 { font-size: 22px; margin-bottom: .2em; }
.passos p { color: var(--apoio); margin: 0; }

/* Trio do bairro */
.trio { display: grid; gap: 16px; }

/* Pneus */
.sinais { display: grid; gap: 16px; }
.medida { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px 16px; }
.codigo { font-family: var(--serif); font-weight: 700; color: var(--verde); font-size: 44px; line-height: 1; margin: 4px 0 16px; letter-spacing: .01em; }
.troca { padding-left: 22px; margin: 0; }
.troca li { margin-bottom: 10px; padding-left: 4px; }
.troca li::marker { font-family: var(--serif); font-weight: 700; color: var(--verde); }
.faq { border-top: 1px solid var(--linha); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--verde); padding: 10px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 24px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--apoio); }

/* Onde fica / info */
.info p { margin-bottom: .6em; }
.info strong { display: block; font-weight: 600; }

/* Texto corrido (política) */
.texto { max-width: 720px; }
.texto h2 { font-size: 24px; margin-top: 1.4em; }

/* Rodapé verde */
.foot { background: var(--verde); color: var(--creme); padding: 48px 0 24px; }
.foot-grid { display: grid; gap: 28px; }
.foot-brand { display: block; font-family: var(--serif); font-weight: 700; font-size: 28px; margin-bottom: 8px; }
.foot p { color: #D7E5E1; }
.foot h3 { color: var(--creme); font-family: var(--sans); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.foot-col a { display: flex; align-items: center; min-height: 44px; color: var(--creme); text-decoration: none; }

.foot-col p { margin-bottom: .8em; font-size: 15px; }
.foot-bar { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(252, 249, 244, .2); font-size: 13px; color: #BFD3CE; }

/* ≥ 720 */
@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .top-in { padding: 0 28px; }
  h1 { font-size: 44px; }
  h2 { font-size: 36px; }
  .hero-art { height: 320px; }
  .hero-panel { margin-top: -80px; }
  .hero-card { padding: 28px 28px 20px; }
  .find { padding: 24px; }
  .find-row { grid-template-columns: 1.3fr 1fr; }
  .acts { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .feature { grid-template-columns: 1.1fr 1fr; }
  .feature img { height: 100%; aspect-ratio: auto; }
  .feature-body { padding: 32px 28px; align-self: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .band-photo img { height: 380px; }
  .band-body { padding: 48px 28px 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .split.rev .split-photo { order: 2; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip img { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .strip-body { padding: 32px 28px; align-self: center; }
  .strip:nth-child(even) img { order: 2; }
  .passos { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .sinais { grid-template-columns: 1fr 1fr; }
  .medida { padding: 32px; }
  .codigo { font-size: 60px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .page-head { padding: 56px 0 8px; }
  .page-split { padding: 48px 0 8px; }
  .bairros-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* ≥ 1024 */
@media (min-width: 1024px) {
  :root { --header: 64px; }
  body { font-size: 17px; }
  h1 { font-size: 54px; }
  h2 { font-size: 40px; }
  .logo b { font-size: 28px; }
  .logo span { font-size: 13px; }
  .top-nav { display: flex; gap: 4px; margin-right: 12px; }
  .top-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    color: var(--tinta); font-weight: 500; font-size: 15px; text-decoration: none;
    border-bottom: 2px solid transparent;
  }
  .top-nav a[aria-current="page"] { color: var(--verde); border-bottom-color: var(--verde); }
  .btn-top { padding: 0 18px; }
  .btn-top .wide { display: inline; white-space: pre; }
  .burger, .drawer, .drawer.is-open { display: none; }

  .hero-art { height: 460px; }
  .hero-art img { object-position: 50% 62%; }
  .hero-panel { margin-top: -260px; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: end; }
  .hero-card { padding: 40px 40px 28px; align-self: end; }
  .hero-card p { font-size: 18px; }
  .find { padding: 28px; }
  .section { padding: 96px 0; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-photo img { height: 100%; min-height: 560px; }
  .band-body { padding: 72px 56px; align-self: center; }
  .split { gap: 64px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
  .acts .btn { min-height: 52px; }
}

/* Mobile nativo */
a, button, summary, input, select, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.top { padding-top: env(safe-area-inset-top); }
.foot { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
img { background: #EFE8DA; }
.hero-cta { width: 100%; margin: 14px 0 6px; }
.hero-card .btn { color: var(--tinta); }
@media (min-width: 720px) { .hero-cta { width: auto; } .hero-art { height: 320px; } }
@media (min-width: 1024px) { .hero-art { height: 460px; } }

/* Movimento: só transform/opacity, interface < 300 ms */
.btn:active, .burger:active { transform: scale(.97); transition-duration: 160ms; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--laranja-hover); }
  .btn-line:hover { background: rgba(0, 77, 64, .07); }
  .foot-col a:hover { text-decoration: underline; }
  .top-nav a:hover { color: var(--verde); border-bottom-color: var(--verde); }
}

/* Entrada do herói: lead (h1) sobe mais, support sobe menos, passos que encolhem; formulário e foto: static */
@keyframes entra-lead { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes entra-sup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes entra-cta { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-card h1 { animation: entra-lead 600ms var(--ease-out) both; }
.hero-card p { animation: entra-sup 540ms var(--ease-out) 130ms both; }
.hero-card .hero-cta, .hero-card .more { animation: entra-cta 500ms var(--ease-out) 230ms both; }
/* Páginas internas: só o título */
.page-head h1 { animation: entra-lead 450ms var(--ease-out) both; }

/* FAQ: altura + opacidade */
.faq details::details-content {
  block-size: 0; opacity: 0; overflow: clip;
  transition: block-size 180ms var(--ease-out), opacity 180ms var(--ease-out), content-visibility 180ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; opacity: 1; transition-duration: 250ms; }

@media (prefers-reduced-motion: reduce) {
  @keyframes entra-lead { from { opacity: 0; } to { opacity: 1; } }
  @keyframes entra-sup { from { opacity: 0; } to { opacity: 1; } }
  @keyframes entra-cta { from { opacity: 0; } to { opacity: 1; } }
  .hero-card h1, .hero-card p, .hero-card .hero-cta, .hero-card .more, .page-head h1 { animation-duration: 250ms; animation-delay: 0ms; }
  .drawer { transform: none; }
  .btn:active, .burger:active { transform: none; }
}

html { -webkit-tap-highlight-color: transparent; }
.btn, button, summary, .burger { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
