/* ==========================================================================
   Serviços Elétricos · Folha de estilos principal
   Conceito: "Quadro elétrico", industrial premium, fundos escuros,
   acentos amarelos usados com intenção, etiquetas técnicas tipo disjuntor.
   Mobile-first: estilos base = telemóvel; media queries alargam.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SISTEMA DE DESIGN (variáveis)
   -------------------------------------------------------------------------- */
:root {
  /* Cores */
  --c-yellow: #FACC15;        /* primária: CTAs, destaques */
  --c-yellow-hi: #EAB308;     /* hover */
  --c-yellow-deep: #E0A800;   /* dourado do logótipo */
  --c-yellow-ink: #8A6400;    /* amarelo legível sobre fundo claro (texto pequeno) */
  --c-black: #0B0B0B;
  --c-ink: #141414;
  --c-graphite: #1C1C1C;
  --c-graphite-2: #262626;
  --c-graphite-3: #333333;
  --c-light: #F5F5F5;
  --c-white: #FFFFFF;
  --c-text-dark: #EDEDED;     /* texto em fundo escuro */
  --c-muted-dark: #A8A8A8;    /* secundário em fundo escuro (contraste ≥ 7:1) */
  --c-text-light: #141414;    /* texto em fundo claro */
  --c-muted-light: #555555;   /* secundário em fundo claro (contraste ≥ 7:1) */
  --c-line-dark: rgba(255, 255, 255, .09);
  --c-line-light: rgba(0, 0, 0, .1);
  --c-error: #E5484D;
  --c-success: #2FB36B;

  /* Tipografia */
  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-title: "Montserrat", "Segoe UI", system-ui, sans-serif;   /* títulos de secção */
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h3: clamp(1.05rem, 1rem + .25vw, 1.25rem);
  --fs-h2: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  --fs-h1: clamp(2.9rem, 1.9rem + 4.6vw, 5.9rem);

  /* Espaçamentos (escala de 4/8) */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3rem, 2rem + 3.5vw, 5rem);

  /* Raios, sombras, brilho */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .25);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .45);
  --glow: 0 10px 28px -4px rgba(250, 204, 21, .48);
  --glow-soft: 0 8px 22px -6px rgba(250, 204, 21, .22);

  /* Layout e movimento */
  --container: 1240px;
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --header-h: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .35s;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text-dark);
  background: var(--c-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-yellow); color: var(--c-black); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  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: fixed; top: -100px; left: var(--sp-4); z-index: 200;
  background: var(--c-yellow); color: var(--c-black); font-weight: 700;
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hl { color: var(--c-yellow); }

/* --------------------------------------------------------------------------
   3. COMPONENTES BASE: botões, etiquetas, títulos de secção
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  font-family: var(--f-body); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  background: var(--btn-bg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { --btn-bg: var(--c-yellow); color: var(--c-black); }
.btn-primary:hover { --btn-bg: var(--c-yellow-hi); box-shadow: var(--glow); transform: translateY(-2px); }

.btn-outline { color: var(--c-white); border-color: rgba(255, 255, 255, .2); }
.btn-outline .ico { fill: currentColor; stroke: none; }
.btn-outline:hover { border-color: var(--c-yellow); color: var(--c-yellow); box-shadow: var(--glow-soft); transform: translateY(-2px); }
.btn-outline:hover .ico { transform: none; }

.btn-dark { --btn-bg: var(--c-black); color: var(--c-yellow); }
.btn-dark:hover { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); transform: translateY(-2px); }
.btn-dark-outline { color: var(--c-black); border-color: rgba(0, 0, 0, .55); }
.btn-dark-outline:hover { background: rgba(0, 0, 0, .08); transform: translateY(-2px); }
.btn-dark-outline:hover .ico { transform: none; }

.btn-sm { min-height: 42px; padding: .6rem 1.25rem; font-size: .875rem; font-weight: 600; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.contact-form > * { min-width: 0; }

/* Etiqueta técnica, inspirada nas etiquetas dos disjuntores (C16, C20…) */
.tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-muted-light);
  margin-bottom: var(--sp-5);
}
.tag b {
  display: inline-grid; place-items: center;
  min-width: 2.6rem; padding: .2rem .45rem;
  font-weight: 500; color: var(--c-black); background: var(--c-yellow);
  border-radius: 3px; letter-spacing: .04em;
}
.tag-dark { color: var(--c-muted-dark); }

.section { padding-block: var(--section-y); position: relative; }
.section-light { background: var(--c-light); color: var(--c-text-light); }
.section-dark { background: var(--c-ink); color: var(--c-text-dark); }

/* Cabeçalho de secção: sempre centrado (etiqueta, título destacado, descrição discreta) */
.section-head { max-width: 780px; margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem); text-align: center; }
.section-head .tag { margin-bottom: var(--sp-4); }

.section-title {
  font-family: var(--f-title); font-weight: 800; font-size: var(--fs-h2);
  line-height: 1.1; letter-spacing: -.025em; color: var(--c-black);
  text-wrap: balance;
}
.section-dark .section-title, .solar .section-title { color: var(--c-white); }
/* traço amarelo por baixo do título, reforça a hierarquia */
.section-head .section-title::after {
  content: ""; display: block; width: 56px; height: 3px; margin: var(--sp-4) auto 0;
  background: var(--c-yellow); border-radius: 2px;
}
/* Subtítulo: frase por baixo do título, claramente mais pequena que o título */
.section-subtitle {
  margin-top: var(--sp-4);
  font-family: var(--f-body); font-weight: 600; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem);
  line-height: 1.25; color: #3A3A3A; text-wrap: balance;
}
.section-dark .section-subtitle, .solar .section-subtitle { color: #CFCFCF; }
.section-lead { margin: var(--sp-3) auto 0; font-size: var(--fs-base); line-height: 1.7; color: var(--c-muted-light); max-width: 58ch; }
.section-dark .section-lead { color: var(--c-muted-dark); }

/* --------------------------------------------------------------------------
   4. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: height var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
/* Fundo + desfoque numa camada própria (::before). Se o backdrop-filter estivesse
   no próprio header, o menu móvel (position: fixed) ficaria preso à altura do header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(11, 11, 11, .94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--c-line-dark), 0 10px 30px -15px rgba(0, 0, 0, .8);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.site-header.is-scrolled { --header-h: 66px; }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--c-white); flex: none; position: relative; z-index: 120; } /* fica visível por cima do menu móvel aberto */
.brand-logo { height: 58px; width: auto; transition: height var(--dur) var(--ease); filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.is-scrolled .brand-logo { height: 48px; }
.brand-logo-footer { height: 84px; }
@media (min-width: 1024px) { .brand-logo { height: 72px; } .is-scrolled .brand-logo { height: 54px; } }

.main-nav { margin-left: auto; }
.header-cta { display: none; }

/* Hamburger animado */
.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-content: center; gap: 5px;
  border: 1px solid var(--c-line-dark); position: relative; z-index: 120;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--c-white); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background-color var(--dur);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--c-yellow); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--c-yellow); }

/* Menu móvel: painel em ecrã inteiro */
@media (max-width: 1023.98px) {
  .main-nav {
    position: fixed; inset: 0; z-index: 110;
    background: radial-gradient(120% 60% at 100% 0%, rgba(255, 196, 0, .12), transparent 60%), var(--c-black);
    padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-6);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
  }
  .main-nav ul { counter-reset: nav; }
  .main-nav li { border-bottom: 1px solid var(--c-line-dark); counter-increment: nav; }
  .main-nav li a {
    display: flex; align-items: baseline; gap: var(--sp-3); padding: .9rem 0;
    font-family: var(--f-title); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em;
    color: var(--c-white); line-height: 1.2;
  }
  .main-nav li a::before {
    content: "0" counter(nav); font-family: var(--f-mono); font-size: .68rem; font-weight: 500;
    color: var(--c-yellow); letter-spacing: .08em;
  }
  .main-nav li a.is-active { color: var(--c-yellow); }
  .nav-cta-mobile { margin-top: var(--sp-6); }
  .nav-mobile-contact { margin-top: auto; padding-top: var(--sp-6); display: grid; gap: var(--sp-1); color: var(--c-muted-dark); font-size: var(--fs-sm); }
  .nav-mobile-contact a { color: var(--c-white); font-weight: 700; font-size: var(--fs-md); }
}

@media (min-width: 1024px) {
  .nav-toggle, .nav-cta-mobile, .nav-mobile-contact { display: none; }
  .main-nav ul { display: flex; gap: clamp(1rem, .2rem + 1.6vw, 2.2rem); }
  .main-nav ul a {
    position: relative; display: block; padding: .5rem 0;
    font-size: .875rem; font-weight: 500; color: #D4D4D4;
    transition: color var(--dur) var(--ease);
  }
  .main-nav ul a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--c-yellow); transform: scaleX(0); transform-origin: right;
    transition: transform var(--dur) var(--ease);
    box-shadow: 0 0 10px rgba(255, 196, 0, .7);
  }
  .main-nav ul a:hover, .main-nav ul a.is-active { color: var(--c-white); }
  .main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .header-cta { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--c-black);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 2rem + 4vw, 5rem));
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* Fundo: imagens em ecrã inteiro que alternam com fade + zoom lento */
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70% 50%);
  transform: scale(1.08); transition: transform 8s linear;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1); }
/* Gradiente escuro: forte à esquerda (texto), leve à direita (imagem) */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, .55) 0%, rgba(11, 11, 11, 0) 22%, rgba(11, 11, 11, 0) 55%, rgba(11, 11, 11, .95) 100%),
    linear-gradient(90deg, rgba(11, 11, 11, .94) 0%, rgba(11, 11, 11, .82) 35%, rgba(11, 11, 11, .35) 65%, rgba(11, 11, 11, .1) 100%);
}
@media (max-width: 767.98px) { /* telemóvel: o texto ocupa a largura toda, escurecer mais */
  .hero-overlay { background: linear-gradient(180deg, rgba(11, 11, 11, .78) 0%, rgba(11, 11, 11, .72) 50%, rgba(11, 11, 11, .95) 100%); }
}

.hero-grid { display: grid; align-items: center; }
.hero-copy { max-width: 760px; }

/* Etiqueta discreta em pílula */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: var(--sp-5);
  padding: .4rem .85rem .4rem .7rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .78rem; font-weight: 500; letter-spacing: .01em; color: #E5E5E5;
}
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-yellow); box-shadow: 0 0 0 3px rgba(250, 204, 21, .2); }

/* Título: Montserrat em letras normais, 2 linhas, tamanho contido */
.hero-title {
  font-family: var(--f-title); font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3.1rem);
  line-height: 1.12; letter-spacing: -.025em; color: var(--c-white);
  text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero-title .hl { display: block; color: var(--c-yellow); }
.hero-lead { margin-top: var(--sp-5); max-width: 44ch; font-size: 1.0625rem; line-height: 1.7; color: #CFCFCF; }
.hero-actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Indicadores dos slides */
.hero-dots { margin-top: var(--sp-6); display: flex; gap: var(--sp-2); }
.hero-dot { width: 34px; height: 24px; display: grid; place-items: center; }
.hero-dot::before { content: ""; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); transition: background-color var(--dur) var(--ease); }
.hero-dot:hover::before { background: rgba(255, 255, 255, .6); }
.hero-dot.is-active::before { background: var(--c-yellow); }

/* Telemóvel: letras um pouco mais pequenas e botões compactos numa só linha */
@media (max-width: 639.98px) {
  :root { --fs-md: 1rem; }
  body { font-size: 1rem; } /* 16px: tamanho mínimo recomendado para texto em mobile */
  .btn { font-size: .9375rem; min-height: 50px; padding: .8rem 1.15rem; gap: .5rem; }
  .btn .ico { width: 16px; height: 16px; }
  .btn-block, .solar .solar-copy .btn { width: 100%; white-space: nowrap; }
  .solar .solar-copy .btn { justify-content: center; text-align: center; }
}
@media (max-width: 359.98px) { /* telemóveis muito estreitos: deixa quebrar */
  .btn-block, .solar .solar-copy .btn { white-space: normal; }
}

/* Sobre Nós e Energia Solar no telemóvel: alinhados ao centro como as outras secções */
@media (max-width: 639.98px) {
  .about-copy, .solar-copy { text-align: center; }
  .about .about-copy > p:not(.tag):not(.section-subtitle), .solar .solar-copy > p:not(.tag):not(.section-subtitle) {
    font-size: 1rem; line-height: 1.65; margin-inline: auto; max-width: 36ch;
  }
  .about-copy .section-subtitle, .solar-copy .section-subtitle { margin-inline: auto; max-width: 28ch; }
  .values li { align-items: center; text-align: center; }
  .mission { text-align: left; }
  .solar-stats li { text-align: left; }
}

/* Hero no telemóvel: conteúdo centrado, título compacto, botões a toda a largura */
@media (max-width: 639.98px) {
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero-eyebrow { font-size: .75rem; margin-bottom: var(--sp-4); }
  .hero-title { font-size: clamp(1.75rem, 7.6vw, 2.125rem); line-height: 1.15; }
  .hero-lead { margin: var(--sp-4) auto 0; max-width: 34ch; font-size: 1rem; line-height: 1.6; }
  .hero-actions { flex-direction: column; gap: .65rem; margin-top: var(--sp-5); }
  .hero-actions .btn { width: 100%; min-height: 50px; }
  .hero-dots { justify-content: center; margin-top: var(--sp-5); }
  .trust-bar li { text-align: center; justify-items: center; padding: var(--sp-4) var(--sp-3); }
}
.js .hero .reveal { transition-duration: 1s; }

/* Barra de confiança */
.trust-bar {
  margin-top: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--c-line-dark); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  overflow: hidden;
}
.trust-bar li { padding: var(--sp-5) var(--sp-4); display: grid; gap: var(--sp-1); position: relative; }
.trust-bar li:nth-child(odd) { border-right: 1px solid var(--c-line-dark); }
.trust-bar li:nth-child(-n+2) { border-bottom: 1px solid var(--c-line-dark); }
.trust-bar strong { font-family: var(--f-title); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; color: var(--c-yellow); font-variant-numeric: tabular-nums; }
.trust-bar li > span { font-size: var(--fs-sm); color: var(--c-muted-dark); }

/* --------------------------------------------------------------------------
   6. SOBRE NÓS
   -------------------------------------------------------------------------- */
.about { background: var(--c-white); }
.about-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); align-items: center; }
.about-grid > *, .contact-grid > *, .hero-grid > *, .footer-grid > * { min-width: 0; } /* impede que conteúdo largo alargue a página */
.about-visual { position: relative; max-width: 560px; width: 100%; margin-inline: auto; padding: 0 0 var(--sp-6) var(--sp-5); }
.about-visual::before { /* esquadria amarela deslocada */
  content: ""; position: absolute; left: 0; top: var(--sp-5); width: 62%; height: 62%;
  border-left: 3px solid var(--c-yellow); border-top: 3px solid var(--c-yellow);
  border-top-left-radius: var(--r-sm);
}
.about-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-sm); box-shadow: var(--shadow-md); margin-top: var(--sp-6); margin-left: var(--sp-5); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(.92) contrast(1.04); }

.float-label {
  position: absolute; right: 0; bottom: var(--sp-7);
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-3);
  background: var(--c-black); color: var(--c-white); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}
.float-label svg { width: 40px; height: 40px; padding: 7px; border-radius: var(--r-sm); background: var(--c-yellow); fill: none; stroke: var(--c-black); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.float-label span { display: grid; line-height: 1.25; }
.float-label strong { font-family: var(--f-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.float-label small { font-size: .75rem; color: var(--c-muted-dark); }
@keyframes floaty { 50% { transform: translateY(-6px); } }

.about-years {
  position: absolute; right: 0; top: 0;
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); background: var(--c-yellow); color: var(--c-black); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.about-years strong { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-years span { font-size: .72rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }

.about-copy > p:not(.tag):not(.section-subtitle) { margin-top: var(--sp-5); color: var(--c-muted-light); font-size: var(--fs-md); max-width: 60ch; }
.about-copy .section-subtitle { margin-bottom: var(--sp-2); }

.values { margin-top: var(--sp-6); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.values li {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); background: var(--c-light); border-radius: var(--r-md);
  border: 1px solid var(--c-line-light); font-weight: 700; font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.values li:hover { border-color: var(--c-yellow); transform: translateY(-2px); }
.values svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--c-black); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.values .bolt, .why-item .bolt { stroke: var(--c-yellow-deep); }

.mission {
  margin-top: var(--sp-6); padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--c-yellow); background: var(--c-light); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.mission-label { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--c-yellow-ink); margin-bottom: var(--sp-2); }
.mission p:last-child { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.2; color: var(--c-text-light); }

/* --------------------------------------------------------------------------
   7. SERVIÇOS
   -------------------------------------------------------------------------- */
/* Secção clara: fundo branco, cartões cinzento-claro, ícones amarelos em quadrado preto */
.services { background: var(--c-light); }
.services-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }

.service-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-line-light); border-radius: var(--r-lg);
  transition: transform .45s var(--ease-out), border-color var(--dur) var(--ease), box-shadow .45s var(--ease-out), background-color var(--dur) var(--ease);
  overflow: hidden;
}
/* Hover discreto: elevação com sombra neutra */
.service-card:hover, .service-card:focus-within {
  transform: translateY(-4px);
  background: var(--c-white);
  border-color: rgba(0, 0, 0, .14);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .28);
}

.service-num { position: absolute; top: var(--sp-5); right: var(--sp-5); font-family: var(--f-mono); font-size: var(--fs-xs); color: #8A8A8A; letter-spacing: .08em; }
.service-icon {
  width: 56px; height: 56px; padding: 12px; margin-bottom: var(--sp-5);
  background: var(--c-black); border-radius: var(--r-md);
  fill: none; stroke: var(--c-yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease-out);
}
.service-card:hover .service-icon { transform: translateY(-3px) rotate(-4deg); }
.service-icon .bolt { stroke: var(--c-white); }
.service-card h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.12; text-transform: uppercase; letter-spacing: .01em; color: var(--c-text-light); }
.service-card p { margin-top: var(--sp-3); color: var(--c-muted-light); font-size: .95rem; flex: 1; }
/* Telemóvel: cartões compactos (ícone ao lado do título) para reduzir o scroll */
@media (max-width: 639.98px) {
  .service-card { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--sp-4); align-items: center; padding: var(--sp-5) var(--sp-4); }
  .service-icon { width: 48px; height: 48px; padding: 10px; margin: 0; grid-row: 1; grid-column: 1; }
  .service-card h3 { grid-row: 1; grid-column: 2; font-size: 1.02rem; }
  /* Tudo o resto ocupa a largura toda do cartão (não a coluna estreita do ícone) */
  .service-card > p, .service-card > .service-det { grid-column: 1 / -1; min-width: 0; }
  .service-card > p { margin-top: var(--sp-3); font-size: .92rem; }
  .service-num { display: none; }
  .services-grid { gap: var(--sp-3); }
}

/* --------------------------------------------------------------------------
   8. DESTAQUE SOLAR
   -------------------------------------------------------------------------- */
.solar { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); background: var(--c-black); }
.solar-bg { position: absolute; inset: 0; z-index: -2; }
.solar-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .32; filter: grayscale(.4) contrast(1.1); }
.solar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10, 10, 10, .97) 20%, rgba(10, 10, 10, .78) 55%, rgba(255, 196, 0, .28) 100%),
    radial-gradient(60% 80% at 100% 100%, rgba(255, 196, 0, .35), transparent 70%);
}
.solar-inner { display: grid; gap: var(--sp-7); align-items: center; }
.solar-title { font-family: var(--f-title); font-weight: 800; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.025em; color: var(--c-white); text-wrap: balance; }
.solar-copy > p:not(.tag):not(.section-subtitle) { margin-top: var(--sp-5); font-size: var(--fs-md); color: #CFCFCF; max-width: 54ch; }
.solar-copy .btn { margin-top: var(--sp-6); white-space: normal; text-align: left; }
.solar-stats { display: grid; gap: var(--sp-3); }
.solar-stats li {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  background: rgba(10, 10, 10, .55); border: 1px solid rgba(255, 196, 0, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.solar-stats strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); color: var(--c-yellow); line-height: 1; min-width: 6.2ch; }
.solar-stats span { font-size: var(--fs-sm); color: #D4D4D4; }
.solar-note { margin-top: var(--sp-5); font-size: var(--fs-xs); color: #8F8F8F; }

/* --------------------------------------------------------------------------
   9. PORQUÊ ESCOLHER-NOS
   -------------------------------------------------------------------------- */
.why { background: var(--c-white); }
.why-grid { display: grid; gap: 0; border-top: 1px solid var(--c-line-light); counter-reset: why; }
.why-item {
  position: relative; counter-increment: why;
  padding: var(--sp-6) var(--sp-2) var(--sp-6) 0;
  border-bottom: 1px solid var(--c-line-light);
  display: grid; grid-template-columns: 56px 1fr; column-gap: var(--sp-5); align-items: start;
}
.why-item::after {
  content: counter(why, decimal-leading-zero); position: absolute; right: 0; top: var(--sp-6);
  font-family: var(--f-mono); font-size: var(--fs-xs); color: #8A8A8A;
}
.why-item svg {
  grid-row: span 2; width: 56px; height: 56px; padding: 12px; border-radius: var(--r-md);
  background: var(--c-black); fill: none; stroke: var(--c-yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease-out), box-shadow var(--dur) var(--ease);
}
.why-item svg .bolt { stroke: var(--c-white); }
.why-item:hover svg { transform: rotate(-6deg) scale(1.06); box-shadow: var(--glow); }
.why-item h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h3); text-transform: uppercase; line-height: 1.1; padding-right: 2.5rem; }
.why-item p { margin-top: var(--sp-2); color: var(--c-muted-light); font-size: .95rem; }

/* --------------------------------------------------------------------------
   10. PROCESSO (timeline ligada por "cabo")
   -------------------------------------------------------------------------- */
.process { background: linear-gradient(180deg, var(--c-ink), var(--c-black)); overflow: hidden; }
.timeline { position: relative; display: grid; gap: var(--sp-6); padding-left: 0; }
.timeline-cable { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; background: rgba(255, 255, 255, .08); border-radius: 3px; }
.timeline-cable span {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, var(--c-yellow-deep), var(--c-yellow));
  box-shadow: 0 0 12px rgba(255, 196, 0, .6);
  transform: scaleY(0); transform-origin: top; transition: transform 2s var(--ease-out);
}
.timeline.is-visible .timeline-cable span { transform: scaleY(1); }

.step { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: var(--sp-5); }
.step-node {
  grid-row: span 3; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--c-graphite); border: 2px solid var(--c-graphite-3);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), background-color .5s var(--ease);
}
.step-node svg { width: 26px; height: 26px; fill: none; stroke: var(--c-muted-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease); }
.timeline.is-visible .step-node { border-color: var(--c-yellow); box-shadow: 0 0 0 6px rgba(255, 196, 0, .08), 0 0 20px rgba(255, 196, 0, .25); }
.timeline.is-visible .step-node svg { stroke: var(--c-yellow); }
.timeline.is-visible .step-node-final { background: var(--c-yellow); }
.timeline.is-visible .step-node-final svg { stroke: var(--c-black); }
/* acende em sequência */
.step:nth-child(2) .step-node, .step:nth-child(2) .step-node svg { transition-delay: .1s; }
.step:nth-child(3) .step-node, .step:nth-child(3) .step-node svg { transition-delay: .5s; }
.step:nth-child(4) .step-node, .step:nth-child(4) .step-node svg { transition-delay: .9s; }
.step:nth-child(5) .step-node, .step:nth-child(5) .step-node svg { transition-delay: 1.3s; }
.step:nth-child(6) .step-node, .step:nth-child(6) .step-node svg { transition-delay: 1.7s; }

.step-num { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--c-yellow); letter-spacing: .1em; padding-top: .3rem; }
.step h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h3); text-transform: uppercase; color: var(--c-white); line-height: 1.1; margin-top: .2rem; }
.step p { margin-top: var(--sp-2); color: var(--c-muted-dark); font-size: .95rem; max-width: 40ch; }

/* --------------------------------------------------------------------------
   11. PROJETOS
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-5); }
.filter {
  min-height: 42px; padding: .5rem 1.05rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--fs-sm); color: var(--c-text-light);
  background: var(--c-white); border: 1px solid var(--c-line-light);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.filter:hover { border-color: var(--c-black); }
.filter.is-active { background: var(--c-black); color: var(--c-yellow); border-color: var(--c-black); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.project { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.project.is-hiding { opacity: 0; transform: scale(.96); }
.project[hidden] { display: none; }

/* Paginação dos projetos */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-6); }
.pagination[hidden] { display: none; }
.pag-btn {
  min-width: 44px; height: 44px; padding: 0 .75rem; display: inline-grid; place-items: center;
  border-radius: var(--r-pill); border: 1px solid var(--c-line-light); background: var(--c-white);
  color: var(--c-text-light); font-weight: 700; font-size: var(--fs-sm); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.pag-btn:hover:not(:disabled):not(.is-active) { border-color: var(--c-text-light); }
.pag-btn.is-active { background: var(--c-black); border-color: var(--c-black); color: var(--c-yellow); }
.pag-btn:disabled { opacity: .35; cursor: default; }
.pag-btn:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.pag-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pag-gap { min-width: 24px; text-align: center; color: var(--c-muted-light); font-weight: 700; }
.pag-info { flex-basis: 100%; text-align: center; margin: var(--sp-1) 0 0; font-size: var(--fs-xs); color: var(--c-muted-light); letter-spacing: .04em; }
.project-btn {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: var(--r-md); background: var(--c-graphite); text-align: left;
}
.project-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .5s var(--ease); }
.project-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 10, .88));
  transition: opacity var(--dur) var(--ease);
}
.project-btn:hover img, .project-btn:focus-visible img { transform: scale(1.06); }
.project-meta { position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3); z-index: 1; display: grid; gap: 2px; color: var(--c-white); }
.project-cat { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-yellow); }
.project-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, .9rem + .5vw, 1.3rem); line-height: 1.1; text-transform: uppercase; }
.project-zoom {
  position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-yellow); opacity: 0; transform: scale(.7);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.project-zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--c-black); stroke-width: 2.4; stroke-linecap: round; }
.project-btn:hover .project-zoom, .project-btn:focus-visible .project-zoom { opacity: 1; transform: scale(1); }
.project-btn:focus-visible { outline-offset: 4px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3);
  padding: var(--sp-7) var(--sp-3);
  background: rgba(5, 5, 5, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { display: grid; justify-items: center; gap: var(--sp-3); min-width: 0; }
/* Galeria: n.º de fotos no cartão e fila de miniaturas na ampliação */
.project-count {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 1;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: var(--r-pill);
  background: rgba(11, 11, 11, .72); color: var(--c-white); font-weight: 700; font-size: .78rem; line-height: 1;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .14);
}
.project-count svg { width: 14px; height: 14px; fill: none; stroke: var(--c-yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-strip { display: flex; gap: 8px; max-width: min(92vw, 760px); overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
.lb-strip[hidden] { display: none; }
.lb-thumb {
  flex: none; width: 58px; height: 72px; border-radius: var(--r-sm); overflow: hidden; padding: 0;
  border: 2px solid transparent; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: .9; }
.lb-thumb.is-active { opacity: 1; border-color: var(--c-yellow); transform: translateY(-2px); }
.lb-thumb:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; }
@media (max-width: 640px) { .lb-thumb { width: 46px; height: 58px; } }
.lb-figure:has(.lb-strip:not([hidden])) .lb-img { max-height: 66vh; max-height: 66svh; }

/* Telemóvel: a foto ampliada usa a largura toda; as setas passam para baixo */
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 72px var(--sp-3) 92px; }
  .lb-figure { grid-column: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: var(--sp-5); }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-img { max-height: 64vh; max-height: 64svh; }
  .lb-figure:has(.lb-strip:not([hidden])) .lb-img { max-height: 56vh; max-height: 56svh; }
}

.lb-img { max-height: 78vh; max-height: 78svh; width: auto; max-width: 100%; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); object-fit: contain; }
.lb-caption { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted-dark); text-align: center; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--c-line-dark); color: var(--c-white);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: var(--c-yellow); color: var(--c-black); }
.lb-close { position: absolute; top: var(--sp-4); right: var(--sp-4); }

/* --------------------------------------------------------------------------
   12. TESTEMUNHOS
   -------------------------------------------------------------------------- */
/* ---------- Testemunhos / avaliações Google (versão premium) ---------- */
.reviews { position: relative; background: var(--c-black); overflow: hidden; isolation: isolate; }
.reviews::before { /* brilho amarelo discreto ao fundo */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 30%; width: min(1100px, 120vw); aspect-ratio: 2 / 1;
  transform: translateX(-50%); background: radial-gradient(closest-side, rgba(250, 204, 21, .08), transparent 70%); pointer-events: none;
}
.reviews::after { /* aspas gigantes decorativas */
  content: "\201C"; position: absolute; z-index: -1; right: 3%; top: -3.5rem;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(14rem, 10rem + 18vw, 30rem); line-height: 1; color: rgba(250, 204, 21, .045);
  pointer-events: none;
}

/* Resumo da nota */
.rv-summary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-5) var(--sp-6);
  max-width: 1040px; margin: 0 auto var(--sp-7); padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.rv-score { display: flex; align-items: center; gap: var(--sp-4); }
.rv-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.2rem, 2.6rem + 2vw, 4.4rem); line-height: .9; color: var(--c-white); letter-spacing: -.02em; }
.rv-score-meta { display: grid; gap: 6px; }
.rv-stars { position: relative; display: inline-block; line-height: 0; }
.rv-stars-bg, .rv-stars-fill { display: flex; gap: 3px; white-space: nowrap; }
.rv-stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.rv-stars svg { width: 22px; height: 22px; flex: none; stroke: none; }
.rv-stars-bg svg { fill: rgba(255, 255, 255, .16); }
.rv-stars-fill svg { fill: var(--c-yellow); filter: drop-shadow(0 0 6px rgba(250, 204, 21, .45)); }
.rv-count { font-size: var(--fs-sm); color: var(--c-muted-dark); }
.rv-badge { display: flex; align-items: center; gap: var(--sp-3); margin: 0; padding-left: var(--sp-6); border-left: 1px solid rgba(255, 255, 255, .1); color: var(--c-muted-dark); font-size: var(--fs-sm); line-height: 1.4; }
.rv-badge strong { color: var(--c-white); font-weight: 600; }
.rv-g { width: 30px; height: 30px; flex: none; padding: 5px; border-radius: 50%; background: #fff; }
.rv-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }

/* Trilho de cartões */
.rv-rail { position: relative; }
.rv-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--sp-5)) / 3);
  gap: var(--sp-5); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  align-items: start; /* um cartão expandido ("Ler mais") não estica os outros */
  padding: var(--sp-2) 2px var(--sp-5); margin: 0; list-style: none; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.rv-track.is-end { -webkit-mask-image: none; mask-image: none; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-track:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 4px; border-radius: var(--r-lg); }
.rv-card {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-5); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--c-graphite) 0%, #151515 100%);
  border: 1px solid rgba(255, 255, 255, .07); position: relative;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rv-card::before { /* aspa amarela no canto */
  content: "\201C"; position: absolute; right: var(--sp-5); bottom: -.6rem; font-family: var(--f-display); font-weight: 800;
  font-size: 6rem; line-height: 1; color: rgba(250, 204, 21, .09); pointer-events: none;
}
.rv-card:hover { transform: translateY(-4px); border-color: rgba(250, 204, 21, .35); box-shadow: 0 18px 40px -20px rgba(250, 204, 21, .25); }
.rv-head { display: flex; align-items: center; gap: var(--sp-3); }
.rv-av { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); background: var(--c-graphite-3); }
.rv-ini { display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff; letter-spacing: .02em; background: hsl(var(--h) 45% 32%); }
.rv-who { display: grid; min-width: 0; }
.rv-name { color: var(--c-white); font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.rv-name:hover { color: var(--c-yellow); }
.rv-sub { color: var(--c-muted-dark); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-g-sm { width: 26px; height: 26px; padding: 4px; margin-left: auto; }
.rv-card-stars { display: flex; gap: 3px; }
.rv-card-stars svg { width: 17px; height: 17px; fill: var(--c-yellow); stroke: none; }
.rv-card-stars svg.off { fill: rgba(255, 255, 255, .16); }
.rv-text { margin: 0; position: relative; z-index: 1; min-height: calc(.975rem * 1.7 * 6); /* altura uniforme: 6 linhas */ }
.rv-actions .btn .ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-text p {
  color: #DADADA; font-size: .975rem; line-height: 1.7;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.rv-card.is-open .rv-text p { -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.rv-more { align-self: flex-start; margin-top: calc(var(--sp-2) * -1); padding: 4px 0; color: var(--c-yellow); font-weight: 600; font-size: var(--fs-sm); position: relative; z-index: 1; }
.rv-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-more:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 2px; border-radius: 3px; }

.rv-controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-4); }
.rv-controls[hidden] { display: none; }
.rv-controls .carousel-btn:disabled { opacity: .3; cursor: default; box-shadow: none; border-color: rgba(255, 255, 255, .2); color: var(--c-white); }
.rv-progress { position: relative; width: min(240px, 40vw); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.rv-progress span { position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: inherit; background: var(--c-yellow); box-shadow: 0 0 8px rgba(250, 204, 21, .6); transition: transform .2s linear, width .2s; }
.rv-attrib { margin: var(--sp-4) 0 0; text-align: center; font-size: var(--fs-xs); color: #8A8A8A; letter-spacing: .02em; }

@media (max-width: 1023px) {
  .rv-summary { grid-template-columns: auto 1fr; }
  .rv-badge { border-left: 0; padding-left: 0; }
  .rv-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .rv-track { grid-auto-columns: calc((100% - var(--sp-4)) / 2); gap: var(--sp-4); }
}
@media (max-width: 640px) {
  .rv-summary { grid-template-columns: 1fr; padding: var(--sp-5); gap: var(--sp-4); text-align: center; justify-items: center; }
  .rv-score { flex-direction: column; gap: var(--sp-2); }
  .rv-score-meta { justify-items: center; }
  .rv-badge { justify-content: center; }
  .rv-actions { justify-content: center; width: 100%; }
  .rv-actions .btn { flex: 1 1 160px; }
  .rv-track { grid-auto-columns: 86%; gap: var(--sp-3); }
  .rv-card { padding: var(--sp-5) var(--sp-4) var(--sp-4); }
  /* Nomes compridos: até 2 linhas em vez de cortados */
  .rv-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) { .rv-card, .rv-progress span { transition: none; } .rv-card:hover { transform: none; } }

.testimonials { background: var(--c-black); overflow: hidden; }
.testimonials::before { /* aspas gigantes decorativas */
  content: "“"; position: absolute; right: 4%; top: -4rem; z-index: 0;
  font-family: var(--f-display); font-weight: 800; font-size: 32rem; line-height: 1; color: rgba(255, 196, 0, .05);
  pointer-events: none;
}
.testimonials-inner { position: relative; z-index: 1; }
.carousel { position: relative; max-width: 880px; margin-inline: auto; text-align: center; }
.carousel-track { display: grid; }
.testimonial {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease-out), visibility 0s linear .6s;
}
.testimonial.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease-out), visibility 0s; }
.stars { display: flex; justify-content: center; gap: 4px; }
.stars svg { width: 20px; height: 20px; fill: var(--c-yellow); stroke: none; filter: drop-shadow(0 0 6px rgba(255, 196, 0, .4)); }
.testimonial blockquote p {
  margin-top: var(--sp-5);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 1rem + 1.6vw, 2.4rem); line-height: 1.2; color: var(--c-white);
  text-wrap: pretty;
}
.testimonial figcaption { margin-top: var(--sp-5); display: grid; justify-items: center; gap: 2px; }
.testimonial figcaption strong { color: var(--c-white); font-weight: 700; }
.testimonial figcaption span { color: var(--c-muted-dark); font-size: var(--fs-sm); }

/* Selo de avaliação Google */
.google-rating {
  margin-top: var(--sp-5); display: inline-flex; align-items: center; flex-wrap: wrap; gap: .6rem;
  padding: .55rem 1rem; border-radius: var(--r-pill);
  border: 1px solid var(--c-line-dark); background: rgba(255, 255, 255, .03);
  font-size: var(--fs-sm); color: var(--c-muted-dark);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.google-rating:hover { border-color: var(--c-yellow); box-shadow: var(--glow-soft); }
.google-rating strong { font-family: var(--f-display); font-size: 1.4rem; line-height: 1; color: var(--c-white); }
.google-rating .stars svg { width: 15px; height: 15px; }

.carousel-controls { margin-top: var(--sp-6); display: flex; align-items: center; justify-content: center; gap: var(--sp-4); }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--c-white);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover { border-color: var(--c-yellow); color: var(--c-yellow); box-shadow: var(--glow-soft); }
.carousel-dots { display: flex; gap: var(--sp-2); }
.dot { width: 28px; height: 28px; display: grid; place-items: center; }
.dot::before { content: ""; width: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.dot.is-active::before { width: 26px; background: var(--c-yellow); box-shadow: 0 0 8px rgba(255, 196, 0, .6); }

/* --------------------------------------------------------------------------
   13. CONTACTO
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--sp-6); align-items: stretch; } /* colunas com a mesma altura */

.contact-form {
  background: var(--c-white); border-radius: var(--r-lg); border: 1px solid var(--c-line-light);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  box-shadow: var(--shadow-sm);
  display: grid; gap: var(--sp-4);
}
.form-row { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: var(--fs-sm); color: var(--c-text-light); }
.field label span { color: var(--c-yellow-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border: 1.5px solid #D6D6D6; border-radius: var(--r-md); background: #FAFAFA; color: var(--c-text-light);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8C8C8C; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A8A8A8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-black); background: var(--c-white);
  box-shadow: 0 0 0 4px rgba(255, 196, 0, .35);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-error); }
.field-error { font-size: .8rem; color: #B42318; min-height: 0; }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--c-black); border-bottom: 2px solid var(--c-black); transform: translateY(-70%) rotate(45deg);
}
.select-wrap select { padding-right: 2.6rem; cursor: pointer; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-muted-light); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-black); flex: none; }

.contact-form .btn { margin-top: var(--sp-2); }
.contact-form .btn[disabled] { opacity: .7; cursor: progress; }
.form-status { font-weight: 600; font-size: var(--fs-sm); }
.form-status:empty { display: none; }
.form-status.is-success { color: #157A45; background: #E8F7EE; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border-left: 3px solid var(--c-success); }
.form-status.is-error { color: #B42318; background: #FDECEC; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border-left: 3px solid var(--c-error); }

.contact-info { background: var(--c-black); color: var(--c-text-dark); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.contact-list { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); display: grid; gap: var(--sp-5); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-4); align-items: start; }
.contact-list svg { width: 44px; height: 44px; padding: 11px; border-radius: var(--r-md); background: rgba(255, 196, 0, .1); border: 1px solid rgba(255, 196, 0, .25); fill: none; stroke: var(--c-yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list li:nth-child(2) svg { fill: var(--c-yellow); stroke: none; }
.contact-list small { display: block; font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted-dark); margin-bottom: 2px; }
.contact-list span { line-height: 1.5; font-size: .95rem; }
.contact-list a { font-weight: 700; color: var(--c-white); transition: color var(--dur) var(--ease); word-break: break-word; }
.contact-list a:hover { color: var(--c-yellow); }
.map { flex: 1; display: flex; min-height: 240px; border-top: 1px solid var(--c-line-dark); background: var(--c-graphite); } /* o mapa ocupa o espaço que sobra */
.map iframe { flex: 1; width: 100%; min-height: 240px; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* --------------------------------------------------------------------------
   14. CTA FINAL
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative; overflow: hidden;
  background: var(--c-yellow); color: var(--c-black);
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
.final-cta::before { /* padrão subtil tipo linhas de circuito */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .7) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, .7) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 120% at 100% 50%, #000, transparent 70%);
  mask-image: radial-gradient(80% 120% at 100% 50%, #000, transparent 70%);
}
.final-cta-inner { position: relative; display: grid; gap: var(--sp-6); align-items: center; }
.final-cta h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.5rem); line-height: 1.1; text-wrap: balance; }
.final-cta h2 span { display: block; opacity: .62; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.final-cta .btn-dark .ico, .final-cta .btn-dark-outline .ico { stroke: currentColor; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--c-black); color: var(--c-muted-dark); padding-top: clamp(2.5rem, 2rem + 2.5vw, 4rem); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; padding-bottom: var(--sp-6); }
.footer-brand p { margin-top: var(--sp-4); max-width: 34ch; }
.social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md);
  border: 1px solid var(--c-line-dark); color: var(--c-white);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social a:hover { border-color: var(--c-yellow); color: var(--c-yellow); box-shadow: var(--glow-soft); }
.footer-title { font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--c-yellow); margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: var(--sp-2); }
.footer-col a { transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--c-white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center;
  padding-block: var(--sp-5) calc(var(--sp-5) + 70px);
  border-top: 1px solid var(--c-line-dark); font-size: var(--fs-sm);
}
.to-top:hover { color: var(--c-yellow); }
.credit a { font-weight: 700; letter-spacing: .02em; color: var(--c-yellow); transition: color var(--dur) var(--ease); }
.credit a:hover { color: var(--c-yellow-hi); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   16. BOTÃO FLUTUANTE WHATSAPP
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--c-white);
  box-shadow: 0 10px 25px -6px rgba(37, 211, 102, .55), 0 4px 12px rgba(0, 0, 0, .3);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; padding: .45rem .8rem; border-radius: var(--r-md);
  background: var(--c-white); color: var(--c-black); font-weight: 700; font-size: .8rem;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translate(0, -50%); }

/* --------------------------------------------------------------------------
   17. ANIMAÇÕES DE ENTRADA (ativadas por Intersection Observer)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Hero: entrada orquestrada ao carregar */

/* --------------------------------------------------------------------------
   18. BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(4, 1fr); }
  .values li { flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-4); }
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-7); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta-inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 768px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
  .trust-bar li { padding: var(--sp-6) var(--sp-5); border-bottom: 0 !important; border-right: 1px solid var(--c-line-dark); }
  .trust-bar li:last-child { border-right: 0; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
}

@media (min-width: 1024px) {
  .hero { min-height: min(100vh, 1000px); min-height: min(100svh, 1000px); display: flex; flex-direction: column; justify-content: center; }
  .about-grid { grid-template-columns: .9fr 1.1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .solar-inner { grid-template-columns: 1.3fr .9fr; gap: var(--sp-9); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.25fr 1fr; gap: var(--sp-7); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }

  /* Timeline horizontal */
  .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); }
  .timeline-cable { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 3px; }
  .timeline-cable span { transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--c-yellow-deep), var(--c-yellow)); }
  .timeline.is-visible .timeline-cable span { transform: scaleX(1); }
  .step { grid-template-columns: 1fr; row-gap: 0; }
  .step-node { grid-row: auto; margin-bottom: var(--sp-5); }
}

@media (min-width: 1280px) {
  .projects-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   18b. ESCALA TIPOGRÁFICA DO TELEMÓVEL (valores recomendados para mobile)
   Texto corrido 16px · títulos de secção 30px · subtítulos 18px ·
   títulos de cartão 17px · texto secundário 15px · etiquetas 12px
   -------------------------------------------------------------------------- */
@media (max-width: 639.98px) {
  /* Títulos e subtítulos de secção */
  .section-title, .solar-title { font-size: 1.875rem; line-height: 1.15; }
  .section-subtitle { font-size: 1.125rem; line-height: 1.35; margin-top: var(--sp-3); }
  .section-head { margin-bottom: var(--sp-6); }
  .section-head .section-title::after { margin-top: var(--sp-3); width: 44px; }

  /* Parágrafos e descrições: 16px */
  .section-lead, .hero-lead,
  .about .about-copy > p:not(.tag):not(.section-subtitle),
  .solar .solar-copy > p:not(.tag):not(.section-subtitle) { font-size: 1rem; line-height: 1.65; }

  /* Títulos de cartões, diferenciais e passos: 17px */
  .service-card h3, .why-item h3, .step h3 { font-size: 1.0625rem; line-height: 1.25; }

  /* Texto secundário (cartões, passos, contactos): 15px */
  .service-card p, .why-item p, .step p, .contact-list span, .solar-stats span,
  .values li, .consent, .testimonial figcaption span { font-size: .9375rem; line-height: 1.6; }
  .field label { font-size: .9375rem; }
  .contact-list a { font-size: 1rem; }

  /* Etiquetas pequenas: 12px */
  .step-num, .contact-list small, .mission-label, .project-cat, .service-num, .tile figcaption { font-size: .75rem; }

  /* Destaques */
  .mission p:last-child { font-size: 1.125rem; }
  .testimonial blockquote p { font-size: 1.3rem; line-height: 1.35; }
  .trust-bar strong { font-size: 1.75rem; }
  .trust-bar li > span { font-size: .875rem; }
  .solar-stats strong { font-size: 1.75rem; }
  .final-cta h2 { font-size: 1.625rem; }
  .project-title { font-size: 1rem; }
  .site-footer { font-size: .9375rem; }

  /* Processo: linha do tempo compacta */
  .timeline { gap: var(--sp-5); }
  .step { grid-template-columns: 44px 1fr; column-gap: var(--sp-4); }
  .step-node { width: 44px; height: 44px; }
  .step-node svg { width: 20px; height: 20px; }
  .timeline-cable { left: 21px; top: 22px; bottom: 22px; }
  .step-num { padding-top: .1rem; }

  /* Contactos: ícones compactos */
  .contact-list { gap: var(--sp-4); padding: var(--sp-5); }
  .contact-list li { grid-template-columns: 38px 1fr; gap: var(--sp-3); }
  .contact-list svg { width: 38px; height: 38px; padding: 9px; }
}

/* --------------------------------------------------------------------------
   19. PREFERÊNCIAS DE ACESSIBILIDADE
   -------------------------------------------------------------------------- */
@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; }
  .hero-slide img { transform: none !important; }
}

@media print {
  .site-header, .wa-float, .lightbox, .map { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   SEO local: serviços com ligação, zona de atuação, perguntas frequentes
   e páginas de serviço / concelho
   ========================================================================== */
/* Cartões de serviço: o cartão inteiro é clicável (ligação no título) */
.service-card { position: relative; }
.service-link { color: inherit; text-decoration: none; }
.service-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-link:focus-visible { outline: none; }
.service-card:has(.service-link:focus-visible) { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
.service-more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4); font-weight: 700; font-size: var(--fs-sm); color: var(--c-yellow-ink); }
.service-more .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.service-card:hover .service-more .ico { transform: translateX(4px); }

/* Zona de atuação */
.zonas { background: var(--c-black); }
.zonas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--sp-3); }
.zona-card {
  display: flex; align-items: center; gap: var(--sp-3); height: 100%; padding: var(--sp-4); border-radius: var(--r-md);
  background: var(--c-graphite); border: 1px solid var(--c-line-dark); color: var(--c-white); text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.zona-card:hover, .zona-card:focus-visible { border-color: var(--c-yellow); transform: translateY(-2px); box-shadow: var(--glow-soft); }
.zona-card .ico { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--c-yellow); stroke-width: 2; }
.zona-card span { display: grid; gap: 2px; min-width: 0; }
.zona-card strong { font-weight: 700; font-size: .95rem; }
.zona-card small { color: var(--c-muted-dark); font-size: .8rem; }
.zonas-grid-compacta .zona-card { padding: var(--sp-3) var(--sp-4); }

/* Perguntas frequentes */
.faq-inner { max-width: 860px; }
.faq-list { display: grid; gap: var(--sp-3); }
.faq-item { background: var(--c-white); border: 1px solid var(--c-line-light); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); font-weight: 700; color: var(--c-text-light); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-light); color: var(--c-black); font-size: 1.2rem; font-weight: 700; transition: background-color var(--dur); }
.faq-item[open] summary::after { content: "\2212"; background: var(--c-yellow); }
.faq-item summary:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; border-radius: var(--r-md); }
.faq-item p { padding: 0 var(--sp-5) var(--sp-5); color: var(--c-muted-light); line-height: 1.7; }

/* Rodapé: concelhos */
.footer-zonas { padding-bottom: var(--sp-6); border-top: 1px solid var(--c-line-dark); padding-top: var(--sp-5); }
.footer-zonas ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-zonas a { color: var(--c-muted-dark); font-size: .85rem; text-decoration: none; }
.footer-zonas a:hover { color: var(--c-yellow); }

/* Páginas de serviço e de concelho */
.seo-hero { background: radial-gradient(ellipse at top right, #1c1c1c, var(--c-black) 65%); color: var(--c-text-dark); padding: calc(var(--header-h) + clamp(2rem, 1.5rem + 3vw, 4rem)) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.migalhas ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-5); font-size: .82rem; color: var(--c-muted-dark); }
.migalhas li + li::before { content: "\203A"; margin-right: 6px; color: var(--c-yellow); }
.migalhas a { color: var(--c-muted-dark); text-decoration: none; }
.migalhas a:hover { color: var(--c-yellow); }
.seo-h1 { font-family: var(--f-title); font-weight: 800; font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -.025em; color: var(--c-white); margin-top: var(--sp-4); max-width: 22ch; overflow-wrap: break-word; }
.seo-lead { margin-top: var(--sp-4); max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; color: #CFCFCF; }
.seo-hero .hero-actions { margin-top: var(--sp-6); }
.seo-factos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--sp-3); margin-top: var(--sp-7); max-width: 860px; }
.seo-factos li { padding: var(--sp-4); border-radius: var(--r-md); background: rgba(255, 255, 255, .04); border: 1px solid var(--c-line-dark); display: grid; gap: 2px; }
.seo-factos strong { font-family: var(--f-display); font-size: 1.6rem; color: var(--c-yellow); line-height: 1; }
.seo-factos span { font-size: .82rem; color: var(--c-muted-dark); }
.seo-h2 { font-family: var(--f-title); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; color: var(--c-text-light); margin-bottom: var(--sp-5); overflow-wrap: break-word; }
.section-dark .seo-h2 { color: var(--c-white); }
.seo-texto { margin: calc(var(--sp-3) * -1) 0 var(--sp-5); color: var(--c-muted-light); }
.section-dark .seo-texto { color: var(--c-muted-dark); }
.seo-duas { display: grid; gap: var(--sp-7); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.seo-lista { display: grid; gap: var(--sp-3); }
.seo-lista li { position: relative; padding-left: 32px; line-height: 1.55; color: var(--c-text-light); }
.seo-lista li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.seo-lista-alerta li::before { background: var(--c-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FACC15' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / 14px no-repeat; }
.seo-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--sp-3); }
.seo-proj { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--c-graphite); }
.seo-proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.seo-proj:hover img { transform: scale(1.05); }
.seo-proj span { position: absolute; inset: auto 0 0 0; padding: var(--sp-6) var(--sp-3) var(--sp-3); background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; line-height: 1.1; display: grid; gap: 2px; }
.seo-proj small { font-family: var(--f-mono); font-size: .68rem; color: var(--c-yellow); letter-spacing: .1em; }
.seo-centro { text-align: center; margin-top: var(--sp-6); }
.seo-avaliacoes { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.seo-avaliacoes li { padding: var(--sp-5); border-radius: var(--r-lg); background: var(--c-graphite); border: 1px solid var(--c-line-dark); display: grid; gap: var(--sp-3); align-content: start; }
.seo-avaliacoes blockquote p { color: #DADADA; line-height: 1.7; }
.seo-autor { color: var(--c-white); font-weight: 700; font-size: .9rem; }
.seo-rel { padding-top: 0; }
.seo-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.seo-chips a { display: inline-block; padding: .55rem 1rem; border-radius: var(--r-pill); border: 1px solid var(--c-line-light); background: var(--c-white); color: var(--c-text-light); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color var(--dur), background-color var(--dur); }
.seo-chips a:hover { border-color: var(--c-black); background: var(--c-light); }
@media (max-width: 640px) {
  .seo-hero .hero-actions .btn { width: 100%; }
}

/* Serviços: conteúdo detalhado expansível na própria página (sem páginas separadas) */
.service-det { margin-top: var(--sp-3); }
.service-det > summary { list-style: none; cursor: pointer; display: inline-flex; width: max-content; }
.service-det > summary::-webkit-details-marker { display: none; }
.service-det > summary:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; border-radius: 6px; }
.service-det .service-more { cursor: pointer; }
.service-det[open] .service-more .ico { transform: rotate(90deg); }
.service-det-body { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--c-line-light); animation: svc-abre .25s var(--ease); }
@keyframes svc-abre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.service-det-body p { margin: 0 0 var(--sp-3); color: var(--c-muted-light); font-size: .92rem; line-height: 1.65; }
.service-inclui-t { font-weight: 700; color: var(--c-text-light) !important; margin-bottom: var(--sp-2) !important; }
.service-inclui { display: grid; gap: 6px; margin: 0 0 var(--sp-4); }
.service-inclui li { position: relative; padding-left: 24px; color: var(--c-muted-light); font-size: .9rem; line-height: 1.5; }
.service-inclui li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.service-zona-nota { font-size: .82rem !important; color: var(--c-muted-light); opacity: .85; }
@media (prefers-reduced-motion: reduce) { .service-det-body { animation: none; } }
