/* IBEROESTE · protótipo ArqWeb. Tipos servidos da pasta fonts/ (sem pedidos a terceiros). */
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/red-hat-display-normal-300-900-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: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/red-hat-display-normal-300-900-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;
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/red-hat-text-normal-300-700-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: "Red Hat Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/red-hat-text-normal-300-700-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 {
  /* Marca: azul do logótipo como base, laranja do «Sistemas de Limpeza» só nas ações principais */
  --blue: #084390;
  --blue-deep: #062c61;
  --blue-ink: #0a2147;
  --accent: #ffa700;
  --accent-press: #f09800;
  --ink: #142033;
  --ink-soft: #46546b;
  --mist: #e4ecf7;
  --mist-deep: #d3dff0;
  --line: #c2cfe2;
  --paper: #ffffff;
  --ok: #0f6b3c;

  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;
  --gutter: 40px;
  --max: 1360px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --radius: 4px;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--blue-ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 3.75vw, 54px); line-height: 1.04; font-weight: 800; letter-spacing: -0.022em; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; font-weight: 750; letter-spacing: -0.018em; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--blue-ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { padding-inline: var(--edge); }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Botões e ligações de ação ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--display); font-weight: 750; font-size: 17px; letter-spacing: -0.005em;
  border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none;
  transition: background-color .16s ease-out, transform .16s ease-out, color .16s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #1c1200; }
.btn-accent:hover { background: var(--accent-press); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-paper { background: #fff; color: var(--blue); }
.btn-paper:hover { background: var(--mist); }
.go { font-family: var(--display); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.go::after { content: "→"; transition: transform .16s ease-out; }
.go:hover::after { transform: translateX(4px); }
.go:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Cabeçalho ---------- */
.top {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 32px;
  height: var(--head-h); padding-inline: var(--edge);
  background: var(--blue); color: #fff;
}
.brand { display: flex; align-items: center; min-height: 48px; flex: none; }
.brand img { width: 156px; height: auto; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a {
  color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 16px;
  padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius);
  transition: background-color .16s ease-out;
}
.menu a:hover { background: rgba(255, 255, 255, .12); }
.menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.top-phone { color: #fff; font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.top-phone:hover { text-decoration: underline; }
.top .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
.menu-toggle { display: none; }
.top-call { display: none; }
.menu .menu-extra { display: none; }

/* ---------- Primeiro ecrã ---------- */
.hero { position: relative; max-width: 1680px; margin-inline: auto; height: min(54.2vw, 910px); min-height: 600px; background: var(--mist); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 77%; }
.hero-text { position: absolute; left: calc(var(--edge) - max(0px, (100vw - 1680px) / 2)); top: 5vw; width: min(440px, 30.6vw); background: #fff; border-radius: var(--radius); padding: 40px 36px 28px; }
.hero-text h1 { font-size: clamp(30px, 2.6vw, 38px); line-height: 1.1; }
.hero-text .lede { margin-top: 14px; font-size: 17px; }
.hero-text .btn { margin-top: 24px; width: 100%; }
.hero-photo picture { display: block; width: 100%; height: 100%; }

.hero-alt { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.hero-alt a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

.facts { background: var(--blue); color: #fff; }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: var(--edge); }
.facts li { padding: 24px 24px 24px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .22); }
.facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 4px; font-size: 16px; color: #e3ecf9; }

/* ---------- Secções ---------- */
.sec { padding-block: var(--s9); }
.sec-mist { background: var(--mist); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.sec-head p { color: var(--ink-soft); font-size: 18px; }

/* Catálogo: índice com pré-visualização */
.index { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: stretch; }
.index-view { background: var(--mist); border-radius: var(--radius); padding: 28px 32px 24px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.index-view img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.index-view figcaption { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 16px; color: var(--ink-soft); }
.index-view figcaption strong { font-family: var(--display); font-size: 18px; color: var(--blue-ink); }
.index-list { border-top: 2px solid var(--blue-ink); }
.index-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 4px 24px; align-items: center;
  padding: 20px 16px 20px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  box-shadow: inset 0 0 0 var(--blue); transition: background-color .16s ease-out, box-shadow .16s ease-out;
}
.index-list a:hover, .index-list a.is-on { background: var(--mist); box-shadow: inset 4px 0 0 var(--blue); }
.index-list .i-thumb { display: none; }
.index-list .i-name { font-family: var(--display); font-weight: 750; font-size: 25px; line-height: 1.15; letter-spacing: -0.015em; color: var(--blue-ink); grid-column: 1; }
.index-list .i-desc { grid-column: 1; font-size: 16px; color: var(--ink-soft); }
.index-list .i-count { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--blue); white-space: nowrap; }
.index-list .i-count small { display: block; font-family: var(--text); font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.index-list .i-arrow { grid-column: 3; grid-row: 1 / span 2; font-size: 22px; color: var(--blue); transition: transform .16s ease-out; }
.index-list a:hover .i-arrow { transform: translateX(4px); }

/* Carrossel de modelos */
.sec-rail { padding-bottom: var(--s9); }
.rail-head { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.rail-head h2 { font-size: clamp(24px, 2.3vw, 32px); }
.rail-tools { display: flex; gap: 16px; align-items: center; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--radius); background: var(--mist); color: var(--blue); cursor: pointer; transition: background-color .16s ease-out, color .16s ease-out; }
.rail-btn:hover:not(:disabled) { background: var(--blue); color: #fff; }
.rail-btn:disabled { color: #9aa9c0; cursor: default; }
.rail-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 4px var(--edge) 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rcard { flex: 0 0 286px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; }
.rcard[hidden] { display: none; }
.rcard-img { display: block; background: var(--mist); border-radius: var(--radius); margin-bottom: 12px; }
.rcard-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; padding: 18px; transition: transform .2s ease-out; }
.rcard:hover .rcard-img img { transform: scale(1.03); }
.rcard .m-brand a { color: var(--ink-soft); font-weight: 500; }
.rcard h3 { font-size: 21px; }
.rcard-desc { font-size: 16px; color: var(--ink-soft); }
.rcard .go { margin-top: auto; font-size: 16px; }

/* CAS */
.cas { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.cas p { margin-top: 16px; color: var(--ink-soft); }
.cas .go { margin-top: 20px; }
.cas img { width: 100%; mix-blend-mode: multiply; }

/* Assistência: fotografia real do técnico, texto sobre a parede */
.assist { position: relative; background: #c5c6c9; overflow: hidden; }
.assist > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 30%; }
.assist-text { position: relative; margin-left: 52%; padding: 88px var(--edge) 88px 0; max-width: calc(48% + 0px); }
.assist-text h1, .assist-text h2 { color: var(--blue-ink); }
.assist-text h1 { font-size: clamp(32px, 3.6vw, 50px); }
.assist-text p { margin-top: 18px; color: #16233a; font-size: 18px; font-weight: 500; }
.assist-act { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.assist-act .go { color: var(--blue-ink); }
.assist-mail { margin-top: 20px; font-size: 16px; color: #16233a; font-weight: 500; }
.assist-mail a { color: var(--blue-ink); font-weight: 700; }

/* Outros serviços: acordeão */
.duo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.duo-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.duo-lede { margin-top: 18px; font-size: 18px; color: var(--ink-soft); }
.duo .assist-act { margin-top: 24px; }
.acc-title { margin-top: 56px; font-size: 22px; }
.duo-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.acc { margin-top: 16px; border-top: 2px solid var(--blue-ink); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc h4 { font-size: inherit; }
.acc button {
  appearance: none; border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center;
  padding: 16px 4px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--blue-ink);
  transition: color .16s ease-out;
}
.acc button::after { content: "+"; font-size: 28px; font-weight: 500; color: var(--blue); text-align: center; line-height: 1; }
.acc button[aria-expanded="true"]::after { content: "\2212"; }
.acc button:hover { color: var(--blue); }
.acc-body { padding: 0 4px 24px; }
.acc-body > p { color: var(--ink-soft); }
.ticks { margin-top: 14px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.acc-body .go { margin-top: 12px; }

/* Setores: controlo segmentado + painel */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, auto); border: 2px solid var(--blue); border-radius: var(--radius); background: #fff; overflow: hidden; max-width: 100%; }
.seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer; min-height: 48px; padding: 0 20px;
  font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--blue); white-space: nowrap;
  transition: background-color .16s ease-out, color .16s ease-out;
}
.seg button + button { border-left: 2px solid var(--blue); }
.seg button:hover { background: var(--mist); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.sector { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-top: 32px; }
.sector[hidden] { display: none; }
.sector img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); }
.sector .who { font-weight: 600; color: var(--blue); font-size: 16px; }
.sector h3 { font-size: 30px; line-height: 1.12; letter-spacing: -0.015em; margin-top: 8px; }
.sector p { margin-top: 14px; color: var(--ink-soft); }
.picks { margin-top: 22px; border-top: 1px solid var(--line); }
.picks li { border-bottom: 1px solid var(--line); }
.picks a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 2px; text-decoration: none; min-height: 44px; }
.picks a strong { font-family: var(--display); font-weight: 700; color: var(--blue-ink); }
.picks a span { font-size: 16px; color: var(--ink-soft); text-align: right; }
.picks a:hover strong { text-decoration: underline; }
.picks-label { margin-top: 22px; font-size: 16px; color: var(--ink-soft); }
.picks-label + .picks { margin-top: 8px; }
.sector .go { margin-top: 16px; }

/* Sobre */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.about p { margin-top: 18px; color: var(--ink-soft); }
.about img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); }
.about figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.kv { margin-top: 28px; border-top: 2px solid var(--blue-ink); }
.kv div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 16px; color: var(--ink-soft); }
.kv dd { font-weight: 600; color: var(--blue-ink); }
.about .go { margin-top: 20px; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.contact-info > p { margin-top: 16px; color: var(--ink-soft); }
.phone-big { display: inline-flex; align-items: center; min-height: 48px; margin-top: 24px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -0.02em; color: var(--blue); text-decoration: none; line-height: 1.1; }
.phone-big:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.kv dd a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.contact-info .kv div, .about .kv div { align-items: center; }
.contact-info .kv div:last-child { align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form h3 { margin-bottom: 20px; }
.form .seg { display: grid; grid-auto-columns: 1fr; width: 100%; margin-bottom: 24px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 20px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; color: var(--blue-ink); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; background: #fff; border: 1.5px solid #8696b0; border-radius: var(--radius); font-size: 17px;
  transition: border-color .16s ease-out, box-shadow .16s ease-out;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible, .tools select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--blue); }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.form-note { font-size: 14px; color: var(--ink-soft); flex: 1 1 260px; }
.form-msg { margin-top: 18px; padding: 14px 16px; background: var(--mist); border-left: 4px solid var(--ok); font-weight: 500; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Páginas interiores ---------- */
.page-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--mist); }
.page-head-text { padding: 48px 48px 48px var(--edge); display: flex; flex-direction: column; justify-content: center; }
.page-head-text h1 { font-size: clamp(32px, 3.2vw, 46px); }
.page-head-text .lede { margin-top: 16px; max-width: 52ch; font-size: 17px; }
.page-head-photo { position: relative; min-height: min(600px, 41.5vw); }
.page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.narrow { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.page-head.plain .page-head-text h1 { font-size: clamp(34px, 3.75vw, 54px); }
.page-head.plain { display: block; }
.page-head.plain .page-head-text { padding: 56px var(--edge) 48px; }
.page-head.plain .lede { max-width: 68ch; }
.page-head.cutout .page-head-photo img { object-fit: contain; mix-blend-mode: multiply; padding: 32px; }
.crumb { font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; }
.crumb a { color: var(--blue); font-weight: 600; }
.head-meta { margin-top: 22px; font-size: 16px; color: var(--ink-soft); }
.head-meta strong { color: var(--blue-ink); font-family: var(--display); }

/* Setores: cabeçalho com os quatro setores em fotografia */
.sector-head { background: var(--mist); padding-top: 56px; padding-bottom: 56px; }
.sector-head .sec-head { margin-bottom: 36px; }
.sector-head h1 { font-size: clamp(32px, 3.3vw, 48px); }
.sector-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sector-tiles a { display: block; text-decoration: none; color: inherit; }
.sector-tiles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform .2s ease-out; }
.sector-tiles a:hover img { transform: translateY(-3px); }
.sector-tiles strong { display: block; margin-top: 14px; font-family: var(--display); font-weight: 750; font-size: 20px; line-height: 1.2; color: var(--blue-ink); }
.sector-tiles strong::after { content: " ↓"; color: var(--blue); }
.sector-tiles a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; }
.sector-tiles span { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-soft); }

/* Lista de categorias (produtos.html) */
.cats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.cat { grid-column: span 4; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .16s ease-out, transform .16s ease-out; }
.cat:hover { border-color: var(--blue); transform: translateY(-2px); }
.cat-wide { grid-column: span 6; }
.cat-media { background: var(--mist); }
.cat-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cat-media.cut img { aspect-ratio: 16 / 10; object-fit: contain; mix-blend-mode: multiply; padding: 18px; }
.cat-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-body h2 { font-size: 24px; letter-spacing: -0.012em; }
.cat-wide .cat-body h2 { font-size: 30px; }
.cat-body p { color: var(--ink-soft); font-size: 16px; }
.cat-meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; gap: 16px; font-size: 16px; color: var(--ink-soft); }
.cat-meta strong { font-family: var(--display); color: var(--blue); }
.note { margin-top: 32px; font-size: 16px; color: var(--ink-soft); }

/* Categoria: barra de filtros + lista de máquinas */
.tools { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: end; margin-top: 28px; }
.tools .t-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.tools select {
  height: 52px; min-width: 220px; padding: 0 44px 0 14px; border: 2px solid var(--blue); border-radius: var(--radius); background-color: #fff; font-weight: 600; color: var(--blue);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23084390' stroke-width='2.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 22px;
}
.tools .seg button { padding: 0 16px; }
.tools .t-count { flex-basis: 100%; font-family: var(--display); font-weight: 700; color: var(--blue-ink); }
.machines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; padding: 24px var(--edge) 0; }
.m { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 4px 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.m[hidden] { display: none; }
.m-img { grid-row: 1 / span 4; width: 124px; height: 124px; background: var(--mist); border-radius: var(--radius); }
.m-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6px; }
.m-brand { font-size: 16px; font-weight: 600; color: var(--blue); }
.m h3 { font-size: 21px; }
.m p { font-size: 16px; color: var(--ink-soft); }
.m .go { font-size: 16px; min-height: 44px; }
.m-empty { padding: 40px var(--edge); font-weight: 600; }
.aside-cta { margin: 72px var(--edge) 0; padding: 40px 48px; background: var(--mist); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.aside-cta p { margin-top: 8px; color: var(--ink-soft); }
.others { padding: 56px var(--edge) var(--s9); }
.others h2 { font-size: 24px; margin-bottom: 16px; }
.others ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.others a { font-family: var(--display); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

/* Serviços e setores (páginas) */
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding-block: 72px; border-bottom: 1px solid var(--line); }
.svc:last-of-type { border-bottom: 0; }
.svc-side h2 { font-size: 34px; }
.svc-side .tagline { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--blue); line-height: 1.3; }
.svc-main p + p { margin-top: 14px; }
.svc-main p { color: var(--ink-soft); }
.svc-main .ticks { margin-top: 20px; }
.svc-main .btn { margin-top: 28px; }
.svc-main figure { margin-top: 32px; }
.svc-main figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }
.svc-main figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.list-label { margin-top: 22px; font-weight: 600; color: var(--blue-ink) !important; }
.list-label + .ticks { margin-top: 10px; }

.sector-block { padding-block: 80px; border-bottom: 1px solid var(--line); }
.sector-block:last-of-type { border-bottom: 0; }
.sector-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.sector-top.flip > figure { order: 2; }
.sector-top img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); }
.sector-top .who { font-weight: 600; color: var(--blue); }
.sector-top h2 { margin-top: 8px; }
.sector-top p { margin-top: 14px; color: var(--ink-soft); }
.uses { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.use img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.use h3 { margin-top: 14px; font-size: 20px; }
.use p { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }
.use .go { font-size: 16px; }
.uses-label { margin-top: 48px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--blue-ink); }
.uses-label + .uses { margin-top: 20px; }

.prose { max-width: 70ch; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-soft); }
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--blue-ink); margin-top: 32px; }
.brands li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.brands strong { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--blue-ink); letter-spacing: -0.015em; }
.brands span { font-size: 16px; color: var(--ink-soft); }

/* Privacidade */
.legal { padding: 64px var(--edge) var(--s9); max-width: calc(76ch + 2 * var(--edge)); }
.legal h1 { font-size: clamp(32px, 3.4vw, 46px); }
.legal h2 { font-size: 23px; margin-top: 36px; }
.legal p { margin-top: 12px; }

/* ---------- Rodapé ---------- */
.foot { background: var(--blue-deep); color: #dbe6f6; padding: 64px var(--edge) 32px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 48px; }
.foot-brand img { width: 190px; }
.foot-brand p { margin-top: 20px; font-size: 16px; max-width: 40ch; }
.foot h2 { font-size: 16px; color: #fff; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.foot li a, .foot address a { display: inline-flex; min-height: 36px; min-width: 48px; align-items: center; text-decoration: none; }
.foot li a:hover, .foot address a:hover { text-decoration: underline; }
.foot address { font-style: normal; font-size: 16px; line-height: 1.6; }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; font-size: 16px; }
.foot-legal .foot-id { margin-right: auto; }
.foot-legal a { min-height: 36px; display: inline-flex; align-items: center; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 28px; --s9: 80px; }
  .top { gap: 16px; }
  .menu a { padding: 0 10px; font-size: 16px; }
  .top-phone { display: none; }
  .hero { height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .hero-photo { position: relative; inset: auto; order: 2; min-height: 520px; }
  .hero-photo img { position: absolute; inset: 0; object-position: 62% 70%; }
  .hero-text { position: static; width: auto; background: transparent; padding: 40px 28px 36px var(--edge); align-self: center; }
  .index { gap: 32px; }
  .sector, .sector-top { gap: 32px; }
  .duo, .about, .contact { gap: 40px; }
  .machines { column-gap: 32px; }
  .m { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; }
  .m-img { width: 96px; height: 96px; }
}

/* ---------- Telemóvel ---------- */
@media (max-width: 820px) {
  :root { --gutter: 20px; --s9: 64px; --head-h: 64px; }
  body { font-size: 16px; }
  .lede { font-size: 17px; }

  .top { gap: 12px; }
  .brand img { width: 132px; }
  .top-call { display: inline-grid; place-items: center; margin-left: auto; width: 48px; height: 44px; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: var(--radius); }
  .top-call:active { background: rgba(255, 255, 255, .14); }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px;
    background: transparent; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: var(--radius); color: #fff;
    font-family: var(--display); font-weight: 700; font-size: 16px; cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: #fff; content: ""; position: relative; transition: transform .16s ease-out, opacity .16s ease-out; }
  .menu-bars::before { position: absolute; top: -6px; }
  .menu-bars::after { position: absolute; top: 6px; }
  .is-open .menu-bars { background: transparent; }
  .is-open .menu-bars::before { top: 0; transform: rotate(45deg); }
  .is-open .menu-bars::after { top: 0; transform: rotate(-45deg); }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: var(--head-h); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue); padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 18px 30px rgba(6, 44, 97, .28);
  }
  .is-open .menu { display: flex; }
  .menu a { min-height: 52px; font-size: 18px; padding: 0 4px; border-bottom: 1px solid rgba(255, 255, 255, .16); border-radius: 0; }
  .menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 14px; }
  .top > .btn { display: none; }
  .menu .menu-extra { display: flex; }

  .hero { display: block; }
  .hero-photo { position: static; min-height: 0; aspect-ratio: 390 / 398; }
  .hero-photo img { position: static; object-position: 50% 40%; }
  .hero-text { position: static; width: auto; background: transparent; border-radius: 0; padding: 22px var(--gutter) 28px; }
  h1, .hero-text h1 { font-size: 31px; line-height: 1.08; }
  .hero-text .lede { margin-top: 10px; font-size: 16px; line-height: 1.45; }
  .hero-text .btn { margin-top: 18px; min-height: 54px; }
  .hero-alt { margin-top: 8px; }
  .rail-head { margin-bottom: 20px; }
  .rail-tools { width: 100%; justify-content: space-between; }
  .rail-tools .seg button { padding: 0 12px; font-size: 16px; }
  .rail-nav { display: none; }
  .rail-track { gap: 16px; }
  .rcard { flex-basis: 232px; }
  .acc-title { margin-top: 40px; }

  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 16px 12px 16px 0; }
  .facts li + li { padding-left: 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .22); }
  .facts li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .22); }
  .facts strong { font-size: 24px; }
  .facts span { font-size: 16px; line-height: 1.35; }

  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 28px; }
  .sec-head p { font-size: 16px; }

  .index { grid-template-columns: minmax(0, 1fr); }
  .index-view { display: none; }
  .index-list a { grid-template-columns: 68px minmax(0, 1fr) 20px; gap: 2px 14px; padding: 14px 4px; }
  .index-list a:hover, .index-list a.is-on { box-shadow: none; background: transparent; }
  .index-list .i-thumb { display: block; grid-column: 1; grid-row: 1 / span 3; width: 68px; height: 68px; background: var(--mist); border-radius: var(--radius); }
  .index-list .i-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4px; }
  .index-list .i-name { grid-column: 2; font-size: 19px; }
  .index-list .i-desc { grid-column: 2; font-size: 16px; line-height: 1.4; }
  .index-list .i-count { grid-column: 2; grid-row: auto; text-align: left; font-size: 14px; }
  .index-list .i-count small { display: inline; margin-left: 6px; }
  .index-list .i-arrow { grid-column: 3; grid-row: 1 / span 3; font-size: 18px; }

  .cas { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cas figure { order: -1; margin-inline: calc(var(--gutter) * -0.5); }

  .assist { background: var(--mist); }
  .assist > img { position: static; width: 100%; height: auto; aspect-ratio: 390 / 250; object-position: 0% 28%; }
  .assist-text { margin-left: 0; max-width: none; padding: 28px var(--gutter) 48px; }
  .assist-text p { font-size: 16px; }

  .duo, .about, .contact, .sector, .sector-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .form .seg button { white-space: normal; padding: 6px 8px; line-height: 1.2; }
  .duo-photo { order: -1; }
  .acc button { font-size: 19px; padding: 14px 2px; }

  .seg.seg-4 { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; }
  .seg.seg-4 button { white-space: normal; padding: 8px 10px; font-size: 16px; line-height: 1.2; min-height: 56px; }
  .seg.seg-4 button + button { border-left: 0; }
  .seg.seg-4 button:nth-child(even) { border-left: 2px solid var(--blue); }
  .seg.seg-4 button:nth-child(n + 3) { border-top: 2px solid var(--blue); }
  .sector h3 { font-size: 24px; }
  .about figure { order: -1; }
  .kv div { grid-template-columns: 112px minmax(0, 1fr); }

  .form { padding: 22px 18px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }

  .page-head, .page-head.narrow { grid-template-columns: minmax(0, 1fr); }
  .page-head-photo { order: -1; min-height: 0; aspect-ratio: 13 / 10; }
  .page-head.cutout .page-head-photo { display: none; }
  .page-head-text, .page-head.plain .page-head-text { padding: 28px var(--gutter) 32px; }

  .sector-head { padding-top: 32px; padding-bottom: 40px; }
  .sector-head .sec-head { margin-bottom: 24px; }
  .sector-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .sector-tiles strong { font-size: 17px; margin-top: 10px; }
  .cats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cat, .cat-wide { grid-column: auto; }
  .cat-wide .cat-body h2, .cat-body h2 { font-size: 22px; }

  .tools { margin-top: 22px; gap: 12px; }
  .tools > div { width: 100%; }
  .tools .seg { display: grid; grid-auto-columns: 1fr; width: 100%; }
  .tools .seg button { padding: 0 6px; font-size: 16px; }
  .tools .seg small { display: none; }
  .tools select { width: 100%; min-width: 0; }
  .machines { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .m { grid-template-columns: 84px minmax(0, 1fr); gap: 2px 14px; padding: 16px 0; }
  .m-img { width: 84px; height: 84px; }
  .m h3 { font-size: 18px; }
  .m p { font-size: 16px; }
  .aside-cta { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; margin-top: 48px; }
  .aside-cta .btn { width: 100%; }

  .svc { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 48px; }
  .svc-side h2 { font-size: 28px; }
  .svc-main .btn { width: 100%; }
  .sector-block { padding-block: 48px; }
  .sector-top.flip > figure { order: 0; }
  .uses { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .use { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 16px; align-items: start; }
  .use img { grid-row: 1 / span 3; }
  .use h3 { margin-top: 0; font-size: 18px; }
  .use p { font-size: 16px; }
  .brands { grid-template-columns: 1fr 1fr; }

  .foot { padding-top: 48px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot li a, .foot address a, .foot-legal a { min-height: 44px; }
  .foot-legal { flex-direction: column; align-items: flex-start; gap: 4px; }
}
/* ---------- Ecrãs muito estreitos ---------- */
@media (max-width: 380px) {
  .kv div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dd a { overflow-wrap: anywhere; }
  .index-list .i-count { white-space: normal; }
  .index-list .i-count small { display: block; margin-left: 0; }
  .rail-tools .seg button { padding: 0 9px; font-size: 14px; }
  .seg.seg-4 button { font-size: 14px; padding: 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
