/* CSS do site: só o que fica dentro de um visual ou que o kit não tem (DESIGN.md).
   Usa a escala de espaçamento do kit (--s-1 a --s-10) e os tokens de cor. */

/* Foco: anel azul do logo (o laranja do botão não tem 3:1 sobre o fundo claro) */
:focus-visible { outline-color: var(--brand-blue); }
.ground-inverse :focus-visible { outline-color: #fff; }

/* Logo do cliente no menu e no rodapé: o quadrado azul original */
.nav__logo img.logo-tile, .footer .nav__logo img.logo-tile { width: 32px; height: 32px; border-radius: 6px; flex: none; }
.nav__logo { font-stretch: 75%; font-weight: 500; }

/* Abertura: a foto vertical ocupa a coluna inteira */
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--ly-pos, 50% 50%); }

/* Serviços: linha de especificação com algarismos tabulares */
.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-small); margin-top: var(--s-1); }
.rows .rows__value { font-variant-numeric: tabular-nums; text-align: right; }
.rows .rows__name { min-width: 0; }

/* picture-develops: a foto do acabamento, tão alta quanto o texto ao lado */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(600px, var(--ly-fit, 600px)); background: var(--surface); }
.develop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 5; margin-top: var(--s-7); } }
@media (max-width: 639px) { .develop { aspect-ratio: 1 / 1; margin-top: var(--s-6); } }

/* Faixa azul (dark-band no azul do logo) */
.faixa-azul .section-head p { color: var(--ink); }
.malhas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.malha { display: grid; gap: var(--s-3); align-content: start; }
.malha svg { width: 100%; aspect-ratio: 1; display: block; border: 1px solid color-mix(in oklab, #fff 40%, transparent); border-radius: var(--r-sm); }
.malha path { fill: none; stroke: #fff; stroke-width: .16; }
.malha__rotulo { font: 500 var(--t-lead)/1.3 var(--font-text); font-variant-numeric: tabular-nums; }
.malha__uso { color: var(--muted); font-weight: 400; }
.cores { display: grid; gap: var(--s-5); align-content: start; }
.cores__titulo { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; }
.cores__fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.cor { display: grid; gap: var(--s-2); }
.cor__nome { font-weight: 500; }

/* Marcador de foto pendente: neutro, com o rótulo da foto que vai ali (provisório) */
.foto-pendente { position: relative; width: 100%; border-radius: var(--r-lg); display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, color-mix(in oklab, currentColor 6%, transparent) 0 10px, transparent 10px 20px), color-mix(in oklab, currentColor 7%, var(--bg));
  border: 1px dashed color-mix(in oklab, currentColor 35%, transparent); color: var(--ink); overflow: hidden; }
.foto-pendente__rotulo { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); margin: var(--s-3); font-size: var(--t-small); line-height: 1.35; max-width: 26ch; background: var(--bg); border-radius: var(--r-sm); }
.foto-pendente--compacto .foto-pendente__rotulo { padding: var(--s-2); margin: var(--s-2); font-size: var(--t-label); }
.foto-pendente__tipo { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.foto-pendente__pasta { font-size: var(--t-label); color: var(--muted); }
.ground-inverse .foto-pendente { color: #fff; background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 10px, transparent 10px 20px), rgba(255,255,255,.06); }

/* Obras: três fotos 4:5 */
.obra__foto { aspect-ratio: 4 / 5; overflow: hidden; padding: 0; display: block; width: 100%; border: 0; font: inherit; color: inherit; cursor: zoom-in; }
.obra__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--mv-out); }
@media (hover: hover) and (pointer: fine) { .obra__foto:hover img { transform: scale(1.03); transition-duration: 600ms; } }
.obra__foto:active img { transform: scale(1.01); transition-duration: var(--mv-press); }
@media (prefers-reduced-motion: reduce) { .obra__foto img, .obra__foto:hover img, .obra__foto:active img { transform: none; } }

/* Lightbox das obras */
.lb { width: min(640px, calc(100vw - 2 * var(--s-5))); max-height: calc(100dvh - 2 * var(--s-5)); padding: 0; border: 0; border-radius: var(--r-md);
  background: var(--p-ink); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(16, 18, 74, .82); }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb__img { width: 100%; height: 100%; max-height: calc(100dvh - 2 * var(--s-5) - 64px); object-fit: contain; background: var(--p-ink); }
.lb__barra { display: flex; align-items: center; justify-content: center; gap: var(--s-4); height: 64px; }
.lb__contador { min-width: 7ch; text-align: center; font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--p-inv-muted); }
.lb__btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  transition: background-color var(--mv-hover) ease, transform var(--mv-press) var(--mv-out); }
.lb__btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb__btn:hover { background: rgba(255, 255, 255, .2); }
.lb__btn:active { transform: scale(.94); }
.lb__btn:focus-visible { outline-color: #fff; }
.lb__fechar { position: absolute; top: var(--s-3); right: var(--s-3); background: rgba(16, 18, 74, .6); }
@media (max-width: 639px) { .lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; } .lb__img { max-height: none; } }

/* Declaração: frase maior, títulos condensados */
.statement .mo-wh__text { font-stretch: 75%; }

/* Como funciona */
.passos { list-style: none; padding: 0; margin: 0; }
.passos .card { display: grid; gap: var(--s-3); align-content: start; }
.passo__n { font: 500 var(--t-card)/1 var(--font-text); color: var(--brand-blue); margin-top: var(--s-2); font-variant-numeric: tabular-nums; }
.regiao { margin-top: var(--s-7); display: grid; gap: var(--s-2); }
.regiao__lista { font-size: var(--t-lead); line-height: 1.5; }

/* Rodapé */
.footer__servicos { columns: 2; column-gap: var(--gutter); }
.footer__col li { overflow-wrap: anywhere; }

/* Movimento: curvas e tempos do site (ease-out forte para entrar e responder; saídas mais rápidas que entradas) */
:root { --mv-out: cubic-bezier(.23, 1, .32, 1); --mv-press: 100ms; --mv-hover: 160ms; --mv-abre: 220ms; --mv-fecha: 150ms; }

/* Botão fixo de WhatsApp (pedido do cliente) */
.wa-flutuante { position: fixed; right: max(var(--s-5), env(safe-area-inset-right)); bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); z-index: 45;
  width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; background: #fff;
  box-shadow: 0 2px 8px rgba(16, 18, 74, .18);
  transition: transform var(--mv-hover) var(--mv-out), box-shadow var(--mv-hover) var(--mv-out), opacity var(--mv-fecha) var(--mv-out), scale var(--mv-fecha) var(--mv-out); }
.wa-flutuante img { width: 46px; height: 46px; }
@media (hover: hover) and (pointer: fine) {
  .wa-flutuante:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 18, 74, .22); }
}
.wa-flutuante:active { transform: scale(.94); transition-duration: var(--mv-press); }
@media (max-width: 639px) { .wa-flutuante { bottom: calc(64px + var(--s-4) + env(safe-area-inset-bottom)); right: var(--s-4); width: 56px; height: 56px; } }
.orc-aberto .wa-flutuante { opacity: 0; scale: .9; pointer-events: none; }

/* Modal de orçamento (DESIGN.md §7) */
.orc { width: min(560px, calc(100vw - 2 * var(--s-5))); max-height: calc(100dvh - 2 * var(--s-5)); padding: var(--s-7); border: 0; border-radius: var(--r-md);
  background: var(--bg); color: var(--ink); overflow: auto; }
.orc::backdrop { background: rgba(16, 18, 74, .55); }
/* Abre com fade + leve escala (220ms); fecha mais rápido (150ms). Centralizado: um modal não nasce do gatilho. */
.orc, .lb { opacity: 0; transform: scale(.97);
  transition: opacity var(--mv-fecha) var(--mv-out), transform var(--mv-fecha) var(--mv-out),
              overlay var(--mv-fecha) allow-discrete, display var(--mv-fecha) allow-discrete; }
.orc[open], .lb[open] { opacity: 1; transform: none; transition-duration: var(--mv-abre); }
@starting-style { .orc[open], .lb[open] { opacity: 0; transform: scale(.97); } }
.orc::backdrop, .lb::backdrop { opacity: 0; transition: opacity var(--mv-fecha) var(--mv-out), overlay var(--mv-fecha) allow-discrete, display var(--mv-fecha) allow-discrete; }
.orc[open]::backdrop, .lb[open]::backdrop { opacity: 1; transition-duration: var(--mv-abre); }
@starting-style { .orc[open]::backdrop, .lb[open]::backdrop { opacity: 0; } }
/* Troca de etapa: a nova entra com um fade curto, sem deslocamento grande */
.orc__etapa:not([hidden]) { transition: opacity 180ms var(--mv-out), translate 180ms var(--mv-out); }
@starting-style { .orc__etapa:not([hidden]) { opacity: 0; translate: 0 4px; } }
@media (prefers-reduced-motion: reduce) {
  .orc, .lb, .orc[open], .lb[open] { transform: none; }
  @starting-style { .orc[open], .lb[open] { transform: none; } }
  @starting-style { .orc__etapa:not([hidden]) { translate: none; } }
}
.orc__fechar { position: absolute; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); cursor: pointer;
  transition: background-color var(--mv-hover) ease, transform var(--mv-press) var(--mv-out); }
.orc__fechar:hover { background: var(--surface); }
.orc__fechar:active { transform: scale(.94); }
.orc__etapa { display: grid; gap: var(--s-5); }
.orc__etapa[hidden] { display: none; }
.orc__titulo { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); font-stretch: 75%; letter-spacing: var(--display-tracking); padding-right: var(--s-8); }
.orc__linha { color: var(--muted); margin-top: calc(-1 * var(--s-3)); }
.orc__opcoes { display: grid; gap: var(--s-3); }
.orc__opcao { display: flex; gap: var(--s-4); align-items: flex-start; text-align: left; width: 100%; min-height: 88px; padding: var(--s-5);
  border: 1px solid var(--line-strong, var(--line)); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color var(--mv-hover) ease, transform var(--mv-hover) var(--mv-out); }
.orc__opcao:hover { border-color: var(--brand-blue); }
@media (hover: hover) and (pointer: fine) { .orc__opcao:hover { transform: translateY(-2px); } }
.orc__opcao:active { transform: scale(.98); transition-duration: var(--mv-press); }
.orc__opcao:focus-visible { border-color: var(--brand-blue); box-shadow: inset 0 0 0 1px var(--brand-blue); }
.orc__icone { flex: none; width: 32px; height: 32px; fill: none; stroke: var(--brand-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.orc__opcao-titulo { display: block; font-weight: 500; font-size: var(--t-card); line-height: 1.3; }
.orc__opcao-linha { display: block; color: var(--muted); margin-top: var(--s-1); }
.orc__form { display: grid; gap: var(--s-4); }
.orc__form .field :is(input, select, textarea) { font-size: 16px; }
.orc__ajuda { font-size: var(--t-small); color: var(--muted); font-weight: 400; }
.orc__periodo { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.orc__periodo legend { width: 100%; margin-bottom: var(--s-2); }
.orc__periodo label { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 400; font-size: var(--t-body); }
.orc__periodo input { width: 20px; height: 20px; accent-color: var(--brand-blue); }
.orc__botoes { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-2); }
.orc__status { font-size: var(--t-small); min-height: 1.4em; }
.orc__privacidade { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
.orc__privacidade a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) {
  .orc { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: var(--s-6) var(--gut); }
  .orc__botoes { flex-direction: column-reverse; }
  .orc__botoes .btn { width: 100%; height: 48px; }
}
.link-texto { text-decoration: underline; text-underline-offset: 3px; }

/* Palavra destacada da declaração em azul (o laranja não tem contraste para texto) */
#familia { --accent: var(--brand-blue); margin-bottom: var(--s-9); }

/* Rodapé: serviços em duas colunas, para caber numa tela com a foto do fechamento */
.footer ul.footer__servicos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--gutter); }
.closing__links { margin-top: var(--s-6); }

/* Serviços (peek-list): a coluna da foto acompanha a lista */
#servicos .rows li { cursor: default; }
#servicos .peek-foto { height: 100%; min-height: 0; }
#servicos .peek-foto { position: relative; overflow: clip; border-radius: var(--r-lg); background: var(--surface); }
#servicos .peek-foto > picture { display: contents; }
#servicos .peek-foto img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Serviços no celular e tablet: grade de cards, cada serviço com a sua foto (sem precisar tocar) */
.servico__foto { display: none; }
@media (max-width: 1023px) {
  #servicos .grid > .peek-foto { display: none; }
  main > section#servicos > .wrap > .fill { flex: none; }
  #servicos ul.rows--compactas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); border: 0; }
  #servicos ul.rows--compactas > li { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--s-1); padding: 0; border: 0; }
  #servicos ul.rows--compactas > li::before, #servicos ul.rows--compactas > li::after { display: none; }
  #servicos .servico__foto { display: block; margin-bottom: var(--s-2); }
  #servicos .servico__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
  #servicos ul.rows--compactas .rows__name { font-size: var(--t-body); line-height: 1.3; }
  #servicos ul.rows--compactas .rows__value { grid-column: 1; grid-row: auto; text-align: left; max-width: none; white-space: normal; font-size: var(--t-small); }
}
@media (max-width: 1023px) { #servicos ul.rows--compactas { grid-column: 1 / -1; } }

/* Como funciona: ícone de linha em cada passo */

/* Dúvidas: caixa de conversa que envia a pergunta digitada para o WhatsApp */
#duvidas .duvidas__contato { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
#duvidas .duvidas__contato > * { min-width: 0; }
#duvidas .duvidas__rotulo { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; color: var(--ink); }
#duvidas .duvidas__contato > p { color: var(--muted); }
#duvidas .msg.duvidas__msg { margin-top: var(--s-2); width: 100%; height: clamp(260px, 34svh, 320px); border-radius: var(--r-lg); background: var(--p-bg); grid-template-rows: auto 1fr auto; padding: var(--s-5); }
#duvidas .duvidas__conversa { display: grid; align-content: end; justify-items: start; gap: var(--s-2); }
#duvidas .msg__balao--deles { justify-self: start; background: var(--p-surface); }
#duvidas .duvidas__digitar { display: flex; align-items: center; gap: var(--s-2); height: 52px; padding: 0 var(--s-1) 0 var(--s-4); border-radius: 999px;
  background: var(--p-surface); border: 1px solid transparent; transition: border-color var(--mv-hover) ease, box-shadow var(--mv-hover) ease; }
#duvidas .duvidas__digitar:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-blue) 16%, transparent); }
#duvidas .duvidas__digitar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 400 16px/1.4 var(--font-text); outline: none; }
#duvidas .duvidas__digitar input::placeholder { color: var(--muted); }
#duvidas .duvidas__digitar button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--wa-green); color: #fff; cursor: pointer;
  transition: transform var(--mv-press) var(--mv-out), filter var(--mv-hover) ease; }
#duvidas .duvidas__digitar button:hover { filter: brightness(.94); }
#duvidas .duvidas__digitar button:active { transform: scale(.92); }
#duvidas .duvidas__digitar button:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
@media (max-width: 1023px) { #duvidas .duvidas__contato { margin-top: var(--s-8); } }
@media (max-width: 639px) { #duvidas .faq > details { padding: var(--s-7) 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Obras no celular: fotos mais baixas para caber em duas telas */
@media (max-width: 639px) { .obra__foto { aspect-ratio: 3 / 2; } }
.rows--compactas > li { padding-block: var(--s-3); }
.rows--compactas .rows__value { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 639px) { .nav__logo { font-size: 17px; min-width: 0; } .nav__logo img.logo-tile { width: 28px; height: 28px; } }

@media (max-width: 639px) { .rows--compactas > li { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } .rows--compactas .rows__value { text-align: left; } }
.passos .card { padding: 0; background: none; border: 0; }

/* ---- Revisão: menos template, mais conteúdo do cliente ---- */

/* Serviços no celular: nome em cima, linha embaixo */
@media (max-width: 639px) { .rows--compactas .rows__value { grid-column: 1; grid-row: auto; max-width: none; white-space: normal; } }
.rows--compactas .rows__name { font-weight: 500; }

/* Acabamento: a fala do cliente */
.fala { margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.fala::before { content: ""; width: 32px; height: 3px; background: var(--p-accent); }
.fala p { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); font-stretch: 75%; letter-spacing: var(--display-tracking); max-width: 26ch; }
.fala footer { font-size: var(--t-small); color: var(--muted); }

/* Malhas: cota de 30 cm, como em desenho técnico */
.malha__cota { position: relative; display: block; height: 16px; border-inline: 1px solid color-mix(in oklab, #fff 70%, transparent); }
.malha__cota::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid color-mix(in oklab, #fff 70%, transparent); }
.malha__cota span { position: relative; z-index: 1; display: block; width: max-content; margin: 0 auto; padding: 0 var(--s-2); background: var(--bg); font-size: var(--t-label); line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.malhas__nota { grid-column: 1 / -1; color: var(--muted); font-size: var(--t-small); max-width: 52ch; }

/* Declaração: "20 anos" em tipo grande */
#familia { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; row-gap: var(--s-6); }
#familia .mo-wh__text { grid-column: 1 / span 8; grid-row: 1; }
#familia .anos { grid-column: 9 / -1; grid-row: 1; justify-self: start; text-align: left; font-size: clamp(120px, 15vw, 230px); }
@media (max-width: 1023px) { #familia .mo-wh__text, #familia .anos { grid-column: 1 / -1; } #familia .anos { grid-row: 2; justify-self: start; text-align: left; } }
.anos { font: var(--display-weight) clamp(120px, 21vw, 300px)/0.82 var(--font-display); font-stretch: 75%; letter-spacing: -0.04em; color: var(--brand-blue); font-variant-numeric: tabular-nums; }
.anos span { font-size: 0.32em; letter-spacing: -0.02em; color: var(--ink); }

/* Como funciona: o fluxo real como visual */
.passos .card { padding: 0; background: none; border: 0; gap: var(--s-3); }
.passo__visual { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; }
.passo__visual > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.passo__n { font: var(--display-weight) var(--t-stat)/1 var(--font-display); font-stretch: 75%; color: var(--brand-blue); margin-top: var(--s-2); }
.msg { background: var(--surface); padding: var(--s-4); display: grid; align-content: start; gap: var(--s-3); }
.msg__topo { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; }
.msg__balao { justify-self: end; max-width: 92%; background: #fff; border-radius: 12px 12px 4px 12px; padding: var(--s-3) var(--s-4); font-size: var(--t-small); line-height: 1.5; box-shadow: 0 1px 0 rgba(16,18,74,.08); }
.ficha { background: var(--brand-blue); color: #fff; padding: var(--s-4) var(--s-5); display: grid; align-content: start; gap: var(--s-2); }
.ficha__titulo { font-weight: 500; font-size: var(--t-small); color: #fff; }
.ficha dl { margin: 0; display: grid; }
.ficha dl > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 6px; border-bottom: 1px solid rgba(255,255,255,.22); font-size: var(--t-small); }
.ficha dt { color: #c7c9f2; }
.ficha dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Rodapé no celular: serviços em duas colunas, e-mail sem quebra estranha */
@media (max-width: 639px) { .footer ul.footer__servicos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__col a { overflow-wrap: anywhere; } }

.passos .card { overflow: visible; box-shadow: none; }
.passos .card > p { padding-left: 1px; }
@media (max-width: 639px) { .footer .closing__links .footer__col { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .passos { row-gap: var(--s-4); } .passo__visual { aspect-ratio: 3 / 1; } .regiao { margin-top: var(--s-5) !important; } .passo__visual:is(.ficha, .msg) { aspect-ratio: auto; }
  #familia { row-gap: var(--s-2); margin-bottom: var(--s-5); }
  #familia .mo-wh__text { font-size: 22px; }
  #familia .anos { font-size: 72px; }
  #duvidas .msg.duvidas__msg { height: auto; }
}

/* Cores: fotos quadradas das redes */
.cor > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); }

/* Modal: estado de erro e contorno dos campos (o kit só define --error dentro de .form) */
.orc__form { --error: color-mix(in oklab, #d92d20 72%, var(--ink)); }
.orc .field :is(input, select, textarea) { border-color: color-mix(in oklab, var(--ink) 45%, transparent); }
/* foco dos campos em azul (como o resto do site); campo com erro continua vermelho mesmo focado */
html .orc .field :is(input, select, textarea):focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 1px var(--brand-blue), 0 0 0 4px color-mix(in oklab, var(--brand-blue) 18%, transparent); }
.orc .field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--error); }
html .orc .field :is(input, select, textarea)[aria-invalid="true"]:focus { border-color: var(--error); box-shadow: 0 0 0 4px color-mix(in oklab, var(--error) 16%, transparent); }
/* "Voltar": a seta aponta para trás e fica antes da palavra */
html[data-buttons="arrow"] .btn--voltar::after { display: none; }
html[data-buttons="arrow"] .btn--voltar::before { content: ""; flex: none; width: 12px; height: 12px; background: currentColor; scale: -1 1;
  -webkit-mask: var(--btn-glyph) center / contain no-repeat; mask: var(--btn-glyph) center / contain no-repeat; transition: transform var(--mv-hover) var(--mv-out); }
@media (hover: hover) and (pointer: fine) { html[data-buttons="arrow"] .btn--voltar:hover::before { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { html[data-buttons="arrow"] .btn--voltar:hover::before { transform: none; } }
.orc__reserva { font-size: var(--t-small); color: var(--muted); }
.orc__reserva[hidden] { display: none; }
.orc__reserva a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Páginas curtas (404, privacidade): a seção tem a altura do conteúdo */
main > section.section.section--curta { height: auto; min-height: 0; }
.btn-row--inicio { justify-content: flex-start; }

/* Lista de serviços no rodapé: texto simples, sem links repetidos */
.footer__servicos li { color: var(--muted); }

/* Textos longos e telas estreitas: nada empurra a página para os lados */
h1, h2, h3, .t-lead, .faq__item p { overflow-wrap: break-word; }
.footer__col a, .footer__col li, .orc__reserva { overflow-wrap: anywhere; }
.orc__status { overflow-wrap: anywhere; }

/* Menu do celular: as duas linhas viram um X (estado visível, 200ms) */
.nav__toggle .nav__linha { transform-box: fill-box; transform-origin: center; transition: transform 200ms var(--mv-out); }
.nav.is-open .nav__toggle .nav__linha--1 { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle .nav__linha--2 { transform: translateY(-4px) rotate(-45deg); }
.nav__toggle { transition: transform var(--mv-press) var(--mv-out); }
.nav__toggle:active { transform: scale(.94); }

/* Hero: foto em tela cheia também no tablet e no celular (o kit põe a foto acima do texto abaixo de 1024px).
   O texto fica numa caixa sólida nas cores da página, sem véu sobre a foto. */
.hero--photo .hero__lead { max-width: 46ch; }
@media (max-width: 1023px) {
  html .hero--photo, html .hero--photo[data-tone] { background: #1b1b1b; }
  html .hero--photo > .hero__bg { top: var(--nav); bottom: 0; height: calc(100% - var(--nav)); }
  html .hero--photo > .wrap > .hero-text, html .hero--photo[data-calm] > .wrap > .hero-text { justify-content: flex-end; }
  html .hero--photo .hero__text, html .hero--photo:not([data-box="none"]) .hero__text {
    padding: var(--s-6); background: var(--p-bg); border-radius: var(--r-lg); margin-bottom: var(--s-5); }
}
@media (min-width: 640px) and (max-width: 1023px) { html .hero--photo .hero__text { width: min(560px, 100%); } }
@media (max-width: 639px) {
  html .hero--photo .hero__text { padding: var(--s-5) var(--s-5) var(--s-4); margin-bottom: var(--s-4); }
  html .hero--photo h1 { font-size: clamp(32px, 9vw, 40px); }
  html .hero--photo .hero__lead { font-size: var(--t-body); margin-top: var(--s-3); }
  html .hero--photo .btn-row { margin-top: var(--s-4); gap: var(--s-2); }
  html .hero--photo .btn-row > .btn--secondary { display: none; } /* a lista de serviços já começa logo abaixo */
}

/* Rodapé: crédito de desenvolvimento */
.footer__credito { color: var(--muted); }

/* Hero no celular e tablet: caixa centralizada na vertical e na horizontal; título e texto ocupam toda a largura da caixa */
@media (max-width: 1023px) {
  html .hero--photo > .wrap > .hero-text, html .hero--photo[data-calm] > .wrap > .hero-text { justify-content: center; align-items: center; }
  html .hero--photo .hero__text, html .hero--photo:not([data-box="none"]) .hero__text { margin: 0 auto; }
  html .hero--photo .hero__text h1, html .hero--photo .hero__text .hero__lead { max-width: none; width: 100%; text-wrap: wrap; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  html .hero--photo .hero__text { width: min(600px, 100%); padding: var(--s-7); }
  html .hero--photo h1 { font-size: 64px; }
  html .hero--photo .hero__lead { font-size: var(--t-lead); }
}

/* Tablet: "Como funciona" com o visual ao lado do texto (cards proporcionais) */
@media (min-width: 640px) and (max-width: 1023px) {
  .passos { row-gap: var(--s-7); }
  .passos .card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-6); align-items: center; align-content: center; }
  .passos .card > .passo__visual { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 4 / 3; align-self: stretch; }
  .passos .card > :not(.passo__visual) { grid-column: 2; }
  .passos .card > .passo__n { align-self: end; margin-top: 0; }
  .passos .card > p { align-self: start; }
}

/* Tablet: rodapé usando toda a largura */
@media (min-width: 640px) and (max-width: 1023px) {
  .footer .closing__links > .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-7); }
  .footer .closing__links > .grid > :nth-child(1) { grid-column: 1 / -1; }
  .footer .closing__links > .grid > :nth-child(2) { grid-column: 1 / span 7; }
  .footer .closing__links > .grid > :nth-child(3) { grid-column: 8 / -1; }
}
@media (max-width: 1023px) {
  /* o kit reserva a altura da foto acima do texto (--photo); aqui a foto é o fundo inteiro, então a caixa centraliza na área abaixo do menu */
  html main > .hero.hero--photo { --photo: 0px; padding-top: calc(var(--nav) + var(--s-5)); padding-bottom: var(--s-5); }
}
@media (max-width: 639px) {
  /* fotos quadradas no celular: a grade fecha as duas telas da seção sem sobra */
  #servicos .servico__foto img { aspect-ratio: 1 / 1; }
  #servicos ul.rows--compactas { row-gap: var(--s-6); }
}

/* ---- Ajustes de espaçamento por tamanho de tela ---- */
/* Desktop: mais respiro antes da faixa azul (Malhas); "Como funciona" preenche as duas telas, sem vão grande antes da FAQ */
@media (min-width: 1024px) {
  main > section#malhas.section { padding-top: calc(var(--padt) + var(--s-8)); }
  #como-funciona .passo__visual { aspect-ratio: 4 / 5; }
  #familia .mo-wh__text { font-size: clamp(48px, 4.2vw, 64px); }
  #familia .anos { font-size: clamp(160px, 17vw, 260px); }
  #como-funciona .msg { align-content: center; }
  #familia { margin-bottom: var(--s-10); }
  #como-funciona .regiao { margin-top: var(--s-10); }
}
/* Tablet: "Como funciona" com a altura do conteúdo (sem sobra antes da FAQ) */
@media (min-width: 640px) and (max-width: 1023px) {
  main > section#como-funciona.section { --hm: 1 !important; }
}
/* Celular: Serviços com a altura do conteúdo; os 20 anos com o mesmo respiro em cima e embaixo; os três visuais do "Como funciona" do mesmo tamanho */
@media (max-width: 639px) {
  main > section#servicos.section { --hm: 1 !important; }
  /* mesmo respiro em cima e embaixo da declaração dos 20 anos */
  main > section#como-funciona.section { padding-top: calc(var(--nav) + var(--s-7)); }
  #familia { margin-bottom: var(--s-7); }
  /* um pouco menos de espaço entre Serviços e "Nó por nó" */
  main > section#acabamento.section { padding-top: var(--s-8); }
  #como-funciona .passo__visual, #como-funciona .passo__visual:is(.ficha, .msg) { aspect-ratio: auto; height: 158px; }
  #como-funciona .ficha { padding-block: var(--s-3); gap: var(--s-1); }
  #como-funciona .ficha dl > div { padding-block: 4px; }
  #como-funciona .passos { row-gap: var(--s-3); }
  #como-funciona .passo__visual.msg { align-content: center; }
}
