/* Care Clinic Espinho
 *
 * Linguagem inspirada na referência (lavadental.lv): fundo escuro com blocos
 * claros, barra em degradê com progresso por secção, galerias com scroll.
 * Cores da própria marca: taupe do logótipo, quase-preto e pedra.
 * Raios: botões em pílula, cartões e imagens retos (0) como na referência.
 * Camadas (z-index): 1 conteúdo, 2 sobreposições, 50 cabeçalho, 60 menu, 70 skip.
 */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-var-5.2.5.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-var-5.2.5.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #121311;
  --night-2: #1b1c19;
  --tan: #b9a68c;
  --tan-soft: #d7cab6;
  --stone: #e7e2d9;
  --paper: #e9e7e2;
  --ink: #141513;
  --ink-muted: #5c5346;
  --fog: #a8a49b;

  --line-dark: rgb(231 226 217 / 0.2);
  --line-light: rgb(20 21 19 / 0.16);

  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5.2vw, 76px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--stone);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 70;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--night);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.theme-dark {
  background: var(--night);
  color: var(--stone);
}

.theme-light {
  background: var(--stone);
  color: var(--ink);
}

.theme-paper {
  background-color: var(--paper);
  /* Textura de papel: ruído SVG muito suave. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .38 0 0 0 0 .34 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
}

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 60px;
  padding: 0 2.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--stone);
  color: var(--night);
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    scale 0.2s var(--ease-out);
}

/* "scale" e não "transform", para não colidir com o GSAP. */
.btn:active {
  scale: 0.98;
}

.btn:hover {
  background: var(--tan-soft);
}

.btn-dark {
  background: var(--night);
  color: var(--stone);
}

.btn-dark:hover {
  background: #2a2b27;
}

.btn-line {
  background: transparent;
  border-color: var(--line-light);
  color: var(--ink);
}

.btn-line:hover {
  background: transparent;
  border-color: var(--ink);
}

.btn-sm {
  min-height: 46px;
  padding: 0 1.4rem;
  font-size: 0.92rem;
}

.circle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--night);
  flex: none;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--night);
  transition: scale 0.4s var(--ease-out);
}

.play .icon {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  height: 124px;
  padding: 30px var(--gutter) 0;
  color: var(--stone);
  background: linear-gradient(rgb(18 19 17) -43%, rgb(18 19 17 / 0));
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 41px;
  fill: var(--tan);
}

.brand-word {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  margin-top: 6px;
}

.nav li {
  position: relative;
  padding: 0 clamp(12px, 1.5vw, 20px) 13px;
}

.nav a {
  font-size: 0.94rem;
  text-decoration: none;
  color: rgb(231 226 217 / 0.78);
  transition: color 0.3s;
}

.nav a:hover,
.nav li.is-active a {
  color: var(--stone);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgb(231 226 217 / 0.2);
}

.progress-fill {
  display: block;
  height: 100%;
  background: var(--stone);
  transform-origin: left;
  transform: scaleX(0);
}

.header-phone {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 6px;
  font-size: 0.94rem;
  text-decoration: none;
  color: rgb(231 226 217 / 0.85);
}

.header-phone:hover {
  color: var(--stone);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  place-items: center;
}

.menu-toggle .icon {
  width: 28px;
  height: 28px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 110px var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--stone);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  gap: 0.2rem;
}

.mobile-menu nav a {
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1.3;
  text-decoration: none;
}

.menu-open .site-header {
  background: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 104px var(--gutter) clamp(2.5rem, 7vh, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hero-inner > * {
  pointer-events: auto;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 3.4vw, 3.3rem);
  line-height: 1.12;
  max-width: 11em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero-title .line > span {
  display: block;
}

.hero-video {
  position: absolute;
  left: calc(50% - clamp(110px, 12vw, 180px));
  top: 30%;
  width: clamp(150px, 15vw, 230px);
  aspect-ratio: 9 / 14;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--night-2);
  cursor: pointer;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.55);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video:hover .play,
.cta-video:hover .play {
  scale: 1.1;
}

.hero-foot {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  max-width: 24rem;
}

.hero-foot p {
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.4;
}

.hero-claim {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(92vw, 1000px);
  translate: -50% -50%;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.2;
  text-align: center;
  color: var(--stone);
  opacity: 0;
  pointer-events: none;
}

.hero-claim span {
  display: block;
}

/* ---------- Sobre: galeria + frase ---------- */
.about-stage {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

.gallery {
  position: absolute;
  left: 0;
  top: 50%;
  display: flex;
  gap: 24px;
  padding-left: var(--gutter);
  translate: 0 -50%;
}

.g-item {
  flex: none;
  width: 52vw;
  height: 62vh;
  overflow: hidden;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-item:nth-child(2) {
  width: 34vw;
}

.feel {
  position: absolute;
  inset: 0;
}

.feel-bg {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
}

.feel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(18 19 17 / 0.62), rgb(18 19 17 / 0.5));
}

.feel-text {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(92vw, 1100px);
  translate: -50% -50%;
  font-family: var(--display);
  font-size: clamp(2rem, 3.9vw, 3.8rem);
  line-height: 1.15;
  text-align: center;
  color: var(--stone);
}

.feel-text .w {
  opacity: 0.18;
}

.flyers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fly {
  position: absolute;
  top: 100%;
  width: clamp(130px, 13vw, 210px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.fly.f1 { left: 6%; z-index: 1; }
.fly.f2 { left: 58%; width: clamp(150px, 16vw, 250px); z-index: 3; }
.fly.f3 { left: 30%; z-index: 3; }
.fly.f4 { left: 80%; z-index: 1; }
.fly.f5 { left: 14%; width: clamp(150px, 15vw, 240px); z-index: 3; }
.fly.f6 { left: 70%; z-index: 3; }

/* ---------- Cuidado (bloco com textura) ---------- */
.care {
  padding-block: clamp(4rem, 9vh, 6.5rem);
}

.care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.care-photo {
  width: min(100%, 300px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.care-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-copy {
  display: grid;
  gap: 1.25rem;
  max-width: 30rem;
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line-light);
  font-size: 0.98rem;
}

.care-copy .care-lead {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.4;
  margin-bottom: clamp(2rem, 8vh, 6rem);
}

/* ---------- Percurso (círculo) ---------- */
.journey-pin {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
}

.journey-head {
  padding-top: 110px;
}

.dial {
  position: absolute;
  left: 50%;
  top: 34%;
  --size: min(110vh, 92vw);
  width: var(--size);
  aspect-ratio: 1;
  translate: -50% 0;
}

.dial-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dial-circle circle {
  fill: none;
  stroke: var(--line-dark);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.dial-rotor {
  position: absolute;
  inset: 0;
}

.dial-node {
  --a: calc(var(--i) * 72deg);
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 999px;
  background: var(--tan);
  transform: rotate(var(--a)) translateY(calc(var(--size) * -0.48)) rotate(calc(-1 * var(--a) - var(--rot, 0deg)));
}

.dial-node b {
  position: absolute;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--stone);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--stone);
  transition:
    background-color 0.4s,
    color 0.4s;
}

.dial-node.is-active b {
  background: var(--stone);
  color: var(--night);
}

.dial-tick {
  position: absolute;
  left: 50%;
  top: 2%;
  width: 1px;
  height: 9vh;
  margin-top: 12px;
  background: var(--stone);
  opacity: 0.5;
}

.journey-steps {
  position: absolute;
  left: 50%;
  top: calc(34% + 15vh);
  width: min(560px, 86vw);
  translate: -50% 0;
  text-align: center;
}

.journey-step {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out),
    visibility 0s 0.5s;
}

.journey-step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.1s, 0.1s, 0s;
}

.journey-step h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
  color: var(--tan);
}

.journey-step p {
  max-width: 40ch;
  margin: 1rem auto 0;
  color: var(--fog);
}

/* ---------- Esta é a Care Clinic ---------- */
.statement-pin {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

.statement-text {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: 92vw;
  translate: -50% -50%;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.15;
  text-align: center;
}

.statement-box {
  position: absolute;
  inset: 0;
  background: var(--night) url("/assets/img/curvas-1309d273.svg") center / cover no-repeat;
  color: var(--stone);
  clip-path: inset(43% 41% 43% 41%);
}

.statement-box .statement-text {
  color: rgb(231 226 217 / 0.9);
}

/* ---------- Chamada (cartão) ---------- */
.theme-split {
  background: linear-gradient(var(--night) 62%, var(--stone) 62%);
  color: var(--ink);
  padding-top: 2rem;
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  max-width: 860px;
  margin-inline: auto;
  background: var(--stone);
}

.cta-video {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--night-2);
  cursor: pointer;
}

.cta-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.cta-title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
}

/* ---------- Resultados ---------- */
.portfolio {
  padding-block: clamp(5rem, 12vh, 8rem) clamp(4rem, 9vh, 6rem);
}

.pf-title {
  max-width: 15em;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.pf-item {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  background: #d9d3c8;
  cursor: pointer;
}

.pf-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.6s var(--ease-out),
    scale 1.2s var(--ease-out);
}

.pf-before {
  opacity: 0;
}

.pf-item:hover img,
.pf-item:focus-visible img {
  scale: 1.04;
}

.pf-item:hover .pf-before,
.pf-item:focus-visible .pf-before,
.pf-item.is-before .pf-before {
  opacity: 1;
}

.pf-more {
  display: none;
}

.pf-grid.is-expanded .pf-more {
  display: block;
}

.tags {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 9px 3px;
  background: var(--stone);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag-state {
  background: var(--night);
  color: var(--stone);
}

.tag-state::after {
  content: attr(data-a);
}

.pf-item:hover .tag-state::after,
.pf-item:focus-visible .tag-state::after,
.pf-item.is-before .tag-state::after {
  content: attr(data-b);
}

.pf-foot {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pf-hint {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ---------- Tratamentos ---------- */
.services-top {
  padding-top: clamp(4rem, 10vh, 7rem);
}

.services-top .h2 {
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.sv-card {
  position: relative;
  overflow: hidden;
  background: var(--night-2);
  color: var(--stone);
}

.sv-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) brightness(0.82) contrast(0.95);
  transition:
    filter 0.7s var(--ease-out),
    scale 1.2s var(--ease-out);
}

/* Tinta da marca por cima da foto, que sai no hover. */
.sv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(90 80 64 / 0.42);
  mix-blend-mode: multiply;
  transition: opacity 0.7s var(--ease-out);
}

.sv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 45%, rgb(18 19 17 / 0.55));
}

.sv-card:hover img {
  filter: none;
  scale: 1.04;
}

.sv-card:hover::before {
  opacity: 0;
}

.sv-wide {
  height: clamp(220px, 32vh, 300px);
}

.sv-wide img {
  object-position: 50% 30%;
}

.sv-n {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 2;
  font-size: 0.95rem;
}

.sv-t {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.15;
  transition: translate 0.5s var(--ease-out);
}

.sv-more {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--stone);
  color: var(--night);
  cursor: pointer;
  transition: rotate 0.4s var(--ease-out);
}

.sv-desc {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0;
  translate: 0 12px;
  transition:
    opacity 0.4s var(--ease-out),
    translate 0.5s var(--ease-out);
}

.sv-card.is-open::after {
  background: rgb(18 19 17 / 0.72);
}

.sv-card.is-open .sv-t {
  translate: 0 -4.5em;
}

.sv-card.is-open .sv-desc {
  opacity: 1;
  translate: 0 0;
}

.sv-card.is-open .sv-more {
  rotate: 90deg;
}

.services-row {
  background: linear-gradient(var(--stone) 55%, var(--night) 55%);
  padding-top: 16px;
}

.sv-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 290px));
  gap: 16px;
}

.sv-cards .sv-card {
  aspect-ratio: 3 / 4;
}

.services-list {
  padding: clamp(2rem, 6vh, 4rem) 0 clamp(5rem, 12vh, 8rem);
}

.sv-list li {
  border-bottom: 1px solid var(--line-dark);
}

.sv-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 1rem 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.sv-list .sv-n {
  position: static;
  color: var(--fog);
}

.sv-list .sv-t {
  position: static;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
}

.sv-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--night);
  transition: rotate 0.4s var(--ease-out);
}

.sv-list button[aria-expanded="true"] .sv-arrow {
  rotate: 90deg;
}

.sv-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.sv-panel > div {
  overflow: hidden;
}

.sv-panel p {
  max-width: 46ch;
  margin-left: 33.33%;
  padding-bottom: 1.6rem;
  color: var(--fog);
}

.sv-list li.is-open .sv-panel {
  grid-template-rows: 1fr;
}

/* ---------- Equipa ---------- */
.team {
  padding-block: clamp(5rem, 12vh, 8rem);
}

.team-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.team-intro-photo {
  width: min(100%, 300px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.team-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-intro-copy {
  display: grid;
  align-content: space-between;
  gap: 2rem;
  max-width: 30rem;
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line-light);
}

.team-lead {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.4;
}

.team-intro-copy p:last-child {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(1.5rem, 5vw, 5rem);
  row-gap: clamp(3rem, 8vh, 6rem);
  max-width: 900px;
  margin: clamp(4rem, 10vh, 7rem) auto 0;
}

.member {
  width: min(100%, 300px);
}

.member:nth-child(odd) {
  justify-self: end;
  margin-top: clamp(4rem, 14vh, 9rem);
}

.member:nth-child(even) {
  justify-self: start;
}

.member figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #d9d3c8;
}

.member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}

.member:hover img {
  scale: 1.04;
}

.m-name {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.m-role {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.member-cta a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  padding: 1.6rem;
  background: var(--night);
  color: var(--stone);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.m-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--body);
  font-size: 0.98rem;
}

.member-cta a:hover .circle {
  background: var(--tan-soft);
}

/* ---------- FAQ ---------- */
.faq {
  padding-block: clamp(4rem, 10vh, 7rem);
}

.faq-title {
  max-width: 13em;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.faq-groups {
  max-width: 920px;
}

.faq-group > h3 {
  font-weight: inherit;
}

.faq-cat,
.qa h4 button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.faq-cat {
  min-height: 72px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
}

.qa {
  border-bottom: 1px solid var(--line-light);
}

.qa h4 {
  font-weight: inherit;
}

.qa h4 button {
  min-height: 64px;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}

.plus::after {
  transform: rotate(90deg);
}

[aria-expanded="true"] > .plus::after {
  transform: rotate(0deg);
}

.faq-panel,
.qa-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.faq-panel > div,
.qa-a > div {
  overflow: hidden;
}

.faq-group.is-open > .faq-panel,
.qa.is-open > .qa-a {
  grid-template-rows: 1fr;
}

.faq-panel > div {
  padding-left: 0;
}

.qa-a p {
  max-width: 62ch;
  padding-bottom: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.faq-group.is-open > .faq-panel > div {
  padding-bottom: 1.5rem;
}

/* ---------- Contactos ---------- */
.contact {
  padding-top: clamp(4rem, 10vh, 7rem);
}

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.ct-map {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.ct-map img,
.ct-map iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  object-fit: cover;
  object-position: 50% 45%;
  background: #d9d3c8;
  mix-blend-mode: multiply;
}

.ct-map iframe {
  mix-blend-mode: normal;
}

.ct-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ct-copy {
  display: grid;
  align-content: space-between;
  gap: 2rem;
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line-light);
}

.ct-lead {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.4;
}

.ct-phones {
  display: grid;
  gap: 1rem;
}

.ct-phones a {
  text-decoration: none;
}

.ct-phones strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.ct-phones small {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.ct-photo {
  display: flex;
  justify-content: flex-end;
  max-width: 1440px;
  margin: clamp(3rem, 8vh, 5rem) auto 0;
  padding: 0 var(--gutter) clamp(4rem, 10vh, 6rem);
}

/* A fonte tem 720px: mostrar perto disso para não ficar desfocada. */
.ct-photo img {
  width: min(100%, 800px);
  height: clamp(260px, 50vh, 520px);
  object-fit: cover;
  overflow: hidden;
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding-block: clamp(5rem, 12vh, 8rem) 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
}

.footer-word {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 0.9;
  background: linear-gradient(100deg, #8f7d65, var(--tan) 40%, #e3d6c2 60%, #9a876e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-sub {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--tan);
  padding-left: 0.62em;
}

.footer-dra {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fog);
}

.footer-info {
  display: grid;
  gap: 2rem;
  align-content: start;
  font-size: 0.92rem;
  color: var(--fog);
}

.f-label {
  margin-bottom: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(168 164 155 / 0.8);
}

.f-big {
  display: block;
  width: max-content;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.35;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}

.f-big + .f-big {
  margin-top: 0.4rem;
}

.f-small {
  margin-top: 0.6rem;
  font-size: 0.75rem;
}

.f-mid {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--stone);
}

.f-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.f-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--stone);
  text-decoration: none;
}

.f-links a:hover {
  color: var(--tan);
}

/* ---------- Vídeo em grande ---------- */
.video-modal {
  width: min(92vw, 520px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: var(--night);
  overflow: visible;
}

.video-modal::backdrop {
  background: rgb(10 10 9 / 0.86);
}

.video-modal video {
  width: 100%;
  max-height: 88vh;
  aspect-ratio: 9 / 16;
  background: #000;
}

.vm-close {
  position: absolute;
  right: -8px;
  top: -56px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--stone);
  color: var(--night);
  cursor: pointer;
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  min-height: 100dvh;
  padding: var(--gutter);
  text-align: center;
}

.not-found-mark {
  width: 72px;
  fill: var(--tan);
}

.not-found p {
  color: var(--fog);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .header-phone {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav {
    justify-self: end;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 96px;
    padding-top: 18px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero-media {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 52%;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--night), transparent 25%, transparent 38%, rgb(18 19 17 / 0.94) 82%);
  }

  .hero-inner {
    padding-top: 96px;
  }

  .hero-video {
    left: auto;
    right: var(--gutter);
    top: 26%;
    width: 120px;
  }

  .hero-foot {
    color: var(--stone);
  }

  .g-item,
  .g-item:nth-child(2) {
    width: 78vw;
    height: 56vh;
  }

  .fly {
    width: 30vw;
  }

  .fly.f2,
  .fly.f5 {
    width: 34vw;
  }

  .care-grid,
  .team-intro,
  .ct-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .care-photo,
  .team-intro-photo {
    width: 62%;
  }

  .care-copy .care-lead {
    margin-bottom: 1rem;
  }

  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-video {
    aspect-ratio: 16 / 11;
  }

  .theme-split {
    background: linear-gradient(var(--night) 40%, var(--stone) 40%);
  }

  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-row {
    background: linear-gradient(var(--stone) 50%, var(--night) 50%);
  }

  .sv-cards {
    grid-template-columns: repeat(3, minmax(220px, 72vw));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .sv-cards .sv-card {
    scroll-snap-align: start;
  }

  .sv-list button {
    grid-template-columns: 3rem 1fr auto;
  }

  .sv-panel p {
    margin-left: 3rem;
  }

  .team-grid {
    column-gap: 1rem;
  }

  .member:nth-child(odd) {
    margin-top: 5rem;
  }
}

@media (max-width: 560px) {
  .pf-grid {
    grid-template-columns: 1fr 1fr;
    padding-inline: 0;
  }

  .tags {
    left: 8px;
    bottom: 8px;
  }

  .tag:not(.tag-state) {
    display: none;
  }

  .footer-word {
    font-size: 22vw;
  }
}

/* Sem animações pesadas (ou sem JS): tudo fica visível e estático. */
.no-motion .hero {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.no-motion .hero-inner,
.no-motion .hero-media {
  height: 100dvh;
  min-height: 600px;
}

.no-motion .hero-claim {
  position: static;
  translate: none;
  width: auto;
  opacity: 1;
  padding: 6rem var(--gutter) 0;
  margin-inline: auto;
}

.no-motion .about-stage {
  height: auto;
  overflow: visible;
}

.no-motion .gallery {
  position: static;
  translate: none;
  overflow-x: auto;
  padding: 4rem var(--gutter);
  scroll-snap-type: x mandatory;
}

.no-motion .g-item {
  scroll-snap-align: start;
}

.no-motion .feel {
  position: relative;
  height: 80vh;
}

.no-motion .feel-bg {
  clip-path: none;
}

.no-motion .feel-text .w {
  opacity: 1;
}

.no-motion .feel-text {
  visibility: visible;
  opacity: 1;
}

.no-motion .flyers {
  display: none;
}

.no-motion .journey-pin {
  height: auto;
  min-height: 0;
  padding-bottom: 5rem;
}

.no-motion .dial {
  display: none;
}

.no-motion .journey-steps {
  position: static;
  translate: none;
  width: auto;
  max-width: 1440px;
  margin: 3rem auto 0;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: left;
}

.no-motion .journey-step {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.no-motion .journey-step p {
  margin-inline: 0;
}

.no-motion .statement-box {
  clip-path: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
