/* =====================================================================
   Jaracescki — folha de estilo do site
   Conceito: prancha de desenho técnico + zarcão (primer de serralheria)
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"),
       url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* cor */
  --ink: #15212B;          /* tinta de projeto */
  --ink-2: #22313D;
  --zar: #C23B1E;          /* zarcão */
  --zar-dark: #9E2E15;
  --paper: #F3F4F2;        /* papel */
  --sheet: #FBFBFA;        /* folha clara (campos, painéis) */
  --steel: #D5DADC;        /* aço galvanizado */
  --steel-dark: #A9B3BA;
  --graphite: #4A5560;     /* texto secundário */
  --dim: #7C8C99;          /* linha de cota */
  --ok: #2E7A4E;

  /* tipo */
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: 1.625rem;
  --t-xl: 2.0625rem;
  --t-2xl: clamp(2rem, 3.4vw, 2.5625rem);
  --t-display: clamp(2.5rem, 5.6vw, 4.75rem);

  /* espaço */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem;
  --radius: 3px;
  --line: 1px solid var(--steel);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--zar-dark); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-stretch: 72%;
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); line-height: .98; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-md); line-height: 1.15; }
strong { font-weight: 650; }

:focus-visible { outline: 3px solid var(--zar); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--zar); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: var(--t-md); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--graphite); }
.measure { max-width: 38em; }

/* ---------- pular para o conteúdo ---------- */
.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-160%);
  background: var(--ink); color: #fff; border: 0; padding: .6rem 1rem;
  font: inherit; font-size: var(--t-sm); cursor: pointer;
}
.skip:focus-visible { transform: none; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 650; font-size: var(--t-base); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--zar); color: #fff; }
.btn-primary:hover { background: var(--zar-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.on-dark .btn-line { border-color: rgba(255,255,255,.7); color: #fff; }
.on-dark .btn-line:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- cabeçalho ---------- */
.site-header { background: var(--paper); border-bottom: var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 196px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .25rem; align-items: center; }
.nav a {
  display: block; padding: .5rem .75rem; text-decoration: none; font-weight: 550; font-size: var(--t-sm);
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: var(--zar); }
.nav .sub { position: relative; }
.nav-toggle, .sub-toggle { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
.sub-toggle { display: flex; align-items: center; gap: .3rem; padding: .5rem .75rem; font-weight: 550; font-size: var(--t-sm); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: -.5rem; min-width: 260px;
  background: var(--sheet); border: 1px solid var(--steel-dark); padding: .4rem 0;
  box-shadow: 0 10px 24px -12px rgba(21,33,43,.35);
  display: none !important;
}
.submenu.open { display: block !important; }
.submenu a { padding: .55rem 1rem; border: 0; font-weight: 500; }
.submenu a:hover { background: var(--paper); }
.header-phone { font-weight: 650; font-size: var(--t-sm); text-decoration: none; white-space: nowrap; }
.header-cta { min-height: 42px; padding: .5rem 1rem; font-size: var(--t-sm); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .header-phone { display: none; }
}
@media (max-width: 860px) {
  .site-header .wrap { min-height: 64px; gap: var(--s2); }
  .brand img { width: 164px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .45rem; margin-left: auto;
    min-height: 44px; padding: .4rem .8rem; border: 1.5px solid var(--ink); border-radius: var(--radius); font-weight: 600;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--sheet); border-bottom: 1px solid var(--steel-dark); margin: 0;
    box-shadow: 0 16px 24px -16px rgba(21,33,43,.4);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .nav a, .sub-toggle { padding: .8rem 0; font-size: var(--t-base); border-bottom: var(--line); width: 100%; }
  .nav a[aria-current="page"] { border-bottom-color: var(--steel); color: var(--zar-dark); }
  .submenu { position: static; box-shadow: none; border: 0; background: none; padding: 0 0 0 1rem; min-width: 0; }
  .submenu a { padding: .7rem 0; border-bottom: var(--line); }
}

/* ---------- prancha (fundo quadriculado de desenho) ---------- */
.sheet-grid {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(124,140,153,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,140,153,.14) 1px, transparent 1px),
    linear-gradient(rgba(124,140,153,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,140,153,.07) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------- desenhos técnicos (SVG) ---------- */
.drawing { width: 100%; height: auto; overflow: visible; }
.drawing path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.drawing .d-thin { stroke-width: 1; stroke: var(--ink-2); }
.drawing .d-ground { stroke-width: 2.2; }
.drawing .d-dim { stroke: var(--dim); stroke-width: 1; }
.drawing .d-tick { stroke-width: 1.4; }
.drawing .d-zr { fill: var(--zar); stroke: var(--zar); stroke-width: 1; }
.drawing .d-zr-line { stroke: var(--zar); stroke-width: 4; }
.drawing .d-zr-hatch { stroke: #fff; stroke-width: 1; }
.drawing text { font-family: var(--font); font-size: 12px; font-stretch: 85%; fill: var(--graphite); font-weight: 500; }
.drawing .d-note { font-style: italic; }
.drawing--draw text { font-size: 13px; }
.drawing--sm .l5 { display: none; }
.drawing--sm path { stroke-width: 1.3; }
.drawing--sm .d-thin { stroke-width: .8; }

/* animação única: o desenho do topo se traça ao abrir a página */
@media (prefers-reduced-motion: no-preference) {
  .drawing--draw .l1 path, .drawing--draw .l2 path, .drawing--draw .l3 path {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 1.1s cubic-bezier(.5,0,.2,1) forwards;
  }
  .drawing--draw .l2 path { animation-delay: .45s; }
  .drawing--draw .l3 path { animation-delay: .95s; }
  .drawing--draw .l4 { opacity: 0; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: beam .6s cubic-bezier(.3,0,.1,1) 1.7s forwards; }
  .drawing--draw .l5 { opacity: 0; animation: fade .6s ease 2.1s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beam { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- hero ---------- */
.hero { border-bottom: var(--line); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: var(--s5);
  align-items: center; padding-block: clamp(3rem, 7vw, 6rem);
}
.hero h1 { max-width: 20ch; font-size: clamp(2.5rem, 5vw, 4.25rem); text-wrap: pretty; }
.hero .lead { margin-top: var(--s3); }
.hero .actions { margin-top: var(--s4); }
.hero-figure { margin: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: var(--s4); font-size: var(--t-sm); color: var(--graphite); }
.hero-meta a { text-decoration: none; }
.hero-meta a:hover { text-decoration: underline; }
.stars { color: var(--zar); letter-spacing: .05em; }
.status { display: inline-flex; align-items: center; gap: .45rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel-dark); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(46,122,78,.18); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--s4); }
  .hero-figure { order: 2; }
}

/* ---------- seções ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { border-top: var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); align-items: end; margin-bottom: var(--s5); }
.section-head p { margin: 0; color: var(--graphite); max-width: 36em; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---------- lista de serviços ---------- */
.services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); border-bottom: var(--line); }
.services li { border-top: var(--line); }
.service-row {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--s3); align-items: start;
  padding: var(--s3) 0; text-decoration: none;
}
.service-row .thumb { background: var(--sheet); border: 1px solid var(--steel); padding: 10px 12px; aspect-ratio: 320 / 220; display: grid; place-items: center; }
.service-row h3 { margin-bottom: .35rem; }
.service-row p { margin: 0; color: var(--graphite); font-size: var(--t-sm); }
.service-row .more { display: inline-block; margin-top: .6rem; font-size: var(--t-sm); font-weight: 650; color: var(--zar-dark); text-decoration: underline; text-decoration-color: transparent; }
.service-row:hover h3, .service-row:hover .more { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.service-row:hover { color: inherit; }
.service-row:hover .thumb { border-color: var(--steel-dark); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .service-row { grid-template-columns: 104px minmax(0, 1fr); gap: var(--s2); } }

/* ---------- processo (cota em cadeia) ---------- */
.process { background: var(--ink); color: #E9ECEE; }
.process h2 { color: #fff; }
.process .section-head p { color: #AEB8C0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; position: relative; }
.steps::before { /* linha de cota que atravessa as etapas */
  content: ""; position: absolute; left: 0; right: 0; top: 14px; border-top: 1px solid #7C8C99;
}
.steps li { position: relative; padding: 44px var(--s3) 0 0; }
.steps li::before { /* marca de cota inclinada no início de cada etapa */
  content: ""; position: absolute; left: -1px; top: 6px; width: 1px; height: 17px; background: #AEB8C0; transform: rotate(45deg);
}
.steps li:last-child::after {
  content: ""; position: absolute; right: -1px; top: 6px; width: 1px; height: 17px; background: #AEB8C0; transform: rotate(45deg);
}
.step-n { display: block; font-stretch: 70%; font-weight: 800; font-size: var(--t-xl); line-height: 1; color: var(--zar); margin-bottom: .6rem; }
.steps h3 { color: #fff; margin-bottom: .5rem; }
.steps p { color: #C3CBD1; font-size: var(--t-sm); margin: 0; max-width: 24em; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s5); }
  .steps::before { display: none; }
  .steps li { border-top: 1px solid #7C8C99; padding-top: var(--s3); }
  .steps li::before, .steps li:last-child::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; row-gap: var(--s4); } }

/* ---------- sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
.about h2 { margin-bottom: var(--s3); }
.about .text p { max-width: 36em; }
.facts { border-top: 2px solid var(--ink); margin: 0; }
.facts div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: var(--s2); padding: .9rem 0; border-bottom: var(--line); }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; color: var(--graphite); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: var(--s4); } }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- obras ---------- */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.gallery a { display: block; text-decoration: none; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--steel); }
.gallery h3 { font-size: var(--t-base); font-stretch: 85%; margin-top: .7rem; }
.gallery p { margin: .15rem 0 0; font-size: var(--t-sm); color: var(--graphite); }
.gallery a:hover h3 { text-decoration: underline; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s4); list-style: none; }
.filters a { display: inline-block; padding: .4rem .85rem; border: 1px solid var(--steel-dark); border-radius: var(--radius); text-decoration: none; font-size: var(--t-sm); background: var(--sheet); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); list-style: none; }
.photos li:first-child { grid-column: 1 / -1; }
.photos a { display: block; }
.photos img { width: 100%; background: var(--steel); }
.photos figcaption { font-size: var(--t-sm); color: var(--graphite); margin-top: .4rem; }
.photos figure { margin: 0; }
@media (max-width: 600px) { .photos { grid-template-columns: 1fr; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(21,33,43,.92); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; margin-inline: auto; }
.lightbox button { margin: .75rem auto 0; display: flex; }

/* ---------- chamada final ---------- */
.cta-band { background: var(--ink-2); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) auto; gap: var(--s4); align-items: center; padding-block: var(--s5); }
.cta-band h2 { color: #fff; font-size: var(--t-xl); }
.cta-band p { margin: .5rem 0 0; color: #C3CBD1; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- página de serviço ---------- */
.page-head { border-bottom: var(--line); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s5); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); max-width: 16ch; }
.page-head .lead { margin-top: var(--s3); }
.page-head .actions { margin-top: var(--s4); }
.page-head .figure { background: var(--sheet); border: 1px solid var(--steel); padding: clamp(1rem, 3vw, 2rem); }
.page-head--plain .wrap { grid-template-columns: 1fr; }
.crumbs { font-size: var(--t-sm); color: var(--graphite); margin-bottom: var(--s3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--steel-dark); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (max-width: 900px) { .page-head .wrap { grid-template-columns: 1fr; } }

.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s6); }
.detail h2 { font-size: var(--t-xl); margin-bottom: var(--s3); }
.checklist { list-style: none; border-top: 2px solid var(--ink); }
.checklist li { position: relative; padding: .85rem 0 .85rem 1.9rem; border-bottom: var(--line); }
.checklist li::before { /* cabeça de parafuso */
  content: ""; position: absolute; left: .15rem; top: 1.15rem; width: .8rem; height: .8rem;
  border: 2px solid var(--zar); border-radius: 50%; background: var(--sheet);
}
.checklist li::after { content: ""; position: absolute; left: .45rem; top: 1.45rem; width: .2rem; height: .2rem; background: var(--zar); border-radius: 50%; }
.prose p { max-width: 36em; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: var(--s4); } }

.small-title { font-size: var(--t-md); margin-bottom: var(--s2); }
.other-services { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.other-services a { display: inline-block; padding: .55rem .95rem; border: 1px solid var(--steel-dark); border-radius: var(--radius); text-decoration: none; background: var(--sheet); font-weight: 550; }
.other-services a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- formulário ---------- */
.quote-layout > div > h2 { margin-bottom: var(--s2); }
.quote-layout > div > .muted { margin-bottom: var(--s4); }
.quote-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s6); align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; gap: var(--s5); } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s3); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .opt { font-weight: 400; color: var(--graphite); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sheet); border: 1.5px solid var(--steel-dark); border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--zar); outline-offset: 0; border-color: var(--ink); }
.field .hint { font-size: var(--t-xs); color: var(--graphite); margin-top: .35rem; }
.field .err { font-size: var(--t-sm); color: var(--zar-dark); font-weight: 600; margin-top: .35rem; }
.field [aria-invalid="true"] { border-color: var(--zar); }
.field .check { display: grid; font-weight: 400; margin: 0; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .7rem; align-items: start; font-size: var(--t-sm); }
.field .check input { min-height: 0; padding: 0; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--zar); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9rem 1rem; border-left: 4px solid var(--zar); background: #F7E6E1; margin-bottom: var(--s3); }
.alert-ok { border-left-color: var(--ok); background: #E3F0E8; }

.aside-card { border-top: 2px solid var(--ink); }
.aside-card h2 { font-size: var(--t-lg); margin: var(--s3) 0 var(--s2); }
.aside-card .actions { flex-direction: column; align-items: stretch; }
.aside-card dl { margin: var(--s3) 0 0; }
.aside-card dt { font-weight: 650; margin-top: var(--s2); }
.aside-card dd { margin: .15rem 0 0; color: var(--graphite); }

/* ---------- carimbo (rodapé) ---------- */
.site-footer { padding-block: var(--s6) var(--s4); }
.titleblock {
  display: grid; border: 2px solid var(--ink); background: var(--sheet);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "brand addr addr hours"
    "brand phone mail hours"
    "sheet legal legal links";
}
.tb { padding: .9rem 1.1rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-width: 0; }
.tb-label { display: block; font-size: var(--t-xs); color: var(--graphite); margin-bottom: .2rem; }
.tb-brand { grid-area: brand; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); }
.tb-brand img { width: 220px; }
.tb-brand p { font-size: var(--t-sm); color: var(--graphite); margin: 0; max-width: 26em; }
.tb-addr { grid-area: addr; }
.tb-phone { grid-area: phone; }
.tb-mail { grid-area: mail; }
.tb-hours { grid-area: hours; border-right: 0; }
.tb-sheet { grid-area: sheet; border-bottom: 0; }
.tb-legal { grid-area: legal; border-bottom: 0; font-size: var(--t-sm); }
.tb-links { grid-area: links; border-right: 0; border-bottom: 0; font-size: var(--t-sm); }
.tb a { text-decoration: none; font-weight: 600; }
.tb a:hover { text-decoration: underline; }
.tb-big { font-stretch: 80%; font-weight: 700; font-size: var(--t-md); line-height: 1.2; }
.tb-sheet .tb-big { font-stretch: 72%; font-weight: 780; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.hours th { text-align: left; font-weight: 500; padding: .15rem .75rem .15rem 0; white-space: nowrap; }
.hours td { text-align: right; padding: .15rem 0; white-space: nowrap; }
.tb-hours .status { margin-top: .6rem; font-size: var(--t-sm); font-weight: 600; }
.tb-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.footer-note { margin-top: var(--s3); font-size: var(--t-xs); color: var(--graphite); }
@media (max-width: 1000px) {
  .titleblock { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "addr hours" "phone hours" "mail hours" "sheet sheet" "legal legal" "links links"; }
  .tb-brand, .tb-sheet, .tb-legal, .tb-links { border-right: 0; }
  .tb-sheet, .tb-legal { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 560px) {
  .titleblock { grid-template-columns: 1fr; grid-template-areas: "brand" "addr" "phone" "mail" "hours" "sheet" "legal" "links"; }
  .tb { border-right: 0; }
  .tb-hours { border-bottom: 1px solid var(--ink); }
}

/* ---------- barra fixa no celular ---------- */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--ink); border-top: 1px solid #000; padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 56px; color: #fff; text-decoration: none; font-weight: 600; font-size: var(--t-sm); }
  .mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.15); }
  .mobile-bar a.zar { background: var(--zar); }
  .mobile-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: 56px; }
}

/* ---------- páginas simples ---------- */
.simple { padding-block: clamp(3rem, 8vw, 6rem); }
.simple h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-bottom: var(--s3); }
.simple h2 { font-size: var(--t-lg); margin: var(--s4) 0 var(--s2); }
.simple .prose { max-width: 42em; }
.empty { border: 1px dashed var(--steel-dark); background: var(--sheet); padding: var(--s4); max-width: 40em; }
.empty p:last-child { margin-bottom: 0; }

@media print {
  .site-header, .mobile-bar, .cta-band, .actions { display: none !important; }
  body { background: #fff; }
}
