/* Kia Calhas e Coifas — camada do site sobre o kit (assets/kit).
   :root = paleta da marca (start.mjs brand: azul-marinho do logotipo como tinta, vermelho do telhado como ação). */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/hanken-grotesk-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/hanken-grotesk-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --p-bg: #f3f3f1; --p-surface: #e4e6ea; --p-ink: #15173d; --p-muted: #55576b;
  --p-accent: #c40d16; --p-accent-ink: #f3f3f1; --p-action: #c40d16; --p-action-ink: #f3f3f1;
  --p-inv-bg: #15173d; --p-inv-surface: #212549; --p-inv-ink: #f3f3f1; --p-inv-muted: #9599aa;
  --p-inv-accent: #f3f3f1; --p-inv-accent-ink: #15173d; --p-inv-action: #f3f3f1; --p-inv-action-ink: #15173d;
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.038em;
  --wa: #128c4a;
}

/* ---- nav: o logotipo do cliente e o telefone ---- */
.nav__logo--img { display: inline-flex; align-items: center; }
.nav__logo--img img { display: block; height: 52px; width: auto; }
.nav .nav__tel { display: inline-flex; align-items: center; gap: var(--s-2); font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex: none; }
@media (max-width: 1279px) { .nav .nav__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 639px) { .nav__logo--img img { height: 40px; } }
.footer__brand .nav__logo--img img { height: 80px; }

/* ---- hero: a caixa sólida no lado calmo da foto ---- */
.hero--photo .hero__lead { max-width: 44ch; }

/* ---- listas com link (serviços) ---- */
.rows__link { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); width: 100%; color: inherit; text-decoration: none; padding-block: var(--s-1); }
.rows__link .rows__name { transition: color 200ms var(--ease, ease); }
.rows__link:hover .rows__name, .rows__link:focus-visible .rows__name { color: var(--action); }
.rows__link .rows__value { color: var(--muted); text-align: right; }

/* ---- etapas numeradas ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.steps > li:first-child { padding-top: 0; }
.steps > li::before { counter-increment: step; content: counter(step); grid-row: span 2; font: var(--display-weight) 28px/1 var(--font-display); color: var(--action); }
.steps h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin: 0; }
.steps p { margin: 0; }

/* ---- mapa: só carrega por ação do visitante (Script Mestre, etapa 35) ---- */
.map { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); min-height: 420px; display: grid; place-items: center; text-align: left; height: 100%; }
.map__facade { display: grid; gap: var(--s-4); justify-items: start; max-width: 380px; padding: var(--s-6); }
.map__facade p { margin: 0; color: var(--ink); }
.map__pin { width: 40px; height: 40px; color: var(--action); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-list { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.contact-list a { color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-list a:hover { color: var(--action); }
.contact-list li { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.contact-list li > span:first-child { color: var(--muted); font-size: var(--t-small); padding-top: 2px; }
@media (max-width: 639px) { .contact-list li { grid-template-columns: 1fr; gap: var(--s-1); } .map { min-height: 300px; } }

/* ---- rodapé ---- */
.footer__nap { display: grid; gap: var(--s-1); font-style: normal; color: var(--muted); }
.footer__nap a { color: var(--ink); text-decoration: none; }
.footer__nap a:hover { text-decoration: underline; }
.footer__social { display: inline-flex; align-items: center; gap: var(--s-2); }
.footer__legal-links { display: inline-flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; }
.footer__cookies { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.footer__cookies:hover { color: var(--ink); }

/* ---- botão flutuante de WhatsApp (desktop; no celular a barra de ações) ---- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 9; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgb(21 23 61 / .22); transition: transform 200ms ease; }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-2px); }
@media (max-width: 639px) { .wa-float { display: none; } }
.actionbar .btn { gap: var(--s-2); }
.actionbar .btn .ic { width: 20px; height: 20px; }
html.cookie-open .wa-float, html.cookie-open .actionbar { visibility: hidden; }

/* ---- banner de cookies: horizontal, compacto, dois botões de mesmo peso ---- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--p-bg); color: var(--p-ink); border-top: 1px solid color-mix(in oklab, var(--p-ink) 18%, transparent); box-shadow: 0 -8px 24px rgb(21 23 61 / .08); }
.cookie[hidden] { display: none; }
.cookie__in { display: flex; align-items: center; gap: var(--s-5); padding-block: var(--s-4); }
.cookie p { margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--p-ink); flex: 1; }
.cookie p a { color: inherit; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: var(--s-3); flex: none; }
.cookie__btns .btn { min-width: 120px; }
@media (max-width: 767px) {
  .cookie__in { flex-direction: column; align-items: stretch; gap: var(--s-3); padding-block: var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); }
  .cookie__btns .btn { flex: 1; min-width: 0; }
}

/* ---- páginas internas: cabeçalho de página, migalhas e texto corrido ---- */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-4); padding: 0; list-style: none; font-size: var(--t-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.page-inner main > section.section { height: auto; min-height: 0; }
.page-inner main > section.section:not(.hero) { padding-block: clamp(64px, 8vw, 112px); }
.page-inner .page-head { padding-top: calc(var(--nav) + clamp(32px, 4vw, 56px)); padding-bottom: clamp(48px, 6vw, 80px); height: auto; min-height: 0; }
.page-head .grid { align-items: start; row-gap: var(--s-6); }
.page-head h1 { font-size: clamp(36px, 3.2vw + 20px, 60px); line-height: 1.05; letter-spacing: var(--display-tracking); margin: 0 0 var(--s-5); max-width: 18ch; }
.page-head .t-lead { max-width: 52ch; margin: 0 0 var(--s-6); }
.page-head .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.page-head .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prose { max-width: 66ch; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose h2 { margin-top: var(--s-8); }
.prose h3 { margin-top: var(--s-6); font-size: var(--t-card); font-family: var(--font-text); font-weight: 500; letter-spacing: -0.01em; }
.prose ul { padding-left: 1.2em; }
.answer { font-size: var(--t-lead); line-height: 1.55; max-width: 60ch; }
.related { display: grid; gap: var(--s-4); }
.btn-row .btn .ic { margin-right: var(--s-2); }

/* cartões de público e de serviços: foto + título + uma linha */
.tile h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tile p { margin: 0; }
a.tile { text-decoration: none; }
a.tile:hover h3 { color: var(--action); }

/* formulário de orçamento */
.form-card { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; font-weight: 400; font-size: var(--t-small); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--action); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* página 404 */
.notfound h1 { font-size: clamp(40px, 4vw + 16px, 72px); }

/* ---- rodada 1 de ajustes ---- */
address { font-style: normal; }
#servicos .rows > li, #fabricacao .rows > li { padding-block: 12px; }
#servicos .rows > li:first-child, #fabricacao .rows > li:first-child { padding-top: 0; }
#fabricacao .rows > li > p { margin: 0; }
.faq--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter, 24px); }
.faq--cols > .faq__item:nth-child(2) { padding-top: 0; }
@media (min-width: 1024px) { .faq--cols { column-gap: calc(var(--gutter, 24px) + 8.33%); } }
@media (max-width: 767px) { .faq--cols { grid-template-columns: 1fr; } .faq--cols > .faq__item:nth-child(2) { padding-top: var(--s-5); } }
.nav__wa { display: none; }
@media (max-width: 639px) {
  .nav__wa { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--wa); color: #fff; margin-left: auto; flex: none; }
  .nav__wa .ic { width: 24px; height: 24px; }
  :root:has(> body > nav.actionbar) .nav:not(.is-open) .nav__toggle { margin-left: 0; }
  .nav.is-open .nav__wa { display: none; }
  .rows__link { flex-direction: column; gap: 2px; }
  .rows__link .rows__value { text-align: left; white-space: normal; }
  .cookie p { font-size: 13px; line-height: 1.45; }
  .cookie__in { gap: var(--s-2); padding-block: var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom)); }
  .cookie__btns .btn { height: 44px; }
}
.rows > li:has(> .rows__link) { grid-template-columns: minmax(0, 1fr); }
.rows__link .rows__value { grid-column: auto; grid-row: auto; }
.related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter, 24px); }
@media (max-width: 1023px) { .related-list { grid-template-columns: 1fr; } }
img.rounded { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }

/* ---- rodada 2 ---- */
@media (max-width: 1023px) { .frame--fill { height: auto; --ratio: 75%; } .frame--fill > .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } }
#servicos .rows > li { padding-block: 10px; }
.steps--row { counter-reset: step; margin-bottom: var(--s-7); border: 0; }
.steps--row > li { border-bottom: 0; border-top: 1px solid var(--line); padding: var(--s-4) 0 0; grid-template-columns: 1fr; }
.steps--row > li:first-child { padding-top: var(--s-4); }
.steps--row > li::before { grid-row: auto; margin-bottom: var(--s-3); }
.frame--band { --ratio: 0; height: 300px; border-radius: var(--r-lg); overflow: hidden; }
.frame--band > .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 1023px) { .steps--row > li { grid-column: span 6; } .frame--band { height: 260px; } }
@media (max-width: 639px) { .steps--row > li { grid-column: 1 / -1; } .frame--band { height: 220px; } }
.footer__legal { align-items: center; }
.footer__brand .nav__logo--img img { height: 64px; }
@media (max-width: 639px) {
  .close--type .btn--xl { width: 100%; min-width: 0; white-space: normal; font-size: 18px; height: auto; min-height: 56px; padding: var(--s-3) var(--s-5); }
  .contact-list a, .footer__nap a, .footer__legal a, .footer__cookies, .footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__legal-links { gap: 0 var(--s-5); }
  footer.closing { padding-bottom: calc(var(--padb) + 96px); }
}
html.cookie-open body { padding-bottom: var(--cookie-h, 0px); }
#servicos .rows > li { padding-block: 8px; }
.frame--band { height: 270px; }
@media (max-width: 639px) { .footer__legal-links { flex-direction: column; align-items: flex-start; } }
@media (max-width: 479px) { .rows__link .rows__value { max-width: none; text-wrap: wrap; } }
.steps--row > li::before { content: none; }
.step-n { display: block; font: var(--display-weight) 28px/1 var(--font-display); color: var(--action); margin-bottom: var(--s-3); }
.frame--faq { --ratio: 0; height: 300px; border-radius: var(--r-lg); overflow: hidden; margin-top: var(--s-6); }
.frame--faq > .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#perguntas .faq__item p { font-size: 16px; }
.step-n { display: inline; font: inherit; color: var(--action); margin: 0 var(--s-2) 0 0; }
.frame--faq { height: 270px; }
#para-quem .section-head { margin-bottom: var(--s-6); }
/* o banner fica sempre nas cores da página, também sobre o rodapé escuro */
.cookie { --bg: var(--p-bg); --ink: var(--p-ink); --muted: var(--p-muted); --surface: var(--p-surface); --action: var(--p-action); --action-ink: var(--p-action-ink); }
.frame--faq { height: 240px; }
.frame--faq { height: 220px; margin-top: var(--s-5); }
.frame--faq { height: 340px; }
@media (max-width: 639px) { #como-funciona .frame--band { height: 380px; } }
.prose > h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; display: grid; gap: var(--s-1); }
.prose li::marker { color: var(--action); }

/* ---- janelas baixas no desktop (ex.: 1280x540): a seção e o rodapé crescem com o conteúdo em vez de
   sobrepor (o kit já faz isso entre 640 e 1279 px; aqui vale também de 1280 px para cima) ---- */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
  }
  :where(main > :is(section, .section):not(.hero, .section--hero), footer.closing) { display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
/* o rodapé: o bloco do orçamento nunca encolhe abaixo do próprio conteúdo */
footer.closing > .wrap { grid-template-rows: minmax(min-content, 1fr) auto; }

/* ---- hero em janelas baixas no desktop (ex.: 1280x540): cresce com o conteúdo e o título diminui,
   em vez de a caixa de texto vazar para baixo do cabeçalho ---- */
@media (min-width: 640px) {
  main > .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  main > .hero > .wrap { height: auto; min-height: 100%; }
}
@media (min-width: 640px) and (max-height: 760px) {
  .hero--photo h1 { font-size: clamp(40px, 10svh, 80px); }
  .hero--photo:not([data-box="none"]) .hero__text { padding: var(--s-6); }
}

/* ---- seção "Por que sob medida": a frase grande não depende do script do efeito (que só colore as palavras)
   e uma faixa de três fotos preenche a tela ---- */
#oficina > .wrap { justify-content: flex-start; }
#oficina .t-label { margin: 0 0 var(--s-4); }
#oficina .mo-wh__text { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h2); line-height: 1.16; letter-spacing: var(--display-tracking); max-width: 960px; text-wrap: pretty; margin: 0; color: var(--ink); }
#oficina .mo-wh__text strong { font-weight: inherit; color: var(--accent); }
.statement__photos { margin-top: var(--s-8); }
.statement__photo { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 3 / 2; background: var(--surface); }
.statement__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) and (max-height: 820px) { .statement__photo { aspect-ratio: 16 / 9; } }
@media (max-width: 639px) {
  .statement__photos { margin-top: var(--s-6); row-gap: var(--s-3); }
  .statement__photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .statement__photo:nth-child(n+2) { display: none; }
}

/* =====================================================================================================
   ESPAÇAMENTO ENTRE SEÇÕES (pedido do cliente, 19/11/2026): as seções têm a altura do próprio conteúdo,
   com um único espaço vertical, em vez de ocupar uma ou duas telas inteiras. Só o hero da Home continua
   com a tela cheia. Vale para todas as páginas e larguras.
   ===================================================================================================== */
:root { --sec-pad: clamp(56px, 4.4vw + 24px, 88px); }
html body main > :is(section, .section):not(.hero, .page-head),
html body footer.closing {
  height: auto; min-height: 0;
  padding-top: var(--sec-pad);
  padding-bottom: calc(var(--sec-pad) + var(--bar, 0px));
}
html body main > :is(section, .section):not(.hero) > :is(.wrap, .container),
html body footer.closing > .wrap { height: auto; min-height: 0; flex: none; }
html body footer.closing > .wrap { grid-template-rows: auto auto; row-gap: var(--s-8); }
/* duas seções seguidas no mesmo fundo: o espaço entre elas não dobra */
html body main > section:not(.ground-surface, .hero) + section:not(.ground-surface, .hero),
html body main > section.ground-surface + section.ground-surface { padding-top: 0; }
/* fotos que preenchiam a altura da tela: passam a ter proporção própria */
html body main .frame--fill { height: auto; min-height: 0; }
@media (min-width: 1024px) {
  html body main .grid--top > .frame--fill { align-self: stretch; min-height: 420px; }
}
.frame--faq { height: 300px; }
/* cabeçalho das páginas internas */
html body .page-inner .page-head { padding-bottom: var(--sec-pad); }
/* textos de apoio do contato: legíveis (16px) */
.check, .check span, .form-card .t-small, .map__facade .t-small { font-size: 16px; line-height: 1.5; }
/* páginas internas usam o mesmo espaçamento; a reserva para a barra fixa do celular fica só no fim da página */
html body main > :is(section, .section):not(.hero, .page-head),
html body.page-inner main > section.section:not(.hero, .page-head) { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
html body main > section:not(.ground-surface, .hero) + section:not(.ground-surface, .hero),
html body main > section.ground-surface + section.ground-surface,
html body.page-inner main > section.section:not(.ground-surface) + section.section:not(.ground-surface) { padding-top: 0; }
html body.page-inner .page-head + section.section:not(.ground-surface) { padding-top: 0; }
html body footer.closing { padding-bottom: var(--sec-pad); }
@media (max-width: 639px) { html body footer.closing { padding-bottom: calc(var(--s-6) + 72px + env(safe-area-inset-bottom)); } }
/* hub de serviços: 5 cartões = 3 em cima + 2 largos embaixo, sem buraco na grade */
@media (min-width: 1024px) {
  #lista .grid > .tile:nth-child(n+4) { grid-column: span 6; }
  #lista .grid > .tile:nth-child(n+4) .tile__media { --tile-ratio: 16 / 9; }
}
/* celular: cartões com foto um por linha, em formato horizontal */
@media (max-width: 639px) {
  main .grid > .tile { grid-column: 1 / -1 !important; }
  main .grid > .tile .tile__media { --tile-ratio: 16 / 9; }
  #como-funciona .frame--band { height: 240px; }
}
/* rótulo "Por que sob medida": mesmo tamanho e peso dos títulos de linha ("Garantia na instalação") */
#oficina .t-label { font-size: var(--t-body, 16px); font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--ink); }
