/* =========================================================
   SH Soluções, Landing Page
   Paleta oficial (Manual de Marca v1.1), versão navy dominante
   ========================================================= */

/* ---------- Fontes self-hospedadas (DM Sans + DM Mono, subset latin) ----------
   Ficheiros em fontes/, descarregados do Google Fonts uma única vez, sem
   pedidos a fonts.googleapis.com/fonts.gstatic.com, logo sem partilhar o IP
   do visitante com a Google antes (ou depois) de qualquer consentimento. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fontes/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fontes/dm-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fontes/dm-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fontes/dm-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fontes/dm-mono-500.woff2') format('woff2');
}

:root {
  /* Cores oficiais */
  --amber: #EFA51F;
  --amber-20: #F2B74C;
  --amber-40: #F5C979;
  --amber-60: #F9DBA5;
  --amber-80: #FCEDD2;
  --navy: #253A53;
  --navy-20: #516175;
  --navy-40: #7C8998;
  --navy-60: #A8B0BA;
  --navy-80: #D3D8DD;
  --graphite: #14202E;
  --gray-mid: #6B7280;
  --gray-light: #F2F4F7;
  --off-white: #FBF8F3;

  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --container-max: 1280px;
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 2px rgba(20, 32, 46, 0.06), 0 8px 24px rgba(20, 32, 46, 0.07);
  --header-h: 72px;
}

/* ---------- Reset base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--off-white);
  color: var(--graphite);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Hero / banner overlay tokens (navy dominante) ---------- */
:root {
  --hero-text: #FFFFFF;
  --hero-subtitle: var(--navy-80);
  --hero-outline: #FFFFFF;
  --emergency-overlay-opacity: 0.8;
}

/* ---------- Section background helpers ---------- */
.section-white { background: #FFFFFF; }
.section-graylight { background: var(--gray-light); }
.section-pad { padding: 56px 0; }

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-subtitle {
  margin-top: 8px;
  color: var(--gray-mid);
  font-size: 15px;
}
.section-head { margin-bottom: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { filter: brightness(1.06); }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy-80); }

.btn-outline-hero { background: transparent; border-color: var(--hero-outline); color: var(--hero-outline); }
.btn-outline-hero:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-light { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn-lg { padding: 16px 28px; font-size: 15px; min-height: 52px; }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 12px; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 500; background: var(--navy); transition: box-shadow 0.2s ease; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(20, 32, 46, 0.25); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark-img { height: 44px; width: auto; display: block; }

.main-nav { display: none; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; color: var(--navy-80); }
.main-nav a:hover { color: #FFFFFF; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 44px; height: 44px; border-radius: var(--radius-sm); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #FFFFFF; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: grid; grid-template-rows: 0fr; background: var(--navy); border-top: 1px solid var(--navy-20); transition: grid-template-rows 0.25s ease; }
.mobile-nav.open { grid-template-rows: 1fr; }
.mobile-nav-inner { overflow: hidden; }
.mobile-nav a { display: block; padding: 14px 20px; font-weight: 600; color: #FFFFFF; border-bottom: 1px solid rgba(255, 255, 255, 0.08); min-height: 44px; }

.btn-label-icon { display: none; }

@media (max-width: 440px) {
  .btn-label-full { display: none; }
  .btn-label-icon { display: block; }
  #header-cta { padding: 10px 14px; }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- Hero (foto contínua full-bleed + gradiente) ----------
   Uma única fotografia cobre a secção inteira a 100vw (sem bloco navy
   sólido ao lado); por cima, um gradiente escurece a zona onde o texto
   fica legível e dissipa-se até a foto ficar nítida e sem véu. O texto
   vive dentro do mesmo max-width/centragem do .container, alinhado à
   esquerda desse limite. Em mobile o gradiente corre de cima para baixo
   (o texto fica sobreposto à foto empilhada); em desktop corre da
   esquerda para a direita, e o texto fica verticalmente centrado porque
   a zona escura cobre toda a altura do lado esquerdo. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Stops em px (não %): em mobile o texto empilha (tagline + título + texto +
     2 botões), com altura quase fixa independente da altura da secção; usar
     percentagens faria a zona escura desfasar-se do texto consoante o ecrã. */
  background: linear-gradient(
    to bottom,
    rgba(37, 58, 83, 0.94) 0px,
    rgba(37, 58, 83, 0.85) 140px,
    rgba(37, 58, 83, 0.55) 320px,
    rgba(37, 58, 83, 0.25) 440px,
    rgba(37, 58, 83, 0) 520px
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px clamp(24px, 4vw, 32px) 40px;
}
.hero-copy-inner { width: 100%; max-width: 480px; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy-inner { animation: heroFadeIn 0.6s cubic-bezier(.21,.72,.34,1) both; }

.hero-tagline {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-headline { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: var(--hero-text); }
.hero-headline strong { color: var(--amber); font-weight: 700; }
.hero-subtitle { margin-top: 18px; font-size: 17px; color: var(--hero-subtitle); max-width: 46ch; }
.hero-ctas { margin-top: 32px; display: flex; flex-direction: column; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { width: 100%; white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.hero-ctas .btn svg { flex-shrink: 0; }

/* Texto do CTA sempre numa linha só, mesmo nos ecrãs mais estreitos (iPhone SE e afins) */
@media (max-width: 374px) {
  .hero-ctas .btn { font-size: 13px; gap: 6px; padding-left: 12px; padding-right: 12px; }
}

.hero-services-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-services-link:hover { color: var(--amber); }

/* Em mobile mantemos só o CTA principal (WhatsApp): "Ligar" já está sempre
   à mão na barra fixa do fundo, e um botão só fica mais direto/fácil de ler. */
@media (max-width: 899px) {
  .hero-cta-secondary { display: none; }
}

/* Overlay mais forte e constante em toda a altura do hero, só em mobile:
   com mais conteúdo empilhado (CTA + confiança + link), o gradiente que
   se dissipa a meio da foto deixava o texto do fundo pouco legível sobre
   a camisola clara. Em mobile cobrimos a foto de forma mais uniforme. */
@media (max-width: 859px) {
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(37, 58, 83, 0.93) 0%,
      rgba(37, 58, 83, 0.88) 40%,
      rgba(37, 58, 83, 0.9) 100%
    );
  }
}

/* ---------- Barra de confiança (imediatamente após o hero) ---------- */
.trust-bar { background: #FFFFFF; border-bottom: 1px solid var(--navy-80); padding: 22px 0; }
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}
.trust-bar-item { display: flex; align-items: center; gap: 10px; }
.trust-bar-item svg { flex-shrink: 0; color: var(--amber); }
.trust-bar-item span { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; }
@media (min-width: 700px) {
  .trust-bar-inner { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; padding-left: 22px; padding-right: 22px; }
}
@media (min-width: 700px) {
  .hero { min-height: 600px; }
}
@media (min-width: 860px) {
  .hero { min-height: 640px; display: flex; align-items: center; }
  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(37, 58, 83, 0.93) 0%,
      rgba(37, 58, 83, 0.80) 35%,
      rgba(37, 58, 83, 0.25) 60%,
      rgba(37, 58, 83, 0) 78%
    );
  }
  .hero-inner { padding: 0 clamp(24px, 4vw, 32px); }
  .hero-headline { font-size: 46px; }
}

/* ---------- Banner de emergência ---------- */
.emergency-banner { position: relative; overflow: hidden; padding: 52px 0; }
.emergency-media { position: absolute; inset: 0; z-index: 0; }
.emergency-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.emergency-overlay { position: absolute; inset: 0; z-index: 1; background: var(--navy); opacity: var(--emergency-overlay-opacity); }
.emergency-inner {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.emergency-copy { max-width: 620px; }
.emergency-label {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.emergency-title { font-size: 26px; font-weight: 700; }
.emergency-text { margin-top: 12px; font-size: 15px; color: var(--navy-80); max-width: 52ch; }

/* Os 2 botões ficam sempre lado a lado, mesmo em mobile.
   min-width:0 é necessário para o flex encolher abaixo do conteúdo em vez de
   transbordar horizontalmente; o texto quebra em 2 linhas se for preciso. */
.emergency-ctas { display: flex; flex-direction: row; gap: 10px; flex-shrink: 0; }
.emergency-ctas .btn {
  flex: 1;
  min-width: 0;
  padding: 12px 10px;
  font-size: 12px;
  gap: 6px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}
.emergency-ctas .btn svg { flex-shrink: 0; }

@media (min-width: 700px) {
  .emergency-title { font-size: 32px; }
}

@media (min-width: 760px) {
  .emergency-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .emergency-ctas { flex-direction: row; }
  .emergency-ctas .btn { flex: none; width: auto; }
}

/* ---------- Proof points (removida, ver why-us) ---------- */

/* ---------- Serviços ---------- */
.services-swipe-hint {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-20);
  margin-bottom: 14px;
}

.services-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.services-grid::-webkit-scrollbar { display: none; }

.service-card {
  flex: 0 0 80%;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid var(--navy-80);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.services-dots { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: 18px; }
.services-dots .dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.services-dots .dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-60);
  transition: background 0.2s ease, transform 0.2s ease;
}
.services-dots .dot.active::before { background: var(--amber); transform: scale(1.3); }
.services-dots .dot:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 50%; }
.service-card-media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-light); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex-grow: 1; }
.service-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-top: -44px;
  box-shadow: 0 2px 8px rgba(20,32,46,0.25);
  border: 3px solid #FFFFFF;
}
.service-card-body h3 { font-size: 19px; font-weight: 700; color: var(--navy); }
.service-card-body p { font-size: 14px; color: var(--gray-mid); flex-grow: 1; }
.service-card-body .btn { margin-top: 4px; }
.service-card-body .btn svg { flex-shrink: 0; }

.service-card-media--cta {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
}
.service-card--cta .service-card-body h3 { color: var(--navy); }

@media (min-width: 860px) {
  .services-swipe-hint, .services-dots { display: none; }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .service-card { flex: none; }
}

/* ---------- Como funciona ---------- */
.how-steps { display: grid; grid-template-columns: 1fr; gap: 24px; }
.how-step {
  position: relative;
  background: #FFFFFF;
  border-top: 1px solid var(--navy-80);
  border-radius: var(--radius-lg);
  padding: 30px 26px 28px;
  overflow: hidden;
}
.how-step-ghost-num {
  position: absolute;
  top: 2px;
  right: 18px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--navy-80);
  opacity: 0.7;
  z-index: 0;
}
.how-step-icon-wrap {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 20px;
}
.how-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
}
.how-step h3 {
  position: relative;
  z-index: 1;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.how-step p { position: relative; z-index: 1; font-size: 14px; color: var(--gray-mid); line-height: 1.65; }
.how-step-arrow { display: none; }
@media (min-width: 760px) {
  .how-steps { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 18px; }
  .how-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 54px;
    color: var(--navy-80);
  }
}

/* ---------- Porquê escolher-nos (grid/carrossel com fotos) ---------- */
.why-us-swipe-hint {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-20);
  margin-bottom: 14px;
}
.why-us-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.why-us-item {
  flex: 0 0 78%;
  scroll-snap-align: start;
  background: #FFFFFF;
  border-top: 1px solid var(--navy-80);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-us-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-light); }
.why-us-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-us-item h3 { margin: 14px 16px 0; font-size: 16px; font-weight: 700; color: var(--navy); }
.why-us-item p { margin: 6px 16px 16px; font-size: 13px; color: var(--gray-mid); }

@media (min-width: 860px) {
  .why-us-swipe-hint { display: none; }
  .why-us-track { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .why-us-item { flex: none; }
}

/* ---------- Sobre ---------- */
.about-inner { max-width: 760px; }
.about-text { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--graphite); }
.about-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--navy-80);
  padding-top: 28px;
}
.stat-num { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 500; color: var(--amber); }
.stat-label { display: block; margin-top: 4px; font-size: 12px; color: var(--gray-mid); }

/* ---------- Depoimentos ---------- */
.section-eyebrow {
  display: block;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.testimonials-layout { display: flex; flex-direction: column; gap: 28px; }
.testimonials-heading { max-width: 480px; }
.testimonials-title { font-size: 26px; }

.testimonials-carousel { min-width: 0; }
.testimonials-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  margin: 0;
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid var(--navy-80);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-badge {
  align-self: flex-start;
  background: var(--amber-80);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
}
.testimonial-stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; font-style: italic; color: var(--navy-20); line-height: 1.55; flex-grow: 1; }
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--navy); }

.testimonials-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.testimonials-counter { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
#testimonials-current { display: inline-block; transition: opacity 120ms ease; }
#testimonials-current.is-fading { opacity: 0; }
.testimonials-arrows { display: flex; gap: 10px; }
.testimonials-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--navy-60);
  background: #FFFFFF;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.testimonials-arrow:hover { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

@media (min-width: 700px) { .testimonial-card { flex: 0 0 60%; } }

@media (min-width: 860px) {
  .testimonials-layout { flex-direction: row; align-items: flex-start; gap: 48px; }
  .testimonials-heading { flex: 0 0 300px; position: sticky; top: calc(var(--header-h) + 24px); }
  .testimonials-title { font-size: 32px; }
  .testimonials-carousel { flex: 1; min-width: 0; }
  .testimonial-card { flex: 0 0 340px; }
}

/* ---------- FAQ ---------- */
.faq { text-align: center; }
.faq h2 { text-align: center; }
.faq-container { max-width: 760px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item { text-align: left; background: #FFFFFF; border: 1px solid var(--navy-80); border-radius: var(--radius); padding: 0 20px; }
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--gray-mid); font-size: 14px; line-height: 1.6; }

/* ---------- CTA final ---------- */
.final-cta { background: var(--navy); color: #FFFFFF; padding: 44px 0; text-align: center; }
.final-cta-inner { max-width: 640px; margin: 0 auto; }
.final-cta-lead { font-size: 19px; line-height: 1.4; font-weight: 600; }
.final-cta-lead strong { color: var(--amber); }
.final-cta-box {
  margin: 20px auto 0;
  background: var(--amber);
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Botão principal: em cima de um cartão âmbar, um botão âmbar (.btn-amber)
   fica invisível (mesma cor do fundo). Aqui inverte-se para navy/branco,
   que garante contraste forte contra o âmbar à volta. */
.final-cta-cta { background: var(--navy); color: #FFFFFF; white-space: nowrap; }
.final-cta-cta:hover { filter: brightness(1.2); }
.final-cta-divider { display: none; }
.phone-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.phone-link { display: inline-flex; align-items: center; gap: 10px; }
.phone-number { font-family: var(--font-mono); font-size: 24px; font-weight: 500; letter-spacing: 0.01em; }
.phone-note { font-size: 12px; color: var(--navy); }
.final-cta-closing { margin-top: 18px; font-size: 14px; color: var(--navy-80); }

@media (min-width: 700px) {
  .final-cta-inner { max-width: 760px; }
  .final-cta-lead { font-size: 24px; }
  .final-cta-box { flex-direction: row; justify-content: center; padding: 18px 36px; gap: 28px; }
  .final-cta-cta, .phone-block { flex-shrink: 0; }
  .final-cta-divider { display: block; align-self: stretch; width: 1px; background: rgba(37, 58, 83, 0.22); }
  .phone-number { font-size: 26px; white-space: nowrap; }
}

/* ---------- Formulário de contacto ---------- */
.contact-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; flex-direction: column; gap: 3px; }
.contact-info-list strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-mid); }
.contact-info-list a, .contact-info-list span { font-size: 15px; color: var(--navy); font-weight: 500; }
.contact-info-list small { font-size: 12px; color: var(--gray-mid); font-weight: 400; }

.contact-form {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--navy-80);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.contact-form label { font-size: 13px; font-weight: 600; color: var(--navy); margin: 12px 0 6px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--navy-60);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--graphite);
  background: var(--off-white);
  width: 100%;
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--amber); outline: none; }

/* Erros de validação em português (ver script.js), nunca a bolha nativa do
   browser, que fica sempre no idioma do sistema em vez do idioma da página. */
.contact-form input.has-error,
.contact-form select.has-error { border-color: #C0392B; }
.field-error {
  display: block;
  margin-top: 6px;
  min-height: 1.2em;
  font-size: 12px;
  font-weight: 600;
  color: #C0392B;
  opacity: 0;
  transition: opacity 160ms ease-out;
}
.field-error:not(:empty) { opacity: 1; }
.contact-form button { margin-top: 18px; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--gray-mid); text-align: center; }

@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-80); }
.footer-inner { padding-top: 48px; padding-bottom: 32px; display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-mark-img { height: 36px; width: auto; display: block; }
.footer-tagline { font-size: 13px; line-height: 1.6; color: var(--navy-60); margin-bottom: 8px; }
.footer-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy-60); margin-top: 22px; margin-bottom: 12px; }
.footer-col h3:first-child { margin-top: 0; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--navy-80); margin-bottom: 8px; }
.footer-col a:hover { color: var(--amber); }

.footer-col a.footer-contact-link { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-contact-link svg { flex-shrink: 0; color: var(--navy-60); }
.footer-contact-link:hover svg { color: var(--amber); }
.footer-contact-note { display: block; font-size: 11px; color: var(--navy-60); margin-top: -6px; margin-bottom: 10px; margin-left: 23px; }

.footer-service-areas { font-size: 12px; line-height: 1.6; color: var(--navy-60); margin-top: -4px; }
.footer-social { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.footer-social a { display: inline-flex; margin-bottom: 0; color: #FFFFFF; transition: color 0.15s ease; }
.footer-social a:hover { color: var(--amber); }
.footer-legal { border-top: 1px solid var(--navy-20); padding-top: 18px; padding-bottom: 18px; font-size: 12px; color: var(--navy-60); }

@media (min-width: 620px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; } }

/* ---------- Barra CTA fixa (mobile) ----------
   Em ecrãs até 899px, a ação de converter fica sempre à mão, sem precisar
   de procurar o botão flutuante. Em desktop (main-nav visível + telefone no
   cabeçalho) esta barra não é necessária, por isso só existe em mobile. */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 16px rgba(20, 32, 46, 0.18);
}
.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mobile-cta-call { background: var(--amber); color: var(--navy); }
.mobile-cta-wa { background: #25D366; color: #FFFFFF; }

@media (min-width: 900px) {
  .mobile-cta-bar { display: none; }
}

@media (max-width: 899px) {
  body { padding-bottom: 60px; }
  .whatsapp-float { display: none; }
  /* A barra já tem WhatsApp: o quadrado amarelo do cabeçalho fica redundante em mobile */
  #header-cta { display: none; }
  /* Reserva espaço extra no fim do rodapé para o ícone de cookies (fixo, acima
     da barra de CTAs) nunca ficar por cima de conteúdo interativo (ícones de
     redes sociais) quando se faz scroll até ao fundo da página. */
  .site-footer { padding-bottom: 90px; }
}

/* ---------- WhatsApp floating button ---------- */
/* Anéis de pulso sempre por baixo (z-index:0); o botão (.wa-btn) fica sólido e opaco
   por cima (z-index:1), por isso o ícone nunca fica esverdeado pela onda a passar. */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 56px;
  height: 56px;
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.45;
  z-index: 0;
  animation: whatsapp-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.wa-pulse--delay { animation-delay: 1.3s; }

.wa-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(20, 32, 46, 0.35);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover .wa-btn { transform: scale(1.06); }

@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.4; }
  100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-pulse { animation: none; display: none; }
}

@media print {
  .whatsapp-float { display: none; }
  .mobile-cta-bar { display: none; }
}

/* ---------- Página de política de privacidade ---------- */
.legal-container { max-width: 720px; }
.legal-back { display: inline-block; margin-bottom: 24px; font-size: 14px; font-weight: 600; color: var(--navy-20); }
.legal-back:hover { color: var(--amber); }
.legal-title { margin-bottom: 4px; }
.legal-updated { font-size: 13px; color: var(--gray-mid); margin-bottom: 28px; }
.legal-content h2 { margin-top: 36px; margin-bottom: 12px; font-size: 19px; font-weight: 700; color: var(--navy); }
.legal-content p { margin-bottom: 14px; font-size: 15px; line-height: 1.7; color: var(--graphite); }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.legal-content a:hover { color: var(--amber); }
.legal-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--gray-light);
  padding: 2px 6px;
  border-radius: 4px;
}
.legal-list { margin: 0 0 14px; padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.legal-list li { font-size: 15px; line-height: 1.7; color: var(--graphite); }

.legal-table-wrap { overflow-x: auto; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--navy-80); vertical-align: top; }
.legal-table th { background: var(--gray-light); color: var(--navy); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.legal-table td { color: var(--graphite); line-height: 1.5; }
.legal-table td code { white-space: nowrap; }
.legal-table-note { font-size: 13px; color: var(--gray-mid); }

/* ---------- Preferências de cookies (ícone flutuante + popup) ----------
   Substitui por completo qualquer faixa/banner de cookies: o ícone fica
   sempre visível, em todas as páginas, e nunca desaparece; não há nada
   para "lembrar" ter sido rejeitado. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* Fundo amber + ícone branco fixos: não alternar consoante o fundo por
     baixo (o próprio círculo já garante contraste sobre navy e sobre claro). */
  background: var(--amber);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(20, 32, 46, 0.35);
  transition: transform 0.15s ease;
}
.cookie-float:hover,
.cookie-float:focus-visible { transform: scale(1.06); }

/* Bottom com folga generosa + safe-area, para nunca ficar por baixo da barra fixa
   (o env() garante que em iPhones com "home indicator" o ícone não fica tapado).
   Esta regra tem de vir DEPOIS de ".cookie-float" acima: mesma especificidade,
   por isso é a ordem no ficheiro que decide, não a media query em si. */
@media (max-width: 899px) {
  /* Em mobile passa para a direita: à esquerda ficava constantemente por cima
     dos botões "Pedir Orçamento" dos cartões de serviços ao fazer scroll. O
     lado direito está livre (o botão do WhatsApp flutuante só existe em desktop). */
  .cookie-float { bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 30px); left: auto; right: 20px; }
}

@media print {
  .cookie-float { display: none; }
}

/* ---------- Aviso automático de cookies (cartão compacto) ----------
   Aparece sozinho, uma única vez, ~800ms depois do carregamento, só quando
   não há consentimento válido guardado (ver script.js). Nunca bloqueia o
   resto da página: sem overlay, sem faixa a toda a largura, position:fixed
   com pointer-events desligado enquanto invisível. Fica ancorado por cima
   do ícone de cookies (mesmo canto), para nunca se sobrepor a ele. */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 92px;
  z-index: 990;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(20, 32, 46, 0.22);
  padding: 18px 18px 16px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.cookie-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--gray-mid);
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.cookie-banner-close:hover { background: var(--gray-light); color: var(--navy); }

.cookie-banner-text { font-size: 13px; line-height: 1.55; color: var(--graphite); padding-right: 20px; margin-bottom: 10px; }

.cookie-banner-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.cookie-banner-links a,
.cookie-banner-links button {
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--navy); text-decoration: underline; cursor: pointer;
}
.cookie-banner-links a:hover,
.cookie-banner-links button:hover { color: var(--amber); }

/* Mesmo destaque visual nos dois botões (nenhum é o "recomendado") */
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner-btn { flex: 1; }

@media (max-width: 899px) {
  /* Em mobile o ícone de cookies passa para a direita (ver .cookie-float acima),
     por isso o cartão fica à largura quase toda, mas sempre acima da barra de
     CTAs fixa e do próprio ícone, nunca sobreposto a nenhum dos dois. */
  .cookie-banner { left: 16px; right: 16px; width: auto; max-width: none; bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 100px); }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

@media print {
  .cookie-banner { display: none; }
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: transparent;
}
.cookie-modal-overlay[hidden] { display: none; }

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100;
  width: min(92vw, 480px);
  max-height: 86vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(20, 32, 46, 0.35), 0 2px 8px rgba(20, 32, 46, 0.15);
}
.cookie-modal[hidden] { display: none; }

.cookie-modal-inner { padding: 24px; display: flex; flex-direction: column; gap: 18px; }

.cookie-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cookie-modal-header h2 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.cookie-modal-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: var(--gray-mid);
  transition: background 0.15s ease, color 0.15s ease;
}
.cookie-modal-close:hover { background: var(--gray-light); color: var(--navy); }

.cookie-intro { font-size: 14px; color: var(--gray-mid); line-height: 1.6; }
.cookie-link-btn {
  display: inline;
  background: none; border: none; padding: 0; margin-left: 4px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}
.cookie-link-btn:hover { color: var(--amber); }

.cookie-more { font-size: 13px; color: var(--gray-mid); line-height: 1.6; background: var(--gray-light); border-radius: var(--radius-sm); padding: 12px 14px; }
.cookie-more[hidden] { display: none; }
.cookie-more a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.cookie-more a:hover { color: var(--amber); }

.cookie-categories { display: flex; flex-direction: column; border-top: 1px solid var(--navy-80); }
.cookie-category { border-bottom: 1px solid var(--navy-80); padding: 6px 0; }
.cookie-category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }

.cookie-category-expand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  text-align: left;
}
.cookie-chevron { color: var(--navy-40); transition: transform 0.2s ease; flex-shrink: 0; }
.cookie-category-expand[aria-expanded="true"] .cookie-chevron { transform: rotate(90deg); }
.cookie-category-name { font-size: 14px; font-weight: 700; color: var(--navy); }

.cookie-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.cookie-badge-always { background: #E1F3E6; color: #1E7A3E; }

.cookie-switch { position: relative; display: inline-flex; align-items: center; width: 42px; height: 24px; flex-shrink: 0; cursor: pointer; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch-track { position: absolute; inset: 0; background: var(--navy-60); border-radius: 999px; transition: background 0.2s ease; }
.cookie-switch-track::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.cookie-switch input:checked + .cookie-switch-track { background: var(--amber); }
.cookie-switch input:checked + .cookie-switch-track::before { transform: translateX(18px); }
.cookie-switch input:focus-visible + .cookie-switch-track { outline: 3px solid var(--amber); outline-offset: 2px; }

.cookie-category-desc { margin: 6px 0 10px; padding-left: 24px; font-size: 13px; color: var(--gray-mid); line-height: 1.6; }
.cookie-category-desc[hidden] { display: none; }

.cookie-modal-footer { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--navy-80); padding-top: 16px; }
.cookie-btn-save { align-self: center; }
.cookie-modal-footer-main { display: flex; gap: 10px; }
.cookie-btn-equal { flex: 1; }

@media (max-width: 380px) {
  .cookie-modal-inner { padding: 18px; }
}

/* ---------- Reveal subtil ao scroll ----------
   Só opacity + transform (propriedades "baratas", correm no compositor,
   sem custo de layout/CLS). Aplicado via JS a um conjunto curto de blocos
   (script.js), nunca à página toda, para ficar leve e não distrair. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(.21,.72,.34,1), transform 0.45s cubic-bezier(.21,.72,.34,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Hover subtil nos cartões (só desktop/rato, ver script.js) ---------- */
.service-card, .why-us-item, .testimonial-card, .how-step {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.has-hover .service-card:hover,
.has-hover .why-us-item:hover,
.has-hover .testimonial-card:hover,
.has-hover .how-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(20, 32, 46, 0.08), 0 18px 34px rgba(20, 32, 46, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy-inner { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .service-card, .why-us-item, .testimonial-card, .how-step { transition: none; }
  .has-hover .service-card:hover,
  .has-hover .why-us-item:hover,
  .has-hover .testimonial-card:hover,
  .has-hover .how-step:hover { transform: none; }
}
