/* ==========================================================================
   Silhueta — Lavandaria & Limpeza · Cascais
   Design system: ver PLANO.md (secção 5)
   ========================================================================== */

/* Fontes (self-hosted, subconjunto latino) */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Cor */
  --navy: #012C53;
  --blue: #0087E9;          /* decorativo: linhas, marcadores, detalhes */
  --blue-ink: #0072C6;      /* botões e links sobre claro (AA) */
  --blue-soft: #5CB8FF;     /* detalhes sobre navy */
  --light-blue: #DFF3FF;
  --bg: #F7FAFC;
  --white: #FFFFFF;
  --text: #0B1F33;
  --muted: #5B6B80;
  --on-navy-muted: #B9D4EA;
  --line: #DCE6EE;
  --line-navy: rgba(185, 212, 234, .22);
  --error: #B42318;

  /* Tipografia */
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
  --step-5: clamp(3.5rem, 1.5rem + 9vw, 9.5rem);

  /* Espaço e forma */
  --gutter: 1rem;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 28px;
  --radius-flow: clamp(96px, 14vw, 200px);  /* canto "fluido", eco da curva do logótipo */
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 2rem; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol) { list-style: none; padding: 0; }
a { color: inherit; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nowrap { white-space: nowrap; }

.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: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Linha fluida (curva do logótipo) */
.flow { position: absolute; pointer-events: none; overflow: visible; }
.flow path { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Botões e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .9375rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue-ink); color: var(--white); }
.btn-primary:hover { background: var(--navy); }

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

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--light-blue); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-block;
  padding-block: .35rem;
  color: var(--blue-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
}
.text-link:hover { color: var(--navy); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: rgba(247, 250, 252, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--line);
}

/* Sobre o hero: logótipo e links brancos */
.brand { display: block; }
.brand-dark { display: none; }
.site-header.is-scrolled .brand-light, .site-header.menu-open .brand-light { display: none; }
.site-header.is-scrolled .brand-dark, .site-header.menu-open .brand-dark { display: block; }
.site-header:not(.is-scrolled):not(.menu-open) .nav a { color: var(--white); }
.site-header:not(.is-scrolled):not(.menu-open) .nav a:hover { background: rgba(255, 255, 255, .14); }
.site-header:not(.is-scrolled):not(.menu-open) .menu-toggle { color: var(--white); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand img { width: 184px; height: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: .25rem; list-style: none; padding: 0; }
.nav a {
  display: block;
  padding: .5rem .8rem;
  color: var(--text);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}
.nav a:hover { background: var(--light-blue); color: var(--navy); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: none;
  border: 0;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle .ico { width: 26px; height: 26px; }
.menu-toggle .ico-close { display: none; }
.menu-toggle[aria-expanded="true"] .ico-open { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 899px) {
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand img { width: 144px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a {
    padding: 1rem .25rem;
    font-size: 1.125rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav li:last-child a { border-bottom: 0; }
  .nav a:hover { background: none; }
}

/* ---------- 01 Hero ---------- */

/* Telemóvel: foto em cima, texto por baixo (a cara não fica tapada).
   Desktop: foto de fundo a toda a largura, texto à esquerda. */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + min(36vh, 300px) - 2rem) 0 clamp(6.5rem, 18vw, 8rem);
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
@media (min-width: 1000px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: clamp(640px, 92vh, 860px);
    padding: calc(var(--header-h) + 3rem) 0 clamp(8rem, 12vw, 11rem);
  }
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--header-h) + min(36vh, 300px) + 3rem);
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 22%;
}
@media (min-width: 640px) and (max-width: 999px) {
  .hero-bg img { object-position: 78% 35%; }
}
@media (min-width: 1000px) {
  .hero-bg { inset: 0; height: 100%; }
  .hero-bg img { object-position: 70% 30%; }
}

/* Véu navy: garante leitura do texto sobre a foto */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--header-h) + min(36vh, 300px) + 3rem + 1px);
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 44, 83, .55) 0%, rgba(1, 44, 83, 0) 22%),
    linear-gradient(180deg, rgba(1, 44, 83, 0) 45%, rgba(1, 44, 83, .8) 80%, var(--navy) 100%);
}
@media (min-width: 1000px) {
  .hero::before {
    inset: 0;
    height: auto;
    background:
      linear-gradient(180deg, rgba(1, 44, 83, .5) 0%, rgba(1, 44, 83, 0) 20%),
      linear-gradient(90deg, rgba(1, 44, 83, .94) 0%, rgba(1, 44, 83, .82) 32%, rgba(1, 44, 83, .35) 55%, rgba(1, 44, 83, 0) 72%);
  }
}

.hero-inner { position: relative; }
.hero-copy { max-width: 36rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .4rem .95rem;
  background: var(--light-blue);
  color: var(--navy);
  border-radius: 999px;
  font-weight: 600;
  font-size: .875rem;
}

.hero h1 { color: var(--white); max-width: 16ch; line-height: 1.18; }

.lead {
  max-width: 32rem;
  margin: 1.25rem 0 2rem;
  color: rgba(255, 255, 255, .88);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-phone { margin-top: 1.25rem; color: rgba(255, 255, 255, .8); }
.hero-phone a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hero-phone a:hover { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 639px) {
  .hero .actions .btn { flex: 1 1 100%; }
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero .lead { font-size: var(--step-0); margin: 1rem 0 1.5rem; }
  .hero .actions { gap: .6rem; }
}

/* Espuma */
.foam {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: auto;
  min-height: 56px;
  fill: var(--bg);
  pointer-events: none;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, .35) 45%, rgba(255, 255, 255, .15) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
  pointer-events: none;
}
.bubble-1 { width: 46px; height: 46px; left: 4%;  bottom: 150px; }
.bubble-2 { width: 20px; height: 20px; left: 8%;  bottom: 205px; }
.bubble-3 { width: 38px; height: 38px; right: 7%; bottom: 170px; }
.bubble-4 { width: 16px; height: 16px; right: 4%; bottom: 225px; }
@media (max-width: 999px) {
  .bubble-1, .bubble-2 { display: none; }
  .bubble-3 { bottom: 110px; right: 6%; }
  .bubble-4 { bottom: 150px; right: 14%; }
}

/* Sequência de entrada única + bolhas a flutuar devagar */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-bg img { animation: breathe 1.6s var(--ease) both; }
  .bubble { animation: float 7s ease-in-out infinite alternate; }
  .bubble-2 { animation-duration: 9s; animation-delay: -2s; }
  .bubble-3 { animation-duration: 8s; animation-delay: -4s; }
  .bubble-4 { animation-duration: 10s; animation-delay: -1s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes breathe {
  from { transform: scale(1.04); }
  to { transform: none; }
}
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

/* ---------- Faixa de benefícios ---------- */

.benefits {
  position: relative;
  z-index: 2;
  margin-top: clamp(-7.5rem, -9vw, -4.5rem);
  padding-bottom: var(--section);
}
.benefit-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -28px rgba(1, 44, 83, .35);
}
.benefit-bar li {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  line-height: 1.35;
}
.benefit-bar strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: .9375rem;
}
.benefit-bar span:last-child { color: var(--muted); font-size: .875rem; }
.benefit-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--light-blue);
  color: var(--blue-ink);
}
.benefit-ico .ico { width: 20px; height: 20px; }

@media (min-width: 640px) {
  .benefit-bar { padding: 1.5rem 1.75rem; gap: 1.5rem 2rem; }
  .benefit-bar li { flex-direction: row; align-items: center; gap: .85rem; }
  .benefit-bar strong { font-size: 1rem; }
  .benefit-bar span:last-child { font-size: .9375rem; }
  .benefit-ico { width: 44px; height: 44px; }
  .benefit-ico .ico { width: 22px; height: 22px; }
}
@media (min-width: 1000px) {
  .benefit-bar { grid-template-columns: repeat(4, 1fr); padding: 1.75rem 2rem; column-gap: 0; border-radius: 24px; }
  .benefit-bar li { padding-inline: 1rem; gap: .75rem; }
  .benefit-bar strong { font-size: .9375rem; white-space: nowrap; }
  .benefit-bar span:last-child { font-size: .875rem; }
  .benefit-ico { width: 40px; height: 40px; }
  .benefit-ico .ico { width: 20px; height: 20px; }
  .benefit-bar li:first-child { padding-left: 0; }
  .benefit-bar li + li { border-left: 1px solid var(--line); }
}

/* ---------- 02 Posicionamento: imagens + texto ---------- */

.intro { padding: 0 0 var(--section); overflow: hidden; }
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
}

/* Composição: imagem grande + imagem pequena + card + bolha */
.about-visual {
  position: relative;
  aspect-ratio: 1 / .92;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.ab-item { position: absolute; }
.ab-float { width: 100%; height: 100%; }
.ab-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }

.ab-main {
  top: 0; left: 0;
  width: 74%;
  aspect-ratio: 5 / 4;
}
.ab-main .ab-float {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-flow);
}
.ab-second {
  right: 0; bottom: 0;
  width: 50%;
  aspect-ratio: 1;
  z-index: 2;
}
.ab-second .ab-float {
  overflow: hidden;
  border: 8px solid var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -30px rgba(1, 44, 83, .45);
}
.ab-card {
  left: 9%; bottom: 3%;
  z-index: 3;
}
.ab-card .ab-float {
  display: grid;
  gap: .2rem;
  width: max-content;
  max-width: 180px;
  padding: 1.1rem 1.25rem;
  background: var(--blue-ink);
  color: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 40px -24px rgba(0, 114, 198, .8);
}
.ab-card strong { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.ab-card span { font-size: .875rem; line-height: 1.35; color: rgba(255, 255, 255, .88); }
.ab-bubble {
  position: absolute;
  top: 4%; right: 4%;
  width: clamp(56px, 12vw, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 10%, rgba(223, 243, 255, .9) 35%, rgba(92, 184, 255, .25) 75%, rgba(92, 184, 255, .1));
  box-shadow: inset 0 0 0 1px rgba(92, 184, 255, .35), 0 12px 30px -16px rgba(0, 135, 233, .5);
}

@media (hover: hover) {
  .ab-main:hover img, .ab-second:hover img { transform: scale(1.05); }
}

/* Movimento: flutuar em ritmos diferentes + entrada coreografada */
@media (prefers-reduced-motion: no-preference) {
  .ab-main .ab-float   { animation: drift 9s ease-in-out infinite alternate; }
  .ab-second .ab-float { animation: drift 7s ease-in-out -3s infinite alternate-reverse; }
  .ab-card .ab-float   { animation: drift 6s ease-in-out -1s infinite alternate; }
  .ab-bubble           { animation: float 8s ease-in-out infinite alternate; }

  .about-visual.reveal { opacity: 1; transform: none; }
  .about-visual.reveal .ab-item, .about-visual.reveal .ab-bubble {
    opacity: 0;
    transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  }
  .about-visual.reveal .ab-main   { transform: translateX(-40px); }
  .about-visual.reveal .ab-second { transform: translate(30px, 40px); transition-delay: .2s; }
  .about-visual.reveal .ab-card   { transform: scale(.8); transition-delay: .45s; }
  .about-visual.reveal .ab-bubble { transform: scale(.4); transition-delay: .6s; }
  .about-visual.reveal.is-in .ab-item, .about-visual.reveal.is-in .ab-bubble { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

.about-copy h2 { color: var(--navy); max-width: 18ch; }
/* Telemóvel/tablet: composição de imagens antes do texto */
@media (max-width: 899px) {
  .about-visual { max-width: 460px; }
}
.eyebrow-soft { background: var(--light-blue); color: var(--navy); }
.about-lead {
  margin: 1.25rem 0 1.5rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}
.check-list { display: grid; gap: .8rem; margin-bottom: 2rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--text);
  font-weight: 500;
}
.check-list .ico { width: 22px; height: 22px; margin-top: .1em; color: var(--blue-ink); }
@media (max-width: 639px) {
  .about-copy .actions .btn { flex: 1 1 100%; }
}

/* ---------- 03 Serviços: tabs + carrossel ---------- */

.services { padding: 0 0 var(--section); }

.services-head {
  display: grid;
  gap: .75rem;
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .services-head { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
}
.services h2 { color: var(--navy); max-width: 18ch; }
.services-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); max-width: 26rem; }

/* Seletor em pílula */
.tabs {
  display: inline-flex;
  gap: .25rem;
  padding: .35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px -22px rgba(1, 44, 83, .4);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .6rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.tab:hover { background: var(--light-blue); }
.tab[aria-selected="true"] { background: var(--blue-ink); color: var(--white); }
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px; height: 24px;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--light-blue);
  color: var(--navy);
  font-size: .8125rem;
}
.tab[aria-selected="true"] .tab-count { background: rgba(255, 255, 255, .2); color: var(--white); }

.tab-panel { margin-top: 1.75rem; outline: none; }
.js .tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel.is-entering { animation: panel-in .5s var(--ease) both; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.panel-top p { color: var(--muted); }

.carousel-nav { display: none; gap: .5rem; flex: none; }
.js .carousel-nav { display: flex; }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--navy); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 639px) {
  .js .carousel-nav { display: none; }   /* no telemóvel: deslizar */
}

/* Carrossel com scroll-snap (funciona sem JS) */
.svc-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 300px);
  gap: 1rem;
  margin: 0 calc(var(--gutter) * -1);
  padding: .5rem var(--gutter) 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.svc-track::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .svc-track { grid-auto-columns: calc((100% - 2 * 1.25rem) / 2.4); gap: 1.25rem; }
}
@media (min-width: 1000px) {
  .svc-track {
    grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
  }
}

.svc-card {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(1, 44, 83, .45);
  transition: box-shadow .3s;
}
.svc-card:hover { box-shadow: 0 1px 0 var(--line), 0 26px 50px -28px rgba(1, 44, 83, .5); }
.svc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--light-blue); }
.svc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
  padding: 1.25rem 1.25rem 1.4rem;
}
.svc-body h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.svc-body p { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.svc-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: .65rem;
  color: var(--blue-ink);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
}
.svc-link:hover { color: var(--navy); }

.panel-cta { margin-top: 1rem; }

/* Variante centrada (retirar a classe services--center do HTML para voltar ao layout anterior) */
.services--center .services-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
  margin-bottom: 1.75rem;
}
.services--center h2 { max-width: none; }
.services--center .eyebrow { margin-bottom: .25rem; }
.services--center .services-head p:not(.eyebrow) { max-width: 44rem; text-wrap: balance; }
.services--center .tabs-wrap { display: flex; justify-content: center; }
.services--center .tab-panel { position: relative; container-type: inline-size; }
.services--center .panel-top { margin: 0; }
.services--center .panel-top p { display: none; }
.services--center .panel-cta { display: flex; justify-content: center; margin-top: 1.25rem; }
@media (min-width: 640px) {
  .services--center .carousel-nav {
    position: absolute;
    z-index: 2;
    left: -22px;
    right: -22px;
    /* meio vertical do card: (altura do painel − botão de orçamento) / 2 − metade da seta */
    top: calc((100% - 52px - 1.25rem) / 2 - .375rem - 24px);
    justify-content: space-between;
    pointer-events: none;
  }
  .services--center .carousel-btn {
    pointer-events: auto;
    box-shadow: 0 10px 24px -14px rgba(1, 44, 83, .5);
  }
  .services--center .carousel-btn:disabled { opacity: 0; pointer-events: none; }
}


/* ---------- 06 Qual é o seu caso? (cards por perfil) ---------- */

.cases {
  padding: var(--section) 0;
  margin-bottom: var(--section);
  background: linear-gradient(180deg, var(--light-blue) 0%, #EEF8FF 55%, var(--bg) 100%);
}
.cases-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.cases-head .eyebrow { margin-bottom: .25rem; background: var(--white); }
.cases h2 { color: var(--navy); }
.cases-head p:not(.eyebrow) { max-width: 44rem; color: var(--muted); font-size: var(--step-1); text-wrap: balance; }

/* Telemóvel: deslizar; tablet: 2 colunas; desktop: 4 */
.cases-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 300px);
  gap: 1rem;
  margin: 0 calc(var(--gutter) * -1);
  padding: .25rem var(--gutter) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.cases-grid::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .cases-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}
@media (min-width: 1000px) {
  .cases-grid { grid-template-columns: repeat(4, 1fr); }
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding: 1.35rem 1.25rem 1.25rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 18px 40px -32px rgba(1, 44, 83, .45);
  scroll-snap-align: start;
  transition: background-color .35s var(--ease), box-shadow .35s;
}
.case-card h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.case-points li {
  position: relative;
  padding-left: .9rem;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.5;
}
.case-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.case-tag {
  margin: .25rem 0 .5rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--light-blue);
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 600;
  transition: background-color .35s var(--ease);
}
.case-media {
  width: 100%;
  margin-top: auto;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  border-radius: 18px;
}
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }

.case-go {
  position: absolute;
  right: calc(1.25rem + 12px);
  bottom: calc(1.25rem + 12px);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-ink);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(1, 44, 83, .6);
  transition: background-color .2s;
}
.case-go .ico { width: 20px; height: 20px; }
.case-go::after { content: ""; position: absolute; inset: -999px; }   /* todo o card é clicável */
.case-card { overflow: hidden; }
.case-go:hover { background: var(--navy); }
.case-go:focus-visible { outline-offset: 4px; }

/* Destaque: o card "em foco" fica azul-claro (por defeito o AL; segue o rato) */
.case-card.is-featured,
.case-card:hover,
.case-card:focus-within { background: #BFE6FF; }
.cases-grid:hover .case-card.is-featured:not(:hover):not(:focus-within) { background: var(--white); }
.case-card.is-featured .case-tag,
.case-card:hover .case-tag,
.case-card:focus-within .case-tag { background: var(--white); }
.cases-grid:hover .case-card.is-featured:not(:hover) .case-tag { background: var(--light-blue); }
@media (hover: hover) {
  .case-card:hover .case-media img { transform: scale(1.05); }
}
/* Hover: gelatina + zoom leve (termina em 1.025 e volta suave ao sair) */
@keyframes jelly-zoom {
  0%   { transform: scale3d(1, 1, 1); }
  30%  { transform: scale3d(1.055, .99, 1); }
  50%  { transform: scale3d(1.005, 1.045, 1); }
  70%  { transform: scale3d(1.04, 1.015, 1); }
  85%  { transform: scale3d(1.02, 1.03, 1); }
  100% { transform: scale3d(1.025, 1.025, 1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .case-card,
  .case-card.reveal.is-in { transition: background-color .35s var(--ease), box-shadow .35s, transform .45s var(--ease), opacity .8s var(--ease); transition-delay: 0s; }
  .case-card.reveal.is-in:hover,
  .case-card:not(.reveal):hover {
    z-index: 2;
    transform: scale(1.025);
    animation: jelly-zoom .75s both;
    box-shadow: 0 30px 60px -34px rgba(1, 44, 83, .55);
  }
  .case-card:hover .case-go { animation: jelly .7s .15s both; }
}

/* ---------- 07 Como funciona (passos com ícone e ligação) ---------- */

.steps { padding: 0 0 var(--section); }
.steps-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  margin-bottom: 3rem;
  text-align: center;
}
.steps h2 { color: var(--navy); }

.step-list {
  --ico: 96px;
  display: grid;
  gap: 2.5rem;
  counter-reset: none;
}
@media (min-width: 760px) {
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.step-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--ico); height: var(--ico);
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--blue-ink);
  color: var(--white);
  box-shadow: 0 18px 36px -18px rgba(0, 114, 198, .7);
}
.step-ico .ico { width: 40px; height: 40px; stroke-width: 1.5; }
.step-num {
  position: absolute;
  right: -22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--light-blue);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.step-list h3 { color: var(--navy); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.step-list p { margin-top: .4rem; max-width: 18rem; color: var(--muted); font-size: .9375rem; }

/* Linha de ligação entre passos (desktop/tablet): desenha-se ao entrar */
@media (min-width: 760px) {
  .step-list li + li::before {
    content: "";
    position: absolute;
    top: calc(var(--ico) / 2);
    right: calc(50% + var(--ico) / 2 + 40px);
    width: calc(100% + 2rem - var(--ico) - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--line), #9FB6CA, var(--line));
    transform-origin: left center;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .step-list li.reveal + li.reveal::before { transform: scaleX(0); transition: transform .8s var(--ease) .35s; }
  .step-list li.reveal + li.reveal.is-in::before { transform: scaleX(1); }
}
/* Telemóvel: pequena linha vertical entre passos */
@media (max-width: 759px) {
  .step-list li + li::before {
    content: "";
    position: absolute;
    top: -2.5rem;
    left: 50%;
    width: 2px;
    height: 1.75rem;
    margin-top: .375rem;
    background: var(--line);
  }
}

.steps-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 3rem; }
@media (max-width: 639px) {
  .steps-cta .btn { flex: 1 1 100%; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .step-list li:hover .step-ico { animation: jelly .7s both; }
}

/* ---------- 08 Cascais (mapa de fundo + caixa) ---------- */

.place {
  position: relative;
  isolation: isolate;
  background: #CFE4F5;   /* cor do mar no mapa, enquanto a imagem carrega */
}
.place-media {
  position: relative;
  height: 340px;
  overflow: hidden;
}
.place-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 34% 52%;   /* ponto de Cascais na imagem */
}
.place-pin {
  position: absolute;
  left: 34%; top: 52%;
  z-index: 1;
}
.pin-dot {
  position: absolute;
  left: -9px; top: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-ink);
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(1, 44, 83, .45);
}
.pin-dot::before, .pin-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: 0;
}
.pin-label {
  position: absolute;
  left: 16px; top: -34px;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(1, 44, 83, .5);
}
@media (prefers-reduced-motion: no-preference) {
  .pin-dot::before, .pin-dot::after { animation: ripple 2.8s ease-out infinite; }
  .pin-dot::after { animation-delay: 1.4s; }
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(4.5); opacity: 0; }
}
.map-credit {
  position: absolute;
  right: .5rem; bottom: .4rem;
  z-index: 1;
  padding: .1rem .45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, .8);
  color: var(--muted);
  font-size: .6875rem;
}
.map-credit a { color: inherit; }

.place-inner { position: relative; z-index: 2; margin-top: -4rem; padding-bottom: var(--section); }
.place-box {
  max-width: 440px;
  padding: 1.75rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 30px 60px -34px rgba(1, 44, 83, .5);
}
.place-box .eyebrow { margin-bottom: .75rem; }
.place-box h2 { color: var(--navy); font-size: var(--step-3); }
.place-box p:not(.eyebrow) { margin: .75rem 0 1rem; color: var(--muted); font-size: var(--step-0); line-height: 1.55; }

@media (min-width: 900px) {
  .place {
    display: flex;
    align-items: center;
    min-height: clamp(480px, 40vw, 620px);
  }
  .place-media { position: absolute; inset: 0; height: auto; }
  .place-inner { margin-top: 0; padding-block: 4rem; display: flex; justify-content: flex-end; }
  .place-box { padding: 2.25rem; }
}
@media (max-width: 899px) {
  .place { background: var(--bg); }
  .map-credit { bottom: auto; top: .4rem; }
  .place-inner { padding-bottom: var(--section); }
}

/* ---------- 09 Confiança (galeria + testemunhos + Susana) ---------- */

.trust { padding: var(--section) 0; }
.trust-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.trust-head .eyebrow { margin-bottom: .25rem; }
.trust h2 { color: var(--navy); }
.trust-head p:not(.eyebrow) { max-width: 40rem; color: var(--muted); font-size: var(--step-1); text-wrap: balance; }

/* Selo de demonstração (retirar quando houver material real) */
.demo-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(1, 44, 83, .82);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  pointer-events: none;
}

/* Galeria em mosaico */
.gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.gal-item {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1;
  background: var(--light-blue);
}
.gal-item:first-of-type, .gal-item:last-of-type { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (min-width: 760px) {
  .gallery {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    grid-template-rows: repeat(2, clamp(150px, 16vw, 230px));
    gap: 1rem;
  }
  .gal-item, .gal-item:first-of-type, .gal-item:last-of-type { aspect-ratio: auto; grid-column: auto; }
  .gal-item:first-of-type { grid-column: 1; grid-row: 1 / span 2; }
  .gal-item:last-of-type { grid-column: 3 / span 2; }
}
@media (hover: hover) {
  .gal-item:hover img { transform: scale(1.06); }
}

/* Testemunhos */
.testimonials {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.t-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 3.25rem 1.75rem 1.75rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 18px 40px -32px rgba(1, 44, 83, .45);
}
.t-quote {
  position: absolute;
  top: .6rem; right: 1.5rem;
  color: var(--light-blue);
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 600;
  line-height: 1;
}
.t-card blockquote { margin: 0; color: var(--muted); font-style: italic; line-height: 1.6; }
.t-card figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; color: var(--muted); font-size: .875rem; }
.t-card figcaption strong { display: block; color: var(--navy); font-size: .9375rem; }
.t-avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--blue-ink);
}

/* Fale com a Susana */
.susana {
  position: relative;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  margin-top: 2.5rem;
  padding: 3rem 1.75rem 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--light-blue) 0%, #EAF6FF 100%);
  text-align: center;
}
@media (min-width: 900px) {
  .susana {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-items: start;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
    text-align: left;
  }
}
.susana-photo {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .25rem;
  width: 128px; height: 128px;
  border-radius: 50%;
  border: 2px dashed #9FB6CA;
  background: var(--white);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}
.susana-photo .ico { width: 36px; height: 36px; color: var(--blue-ink); }
.susana h3 { color: var(--navy); font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; }
.susana-text p { margin-top: .35rem; color: var(--muted); }
.susana-text strong { color: var(--navy); }
.susana-quote { font-style: italic; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .t-card:hover { animation: jelly-soft .8s both; }
}

/* ---------- 10 CTA final + formulário em linha ---------- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0;
  background:
    radial-gradient(60% 90% at 0% 100%, rgba(223, 243, 255, .9), transparent 70%),
    linear-gradient(180deg, #EEF8FF 0%, var(--light-blue) 100%);
  border-top: 1px solid var(--line);
}
.final-inner { position: relative; z-index: 1; }

.final-top { display: grid; gap: 1rem; margin-bottom: 2rem; }
.final-cta h2 { color: var(--navy); font-size: var(--step-3); max-width: 16ch; }
.final-top p { max-width: 26rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
@media (min-width: 900px) {
  .final-top {
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
  }
  .final-top p { padding-left: 3rem; border-left: 1.5px solid #B9D4EA; }
}

/* Formulário em linha (reaproveita .field e estilos base de .quote-form) */
.quote-form.quote-inline {
  display: grid;
  gap: .75rem;
  max-width: 1040px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.quote-inline .field input,
.quote-inline .field select { background-color: var(--white); min-height: 56px; }
.quote-inline .btn { min-height: 56px; }
.quote-inline .form-status { grid-column: 1 / -1; min-height: 0; }
.quote-inline .form-status:empty { display: none; }
@media (min-width: 640px) {
  .quote-inline { grid-template-columns: 1fr 1fr; }
  .quote-inline .btn { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .quote-inline { grid-template-columns: repeat(4, 1fr) auto; }
  .quote-inline .btn { grid-column: auto; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .quote-inline .btn:hover .ico { transform: translateX(3px); }
  .quote-inline .btn .ico { transition: transform .25s var(--ease); }
}

.final-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin-top: 1.25rem;
  color: var(--muted);
}
.final-alt a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
}
.final-alt .ico { width: 18px; height: 18px; color: var(--blue-ink); }

/* Decoração à direita: imagem a esbater-se + bolhas */
.final-deco {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(30vw, 420px);
  pointer-events: none;
  display: none;
}
.final-deco img {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  opacity: .9;
}
.bubble-s {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 10%, rgba(223, 243, 255, .85) 35%, rgba(92, 184, 255, .2) 75%, rgba(92, 184, 255, .08));
  box-shadow: inset 0 0 0 1px rgba(92, 184, 255, .35);
}
.bubble-s.b1 { width: 64px; height: 64px; left: 4%; top: 16%; }
.bubble-s.b2 { width: 26px; height: 26px; left: 18%; top: 62%; }
.bubble-s.b3 { width: 40px; height: 40px; left: 30%; bottom: 10%; }
@media (prefers-reduced-motion: no-preference) {
  .bubble-s { animation: float 8s ease-in-out infinite alternate; }
  .bubble-s.b2 { animation-duration: 6s; animation-delay: -2s; }
  .bubble-s.b3 { animation-duration: 9s; animation-delay: -4s; }
}
@media (min-width: 1280px) {
  .final-deco { display: block; }
  .final-top, .final-alt { max-width: calc(100% - min(24vw, 320px)); }
  .quote-form.quote-inline { max-width: calc(100% - min(16vw, 200px)); }
}

/* Formulário */
.quote-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(1, 44, 83, .25);
}
.field { display: grid; gap: .45rem; min-width: 0; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--navy);
}
.optional { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23012C53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7D8C9E; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-ink);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 135, 233, .2);
}
.field [aria-invalid="true"] { border-color: var(--error); }

.form-status { min-height: 1.5em; font-size: .9375rem; color: var(--muted); }
.form-status.is-error { color: var(--error); }


/* ---------- Rodapé (claro) ---------- */

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--white);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}
@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: 1.3fr 1.05fr .85fr 1.25fr 1.2fr; justify-content: normal; }
  .footer-brand { grid-column: auto; }
}
.footer-logo { width: 170px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 17rem; font-size: .9375rem; }
.site-footer h3 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.footer-links li + li { margin-top: .6rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--blue-ink); }
.footer-links a, .footer-links span { font-size: .9375rem; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: .55rem; overflow-wrap: anywhere; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--blue-ink); }
.footer-wa p { margin-bottom: 1rem; font-size: .9375rem; max-width: 16rem; }
.site-footer .footer-wa .btn { color: var(--white); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  text-align: center;
}

/* ---------- Contacto rápido: botão flutuante (desktop) e barra fixa (telemóvel) ---------- */

.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--blue-ink);
  color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(1, 44, 83, .5);
  transition: background-color .2s, transform .3s var(--ease), opacity .3s var(--ease);
}
.wa-float .ico { width: 28px; height: 28px; }
.wa-float:hover { background: var(--navy); }

.mobile-bar { display: none; }

@media (min-width: 760px) {
  .wa-float { display: grid; }
}

@media (max-width: 759px) {
  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
    background: rgba(247, 250, 252, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: transform .35s var(--ease);
  }
  .mobile-bar .btn { min-height: 48px; padding-inline: .75rem; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Com JS: aparecem só depois do hero */
.js .wa-float:not(.is-visible) { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
.js .mobile-bar:not(.is-visible) { transform: translateY(110%); visibility: hidden; }

/* ---------- Movimento: hover gelatinoso + entrada das dobras ---------- */

@keyframes jelly {
  0%   { transform: scale3d(1, 1, 1); }
  30%  { transform: scale3d(1.06, .94, 1); }
  45%  { transform: scale3d(.96, 1.04, 1); }
  60%  { transform: scale3d(1.03, .97, 1); }
  75%  { transform: scale3d(.99, 1.01, 1); }
  100% { transform: scale3d(1, 1, 1); }
}
@keyframes jelly-soft {
  0%   { transform: scale3d(1, 1, 1); }
  30%  { transform: scale3d(1.015, .985, 1); }
  50%  { transform: scale3d(.992, 1.008, 1); }
  70%  { transform: scale3d(1.004, .996, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover,
  .tab:hover,
  .carousel-btn:hover:not(:disabled),
  .wa-float.is-visible:hover,
  .eyebrow:hover { animation: jelly .7s both; }

  .benefit-bar li:hover .benefit-ico { animation: jelly .7s both; }

  .svc-card:hover { animation: jelly-soft .8s both; }
}

/* Entrada suave das dobras (JS adiciona .reveal e depois .is-in) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Traço animado sob frases-chave ---------- */
/* Fundo SVG por baixo do texto: acompanha a frase mesmo quando quebra de linha. */

.mark {
  padding-bottom: .08em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%230087E9' d='M2 17 C 55 5, 140 0, 198 6 C 140 8, 55 14, 2 17 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .mark, .final-cta .mark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%235CB8FF' d='M2 17 C 55 5, 140 0, 198 6 C 140 8, 55 14, 2 17 Z'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: no-preference) {
  .js .mark {
    background-size: 0% .3em;
    transition: background-size 1s cubic-bezier(.65, .05, .25, 1) .35s;
  }
  .js .mark.is-drawn { background-size: 100% .3em; }
  .js .hero .mark { transition-delay: .8s; }
}

/* ---------- Bolhas nas margens (só ecrãs muito largos) ---------- */

[data-bubbles] { position: relative; }
.side-bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.side-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 10%, rgba(223, 243, 255, .85) 35%, rgba(92, 184, 255, .22) 75%, rgba(92, 184, 255, .08));
  box-shadow: inset 0 0 0 1px rgba(92, 184, 255, .35), 0 10px 26px -14px rgba(0, 135, 233, .45);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.side-bubbles.is-on .side-bubble { opacity: var(--o, .9); }
[data-bubbles] > .wrap, [data-bubbles] > .final-deco { position: relative; z-index: 1; }
.final-cta > .final-deco { position: absolute; }
@media (prefers-reduced-motion: no-preference) {
  .side-bubble { animation: bubble-drift var(--t, 9s) ease-in-out var(--dl, 0s) infinite alternate; }
}
@keyframes bubble-drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(var(--dx, 6px), calc(var(--dy, -18px) * .6)); }
  100% { transform: translate(calc(var(--dx, 6px) * -1), var(--dy, -18px)); }
}
@media (max-width: 1599px) {
  .side-bubbles { display: none; }
}

/* ---------- Popups (formulário + oferta de saída) ---------- */

html.modal-open { overflow: hidden; }

.modal {
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(1, 44, 83, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-card, .promo-card {
  position: relative;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 40px 90px -30px rgba(1, 44, 83, .6);
}
.modal-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.modal-card .eyebrow { margin-bottom: .75rem; }
.modal-card h2 { color: var(--navy); font-size: var(--step-3); }
.modal-lead { margin: .5rem 0 1.5rem; color: var(--muted); }
.quote-form.quote-modal-form { padding: 0; box-shadow: none; border-radius: 0; gap: 1rem; }
.quote-modal-form .field textarea { min-height: 96px; }
.quote-modal-form .form-status:empty { display: none; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--navy);
  cursor: pointer;
  transition: background-color .2s;
}
.modal-close:hover { background: #C9E8FF; }
.modal-close .ico { width: 20px; height: 20px; }

/* Oferta de saída */
.modal-promo { width: min(860px, calc(100vw - 2rem)); }
.promo-card { display: grid; }
@media (min-width: 720px) {
  .promo-card { grid-template-columns: .9fr 1.1fr; overflow: hidden; }
}
.promo-media { position: relative; min-height: 180px; background: var(--light-blue); }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) {
  .promo-media { height: 180px; }
}
.promo-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 10%, rgba(223, 243, 255, .85) 35%, rgba(92, 184, 255, .25) 75%, rgba(92, 184, 255, .1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.promo-bubble.b1 { width: 70px; height: 70px; right: 12%; top: 12%; }
.promo-bubble.b2 { width: 30px; height: 30px; right: 30%; top: 38%; }
.promo-body { padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.demo-badge.demo-badge-inline { position: static; display: inline-block; margin-bottom: 1rem; }
.promo-kicker { color: var(--blue-ink); font-weight: 600; margin-bottom: .35rem; }
.promo-body h2 { color: var(--navy); font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.12; }
.promo-value {
  display: inline-block;
  padding: 0 .3em;
  border-radius: .35em;
  background: var(--light-blue);
  color: var(--blue-ink);
}
.promo-body > p:not(.promo-kicker) { margin: .9rem 0 1.5rem; color: var(--muted); }
.promo-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 479px) {
  .promo-actions .btn { flex: 1 1 100%; }
}
.promo-dismiss {
  display: block;
  margin-top: 1rem;
  padding: .5rem 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .9375rem;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.promo-dismiss:hover { color: var(--navy); }

/* Entrada */
@media (prefers-reduced-motion: no-preference) {
  .modal[open] .modal-card, .modal[open] .promo-card { animation: modal-in .45s var(--ease) both; }
  .modal[open]::backdrop { animation: fade-in .3s ease both; }
  .modal-promo[open] .promo-value { animation: jelly .8s .45s both; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ajustes: bolhas do hero sem tapar conteúdo + centragem no telemóvel ---------- */

/* Bolhas da esquerda só quando há margem livre ao lado do texto */
@media (max-width: 1599px) {
  .hero .bubble-1, .hero .bubble-2 { display: none; }
}
/* Telemóvel/tablet: o texto ocupa a largura toda — sem bolhas no hero */
@media (max-width: 999px) {
  .hero .bubble { display: none; }
}

/* Hero centrado (telemóvel e tablet) */
@media (max-width: 999px) {
  .hero-copy { max-width: 36rem; margin-inline: auto; text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
}

/* Rodapé centrado (telemóvel) */
@media (max-width: 639px) {
  .footer-grid { justify-items: center; text-align: center; }
  .footer-logo { margin-inline: auto; }
  .footer-brand p, .footer-wa p { margin-inline: auto; }
  .footer-contact a, .footer-contact span { justify-content: center; }
}

/* Hero no telemóvel: texto mais arejado */
@media (max-width: 639px) {
  .hero .eyebrow { margin-bottom: 1.25rem; }
  .hero h1 { line-height: 1.15; }
  .hero .lead {
    max-width: 30ch;
    margin: 1.25rem auto 2rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    text-wrap: balance;
  }
  .lead-extra { display: none; }
  .hero-phone { margin-top: 1.5rem; }
}

/* Popup do formulário compacto: cabe sem scroll no telemóvel e em ecrãs baixos */
.quote-modal-form .field-row { grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 639px), (max-height: 860px) {
  .modal-card { padding: 1.25rem 1.25rem 1.1rem; }
  .modal-card .eyebrow { display: none; }
  .modal-card h2 { font-size: 1.6rem; padding-right: 3rem; }
  .modal-lead { margin: .35rem 0 1rem; font-size: .9375rem; line-height: 1.45; }
  .quote-form.quote-modal-form { gap: .7rem; }
  .quote-modal-form .field { gap: .3rem; }
  .quote-modal-form .field label { font-size: .875rem; }
  .quote-modal-form .field input,
  .quote-modal-form .field select { min-height: 46px; padding: .6rem .85rem; }
  .quote-modal-form .field textarea { min-height: 64px; padding: .6rem .85rem; }
  .quote-modal-form .btn { min-height: 48px; }
  .modal-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
