/* Lápis Credível — estilos. Usa só os tokens de tokens.css */

/* ---------- Fontes (alojadas no site, licença OFL) ---------- */
@font-face {
  font-family: "Michroma"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/michroma-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: "Michroma"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/michroma-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../assets/fonts/saira-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: "Saira"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../assets/fonts/saira-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lang-pending body { visibility: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--gold-300); color: var(--ink-900); }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--fs-display); line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; margin: 0 0 var(--s-2); }
h4 { font-size: var(--fs-h4); line-height: 1.4; font-weight: 600; margin: 0 0 var(--s-2); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin-bottom: clamp(var(--s-7), 6vw, var(--s-8)); }
.section-head h2 { margin-top: var(--s-4); }
.section-head .lead { margin-top: var(--s-4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-display); font-size: var(--fs-eyebrow); line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); flex: none; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); max-width: 62ch; margin: 0; }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); line-height: 1.5; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  font: 600 1rem/1.1 var(--font-body); text-decoration: none; text-align: center;
  border: 1px solid transparent; background: none; color: var(--text);
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { border-color: var(--border-strong); color: var(--text); }
.btn--secondary:hover { background: var(--bg-alt); border-color: var(--text-3); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { padding: 0; min-height: 44px; color: var(--link); }
.btn--ghost:hover { text-decoration: underline; text-underline-offset: .2em; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--ghost.btn--sm { padding: 0; min-height: 44px; }
.btn .icon { width: 20px; height: 20px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--s-3); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--text); flex: none; }
.brand img { height: 40px; width: auto; }
.brand .logo-on-light { display: var(--logo-dark-display); }
.brand .logo-on-dark { display: var(--logo-light-display); }
.brand-word { font-family: var(--font-display); font-size: .9375rem; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.brand-word b { font-weight: 400; color: var(--gold-500); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: var(--s-1); }
.site-nav a {
  display: block; padding: 10px 7px; border-radius: var(--r-sm); white-space: nowrap;
  color: var(--text-2); font-weight: 500; font-size: .875rem; text-decoration: none;
}
.header-tools, .lang-switch { flex: none; }
.header-cta { white-space: nowrap; }
@media (min-width: 1361px) { .site-nav .nav-contact { display: none; } }
.site-header .container { width: min(100% - 2 * var(--gutter), 1320px); } /* o menu completo precisa de ~1280px */
.site-nav a:hover { color: var(--text); background: var(--bg-alt); }
.site-nav a[aria-current="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-nav .nav-extra { display: none; }

.header-tools { display: flex; align-items: center; gap: var(--s-2); }
.lang-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; }
.lang-switch button {
  min-width: 36px; min-height: 36px; padding: 0 8px; border: 0; background: none;
  font: 600 .8125rem/1 var(--font-body); letter-spacing: .06em; color: var(--text-3);
}
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--text); background: var(--bg-alt); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--text-2);
}
.icon-btn:hover { color: var(--text); background: var(--bg-alt); }
.theme-toggle .i-moon-use { display: inline; }
.theme-toggle .i-sun-use { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon-use { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun-use { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon-use { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun-use { display: inline; }
}
.menu-toggle { display: none; }

@media (max-width: 1360px) {
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-1);
    padding: var(--s-3) var(--gutter) var(--s-5);
    display: none; margin: 0;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav a[aria-current="true"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .site-nav .nav-extra { display: flex; gap: var(--s-3); align-items: center; padding-top: var(--s-4); }
  .header-tools { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-cta, .hide-sm { display: none !important; }
  .brand img { height: 34px; }
  .brand-word { font-size: .78rem; }
}
@media (max-width: 370px) { .brand-word { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(var(--s-7), 7vw, var(--s-9)) var(--section-y); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center; }
.hero h1 { margin: var(--s-5) 0 var(--s-5); max-width: 14ch; }
.hero .lead { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); list-style: none; color: var(--text-2); font-size: var(--fs-sm); }
.hero-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-facts .icon { width: 18px; height: 18px; color: var(--gold-500); }
.hero-facts a { color: inherit; text-decoration: none; font-weight: 600; }
.hero-facts a:hover { text-decoration: underline; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ill-wall); border: 1px solid var(--border);
}
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; width: 56px; height: 56px; pointer-events: none; z-index: 2; }
.hero-frame::before { left: 14px; top: 14px; border-left: 2px solid var(--gold-500); border-top: 2px solid var(--gold-500); }
.hero-frame::after { right: 14px; bottom: 14px; border-right: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500); }
.hero-svg { width: 100%; height: auto; }
.hero-svg .door { transition: transform 2.4s var(--ease-door); transform: translateY(0); }
.hero-svg.is-open .door { transform: translateY(-236px); }
.hero-svg .wave { opacity: .18; }
.hero-svg.is-signal .wave { animation: wave 1.2s var(--ease) 1; }
.hero-svg.is-signal .wave-2 { animation-delay: .15s; }
.hero-svg.is-signal .wave-3 { animation-delay: .3s; }
.hero-svg .ceiling-light { opacity: .25; transition: opacity 1.6s var(--ease) .6s; }
.hero-svg.is-open .ceiling-light { opacity: 1; }
@keyframes wave { 0% { opacity: .18; } 35% { opacity: 1; } 100% { opacity: .18; } }
.hero-remote { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); }
.hero-remote p { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}

/* ---------- Faixa de serviços ---------- */
.service-strip { border-block: 1px solid var(--border); }
.service-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1px; background: var(--border); }
.service-strip li { flex: 1 1 0; min-width: 0; background: var(--bg); }
.service-strip a {
  display: flex; align-items: center; gap: var(--s-3); height: 100%;
  padding: var(--s-5) var(--s-4); color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.3;
  transition: background-color var(--dur-1) var(--ease);
}
.service-strip a:hover { background: var(--bg-alt); }
.service-strip .icon { color: var(--gold-500); }
.service-strip .arrow { margin-left: auto; width: 18px; height: 18px; color: var(--text-3); transition: transform var(--dur-1) var(--ease); }
.service-strip a:hover .arrow { transform: translateX(3px); color: var(--text); }
.service-strip li { flex: 1 1 calc(25% - 1px); }
@media (max-width: 640px) { .service-strip li { flex: 1 1 calc(50% - 1px); } .service-strip a { padding: var(--s-4) var(--s-3); } }
@media (max-width: 340px) { .service-strip li { flex-basis: 100%; } }

/* ---------- Configurador ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(var(--s-5), 4vw, var(--s-7)); align-items: start; }
.cfg-preview { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.cfg-stage {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--ill-wall); aspect-ratio: 3 / 2;
}
.cfg-stage svg { width: 100%; height: 100%; }
.cfg-summary { margin-top: var(--s-4); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); }
.cfg-summary div { border-top: 1px solid var(--border); padding-top: var(--s-2); }
.cfg-summary dt { color: var(--text-3); }
.cfg-summary dd { margin: 0; font-weight: 600; }
.cfg-note { margin-top: var(--s-4); color: var(--text-3); font-size: var(--fs-sm); }
.cfg-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

.cfg-controls { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(var(--s-4), 3vw, var(--s-6)); }
.cfg-group { border: 0; margin: 0; padding: 0 0 var(--s-5); min-width: 0; }
.cfg-group + .cfg-group { border-top: 1px solid var(--border); padding-top: var(--s-5); }
.cfg-group legend { padding: 0; font-weight: 600; font-size: var(--fs-h4); display: flex; align-items: baseline; gap: var(--s-3); width: 100%; }
.cfg-group legend .step { font-family: var(--font-display); font-size: .75rem; color: var(--gold-600); letter-spacing: .08em; }
.cfg-group legend .current { margin-left: auto; font-weight: 500; font-size: var(--fs-sm); color: var(--text-3); text-align: right; }
.cfg-sub { display: block; font-size: var(--fs-sm); color: var(--text-3); margin: var(--s-3) 0 var(--s-2); }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: var(--r-md); margin-top: var(--s-3); flex-wrap: wrap; }
.seg button {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: none;
  font-weight: 500; font-size: var(--fs-sm); color: var(--text-2);
}
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(20 22 24 / .12); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-3); }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span {
  display: block; width: 38px; height: 38px; border-radius: var(--r-pill);
  border: 1px solid rgb(20 22 24 / .18); background: var(--c, #888);
  box-shadow: inset 0 -6px 10px rgb(0 0 0 / .12), inset 0 4px 8px rgb(255 255 255 / .18);
  cursor: pointer; transition: transform var(--dur-1) var(--ease);
}
.swatch span:hover { transform: scale(1.06); }
.swatch input:checked + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.swatch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.opt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label, .opt > span {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 10px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; cursor: pointer; background: var(--surface);
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.opt label:hover { border-color: var(--text-3); }
.opt input:checked + label { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.opt input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt input:disabled + label { opacity: .4; cursor: not-allowed; }
.opt svg { width: 100%; height: auto; border-radius: 4px; }
.opt .opt-hint { font-weight: 400; color: var(--text-3); font-size: .8125rem; }

.dims { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-3); }
.custom-ral { margin-top: var(--s-3); }

@media (max-width: 980px) {
  .cfg { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-5); }
  .cfg-preview { display: contents; }
  .cfg-stage { position: sticky; top: calc(var(--header-h) + var(--s-2)); z-index: 5; aspect-ratio: auto; height: min(38vh, 340px); box-shadow: var(--shadow-1); }
  .cfg-controls { order: 1; }
  .cfg-meta { order: 2; }
}
@media (max-width: 480px) { .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Campos de formulário ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); }
.field .req { color: var(--err); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  transition: border-color var(--dur-1) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 44px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: var(--fs-sm); pointer-events: none; }
.field-error { color: var(--err); font-size: var(--fs-sm); font-weight: 500; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold-500); flex: none; cursor: pointer; }

/* ---------- Portões e vedações ---------- */
.gates-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.gates-toolbar .label { font-weight: 600; }
.gates-toolbar .seg { margin-top: 0; }
.gate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.gate-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.gate-art { background: var(--ill-wall); border-bottom: 1px solid var(--border); position: relative; }
.gate-art svg { width: 100%; height: auto; }
.gate-body { padding: var(--s-4) var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.gate-body p { color: var(--text-2); font-size: .9375rem; margin: 0; }
.gate-body .btn { align-self: flex-start; margin-top: auto; }
.gate-svg .leaf, .gate-svg .slider { transition: transform 1.1s var(--ease-door); transform-box: fill-box; }
.gate-svg .leaf-l { transform-origin: left center; }
.gate-svg .leaf-r { transform-origin: right center; }
.gate-card.is-open .leaf-l { transform: scaleX(.2) skewY(-10deg); }
.gate-card.is-open .leaf-r { transform: scaleX(.2) skewY(10deg); }
.gate-card.is-open .slider { transform: translateX(var(--slide, 150px)); }
.gate-svg .gw { opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.gate-card.is-open .gw { opacity: 1; }
@media (hover: hover) {
  .gate-card:hover .leaf-l { transform: scaleX(.2) skewY(-10deg); }
  .gate-card:hover .leaf-r { transform: scaleX(.2) skewY(10deg); }
  .gate-card:hover .slider { transform: translateX(var(--slide, 150px)); }
  .gate-card:hover .gw { opacity: 1; }
}
.facets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.facet { border-top: 2px solid var(--text); padding-top: var(--s-3); }
.facet h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 600; }
.facet ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; background: var(--surface); }

.fences { margin-top: clamp(var(--s-8), 8vw, var(--s-9)); }
.fences-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-4); margin-bottom: var(--s-5); }
.fences-head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); margin: 0; }
.fences-head p { margin: 0; color: var(--text-2); max-width: 48ch; }
.fence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.fence { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.fence .gate-art svg { aspect-ratio: 2 / 1; }
.fence div:last-child { padding: var(--s-3) var(--s-4) var(--s-4); }
.fence h4 { margin: 0 0 2px; }
.fence p { margin: 0; color: var(--text-2); font-size: .9375rem; }
@media (max-width: 1080px) {
  .gate-grid, .fence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .facets { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .gate-grid { grid-template-columns: 1fr; }
  .fence-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
}

/* ---------- Automatismos ---------- */
.auto-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-bottom: var(--s-6); }
.auto-group h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 600; padding-bottom: var(--s-2); border-bottom: 2px solid var(--text); margin-bottom: var(--s-1); }
.auto-group ul { list-style: none; }
.auto-btn {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 44px;
  padding: 8px 10px 8px 8px; border: 0; border-bottom: 1px solid var(--border); background: none;
  text-align: left; font-weight: 500; color: var(--text-2); border-radius: 0;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.auto-btn .icon { width: 22px; height: 22px; color: var(--text-3); }
.auto-btn:hover { background: var(--bg-alt); color: var(--text); }
.auto-btn[aria-pressed="true"] { color: var(--text); background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.auto-btn[aria-pressed="true"] .icon { color: var(--gold-500); }
.auto-select { display: none; margin-bottom: var(--s-5); }
.auto-panels { position: relative; }
.auto-panel {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(var(--s-5), 4vw, var(--s-7));
  padding: clamp(var(--s-5), 4vw, var(--s-7)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  scroll-margin-top: calc(var(--header-h) + var(--s-5));
}
.js .auto-panel:not(.is-active) { display: none; }
.no-js .auto-panel + .auto-panel { margin-top: var(--s-4); }
.auto-panel .tile { aspect-ratio: 1; border-radius: var(--r-md); background: var(--bg-alt); display: grid; place-items: center; color: var(--gold-500); position: relative; }
.auto-panel .tile .icon { width: 84px; height: 84px; stroke-width: 1.1; }
.auto-panel .tile::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--border); border-radius: 6px; pointer-events: none; }
.auto-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.25; margin-bottom: var(--s-4); }
.auto-panel p { color: var(--text-2); max-width: 60ch; }
.models { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-4) 0 var(--s-5); }
.models dt { font-size: var(--fs-sm); color: var(--text-3); margin-right: var(--s-2); width: 100%; }
.models dd { margin: 0; }
.models .chip { font-family: var(--font-display); font-size: .75rem; letter-spacing: .06em; }
.auto-note { margin-top: var(--s-5); color: var(--text-3); font-size: var(--fs-sm); }
@media (max-width: 1000px) { .auto-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .auto-picker { display: none; }
  .auto-select { display: block; }
  .no-js .auto-picker { display: grid; grid-template-columns: 1fr; }
  .auto-panel { grid-template-columns: 1fr; }
  .auto-panel .tile { aspect-ratio: auto; height: 120px; }
  .auto-panel .tile .icon { width: 64px; height: 64px; }
}

.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }

/* ---------- Pérgolas e guarda-sóis ---------- */
.pergola { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center; }
.pergola-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.pergola-art { background: var(--ill-wall); }
.pergola-art svg { width: 100%; height: auto; }
.pergola-control { padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px solid var(--border); }
.pergola-control-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-2); }
.pergola-control label { font-weight: 600; }
.pergola-control output { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--link); }
.range-row { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-3); }
.range-row input { flex: 1; min-width: 0; height: 32px; accent-color: var(--gold-500); cursor: pointer; }
.curtain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center; margin-top: clamp(var(--s-8), 8vw, var(--s-9)); scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.curtain-info > p { color: var(--text-2); }
.curtain-types { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: var(--s-5) 0 var(--s-2); }
.curtain-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); }
.curtain-card h4 { margin-bottom: 2px; }
.curtain-card > p { margin-bottom: var(--s-3); }
.curtain-info .models { margin: var(--s-4) 0 var(--s-5); }
.curtain-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.curtain-art { background: var(--ill-wall); }
.curtain-art svg { width: 100%; height: auto; }
.curtain-control { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); }
.curtain-control p { margin: 0; }
.curtain-control .btn, .hero-remote .btn { white-space: nowrap; flex: none; }
.cv .cv-fabric { transition: transform 2.6s var(--ease-door); }
.cv.is-down .cv-fabric { transform: translateY(208px); }
.cv .cv-shade { transition: opacity 1.8s var(--ease) .6s; }
.cv.is-down .cv-shade { opacity: .2; }
.cv .cv-waves { opacity: 0; }
.cv.is-signal .cv-waves { animation: accwave 1s var(--ease) 1; }
@media (max-width: 980px) { .curtain { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .curtain-types { grid-template-columns: 1fr; } }
.pergola-info h3, .parasol-body h3, .curtain-info h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.25; margin-bottom: var(--s-4); }
.pergola-info > p { color: var(--text-2); margin-bottom: var(--s-6); }
.pergola-info .feature-list { gap: var(--s-5) var(--s-5); }
.feature-list h4 { font-size: var(--fs-h4); margin: 6px 0 4px; }
.parasol {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: var(--s-6); align-items: center;
  margin-top: var(--s-6); padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.parasol-art { background: var(--ill-wall); border-radius: var(--r-md); overflow: hidden; }
.parasol-art svg { width: 100%; height: auto; }
.parasol-body h3 { font-size: 1.375rem; margin-bottom: var(--s-2); }
.parasol-body p { color: var(--text-2); margin-bottom: var(--s-3); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 980px) {
  .pergola { grid-template-columns: 1fr; }
  .parasol { grid-template-columns: 200px minmax(0, 1fr); }
  .parasol > .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) { .parasol { grid-template-columns: 1fr; } }

/* ---------- Controlo de acessos ---------- */
.access-demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.access-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.access-toolbar .label { font-weight: 600; }
.access-toolbar .seg { margin-top: 0; }
.access-toolbar > .btn { margin-left: auto; }
.access-stage { background: var(--ill-wall); }
.access-stage svg { width: 100%; height: auto; }
.access-status { margin: 0; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); min-height: 52px; display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.access-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.acc-loop.on { stroke: #d9b866 !important; fill: rgb(217 184 102 / .22); stroke-dasharray: none; }
#acc-led.on { fill: #d9b866 !important; filter: drop-shadow(0 0 3px #d9b866); }
.acc-waves { opacity: 0; }
.acc-waves.on { animation: accwave 1s var(--ease) 2; }
@keyframes accwave { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
.access-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.access-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-5); }
.access-card .icon-wrap { width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--r-md); display: grid; place-items: center; color: var(--link); margin-bottom: var(--s-4); }
.access-card p { color: var(--text-2); }
.access-card .models { margin: var(--s-4) 0 0; }
.ticks { list-style: none; display: grid; gap: var(--s-2); }
.ticks li { position: relative; padding-left: 26px; font-size: .9375rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 11px; height: 6px; border-left: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500); transform: rotate(-45deg); }
@media (max-width: 1000px) { .access-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .access-cards { grid-template-columns: 1fr; }
  .access-toolbar > .btn { margin-left: 0; }
  .access-toolbar { padding: var(--s-4); }
}

/* ---------- Videovigilância (faixa escura) ---------- */
.section--dark {
  background: var(--ink-900); color: #eceeef;
  --text: #eceeef; --text-2: #c2c6ca; --text-3: var(--ink-400); --border: var(--ink-700); --border-strong: #4b5157;
  --link: var(--gold-400); --surface: var(--ink-800); --bg-alt: var(--ink-800); --focus: var(--gold-400);
}
:root[data-theme="dark"] .section--dark { background: #101214; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section--dark { background: #101214; } }
.cctv { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(var(--s-6), 6vw, var(--s-9)); align-items: center; }
.cctv .section-head { margin-bottom: var(--s-6); }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); }
.feature-list .icon-wrap { width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: var(--r-md); display: grid; place-items: center; color: var(--link); }
.feature-list h3 { font-size: var(--fs-h4); margin: 6px 0 4px; }
.feature-list p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.feature-list .wide { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); position: relative; }
.feature-list .wide::before { content: ""; position: absolute; left: -1px; top: -1px; width: 28px; height: 28px; border-left: 2px solid var(--gold-500); border-top: 2px solid var(--gold-500); border-top-left-radius: var(--r-md); }
.phone-art { max-width: 340px; margin-inline: auto; }
.phone-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .35)); }
.rec-dot { animation: rec 1.6s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .2; } }
@media (max-width: 900px) {
  .cctv { grid-template-columns: 1fr; }
  .phone-art { max-width: 260px; order: -1; }
}
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Manutenção ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--r-md); width: fit-content; max-width: 100%; margin-bottom: var(--s-5); }
.section--alt .tabs, .section--alt .seg { background: var(--border); }
.tabs [role="tab"] {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: none;
  font-weight: 500; color: var(--text-2);
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgb(20 22 24 / .12); }
.plan { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-5); }
.plan-info, .plan-check { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(var(--s-5), 3vw, var(--s-6)); }
.plan-info h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.3; margin-bottom: var(--s-4); }
.plan-info p { color: var(--text-2); }
.freq { border: 0; padding: 0; margin: var(--s-5) 0; }
.freq legend { font-weight: 600; margin-bottom: var(--s-2); padding: 0; }
.freq .opt-grid { margin-top: 0; }
.freq .opt label { align-items: center; justify-content: center; text-align: center; min-height: 44px; }
.plan-check-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); }
.plan-check-head h4 { margin: 0; }
.plan-check-head output { font-size: var(--fs-sm); color: var(--text-3); }
.checklist { list-style: none; }
.checklist li { border-top: 1px solid var(--border); }
.checklist label { display: flex; gap: var(--s-3); align-items: flex-start; padding: 12px 0; cursor: pointer; line-height: 1.45; }
.checklist input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checklist .box {
  width: 22px; height: 22px; flex: none; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  display: grid; place-items: center; margin-top: 1px; transition: background-color var(--dur-1), border-color var(--dur-1);
}
.checklist .box svg { width: 16px; height: 16px; stroke: var(--on-accent); stroke-width: 2.4; fill: none; opacity: 0; transform: scale(.6); transition: opacity var(--dur-1), transform var(--dur-1) var(--ease); }
.checklist input:checked + .box { background: var(--accent); border-color: var(--accent); }
.checklist input:checked + .box svg { opacity: 1; transform: none; }
.checklist input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.checklist input:not(:checked) ~ .txt { color: var(--text-3); }
.repair {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  margin-top: var(--s-5); padding: var(--s-5); border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
}
.repair p { margin: 0; max-width: 60ch; }
.repair strong { font-weight: 600; }
.repair-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
@media (max-width: 900px) { .plan { grid-template-columns: 1fr; } }

/* ---------- Trabalhos (galeria de fotografias) ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.work { margin: 0; }
.work--pair { grid-column: span 2; }
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); } /* mesmo intervalo da grelha: as fotos alinham com as colunas */
@media (max-width: 560px) { .work-pair { gap: var(--s-2); } }
.work-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--surface); }
.work-img img { width: 100%; height: 100%; object-fit: cover; }
.work figcaption { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.45; }
.work-tag {
  position: absolute; left: var(--s-3); top: var(--s-3); padding: 4px 10px; border-radius: 999px;
  background: rgb(20 22 24 / .8); color: #eceeef; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.work-tag--after { background: var(--gold-500); color: var(--ink-900); }
.work-more {
  grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-3);
  padding: clamp(var(--s-5), 3vw, var(--s-6)); border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
}
.work-more > .icon { width: 28px; height: 28px; color: var(--link); }
.work-more h3 { margin: 0; }
.work-more p { margin: 0; color: var(--text-2); max-width: 52ch; }
.work-more-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
@media (max-width: 900px) {
  .works { grid-template-columns: 1fr 1fr; }
  .work-more { grid-column: auto; }
}
@media (max-width: 560px) {
  .works { grid-template-columns: 1fr; }
  .work--pair { grid-column: auto; }
}
@media (max-width: 560px) { .freq .opt-grid { grid-template-columns: 1fr 1fr; } .tabs { width: 100%; } .tabs [role="tab"] { flex: 1 1 auto; padding: 0 10px; } }

/* ---------- Como trabalhamos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); counter-reset: step; }
.steps li { position: relative; padding-top: var(--s-7); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-600);
  background: var(--bg); padding-right: var(--s-3);
}
.steps li::after { content: ""; position: absolute; top: 13px; left: 0; right: calc(-1 * var(--s-5)); height: 1px; background: var(--border-strong); z-index: -1; }
.steps li:last-child::after { right: 0; }
.steps h3 { font-size: var(--fs-h3); }
.steps p { color: var(--text-2); margin: 0; }
.steps { position: relative; z-index: 0; }
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); margin-top: clamp(var(--s-8), 8vw, var(--s-9)); }
.faq h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.25; }
.faq-intro p { color: var(--text-2); margin-top: var(--s-4); }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0; cursor: pointer; font-weight: 600; font-size: 1.0625rem; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 20px; height: 20px; color: var(--text-3); transition: transform var(--dur-2) var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); color: var(--gold-500); }
.faq-list summary:hover { color: var(--link); }
.faq-list .answer { padding: 0 0 var(--s-5); color: var(--text-2); max-width: 64ch; }
.faq-list .answer p:last-child { margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s-7); }
  .steps li:nth-child(2)::after { right: 0; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .steps li { padding-top: 0; padding-left: 64px; }
  .steps li::before { top: 2px; }
}

/* ---------- Contactos ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(var(--s-5), 4vw, var(--s-7)); align-items: start; }
.contact-card { background: var(--ink-900); color: #eceeef; border-radius: var(--r-lg); padding: clamp(var(--s-5), 3vw, var(--s-6)); position: relative; overflow: hidden;
  --text-2: #c2c6ca; --text-3: var(--ink-400); --link: var(--gold-400); --border: var(--ink-700); --focus: var(--gold-400); }
.contact-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-right: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500); opacity: .5; pointer-events: none; }
.contact-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; margin-bottom: var(--s-5); }
.contact-list { list-style: none; display: grid; gap: var(--s-4); }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; }
.contact-list .icon { color: var(--gold-400); margin-top: 2px; }
.contact-list .k { display: block; font-size: var(--fs-sm); color: var(--text-3); }
.contact-list a, .contact-list .v { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.0625rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .note { display: block; font-size: .8125rem; color: var(--text-3); }
.contact-card .btn { margin-top: var(--s-5); width: 100%; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(var(--s-5), 3vw, var(--s-6)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid .full { grid-column: 1 / -1; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--s-2); border: 0; padding: 0; margin: 0; }
.radio-row legend { font-weight: 600; font-size: var(--fs-sm); padding: 0; margin-bottom: 6px; }
.radio-row .opt label { flex-direction: row; align-items: center; min-height: 44px; padding: 0 14px; }
.config-attach { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); background: var(--bg-alt); }
.config-attach-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); font-weight: 600; font-size: var(--fs-sm); }
.config-attach pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: var(--fs-sm); color: var(--text-2); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-2); }
.form-status { font-size: var(--fs-sm); font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-status a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* Campo-armadilha para robôs: fora do ecrã e fora da ordem de tabulação */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink-900); color: var(--ink-400); padding-block: var(--s-8) var(--s-6); font-size: .9375rem;
  --link: var(--gold-400); --focus: var(--gold-400); }
:root[data-theme="dark"] .site-footer { background: #0f1112; border-top: 1px solid var(--ink-800); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #0f1112; border-top: 1px solid var(--ink-800); } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); }
.footer-brand img { height: 92px; width: auto; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .12em; color: #eceeef; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--ink-300); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink-700); border-radius: var(--r-sm); }
.social a:hover { border-color: var(--gold-500); color: var(--gold-400); }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--ink-700); display: grid; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.6; }
.footer-legal p { margin: 0; max-width: 110ch; }
.footer-legal a { color: var(--ink-300); text-decoration: underline; }
.lre { display: inline-flex; align-items: center; gap: var(--s-2); padding: 6px 12px; border: 1px solid var(--ink-600); border-radius: var(--r-sm); color: #eceeef !important; text-decoration: none !important; font-weight: 600; }
.lre:hover { border-color: var(--gold-500); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-5); font-size: var(--fs-sm); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand img { height: 76px; } }

/* ---------- Flutuantes ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px;
  border-radius: var(--r-pill); background: var(--wa); color: var(--white); text-decoration: none; font-weight: 600;
  box-shadow: var(--shadow-2); transition: background-color var(--dur-1), transform var(--dur-1) var(--ease);
}
.wa-float:hover { background: var(--wa-hover); transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }
.action-bar { display: none; }
@media (max-width: 640px) {
  .wa-float { display: none; }
  body { padding-bottom: 68px; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--border); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 64px; background: var(--bg); color: var(--text); text-decoration: none; font-size: .8125rem; font-weight: 600;
  }
  .action-bar a .icon { width: 22px; height: 22px; }
  .action-bar .ab-wa .icon { color: var(--wa); }
  :root[data-theme="dark"] .action-bar .ab-wa .icon { color: #3fbf6f; }
  .action-bar .ab-quote { background: var(--accent); color: var(--on-accent); }
}

.cookie-note {
  position: fixed; left: 20px; bottom: 20px; z-index: 45; max-width: 420px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); padding: var(--s-5);
}
.cookie-note p { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-4); }
.cookie-note strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: var(--s-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
@media (max-width: 640px) { .cookie-note { left: 12px; right: 12px; bottom: 80px; max-width: none; } }

/* O plano gratuito do Netlify mostra um selo fixo no canto inferior direito (~56px de altura com a margem)
   que não se pode esconder. Quando ele existe (classe posta pelo main.js), os nossos botões sobem para cima dele. */
.has-host-badge .wa-float { bottom: 76px; }
@media (max-width: 640px) {
  .has-host-badge body { padding-bottom: 136px; }
  .has-host-badge .action-bar {
    left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); padding-bottom: 0;
    border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2);
  }
  .has-host-badge .action-bar a { min-height: 56px; }
  .has-host-badge .cookie-note { bottom: 136px; }
}

/* ---------- Revelação ao fazer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Páginas legais ---------- */
.legal { padding-block: clamp(var(--s-7), 6vw, var(--s-9)); }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem); margin: var(--s-4) 0 var(--s-3); }
.legal .updated { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: var(--s-7); }
.legal h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; letter-spacing: 0; margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 1.25rem; margin-bottom: var(--s-4); display: grid; gap: var(--s-2); }
.legal table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0; font-size: var(--fs-sm); }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; background: var(--bg-alt); }
.legal .id-box { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: var(--s-4) var(--s-5); background: var(--surface); }
.legal .id-box p { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; font-weight: 600; }
.back-link .icon { transform: rotate(180deg); width: 18px; height: 18px; }
.ph { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .wa-float, .action-bar, .cookie-note, .hero-visual, .cfg-controls { display: none !important; }
  body { background: #fff; color: #000; }
}
