/* Seções da demonstração. Cada bloco tem o mesmo nome do comentário no index.html. */

/* ABERTURA: texto à esquerda; à direita a foto real de um interior com as partes para tocar e o cartão da peça escolhida */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--fundo); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding-top: calc(var(--faixa) + 110px); padding-bottom: 70px; }
.hero h1 { font-size: clamp(42px, 5.2vw, 72px); line-height: 1; }
.hero__lead { margin-top: 22px; max-width: 40ch; font-size: 18px; color: var(--texto); }
.hero__acoes { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.fatos { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14.5px; color: var(--nevoa); }
.fatos strong { color: var(--marinho); }

/* A foto real com os pontos: cada ponto é uma parte do carro; os pontos aparecem um a um ao abrir a página */
.carro { position: relative; display: grid; justify-items: end; }
.carro__foto { position: relative; margin: 0; width: min(100%, 440px); aspect-ratio: 887 / 1100; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(19, 35, 63, .55); }
.carro__foto img { width: 100%; height: 100%; object-fit: cover; }
@keyframes surgir { from { opacity: 0; transform: translate(-12px, -50%) scale(.6); } }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.parado) .ponto { animation: surgir .6s var(--ease) both; animation-delay: calc(1.2s + var(--i) * .15s); }
}
.ponto { position: absolute; transform: translate(-12px, -50%); display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px 0 6px; font: 700 13.5px var(--sans); color: var(--marinho); background: rgba(255, 255, 255, .94); border: 1px solid rgba(19, 35, 63, .12); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); border-radius: 40px; cursor: pointer; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease); }
.ponto::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--laranja); box-shadow: 0 0 0 4px rgba(239, 106, 31, .3); }
.ponto::after { content: ""; position: absolute; inset: -9px -4px; }   /* área de toque de 44 px */
.ponto:hover { border-color: var(--marinho); }
.ponto[aria-pressed="true"] { background: var(--marinho); color: #fff; border-color: var(--marinho); }
.ponto[aria-pressed="true"]::before { box-shadow: none; }

.peca { position: relative; z-index: 2; margin: -64px 250px 0 0; display: grid; grid-template-columns: 112px 1fr; width: min(100%, 350px); background: var(--branco); border-radius: 6px; overflow: hidden; box-shadow: 0 14px 34px -14px rgba(19, 35, 63, .35); }
.peca img { width: 100%; height: 100%; min-height: 132px; object-fit: cover; }
.peca__texto { display: grid; align-content: center; gap: 6px; padding: 14px 16px; }
.peca__texto h2 { font-size: 18px; }
.peca__texto p { font-size: 14.5px; line-height: 1.45; color: var(--texto); }
.peca__texto a { font-weight: 700; font-size: 14.5px; color: var(--laranja-bt); text-underline-offset: 3px; }

/* A TAPEÇARIA MENDES */
.mendes__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.mendes__texto { display: grid; gap: 22px; }
.mendes__texto > p { color: var(--texto); max-width: 52ch; }
.mendes__foto { margin: 0; height: 600px; overflow: hidden; border-radius: 6px; }
.mendes__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mendes__foto figcaption { font-size: 13.5px; color: var(--nevoa); }

/* SERVIÇOS: Bancos, Interior e Volante e projetos; o serviço tocado abre embaixo do grupo (um por vez, link próprio) */
.grupos { display: grid; max-width: 1060px; }
.grupo { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 14px 40px; padding: 26px 0; border-top: 1.5px solid var(--marinho); }
.grupo:last-child { border-bottom: 1.5px solid var(--marinho); }
.grupo__cabeca h3 { font-size: 25px; margin-bottom: 6px; }
.grupo__cabeca p { color: var(--texto); font-size: 16px; }
.grupo__chips { display: flex; flex-wrap: wrap; align-content: start; gap: 10px; }
.chip { min-height: 46px; padding: 0 18px; font: 600 15.5px var(--sans); color: var(--marinho); background: var(--branco); border: 1.5px solid var(--linha); border-radius: 4px; cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease); }
.chip:hover { border-color: var(--marinho); }
.chip[aria-expanded="true"] { background: var(--marinho); color: #fff; border-color: var(--marinho); }
.servico { grid-column: 1 / -1; scroll-margin-top: 90px; }
.servico:not([hidden]) { animation: abrir .45s var(--ease); }
@keyframes abrir { from { opacity: 0; transform: translateY(-8px); } }
.servico__painel { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 40px; align-items: start; padding: 14px 0 6px; }
.servico__painel figure, .servico__painel .vaga { margin: 0; height: 400px; overflow: hidden; border-radius: 6px; }
.servico__painel figure img { width: 100%; height: 400px; object-fit: cover; }
.servico__painel figcaption { font-size: 13px; color: var(--nevoa); margin-top: 6px; }
.servico__texto { display: grid; gap: 16px; }
.servico__expl { font-size: 18px; line-height: 1.6; }
.inclui { color: var(--texto); font-size: 16px; }
.inclui b { color: var(--marinho); }
.servico__valor { font-size: 14.5px; color: var(--nevoa); }
.servico__texto .btn { justify-self: start; }

/* TRABALHOS */
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery__grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 6px; }
.gallery__grid img { width: 100%; height: 340px; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__grid button:hover img { transform: scale(1.04); }

/* ORÇAMENTO: formulário que monta a mensagem do WhatsApp */
.orcamento__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.orcamento__intro { display: grid; gap: 18px; }
.orcamento__intro > p:not(.sob-consulta) { color: var(--texto); max-width: 46ch; }
.sob-consulta { font: 800 20px var(--display); }
.previa { padding: 18px 20px; border-radius: 14px 14px 14px 4px; background: #d9f5c5; color: #10210f; max-width: 460px; }
.previa__titulo { font-size: 13px; font-weight: 700; color: #1a7148; margin-bottom: 6px; }
.previa__texto { white-space: pre-line; font-size: 15px; line-height: 1.5; }
.orcamento__form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); background: var(--branco); border: 1.5px solid var(--linha); border-radius: 6px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span { font-size: 14px; font-weight: 700; color: var(--texto); }
.field input, .field select { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--marinho); background: var(--fundo); border: 1.5px solid #7a879c; border-radius: 4px; }
.field input:focus, .field select:focus { border-color: var(--marinho); outline: none; }
.btn--grande { min-height: 58px; font-size: 17px; width: 100%; }
.booking__warn { color: #b3261e; }
.obrig { color: #b3261e; font-weight: 700; }
.campo-erro { font-size: 14px; font-weight: 600; color: #b3261e; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.btn:disabled { opacity: .6; cursor: wait; }
.aviso { font-size: 13.5px; color: var(--nevoa); }

/* AVALIAÇÕES */
.reviews .wrap { max-width: 960px; }
.reviews h2 { margin-bottom: 30px; }
.numeros { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 0 0 38px; }
.numeros div { display: flex; flex-direction: column-reverse; }
.numeros dd { margin: 0; font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.numeros dt { margin-top: 8px; font-size: 14px; color: var(--nevoa); }
.reviews__slider { display: grid; }
.review { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.review.is-active { opacity: 1; visibility: visible; }
.review p { font: 600 clamp(24px, 3vw, 34px)/1.3 var(--display); }
.review footer { margin-top: 18px; color: var(--nevoa); }
.reviews__meta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.reviews__dots { display: flex; gap: 4px; }
.reviews__dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.reviews__dots button::after { content: ""; position: absolute; left: 8px; right: 8px; top: 21px; height: 3px; background: var(--linha); }
.reviews__dots [aria-selected="true"]::after { background: var(--laranja); }
.link-sub { text-underline-offset: 4px; color: var(--texto); }

/* ONDE FICA */
.directions__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.directions__grid > div:first-child { display: grid; gap: 18px; }
.horario { margin: 6px 0; display: grid; gap: 10px; }
.horario div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--linha); }
.horario dt { color: var(--nevoa); }
.horario dd { margin: 0; text-align: right; font-weight: 600; }
.directions__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { aspect-ratio: 4 / 3; overflow: hidden; border: 1.5px solid var(--linha); border-radius: 6px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__toque { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: var(--branco); }
.map__nota { font-size: 13.5px; color: var(--nevoa); }

/* DÚVIDAS */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq__list details { border-top: 1px solid var(--linha); }
.faq__list details:last-child { border-bottom: 1px solid var(--linha); }
.faq__list summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; }
.faq__list p { padding-bottom: 20px; color: var(--texto); }

/* RODAPÉ */
.footer { padding: 60px 0 120px; background: var(--marinho); color: #fff; }
.footer .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); border-radius: 7px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h3 { font: 700 14px var(--sans); color: #aab6c9; margin-bottom: 10px; }
.footer__grid p { color: #dfe5ee; }
.footer__grid > div:first-child p { margin-top: 12px; color: #aab6c9; }
.footer__bottom a { color: #dfe5ee; text-underline-offset: 3px; }
.footer__bottom { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #aab6c9; }
