/* ==========================================================================
   Ana Catarina Nogueira da Silva — Laser em Medicina Dentária
   Folha de estilos única: tokens, base, layout e componentes.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0d1116;
  --ink-2: #151a21;
  --ink-3: #1f252e;
  --paper: #f5f2ed;
  --paper-2: #ebe6de;
  --white: #ffffff;
  --text: #13171c;
  --muted: #464b53;
  --line: rgb(19 23 28 / 0.14);
  --line-strong: rgb(19 23 28 / 0.5);
  --on-dark: #f2efea;
  --on-dark-muted: #b3b8c0;
  --line-dark: rgb(242 239 234 / 0.16);
  --accent: #a3232f;
  --accent-bright: #e2412c;
  --violet: #4a3ad4;
  --focus: #4a3ad4;
  --focus-dark: #b9b1ff;

  /* O "prisma": a luz decomposta, herdada da identidade atual e refinada */
  --spectrum: linear-gradient(90deg, #3b2fcf 0%, #7036d2 32%, #b62c68 66%, #e2412c 100%);
  --spectrum-deep: linear-gradient(90deg, #3326b8 0%, #5f2cc0 35%, #9c2358 70%, #b8301f 100%);

  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --fs-lg: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  --fs-h4: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-h3: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-h2: clamp(2.25rem, 1.55rem + 2.8vw, 4rem);
  --fs-h1: clamp(2.75rem, 1.7rem + 4.4vw, 5.75rem);
  --fs-display: clamp(3rem, 1.5rem + 5.4vw, 7rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --container: 80rem;
  --section: clamp(5rem, 3.5rem + 7vw, 10rem);
  --header-h: 5rem;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 47.99em) {
  :root { --header-h: 4.25rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; text-wrap: balance; }
p, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible,
[data-hero="dark"] .site-header:not(.is-scrolled) :focus-visible { outline-color: var(--focus-dark); }

::selection { background: #2b2470; color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Informação que tem de ser confirmada antes de publicar */
.ph {
  text-decoration: underline dashed currentColor 1px;
  text-underline-offset: 0.25em;
  opacity: 0.8;
  cursor: help;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--stone { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--flush-top { padding-top: 0; }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-head > .lead { max-width: 38rem; }
@media (min-width: 56em) {
  .section-head--split { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 4rem; }
  .section-head--split > :last-child { justify-self: end; }
  .section-head--split > .lead { justify-self: stretch; }
}

.split { display: grid; gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--wide-first { grid-template-columns: 7fr 5fr; }
  .split--top { align-items: start; }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.5rem; }

/* ---------- Tipografia ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; }
.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.015em; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.012em; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.01em; }
.h3 { font-size: var(--fs-h3); line-height: 1.12; }
.h4 { font-size: var(--fs-h4); font-family: var(--font-display); line-height: 1.2; }

.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--muted); }
.section--dark .lead, .cta-band .lead { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--spectrum); flex: none; }
.section--dark .eyebrow, .hero .eyebrow, .cta-band .eyebrow, .site-footer .eyebrow { color: var(--on-dark-muted); }

.prose { max-width: 40rem; }
.prose p + p { margin-top: 1.15em; }
.prose a { text-decoration-color: rgb(19 23 28 / 0.4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* ---------- Botões e ligações ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  --btn-bd: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.65rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--spectrum-deep);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn:hover { color: #fff; border-color: transparent; }
.btn:hover::before { opacity: 1; }
.btn--light { --btn-bg: var(--on-dark); --btn-fg: var(--ink); --btn-bd: var(--on-dark); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--sm { min-height: 2.75rem; padding: 0.6rem 1.25rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.2rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-size 0.45s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link svg { flex: none; transition: transform 0.35s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--text);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 100%; }
[data-hero="dark"] .site-header:not(.is-scrolled) { color: var(--on-dark); }
.site-header.is-scrolled {
  background: rgb(245 242 237 / 0.9);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.brand { display: inline-flex; line-height: 1; text-decoration: none; }
.brand__name { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.75rem); letter-spacing: 0.005em; white-space: nowrap; }

.nav { display: none; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; }
.nav__link { position: relative; padding-block: 0.5rem; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 1px;
  background: var(--spectrum);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
[data-hero="dark"] .site-header:not(.is-scrolled) .btn { --btn-bg: var(--on-dark); --btn-fg: var(--ink); --btn-bd: var(--on-dark); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  margin-right: -0.6rem;
  padding: 0.6rem;
  border: 0;
  background: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 1.5rem; height: 10px; }
.nav-toggle__icon::before, .nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { bottom: 0; }
.nav-toggle__icon--close::before { top: 50%; transform: rotate(45deg); }
.nav-toggle__icon--close::after { bottom: auto; top: 50%; transform: rotate(-45deg); }

@media (min-width: 75em) {
  .nav { display: flex; align-items: center; gap: 2rem; }
  .nav-toggle { display: none; }
}

/* Seletor de idioma */
.lang { display: inline-flex; align-items: center; gap: 0.15rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; }
.lang a { display: inline-grid; place-items: center; min-width: 2.25rem; min-height: 2.25rem; padding: 0 0.4rem; border-radius: 999px; text-decoration: none; opacity: 0.6; transition: opacity 0.3s, background-color 0.3s; }
.lang a:hover { opacity: 1; }
.lang a[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 1px currentColor; }
.footer__bottom .lang a { min-height: 1.75rem; }

/* Menu móvel (dialog nativo: foco preso, Esc e fundo inerte de origem) */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--on-dark);
  overflow-y: auto;
}
.mobile-menu::backdrop { background: transparent; }
.mobile-menu[open] { display: flex; animation: fade-in 0.4s var(--ease); }
.mobile-menu__inner { display: flex; flex-direction: column; min-height: 100%; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-menu__list { display: grid; gap: 0.15rem; margin-top: clamp(2rem, 6vh, 4rem); list-style: none; }
.mobile-menu__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  line-height: 1.2;
  text-decoration: none;
}
.mobile-menu__link[aria-current="page"] { font-style: italic; }
.mobile-menu__link[aria-current="page"]::after { content: ""; display: inline-block; width: 1.5rem; height: 1px; margin-left: 0.75rem; vertical-align: middle; background: var(--spectrum); }
.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: auto;
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Redes sociais ---------- */
.social { display: flex; gap: 0.5rem; list-style: none; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity 0.3s, background-color 0.3s, color 0.3s;
}
.social a:hover { opacity: 1; background: var(--on-dark); color: var(--ink); }
.locations .social a:hover { background: var(--ink); color: var(--on-dark); }
.social svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Hero (início) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0 0 0 auto; z-index: -1; width: min(54%, 50rem); }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(0.2) contrast(1.05) brightness(0.88);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(13 17 22 / 0.6) 0%, transparent 22%, transparent 58%, rgb(13 17 22 / 0.9) 100%);
}
/* O hero cabe sempre inteiro no ecrã: tamanhos e espaços acompanham também a altura da janela */
.hero__content { width: 100%; padding-top: calc(var(--header-h) + clamp(1.5rem, 6vh, 4rem)); padding-bottom: clamp(2rem, 7vh, 5.5rem); }
.hero .eyebrow { margin-bottom: clamp(0.75rem, 2.5vh, 1.5rem); }
.hero__title { max-width: 12.5ch; font-size: clamp(2.75rem, min(1.5rem + 5.4vw, 10vh), 7rem); }
.hero__lead { max-width: 40rem; margin-top: clamp(1rem, 3vh, 2rem); color: var(--on-dark-muted); font-size: clamp(1.0625rem, min(1.05rem + 0.55vw, 2.6vh), 1.4375rem); line-height: 1.55; }
.hero .actions { margin-top: clamp(1.25rem, 4vh, 2.5rem); }
.hero__sig {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(1.5rem, 5vh, 4rem);
  padding-top: clamp(0.75rem, 2vh, 1.5rem);
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}
.hero__sig strong { color: var(--on-dark); font-weight: 500; }
/* Ecrãs muito baixos: a assinatura sai do hero (o nome e os cargos repetem-se logo a seguir) */
@media (min-width: 48em) and (max-height: 620px) { .hero__sig { display: none; } }
.hero .link { color: var(--on-dark); }

.beam { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--spectrum); opacity: 0.75; overflow: hidden; }
.beam::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: beam 7s var(--ease) infinite;
}
@keyframes beam { 0% { left: -20%; } 55%, 100% { left: 100%; } }

@media (max-width: 47.99em) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { position: relative; inset: auto; width: 100%; height: min(68svh, 34rem); }
  .hero__media img {
    object-position: 50% 12%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero__media::after { background: linear-gradient(180deg, rgb(13 17 22 / 0.55) 0%, transparent 30%); }
  .hero__content { margin-top: -7rem; padding-top: 0; }
}

/* ---------- Credenciais ---------- */
.creds { border-bottom: 1px solid var(--line); }
.creds__list { display: grid; grid-template-columns: 1fr; list-style: none; }
.creds__item { padding: 1.6rem 1.5rem 1.6rem 0; border-top: 1px solid var(--line); }
.creds__item:first-child { border-top: 0; }
.creds__role { display: block; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; }
.creds__org { display: block; margin-top: 0.35rem; color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 40em) {
  .creds__list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
  .creds__item:nth-child(2) { border-top: 0; }
}
@media (min-width: 64em) {
  .creds__list { grid-template-columns: repeat(3, 1fr); }
  .creds__item:nth-child(3) { border-top: 0; }
}

/* ---------- Imagens ---------- */
.frame { position: relative; overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--spectrum); }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--tall { aspect-ratio: 2 / 3; }
.frame--landscape { aspect-ratio: 1066 / 759; }
.frame figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: 0.35rem 0.7rem; background: rgb(13 17 22 / 0.7); color: var(--on-dark); font-size: 0.75rem; letter-spacing: 0.06em; }

/* ---------- Números ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.stat__value { display: block; font-family: var(--font-display); font-size: clamp(2.75rem, 2rem + 3vw, 4.75rem); line-height: 1; letter-spacing: -0.01em; }
.stat__label { display: block; max-width: 16rem; margin-top: 0.85rem; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
@media (min-width: 64em) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Espectro (comprimentos de onda) ---------- */
.spectrum__axis { position: relative; height: 8.5rem; margin-bottom: 2rem; }
.spectrum__line { position: absolute; left: 0; right: 0; top: 5rem; height: 1px; background: var(--line-dark); }
.spectrum__visible {
  position: absolute;
  left: 0;
  top: calc(5rem - 1px);
  width: 16.46%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7b3cff, #2d6bff 25%, #19c37d 50%, #f2d22e 72%, #ff3b2f);
}
.spectrum__scale, .spectrum__region {
  position: absolute;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.spectrum__scale { top: 5.75rem; left: calc(var(--pos) * 100%); transform: translateX(var(--shift, -50%)); }
.spectrum__region { top: 7.4rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.spectrum__mark {
  position: absolute;
  top: calc(5rem - 11px);
  left: calc(var(--pos) * 100%);
  width: max(3px, calc((var(--end) - var(--pos)) * 100%));
  height: 23px;
  border-radius: 2px;
  background: rgb(242 239 234 / 0.4);
  cursor: pointer;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.spectrum__mark span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6rem + var(--row, 0) * 1.5rem);
  transform: translateX(-50%);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.spectrum__mark--range { top: calc(5rem - 4px); height: 9px; }
.spectrum__mark.is-active { background: var(--accent-bright); box-shadow: 0 0 14px 2px rgb(226 65 44 / 0.55); }
.spectrum__mark.is-active span { color: var(--on-dark); font-weight: 600; }
@media (max-width: 39.99em) {
  .spectrum__mark span { display: none; }
  .spectrum__axis { height: 7rem; }
  .spectrum__line, .spectrum__visible { top: 2.5rem; }
  .spectrum__visible { top: calc(2.5rem - 1px); }
  .spectrum__mark { top: calc(2.5rem - 11px); }
  .spectrum__mark--range { top: calc(2.5rem - 4px); }
  .spectrum__scale { top: 3.25rem; }
  .spectrum__scale--hide-sm { display: none; }
  .spectrum__region { top: 5rem; }
}

.spectrum__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-dark); }
.spectrum__tab {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.spectrum__tab small { font-size: 0.75rem; font-variant-numeric: tabular-nums; opacity: 0.85; }
.spectrum__tab:hover { border-color: rgb(242 239 234 / 0.45); color: var(--on-dark); }
.spectrum__tab[aria-selected="true"] { border-color: var(--on-dark); background: var(--on-dark); color: var(--ink); }

.spectrum__panel { display: grid; gap: 2.5rem; padding-top: 2.75rem; }
.spectrum__panel:focus-visible { outline-offset: 6px; }
@media (min-width: 56em) { .spectrum__panel { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.spectrum__name { color: var(--on-dark-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.spectrum__nm { margin-top: 0.75rem; font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1; letter-spacing: -0.01em; }
.spectrum__nm small { margin-left: 0.3rem; color: var(--on-dark-muted); font-family: var(--font-sans); font-size: 0.32em; letter-spacing: 0.04em; }
.spectrum__desc { max-width: 28rem; margin-top: 1.5rem; color: var(--on-dark-muted); }
.spectrum__facts { display: grid; gap: 1.75rem; }
.spectrum__facts dt { margin-bottom: 0.4rem; color: var(--on-dark-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.spectrum__facts dd { font-size: var(--fs-lg); line-height: 1.45; }
.spectrum__facts ul { display: grid; gap: 0.5rem; list-style: none; font-size: var(--fs-base); }
.spectrum__facts li { position: relative; padding-left: 1.5rem; }
.spectrum__facts li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.75rem; height: 1px; background: var(--spectrum); }
@media (min-width: 40em) { .spectrum__facts { grid-template-columns: 1fr 1fr; } .spectrum__facts > div:last-child { grid-column: 1 / -1; } }
.spectrum__note { margin-top: 3rem; color: var(--on-dark-muted); font-size: 0.875rem; }

/* ---------- Benefícios ---------- */
.benefits { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); list-style: none; counter-reset: benefit; }
.benefit { padding: 2rem 2rem 2.5rem 0; border-bottom: 1px solid var(--line); counter-increment: benefit; }
.benefit::before {
  content: counter(benefit, decimal-leading-zero);
  display: block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.benefit h3 { margin-bottom: 0.75rem; font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.15; }
.benefit p { color: var(--muted); }
@media (min-width: 40em) { .benefits { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
@media (min-width: 64em) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.note { margin-top: 2rem; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Áreas clínicas ---------- */
.areas { display: grid; grid-template-columns: 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); list-style: none; }
.area { background: var(--paper-2); }
.area a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  height: 100%;
  min-height: 15.5rem;
  padding: 1.75rem;
  text-decoration: none;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
.area__num { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; transition: color 0.45s var(--ease); }
.area__title { display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.12; }
.area__desc { display: block; margin-top: 0.6rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; transition: color 0.45s var(--ease); }
.area__arrow { align-self: flex-end; transition: transform 0.45s var(--ease); }
.area a:hover { background: var(--ink); color: var(--on-dark); }
.area a:hover .area__num, .area a:hover .area__desc { color: var(--on-dark-muted); }
.area a:hover .area__arrow { transform: translateX(6px); }
@media (max-width: 39.99em) {
  .area a { min-height: 0; gap: 1rem; padding: 1.5rem 1.25rem; }
  .area__arrow { margin-top: -2.25rem; }
}
@media (min-width: 40em) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .areas { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Módulos (formação) ---------- */
.modules { display: grid; list-style: none; border-top: 1px solid var(--line-dark); counter-reset: module; }
.modules li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line-dark); counter-increment: module; }
.modules li::before { content: counter(module, decimal-leading-zero); padding-top: 0.3rem; color: var(--on-dark-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.modules strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.modules span { display: block; margin-top: 0.25rem; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.section:not(.section--dark) .modules { border-color: var(--line); }
.section:not(.section--dark) .modules li { border-color: var(--line); }
.section:not(.section--dark) .modules li::before, .section:not(.section--dark) .modules span { color: var(--muted); }

/* ---------- Agenda ---------- */
.events { border-top: 1px solid var(--line); list-style: none; }
.event { display: grid; gap: 1rem 3rem; padding-block: 2.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48em) { .event { grid-template-columns: 15rem 1fr; align-items: baseline; } }
.event__day { display: block; font-family: var(--font-display); font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); line-height: 1; font-variant-numeric: lining-nums; }
.event__month { display: block; margin-top: 0.5rem; color: var(--muted); font-size: var(--fs-sm); }
.event__role { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.event__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.12; }
.event__meta { margin-top: 0.6rem; color: var(--muted); }
.event__talk { max-width: 44rem; margin-top: 1rem; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; line-height: 1.4; }
.event .link { margin-top: 1.25rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px rgb(226 65 44 / 0.3); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(226 65 44 / 0); } }

/* ---------- Notícias ---------- */
.news { display: grid; gap: 3rem 2.5rem; list-style: none; }
@media (min-width: 48em) { .news { grid-template-columns: repeat(2, 1fr); } }
.news-card a { display: block; text-decoration: none; }
.news-card__media { aspect-ratio: 3 / 2; }
.news-card__media img { transition: transform 1.2s var(--ease); }
.news-card a:hover img { transform: scale(1.04); }
.news-card__date { display: block; margin-top: 1.5rem; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.news-card__title { margin-top: 0.6rem; font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.15; }
.news-card a:hover .news-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.article { display: grid; gap: 2rem 4rem; padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
@media (min-width: 56em) { .article { grid-template-columns: 5fr 7fr; } }
.article__media { align-self: start; }
/* A imagem só acompanha o scroll com duas colunas; numa coluna ficaria por cima do texto */
@media (min-width: 56em) { .article__media { position: sticky; top: calc(var(--header-h) + 2rem); } }
.article__date { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.article__title { margin-block: 0.75rem 2rem; font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.05; }

/* ---------- Faixa de chamada ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18rem;
  top: -26rem;
  width: 56rem;
  height: 56rem;
  background: radial-gradient(closest-side, rgb(112 54 210 / 0.32), rgb(182 44 104 / 0.12) 55%, transparent 75%);
}
.cta-band__inner { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .cta-band__inner { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 5rem; } }
.cta-band .link { color: var(--on-dark); }

/* ---------- Páginas interiores ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 7rem)); padding-bottom: clamp(3.5rem, 7vw, 7rem); border-bottom: 1px solid var(--line); }
.page-hero__title { max-width: 16ch; }
.page-hero__lead { max-width: 42rem; margin-top: 2rem; }
.page-hero--split .split { align-items: end; }
.page-hero--dark { background: var(--ink); color: var(--on-dark); border-bottom: 0; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.25rem; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; list-style: none; text-transform: uppercase; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Subnavegação fixa da página Laser */
.subnav { position: sticky; top: var(--header-h); z-index: 50; border-bottom: 1px solid var(--line); background: rgb(245 242 237 / 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.subnav ul { position: relative; display: flex; gap: 0.25rem; overflow-x: auto; padding-block: 0.75rem; list-style: none; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0.45rem 1rem; border-radius: 999px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.subnav a:hover { color: var(--text); background: var(--paper-2); }
.subnav a[aria-current="true"] { background: var(--ink); color: var(--on-dark); }
/* Os saltos para as secções ficam logo abaixo do cabeçalho + barra (4rem),
   saltando parte do espaço superior de cada secção para o título aparecer de imediato */
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 4rem); }
.has-subnav main > .section[id] { scroll-margin-top: calc(var(--section) * -0.55); }

.sticky-head { align-self: start; }
/* O título só fica fixo com duas colunas; numa coluna passaria por cima do texto */
@media (min-width: 56em) { .sticky-head { position: sticky; top: calc(var(--header-h) + 2rem); } }

.effects { display: grid; gap: 1px; margin-top: 3.5rem; border: 1px solid var(--line); background: var(--line); list-style: none; }
.effects li { padding: 1.75rem; background: var(--paper); }
.effects strong { display: block; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.effects span { color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 40em) { .effects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .effects { grid-template-columns: repeat(4, 1fr); } }

.treatments { border-top: 1px solid var(--line); }
.treatment { display: grid; gap: 1.25rem 4rem; padding-block: 2.75rem; border-bottom: 1px solid var(--line); scroll-margin-top: 0.5rem; }
@media (min-width: 56em) { .treatment { grid-template-columns: 1fr 1.6fr; } }
.treatment__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.12; }
.treatment__body p + p { margin-top: 1em; }
.treatment__for { margin-top: 1.25rem; color: var(--muted); font-size: var(--fs-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; list-style: none; }
.chip { padding: 0.3rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }

.callout { display: grid; gap: 0.75rem; margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 2px solid transparent; border-image: var(--spectrum) 1; background: var(--white); }
.callout p { max-width: 50rem; }

.safety { display: grid; gap: 2.5rem; list-style: none; }
@media (min-width: 48em) { .safety { grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; } }
.safety li { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.safety strong { display: block; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 400; line-height: 1.2; }
.safety span { color: var(--muted); }

.steps { display: grid; gap: 2.5rem; list-style: none; counter-reset: step; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.step { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); counter-increment: step; }
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 1.25rem;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
}
.step h3 { margin-bottom: 0.6rem; font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.2; }
.step p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--violet); }
.faq__answer { max-width: 46rem; padding-bottom: 2rem; color: var(--muted); }
.faq__answer p + p { margin-top: 0.9em; }

/* Sobre */
.roles { border-top: 1px solid var(--line); list-style: none; }
.roles li { display: grid; gap: 0.3rem 3rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48em) { .roles li { grid-template-columns: 1.1fr 1fr; align-items: baseline; } }
.roles__title { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.2; }
.roles__org { color: var(--muted); }

.timeline { position: relative; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 0.35rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: linear-gradient(180deg, #3b2fcf, #b62c68 60%, #e2412c); }
.timeline li { position: relative; padding: 0 0 2.5rem 2.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 0.75rem; height: 0.75rem; border: 1px solid var(--text); border-radius: 50%; background: var(--paper); }
.timeline__year { display: block; margin-bottom: 0.35rem; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 400; line-height: 1.2; }
.timeline span { display: block; margin-top: 0.35rem; color: var(--muted); }

.quote { max-width: 18ch; font-family: var(--font-display); font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5.75rem); line-height: 1.02; letter-spacing: -0.012em; }
.quote-cite { display: block; margin-top: 2rem; color: var(--on-dark-muted); font-size: var(--fs-sm); font-style: normal; }

.pub { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); background: var(--white); }
.pub__meta { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.pub__title { margin-top: 0.85rem; font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.2; }
.pub__authors { margin-top: 0.85rem; color: var(--muted); font-size: var(--fs-sm); }
.pub .link { margin-top: 1.5rem; }

.pillars { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); list-style: none; }
.pillars li { padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--paper); }
.pillars h3 { margin-bottom: 0.85rem; font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.2; }
.pillars p { color: var(--muted); }
@media (min-width: 56em) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.facts { display: grid; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.facts dt { color: var(--on-dark-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.facts dd { margin-top: 0.3rem; font-size: var(--fs-lg); }
@media (min-width: 40em) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1.6rem; }
.form__row { display: grid; gap: 1.6rem; }
@media (min-width: 40em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field > label, .field legend { font-size: var(--fs-sm); font-weight: 500; }
.field fieldset { margin: 0; padding: 0; border: 0; }
.req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 10rem; resize: vertical; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2313171c' stroke-width='1.5' viewBox='0 0 14 14'%3E%3Cpath d='m2 5 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgb(74 58 212 / 0.25); }
[aria-invalid="true"] { border-color: var(--accent) !important; }
.field__hint { color: var(--muted); font-size: 0.875rem; }
.field__error { color: var(--accent); font-size: 0.875rem; font-weight: 500; }
.field__error:empty { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.55rem 1.15rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: var(--fs-sm); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.85rem; align-items: start; font-size: 0.9375rem; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--ink); }

.form__status { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__status[data-type="ok"] { background: #e3efe7; color: #1c4a2d; }
.form__status[data-type="error"] { background: #f6e1e3; color: #7a1b24; }
.form__status[data-type="info"] { background: #e7e5f6; color: #2b2470; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.subscribe { display: grid; gap: 0.75rem; }
.subscribe__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.subscribe .field { flex: 1 1 15rem; }
.subscribe__fine { color: var(--muted); font-size: 0.8125rem; }
.on-dark .subscribe .input, .site-footer .subscribe .input, .section--dark .subscribe .input { border-color: rgb(242 239 234 / 0.45); background: transparent; color: var(--on-dark); }
.on-dark .subscribe .input::placeholder, .site-footer .subscribe .input::placeholder, .section--dark .subscribe .input::placeholder { color: var(--on-dark-muted); }
.site-footer .subscribe__fine, .section--dark .subscribe__fine { color: var(--on-dark-muted); }
.site-footer .field__error, .section--dark .field__error { color: #ff9a8f; }
.site-footer [aria-invalid="true"], .section--dark [aria-invalid="true"] { border-color: #ff9a8f !important; }

/* Contactos */
.locations { display: grid; gap: 2.25rem; list-style: none; }
.location { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.location__city { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.location__name { margin-top: 0.5rem; font-family: var(--font-display); font-size: var(--fs-h4); line-height: 1.2; }
.location address { margin-top: 0.6rem; color: var(--muted); font-style: normal; }
.location .link { margin-top: 1rem; margin-right: 1.5rem; }
.urgent { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--paper-2); font-size: var(--fs-sm); }
.urgent a { font-weight: 600; }

/* ---------- Rodapé ---------- */
.site-footer { padding-top: clamp(4.5rem, 9vw, 8rem); background: var(--ink); color: var(--on-dark); }
.footer__top { display: grid; gap: 3rem; padding-bottom: clamp(3.5rem, 6vw, 5rem); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 64em) { .footer__top { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 5rem; } }
.footer__claim { font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: 1.02; letter-spacing: -0.01em; }
.footer__heading { margin-bottom: 1rem; color: var(--on-dark-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.footer__grid { display: grid; gap: 2.75rem 2rem; padding-block: 3.5rem; }
@media (min-width: 40em) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; } }
.footer__about { max-width: 22rem; margin-top: 1.25rem; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.footer__list { display: grid; gap: 0.65rem; list-style: none; font-size: var(--fs-sm); }
.footer__list a { color: var(--on-dark-muted); text-decoration: none; transition: color 0.3s; }
.footer__list a:hover { color: var(--on-dark); text-decoration: underline; }
.footer__list address { color: var(--on-dark-muted); font-style: normal; }
.footer__list strong { display: block; color: var(--on-dark); font-weight: 500; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}
.footer__bottom a { color: inherit; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; }

/* ---------- Vídeos (reels do Instagram com carregamento a pedido) ---------- */
/* position: relative mantém dentro da faixa os textos ocultos (position: absolute) dos cartões */
.reels { position: relative; display: grid; gap: 2.5rem 2rem; list-style: none; }
@media (min-width: 40em) { .reels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .reels { grid-template-columns: repeat(3, 1fr); } }
/* Em telemóvel, as listas longas passam a uma faixa deslizante, como no Instagram */
@media (max-width: 39.99em) {
  .reels:not(.reels--3) {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 1.25rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
  }
  .reels:not(.reels--3) > .reel { scroll-snap-align: start; }
}

.reel { display: flex; flex-direction: column; }
.reel__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background:
    radial-gradient(60% 45% at var(--g, 30% 20%), color-mix(in srgb, var(--c1, #3b2fcf) 75%, transparent), transparent 70%),
    radial-gradient(55% 40% at 70% 85%, color-mix(in srgb, var(--c2, #e2412c) 55%, transparent), transparent 72%),
    linear-gradient(180deg, #161b22, var(--ink));
  color: var(--on-dark);
}
.reel__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.35;
}
.reel__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1rem 1.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.reel__play:focus-visible { outline: 2px solid var(--focus-dark); outline-offset: -4px; border-radius: 14px; }
.reel__handle { display: inline-flex; align-items: center; gap: 0.45rem; align-self: flex-start; font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.reel__handle svg { width: 0.95rem; height: 0.95rem; }
.reel__icon {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid rgb(242 239 234 / 0.6);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease);
}
.reel__icon::before { content: ""; margin-left: 4px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid currentColor; }
.reel__play:hover .reel__icon { transform: scale(1.08); background: rgb(255 255 255 / 0.18); }
.reel__pill {
  max-width: 92%;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: rgb(236 228 214 / 0.82);
  color: #2a2622;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}
/* Capa real do reel: substitui o fundo gráfico; o título já vem escrito na imagem */
.reel__poster { position: absolute; inset: 0; z-index: -2; }
.reel__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 1.2s var(--ease); }
.reel__frame--poster::after { display: none; }
.reel__frame--poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.38) 0%, transparent 20%, transparent 72%, rgb(0 0 0 / 0.18) 100%);
  pointer-events: none;
}
.reel__frame--poster .reel__pill { display: none; }
.reel__frame--poster .reel__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: rgb(13 17 22 / 0.28);
  border-color: rgb(255 255 255 / 0.75);
}
.reel__frame--poster:hover .reel__poster img { transform: scale(1.035); }
.reel__play--external { justify-content: flex-start; text-decoration: none; }
.reel__play--external .reel__icon { display: none; }
.reel__badge {
  margin-top: auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgb(13 17 22 / 0.6);
  color: var(--on-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.reel__play--external:hover .reel__badge { background: var(--on-dark); color: var(--ink); }
.reel__play--external:focus-visible { outline: 2px solid var(--focus-dark); outline-offset: -4px; border-radius: 14px; }
.reel__frame.is-loaded { aspect-ratio: auto; border: 1px solid var(--line); background: var(--white); }
.reel__frame.is-loaded::after, .reel__frame.is-loaded::before { display: none; }
.reel__frame iframe { display: block; width: 100%; border: 0; }
.reel__meta { padding-top: 1.25rem; }
.reel__info { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.reel__lang { padding: 0.2rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 999px; letter-spacing: 0.06em; }
.reel__title { margin-top: 0.75rem; font-family: var(--font-display); font-size: 1.625rem; line-height: 1.15; }
.reel__desc { margin-top: 0.6rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.reel__ig { margin-top: 1rem; }
.reels-note { max-width: 46rem; margin-top: 2.5rem; color: var(--muted); font-size: 0.8125rem; }

.reel-feature { display: grid; gap: 2.5rem; align-items: center; }
.reel-feature__media { width: min(100%, 24rem); justify-self: center; }
@media (min-width: 56em) {
  .reel-feature { grid-template-columns: minmax(18rem, 24rem) 1fr; gap: 5rem; }
  .reel-feature__media { justify-self: stretch; }
}
.reel-feature .reel__info { margin-top: 1.25rem; }
.reel-feature .reels-note { margin-top: 2rem; }

/* ---------- Hero de teste: montagem cinematográfica ---------- */
.film {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #07090c;
  color: var(--on-dark);
  text-align: center;
}
.film__stage, .film__grade, .film__grain { position: absolute; inset: 0; }
.film__stage { z-index: -3; }
.film__shot { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; overflow: hidden; }
.film__shot.is-active { opacity: 1; }
.film__shot canvas, .film__shot img, .film__shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__shot :is(img, video) { filter: grayscale(0.35) contrast(1.08) brightness(0.72); }
.film__shot img { transform-origin: 50% 35%; }
/* A animação continua durante o fundido de saída (is-leaving) para não "saltar" */
.film__shot:is(.is-active, .is-leaving) .kb-in { animation: kb-in var(--dur, 6s) linear both; }
.film__shot:is(.is-active, .is-leaving) .kb-out { animation: kb-out var(--dur, 6s) linear both; }
.film__shot:is(.is-active, .is-leaving) .kb-pan { animation: kb-pan var(--dur, 6s) linear both; }
@keyframes kb-in { from { transform: scale(1.04); } to { transform: scale(1.2); } }
@keyframes kb-out { from { transform: scale(1.22); } to { transform: scale(1.04); } }
@keyframes kb-pan { from { transform: scale(1.18) translateX(-3%); } to { transform: scale(1.18) translateX(3%); } }
.film.is-paused .film__shot * { animation-play-state: paused !important; }
.film__grade {
  z-index: -2;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 35%, rgb(7 9 12 / 0.75) 100%),
    linear-gradient(180deg, rgb(7 9 12 / 0.55) 0%, transparent 28%, transparent 62%, rgb(7 9 12 / 0.85) 100%);
}
.film__grain {
  z-index: -1;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }
.film__content { padding-block: calc(var(--header-h) + 3rem) 7rem; }
.film__name { color: var(--on-dark-muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.film__word {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 9vw, 10rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgb(0 0 0 / 0.35);
}
.film__word span { display: inline-block; transition: opacity 0.6s ease, transform 0.9s var(--ease), filter 0.9s ease; }
.film__word.is-changing span { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.film__title { margin-top: 1.5rem; font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem); font-weight: 500; letter-spacing: 0.28em; line-height: 1.6; text-transform: uppercase; }
.film__title em { font-style: normal; }
.film__actions { justify-content: center; }
.film .link { color: var(--on-dark); }
.film__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.film__progress { display: flex; flex: 1; gap: 0.4rem; margin-right: 0.625rem; list-style: none; }
.film__progress li { flex: 1; }
.film__dot { display: block; width: 100%; padding-block: 1.1rem; border: 0; background: none; cursor: pointer; }
.film__bar { display: block; height: 2px; overflow: hidden; border-radius: 2px; background: rgb(242 239 234 / 0.22); transition: transform 0.2s ease, background-color 0.2s ease; }
.film__dot:hover .film__bar { background: rgb(242 239 234 / 0.45); transform: scaleY(2); }
.film__bar span { display: block; width: 100%; height: 100%; background: var(--spectrum); transform: scaleX(0); transform-origin: left; }
.film__step, .film__toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgb(242 239 234 / 0.5);
  border-radius: 50%;
  background: rgb(7 9 12 / 0.35);
  color: var(--on-dark);
  cursor: pointer;
}
.film__toggle span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.film.is-paused .film__toggle span { width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; }
.film__step:hover, .film__toggle:hover { background: rgb(242 239 234 / 0.15); }
/* No telemóvel muda-se de plano tocando ou deslizando; as setas dariam lugar às barras */
@media (max-width: 39.99em) { .film__step { display: none; } }
/* Com rato, setas e pausa só aparecem ao passar nas barras, com o foco do teclado ou em pausa */
@media (hover: hover) and (pointer: fine) {
  .film__step, .film__toggle { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
  .film__controls:is(:hover, :focus-within) :is(.film__step, .film__toggle),
  .film.is-paused :is(.film__step, .film__toggle) { opacity: 1; visibility: visible; }
}

/* ---------- Página 404 ---------- */
.error-page__en { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line-dark); }
.error-page__en .lead { margin-top: 0.75rem; }
.error-page { display: flex; align-items: center; min-height: 100svh; padding-block: calc(var(--header-h) + 3rem) 4rem; background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.error-page .lead { color: var(--on-dark-muted); max-width: 34rem; margin-top: 1.75rem; }
.error-page .link { color: var(--on-dark); }

/* ---------- Animação de entrada ----------
   Só esconde conteúdo depois de o JavaScript confirmar que o consegue revelar
   (classe .reveal-ready); sem JS, tudo fica visível. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .subnav, .site-footer form, .beam { display: none !important; }
  body { background: #fff; }
  .hero, .section--dark, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
}
