:root {
  --ink: #18232c;
  --muted: #5d6972;
  --color-brand: #0c6d9f;
  --color-brand-surface: #064b70;
  --color-brand-surface-hover: #043b59;
  --brand: var(--color-brand);
  --brand-surface: var(--color-brand-surface);
  --brand-hover: var(--color-brand-surface-hover);
  --accent: #e16d12;
  --accent-dark: #ad4c05;
  --paper: #ffffff;
  --mist: #f3f6f8;
  --line: #dce4e9;
  --night: #0a151e;
  --night-2: #102635;
  --shadow: 0 18px 55px rgba(9, 31, 46, .14);
  --radius: 20px;
  --header-h: 88px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #ffb45f;
  outline-offset: 3px;
}
button, input, textarea, select { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 12px 18px; background: #fff; color: #000; border-radius: 6px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header,
.site-header.is-solid,
.inner-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.035)),
    linear-gradient(90deg, #033b57 0%, #055f8c 25%, #0676ae 50%, #055f8c 75%, #033b57 100%);
  box-shadow: 0 9px 30px rgba(3, 35, 53, .24);
}
.header-row { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { position: relative; flex: 0 0 245px; height: 64px; display: flex; align-items: center; }
.brand img { position: absolute; left: 0; width: 220px; height: auto; }
.brand-light { opacity: 1; }
.brand-dark { display: none; }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: .92rem; font-weight: 650; letter-spacing: .015em;
  position: relative;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.header-cta {
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: #111; font-weight: 800; box-shadow: 0 10px 22px rgba(225,109,18,.28);
}
.header-cta:hover { background: #f2862f; }
.menu-toggle { display: none; border: 0; background: transparent; color: currentColor; width: 48px; height: 48px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 2px; background: currentColor; margin: 6px auto; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero slideshow */
.hero { position: relative; height: clamp(680px, 92vh, 900px); min-height: 680px; overflow: hidden; background: var(--night); }
.slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; z-index: 0; pointer-events: none; transition: opacity 1.3s ease; }
.hero-slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.hero-slide.is-leaving { opacity: 0; z-index: 1; pointer-events: none; }
.hero-slide:not(.is-active) .hero-content { visibility: hidden; }
.hero-slide picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.025); will-change: transform; }
.hero-slide.is-active .kb-a { animation: kbA 7.8s ease-out both; }
.hero-slide.is-active .kb-b { animation: kbB 7.8s ease-out both; }
.hero-slide.is-active .kb-c { animation: kbC 7.8s ease-out both; }
@keyframes kbA { from { transform: scale(1.03) translate3d(-1%, 0, 0); } to { transform: scale(1.13) translate3d(1.5%, -1%, 0); } }
@keyframes kbB { from { transform: scale(1.12) translate3d(1%, -1%, 0); } to { transform: scale(1.03) translate3d(-1.5%, 1%, 0); } }
@keyframes kbC { from { transform: scale(1.04) translate3d(0, 1%, 0); } to { transform: scale(1.14) translate3d(0, -1.5%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3,13,21,.72) 0%, rgba(3,13,21,.32) 52%, rgba(3,13,21,.08) 100%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: var(--header-h); }
.hero-copy { width: min(760px, 75%); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 800; }
.eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--accent); }
.hero h1, .hero-title { margin: 0; max-width: 760px; font-size: clamp(2.85rem, 6vw, 5.85rem); line-height: .98; letter-spacing: -.045em; font-weight: 830; }
.hero p { max-width: 650px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: rgba(255,255,255,.88); margin: 25px 0 32px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 2px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: #f2862f; }
.btn-outline { border-color: rgba(255,255,255,.72); color: #fff; background: rgba(10,20,30,.15); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-dark { background: var(--brand-surface); color: #fff; }
.btn-dark:hover { background: var(--brand-hover); }
.hero-dots { position: absolute; z-index: 8; right: max(28px, calc((100vw - 1180px)/2)); bottom: 54px; display: flex; gap: 10px; }
.hero-dot { width: 44px; height: 24px; border: 0; padding: 0; position: relative; background: transparent; cursor: pointer; }
.hero-dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); background: rgba(255,255,255,.38); }
.hero-dot[aria-current="true"]::after { background: var(--accent); }
.scroll-cue { position: absolute; z-index: 8; left: 50%; bottom: 30px; transform: translateX(-50%); color: #fff; text-decoration: none; display: grid; place-items: center; gap: 7px; text-transform: uppercase; letter-spacing: .18em; font-size: .66rem; font-weight: 800; }
.scroll-cue__line { width: 1px; height: 44px; background: rgba(255,255,255,.42); overflow: hidden; position: relative; }
.scroll-cue__runner { position: absolute; left: 0; width: 1px; height: 18px; background: #fff; animation: mzScrollCueRunner 1.8s ease-in-out infinite; }
@keyframes mzScrollCueRunner { from { transform: translateY(-20px); } to { transform: translateY(48px); } }

/* General sections */
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-mist { background: var(--mist); }
.section-night { background: var(--night); color: #fff; }
.section-heading { max-width: 780px; margin-bottom: 46px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 5px 0 16px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-night .section-heading p { color: rgba(255,255,255,.72); }
.kicker { color: var(--brand-surface); text-transform: uppercase; letter-spacing: .16em; font-weight: 850; font-size: .75rem; }
.section-night .kicker { color: #78c7ed; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.intro-copy h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.04em; margin: 8px 0 26px; }
.intro-copy p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.stat { min-height: 170px; padding: 30px; background: var(--night); color: #fff; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2.35rem; line-height: 1; color: #8bd3f4; }
.stat span { margin-top: 10px; color: rgba(255,255,255,.74); }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-card { position: relative; min-height: 430px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #111; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.service-card:hover img { transform: scale(1.055); }
.service-card:hover::after { background: rgba(4,14,22,.70); }
.service-card::after { content: ""; position: absolute; inset: 0; background: rgba(4,14,22,.62); transition: background .35s ease; }
.service-card-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; color: #fff; text-align: center; }
.service-card h3 { margin: 0 0 6px; font-size: 1.45rem; }
.service-card p { margin: 0; color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.5; }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pill { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 760; }
.pill[aria-pressed="true"] { background: var(--brand-surface); border-color: var(--brand-surface); color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.gallery-trigger { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; cursor: pointer; position: relative; box-shadow: 0 12px 30px rgba(7,31,45,.1); }
.gallery-trigger img { width: 100%; aspect-ratio: 1.38; object-fit: cover; transition: transform .35s ease; }
.gallery-trigger:hover img { transform: scale(1.04); }
.gallery-trigger span { position: absolute; inset: auto 12px 12px; display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(5,24,35,.82); color: #fff; font-size: .78rem; font-weight: 750; }


.cta-band { position: relative; min-height: 570px; display: grid; place-items: center; color: #fff; overflow: hidden; background: var(--night) url('../images/hero/cta-orcamento-premium-v12.webp') center/cover fixed no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,12,18,.88), rgba(2,12,18,.42)); }
.cta-content { position: relative; z-index: 2; text-align: center; max-width: 1120px; padding: 80px 0; }
.cta-content h2 { font-size: clamp(2.3rem,4vw,3.6rem); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 20px; }
.cta-content p { color: rgba(255,255,255,.82); font-size: 1.13rem; margin: 0 0 30px; }

/* Inner pages */
.inner-hero { position: relative; min-height: 470px; padding-top: var(--header-h); display: flex; align-items: end; color: #fff; overflow: hidden; background: var(--night); }
.inner-hero picture, .inner-hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inner-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,15,23,.88), rgba(4,15,23,.28)); }
.inner-hero .container { position: relative; z-index: 2; padding-bottom: 62px; }
.inner-hero h1 { font-size: clamp(2.6rem,5vw,5.2rem); line-height: 1; letter-spacing: -.045em; margin: 8px 0 13px; }
.inner-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.8); font-size: 1.15rem; }
.content-grid { display: grid; grid-template-columns: 1fr 360px; gap: 70px; align-items: start; }
.prose h2 { font-size: 2rem; line-height: 1.15; margin: 1.8em 0 .55em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #4b5963; }
.prose a { color: var(--brand-surface); text-underline-offset: 3px; }
.side-card { background: var(--night); color: #fff; border-radius: var(--radius); padding: 30px; position: sticky; top: 118px; }
.side-card h2 { font-size: 1.45rem; margin-top: 0; }
.side-card p { color: rgba(255,255,255,.75); }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 50px; }
.value-card { padding: 30px; border: 1px solid var(--line); border-radius: 16px; }
.value-card strong { display: block; font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.catalog-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.catalog-card h2 { font-size: 1.25rem; margin: 0 0 10px; }
.catalog-card p { color: var(--muted); margin: 0; }
.download-panel { margin-top: 42px; padding: 38px; border-radius: var(--radius); background: var(--night); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.download-panel p { color: rgba(255,255,255,.72); margin: 5px 0 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; }
.contact-panel { background: var(--night); color: #fff; border-radius: var(--radius); padding: 38px; }
.contact-panel h2 { margin-top: 0; }
.contact-item { display: grid; grid-template-columns: 28px 1fr; gap: 15px; margin: 25px 0; }
.contact-item img { width: 25px; filter: brightness(0) invert(1); margin-top: 4px; }
.contact-item a { color: #fff; text-underline-offset: 4px; }
.call-note { display: block; color: rgba(255,255,255,.62); font-size: .75rem; line-height: 1.35; margin-top: 3px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 760; }
.field input, .field select { width: 100%; border: 1px solid #bdc9d0; border-radius: 10px; padding: 13px 14px; background: #fff; color: #17222a; }
.field textarea { width: 100%; min-height: 160px; resize: vertical; border: 1px solid #bdc9d0; border-radius: 10px; padding: 13px 14px; background: #fff; color: #17222a; }
.form-note { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.form-note a { color: var(--brand-surface); text-underline-offset: 3px; }
.form-status { grid-column: 1 / -1; min-height: 26px; font-weight: 700; color: var(--brand-surface); }

/* Dialog gallery */
.gallery-dialog { width: min(1120px, calc(100% - 28px)); max-height: calc(100vh - 28px); border: 0; border-radius: 18px; padding: 0; background: #07131c; color: #fff; box-shadow: 0 32px 100px rgba(0,0,0,.46); }
.gallery-dialog::backdrop { background: rgba(1,7,11,.86); backdrop-filter: blur(8px); }
.dialog-shell { display: grid; grid-template-rows: auto 1fr auto; min-height: min(86vh,860px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.dialog-top strong { font-size: 1rem; }
.dialog-close { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.45rem; cursor: pointer; }
.dialog-media { display: grid; place-items: center; min-height: 0; padding: 18px; }
.dialog-media img { max-width: 100%; max-height: 68vh; object-fit: contain; }
.dialog-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 15px 20px 20px; }
.dialog-controls button { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; }
.dialog-controls button:last-child { justify-self: end; }
.dialog-counter { color: rgba(255,255,255,.7); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--night); color: #fff; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr 1.05fr .95fr; gap: 0; }
.footer-col { min-width: 0; padding-inline: 30px; border-left: 1px solid rgba(255,255,255,.13); }
.footer-col:first-child { padding-left: 0; border-left: 0; }
.footer-logo-image { width: 225px; height: auto; margin-bottom: 20px; }
.footer-logo-image--monochrome { filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.66); max-width: 300px; }
.footer-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 22px; }
.footer-nav ul, .footer-legal ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-nav a, .footer-legal a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover { color: #fff; }
.footer-contact-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-bottom: 16px; }
.footer-contact-item img { width: 22px; filter: brightness(0) invert(1); opacity: .9; margin-top: 3px; }
.footer-contact-item a { color: #fff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
footer .footer-contact-item a[href^="tel:"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.footer-contact-item .call-note { color: rgba(255,255,255,.55); }
.legal-badge { display: inline-block; margin-top: 12px; background: transparent; }
.legal-badge__image { width: 120px; height: auto; background: transparent; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social svg { width: 21px; height: 21px; display: block; }
.social-link { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; text-decoration: none; font-size: .76rem; font-weight: 850; }
.footer-bottom { margin-top: 58px; border-top: 1px solid rgba(255,255,255,.12); }
.copyright { min-height: 74px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.62); text-align: center; }
.copyright a { color: rgba(255,255,255,.8); text-decoration: none; }

/* Legal pages */
.legal-prose { max-width: 900px; }
.legal-prose h2 { margin-top: 2em; font-size: 1.55rem; }
.legal-prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.legal-prose p, .legal-prose li { color: #4e5b64; }
.legal-prose a { color: var(--brand-surface); text-underline-offset: 3px; }


/* MWA RC5 — aviso informativo de cookies */
.cookie-notice {
  position: fixed;
  z-index: 1500;
  right: 1rem;
  bottom: 1rem;
  width: min(430px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.1rem 1.15rem;
  visibility: hidden;
  opacity: 0;
  color: #fff;
  background: linear-gradient(135deg, #033b57, #064b70);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .8rem;
  box-shadow: 0 1.25rem 3rem rgba(0,0,0,.28);
  transform: translateY(1rem);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.cookie-notice.is-visible { visibility: visible; opacity: 1; transform: none; }
.cookie-notice p { margin: 0; font-size: .9rem; line-height: 1.55; }
.cookie-notice a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice__actions { display: flex; justify-content: flex-end; margin-top: .85rem; }
.cookie-notice__actions button { min-width: 112px; min-height: 42px; padding: .55rem 1rem; border: 0; border-radius: 999px; background: #e16d12; color: #111; font-weight: 800; cursor: pointer; }
.cookie-notice__actions button:hover { background: #f2862f; }
/* Enquanto o aviso está visível, preservar os controlos críticos do hero. */
/* v1.1: controlos do slideshow ficam numa posição fixa e não desencadeiam CLS. */


@media (max-width: 1050px) {
  :root { --header-h: 80px; }
  .menu-toggle { display: block; z-index: 4; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    color: #fff;
    background: linear-gradient(90deg, #033b57 0%, #055f8c 50%, #033b57 100%);
    border-top: 1px solid rgba(255,255,255,.16);
    transform: translateY(-125%);
    opacity: 0;
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease;
    box-shadow: 0 15px 30px rgba(3,35,53,.28);
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { display: grid; gap: 0; width: var(--container); margin: 0 auto; padding: 16px 0 24px; }
  .nav-list a { min-height: 50px; border-bottom: 1px solid rgba(255,255,255,.16); }
  .nav-list a::after { display: none; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); row-gap: 42px; }
  .footer-col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .cookie-notice { right: 1rem; left: 1rem; bottom: 1rem; width: auto; text-align: center; }
  .cookie-notice__actions { justify-content: center; }
  /* O aviso é sobreposto e nunca modifica o layout do slide.
     Os indicadores mantêm-se acessíveis na zona superior em mobile. */
  .hero-dots { top: calc(var(--header-h) + 14px); bottom: auto; }
  .scroll-cue { opacity: 0; pointer-events: none; }
  :root { --container: min(100% - 28px, 1180px); --header-h: 76px; }
  body { font-size: 16px; }
  .brand { flex-basis: 205px; height: 56px; }
  .brand img { width: 190px; }
  .hero { min-height: 720px; height: 100svh; }
  .hero-shade { background: linear-gradient(180deg, rgba(3,13,21,.42), rgba(3,13,21,.82)); }
  .hero-content { align-items: end; padding-bottom: 118px; }
  .hero-copy { width: 100%; }
  .hero h1, .hero-title { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero p { font-size: 1rem; }
  .hero-dots { right: 20px; bottom: 84px; }
  .scroll-cue { left: 20px; transform: none; bottom: 24px; justify-items: start; }
  .section { padding: 76px 0; }
  .section-sm { padding: 58px 0; }
  .intro-grid, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .stats { gap: 12px; }
  .stat { min-height: 145px; padding: 22px; }
  .service-grid, .catalog-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 390px; }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .values-grid { grid-template-columns: 1fr; }
  .download-panel { align-items: flex-start; flex-direction: column; padding: 28px; }
  .cta-band { min-height: 520px; background-image: url('../images/hero/cta-orcamento-premium-v12-mobile.webp'); background-attachment: scroll; }
  .inner-hero { min-height: 410px; }
  .inner-hero .container { padding-bottom: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer-col, .footer-col:nth-child(odd) { padding: 0; border-left: 0; }
  .footer-logo-image { margin-inline: auto; }
  .footer-brand p { margin-inline: auto; }
  .footer-contact-item { grid-template-columns: 1fr; justify-items: center; }
  .footer-contact-item img { margin: 0; }
  .footer-social { justify-content: center; }
  .contact-form { grid-template-columns: 1fr; }
  .field.full, .form-note, .form-status { grid-column: 1; }
  .dialog-controls { grid-template-columns: 1fr 1fr; }
  .dialog-counter { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}

@media (max-width: 460px) {
  .brand { flex-basis: 174px; }
  .brand img { width: 166px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .button-row { display: grid; }
  .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cta-band { background-attachment: scroll; }
}


/* Lousacapotas Evolution v0.4 — Viaturas */
.vehicle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; align-items: stretch; }
.vehicle-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 14px 34px rgba(9,31,46,.08); }
.vehicle-card__image { display: block; aspect-ratio: 16/10; overflow: hidden; background: #0b3550; }
.vehicle-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vehicle-card__image:hover img { transform: scale(1.035); }
.vehicle-card__copy { padding: 27px; }
.vehicle-label { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: #e9f4fa; color: #084b70; font-size: .76rem; line-height: 1.45; font-weight: 800; letter-spacing: .01em; }
.vehicle-card h3 { font-size: 1.45rem; line-height: 1.16; margin: 17px 0 12px; }
.vehicle-card h3 a { text-decoration: none; }
.vehicle-card h3 a:hover { color: var(--brand-surface); }
.vehicle-card p { margin: 0 0 19px; color: var(--muted); }
.vehicle-more { color: var(--brand-surface); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.vehicle-disclaimer { font-size: .87rem; color: var(--muted); margin: 24px 0 0; }
.vehicle-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); margin: 0 0 26px; }
.vehicle-breadcrumb a { text-underline-offset: 3px; }
.inner-hero--vehicle { min-height: 410px; }
.vehicle-detail-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(310px,.85fr); gap: 36px; align-items: start; }
.vehicle-media { min-width: 0; }
.vehicle-photo-main { display: block; cursor: zoom-in; padding: 0; width: 100%; aspect-ratio: 16/10; border: 0; border-radius: 20px; overflow: hidden; background: #0b3550; }
.vehicle-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-thumbs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-top: 13px; }
.vehicle-thumb { width: 100%; padding: 0; aspect-ratio: 16/10; border: 3px solid transparent; background: #c9dce6; border-radius: 12px; overflow: hidden; cursor: pointer; }
.vehicle-thumb.is-selected { border-color: var(--accent); }
.vehicle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-media-note { color: var(--muted); font-size: .84rem; margin: 15px 0 0; }
.vehicle-sidebar { border-radius: 22px; padding: 30px; background: var(--mist); border: 1px solid var(--line); }
.vehicle-sidebar h2 { font-size: clamp(1.65rem,2.7vw,2.3rem); line-height: 1.12; margin: 16px 0; }
.vehicle-side-intro { color: var(--muted); margin: 0 0 22px; }
.vehicle-specs { margin: 0 0 27px; }
.vehicle-specs div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #d3dfe5; }
.vehicle-specs dt { font-weight: 700; color: #283944; }
.vehicle-specs dd { margin: 0; text-align: right; color: var(--muted); }
.vehicle-contact { width: 100%; text-align: center; }
.vehicle-contact-note { margin: 12px 0 0; font-size: .81rem; color: var(--muted); }
.vehicle-description { max-width: 820px; margin-top: 62px; }
.vehicle-description h2 { font-size: clamp(1.9rem,3vw,2.6rem); margin: 0 0 18px; line-height: 1.15; }
.vehicle-description p { color: var(--muted); }
.vehicle-return { margin-top: 36px; }
.vehicle-dialog { padding: 0; background: #0b1520; color: #fff; border: 1px solid #334e61; border-radius: 18px; max-width: min(1020px,calc(100% - 20px)); width: 100%; max-height: calc(100svh - 24px); overflow: auto; margin: auto; }
.vehicle-dialog:not([open]) { display: none; }
.vehicle-dialog::backdrop { background: rgba(2,11,20,.86); }
.vehicle-dialog__shell { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.vehicle-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #395065; padding: 12px 20px; }
.vehicle-dialog__close { border: 1px solid #536578; color: #fff; border-radius: 999px; width: 44px; height: 44px; background: transparent; cursor: pointer; font-size: 1.45rem; }
.vehicle-dialog__image { display: grid; place-items: center; min-height: 0; padding: 16px; }
.vehicle-dialog__image img { max-width: 100%; max-height: 66svh; width: auto; object-fit: contain; }
.vehicle-dialog__bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px 18px; }
.vehicle-dialog__bottom button { border: 1px solid #536578; background: #1d3042; color: #fff; border-radius: 999px; min-height: 44px; padding: 8px 14px; cursor: pointer; }
/* MWA 1.21 RC3: botão mobile com moldura suave, adaptado à paleta do projeto.
   Só os pseudo-elementos do botão desenham o ícone. */
@media (max-width:1050px) {
 .site-header .mwa-menu-toggle { position: relative; display: block; flex: 0 0 48px; width: 48px; height: 48px; background: #0c496b; color: white; border: 1px solid #78b4cf; border-radius: 12px; padding: 0; appearance: none; }
 .site-header .mwa-menu-toggle:hover { background: #075a85; }
 .site-header .mwa-menu-toggle span { display: none; }
 .site-header .mwa-menu-toggle::before, .site-header .mwa-menu-toggle::after { content: ''; position: absolute; left: 50%; width: 22px; height: 2px; background: currentColor; border-radius: 2px; pointer-events: none; transform: translate(-50%,-50%); transition: top .2s ease,transform .2s ease,box-shadow .2s ease; }
 .site-header .mwa-menu-toggle::before { top: calc(50% - 6px); box-shadow: 0 6px 0 currentColor; }
 .site-header .mwa-menu-toggle::after { top: calc(50% + 6px); }
 .site-header .mwa-menu-toggle[aria-expanded=true]::before { top: 50%; box-shadow: none; transform: translate(-50%,-50%) rotate(45deg); }
 .site-header .mwa-menu-toggle[aria-expanded=true]::after { top: 50%; transform: translate(-50%,-50%) rotate(-45deg); }
 .vehicle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .vehicle-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width:650px) {
 .vehicle-grid { grid-template-columns: 1fr; }
 .vehicle-thumbs { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .vehicle-sidebar { padding: 24px; }
 .vehicle-dialog__bottom { flex-wrap: wrap; }
}

.vehicle-home-visual { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #0b3550; }
.vehicle-home-visual img { display: block; width: 100%; height: clamp(240px, 25vw, 330px); object-fit: cover; object-position: center center; }
.vehicle-home-visual small { display: block; padding: 7px 16px 11px; font-size: .77rem; color: #eef7fc; }

/* v0.7: altura controlada da fotografia na home e botão visível sobre fundo claro */
@media(max-width:650px){.vehicle-home-visual img{height:clamp(205px,57vw,270px)}}
.vehicle-return .btn-outline{border-color:var(--brand-surface);background:var(--brand-surface);color:#fff}
.vehicle-return .btn-outline:hover{background:var(--brand-hover);border-color:var(--brand-hover);color:#fff}
