/*
 * Página pública. Cores, fontes, raio e espaçamento vêm das variáveis do tema, que o Worker
 * escreve num <style nonce> no <head> (src/worker/ssr/theme.ts) já com o contraste conferido.
 * Nenhum elemento tem `style=""`: a CSP não aceita estilo inline sem nonce (DECISIONS D-18).
 *
 * Conceito: consultório calmo e luminoso. Coluna de celular; no desktop a mesma coluna sobre
 * uma textura suave.
 */

/* ─── Base ──────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  background-repeat: repeat;
  background-size: 480px auto;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Brilho da cor da marca: no alto da coluna sempre; nos cantos da tela só no desktop. */
.bg-glow .page {
  background:
    radial-gradient(120% 55% at 50% 0, rgb(var(--c-glow-rgb) / 0.75), transparent 70%),
    radial-gradient(90% 40% at 100% 60%, rgb(var(--c-glow-rgb) / 0.35), transparent 70%),
    var(--c-bg);
}

@media (min-width: 560px) {
  body.bg-glow {
    background-image:
      radial-gradient(60% 50% at 15% 10%, rgb(var(--c-glow-rgb) / 0.6), transparent 70%),
      radial-gradient(50% 45% at 90% 85%, rgb(var(--c-glow-rgb) / 0.45), transparent 70%);
    background-attachment: fixed;
    background-size: auto;
  }
}

body.bg-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

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

img {
  height: auto;
}

a {
  color: var(--c-link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--c-on-primary);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--c-button);
  color: var(--c-on-button);
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

/* ─── Coluna ────────────────────────────────────────────────────────────── */

.page {
  position: relative;
  max-width: var(--content-width);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--c-bg);
  overflow: hidden;
}

.blocks {
  display: flex;
  flex-direction: column;
  gap: calc(1.5rem * var(--space));
  padding: 0 1.25rem calc(2.5rem * var(--space));
}

.blocks > .card + .card,
.blocks > .card + .card--static,
.blocks > .card--static + .card {
  margin-top: calc(-0.75rem * var(--space));
}

@media (min-width: 560px) {
  .page {
    margin: 2.5rem auto;
    min-height: 0;
    border-radius: 32px;
    box-shadow:
      0 1px 2px rgb(var(--shadow-rgb) / 0.04),
      0 24px 60px -20px rgb(var(--shadow-rgb) / 0.18);
  }

  .blocks {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

/* ─── Menu das páginas ──────────────────────────────────────────────────── */

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  list-style: none;
  border-bottom: 1px solid var(--c-border);
}

.site-nav a {
  display: inline-block;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-nav a[aria-current='page'] {
  color: var(--c-link);
  font-weight: 600;
}

/* ─── Tipografia ────────────────────────────────────────────────────────── */

.h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--c-text);
}

.h2--italic {
  font-style: italic;
  color: var(--c-highlight);
}

.prose {
  color: inherit;
}

.prose > * + * {
  margin-top: 0.85em;
}

.prose h2,
.prose h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.5rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose strong {
  font-weight: 650;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose blockquote {
  padding-left: 1rem;
  border-left: 2px solid var(--c-border);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
}

.prose--on-dark,
.prose--on-dark a,
.prose--on-dark blockquote {
  color: var(--c-on-primary);
}

.prose--on-dark blockquote {
  border-left-color: currentColor;
}

.center {
  text-align: center;
}

.muted {
  color: var(--c-muted);
}

/* ─── Abertura ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  margin: 0 -1.25rem;
  padding: 0 0 0.5rem;
}

.hero__monogram {
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  z-index: 2;
  font-family: var(--font-script);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--c-text);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

img.hero__monogram {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.hero__photo {
  position: relative;
  margin: 0;
}

.hero__photo img {
  width: 100%;
  object-fit: cover;
}

.hero__photo--fade img {
  aspect-ratio: 4 / 5;
  max-height: 460px;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}

.hero__photo--circle,
.hero__photo--arch {
  display: flex;
  justify-content: center;
  padding-top: 3.25rem;
}

.hero__photo--circle img {
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--c-surface);
}

.hero__photo--arch img {
  width: min(72%, 300px);
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
}

.hero__text {
  position: relative;
  z-index: 1;
  padding: 0.25rem 1.25rem 0;
}

.hero__photo--fade + .hero__text {
  margin-top: -2.25rem;
}

.hero--centered .hero__text {
  text-align: center;
}

.hero__name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 11vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--c-text);
}

.hero__name > span {
  display: block;
}

.hero__name > span + span {
  color: var(--c-highlight);
}

.hero__title {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-eyebrow);
}

.hero__sep {
  display: inline-block;
  margin: 0 0.4em;
}

.hero__tagline {
  margin-top: 1rem;
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero__location {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.hero--centered .hero__location {
  justify-content: center;
}

.hero__location svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.hero__cta {
  margin-top: 1.25rem;
}

@media (min-width: 560px) {
  .hero {
    margin: 0 -1.75rem;
  }

  .hero__text {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .hero__monogram {
    left: 1.75rem;
  }
}

/* ─── Botões ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--pill {
  background: var(--c-button);
  color: var(--c-on-button);
}

.btn--outline {
  border-color: currentColor;
  background: transparent;
  color: var(--c-link);
}

.btn--soft {
  background: var(--c-surface);
  color: var(--c-text-surface);
}

/* Botão sobre a faixa escura (Sobre mim): claro na paleta Sálvia, destaque na Ametista. */
.btn--light {
  background: var(--c-band-button);
  color: var(--c-on-band-button);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn__arrow {
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -10px rgb(var(--shadow-rgb) / 0.45);
  }

  .btn:hover .btn__arrow {
    transform: translateX(4px);
  }
}

.btn:active {
  transform: translateY(0);
}

/* ─── Cards de link ─────────────────────────────────────────────────────── */

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 92px;
  padding: 1.1rem 1.15rem 1.1rem 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--c-on-primary);
  background: var(--c-solid);
  text-decoration: none;
  box-shadow: 0 10px 24px -18px rgb(var(--shadow-rgb) / 0.6);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(var(--photo-brightness));
}

.card--image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-overlay);
  opacity: var(--overlay-alpha);
}

.card--light {
  background: var(--c-surface);
  color: var(--c-text-surface);
  box-shadow: inset 0 0 0 1px var(--c-border);
}

.card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-button);
}

.card--light .card__icon {
  background: var(--c-button);
  color: var(--c-on-button);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.12;
}

.card__sub {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.card--light .card__sub {
  color: var(--c-muted-surface);
}

.card__chev {
  flex: none;
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  a.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px -18px rgb(var(--shadow-rgb) / 0.7);
  }

  a.card:hover .card__chev {
    transform: translateX(4px);
  }
}

a.card:focus-visible {
  outline: 2px solid var(--c-link);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ─── Botão de link ─────────────────────────────────────────────────────── */

.link-button {
  display: flex;
  justify-content: center;
}

/* ─── Texto ─────────────────────────────────────────────────────────────── */

.text-block > .h2 + .prose {
  margin-top: 0.75rem;
}

/* ─── Manifesto ─────────────────────────────────────────────────────────── */

.manifesto {
  padding: calc(1.75rem * var(--space)) 1.5rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-align: center;
}

.manifesto__heading {
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
}

.manifesto .prose {
  font-size: 1.05rem;
  line-height: 1.7;
}

.manifesto__sig {
  margin-top: 1rem;
  font-family: var(--font-script);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--c-link);
}

/* ─── Sobre mim ─────────────────────────────────────────────────────────── */

.about {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 30rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-band);
  color: var(--c-on-primary);
}

.about__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(var(--about-brightness));
}

/*
 * O degradê fica no próprio bloco de texto: de transparente no topo (onde não há texto, só a
 * margem de 7rem) até `--about-alpha` onde o texto começa e `--about-alpha-bottom` na base.
 * Assim o texto pode crescer à vontade e nunca sai da área conferida (DECISIONS D-17).
 */
.about__content {
  padding: 7rem 1.5rem 1.75rem;
  background: linear-gradient(
    to top,
    rgb(var(--c-band-rgb) / var(--about-alpha-bottom)) 0,
    rgb(var(--c-band-rgb) / var(--about-alpha)) calc(100% - 7rem),
    rgb(var(--c-band-rgb) / 0) 100%
  );
}

.about__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.1;
}

.about__content .prose {
  margin-top: 0.75rem;
}

.about__cta {
  margin-top: 1.25rem;
}

/* ─── Perguntas frequentes ──────────────────────────────────────────────── */

.faq__heading {
  margin-bottom: 0.5rem;
}

.faq__item {
  border-bottom: 1px solid var(--c-border);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.35;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  margin: -0.75px 0 0 -5.5px;
  background: var(--c-text);
  border-radius: 1px;
}

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

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 0 1.1rem;
}

/* ─── Números ───────────────────────────────────────────────────────────── */

.stats__list {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  list-style: none;
}

.stats--band {
  margin: 0 -1.25rem;
  padding: calc(1.5rem * var(--space)) 0.75rem;
  background: var(--c-band);
  color: var(--c-on-primary);
}

.stats--plain {
  padding: 1rem 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.stats__item {
  padding: 0.25rem 0.6rem;
  text-align: center;
}

.stats__item + .stats__item {
  border-left: 1px solid rgb(var(--c-band-rgb) / 0.25);
}

.stats--band .stats__item + .stats__item {
  border-left-color: currentColor;
}

/* Os dois são <span> (dentro de <li>): sem `display: block` ficam na mesma linha, colados. */
.stats__value,
.stats__label {
  display: block;
}

.stats__value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
}

.stats__label {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

@media (min-width: 560px) {
  .stats--band {
    margin: 0 -1.75rem;
  }
}

/* ─── Imagem e galeria ──────────────────────────────────────────────────── */

.figure img,
.gallery__item img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--c-surface);
}

.ar-1x1 img {
  aspect-ratio: 1;
}

.ar-4x5 img {
  aspect-ratio: 4 / 5;
}

.ar-3x2 img {
  aspect-ratio: 3 / 2;
}

.ar-16x9 img {
  aspect-ratio: 16 / 9;
}

.figure figcaption,
.gallery__caption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--c-muted);
  text-align: center;
}

.gallery .h2 {
  margin-bottom: 0.9rem;
}

.gallery__list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.gallery--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery--cols-3 .gallery__caption {
  display: none;
}

.gallery--carousel {
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 0.5rem;
}

.gallery--carousel .gallery__item {
  scroll-snap-align: start;
}

.gallery__item img {
  aspect-ratio: 1;
}

.gallery--carousel .gallery__item img {
  aspect-ratio: 4 / 5;
}

.zoom {
  display: block;
  border-radius: var(--radius);
}

.lightbox {
  max-width: min(92vw, 900px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.lightbox::backdrop {
  background: rgb(30 30 26 / 0.82);
}

.lightbox img {
  max-height: 86vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ─── Vídeo, mapa e HTML personalizado ──────────────────────────────────── */

.video__frame,
.map__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
}

.map__frame {
  aspect-ratio: 4 / 3;
}

.video__frame iframe,
.map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.facade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-on-primary);
  text-decoration: none;
}

.facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facade__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--c-button);
  color: var(--c-on-button);
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.5);
  transition: transform 0.2s ease;
}

.facade__play svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.facade__label {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--c-button);
  color: var(--c-on-button);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

@media (hover: hover) {
  .facade:hover .facade__play {
    transform: scale(1.06);
  }
}

.map__frame .facade {
  flex-direction: column;
  gap: 0.6rem;
  color: var(--c-text);
}

.map__frame .facade__play {
  color: var(--c-on-button);
}

.map__address {
  margin: 0.5rem 0 0.9rem;
  color: var(--c-muted);
}

.map__actions {
  margin-top: 0.9rem;
}

.section-head {
  margin-bottom: 0.9rem;
}

.embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-surface);
}

.embed__gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-muted-surface);
  text-align: center;
  font-size: 0.92rem;
}

/* ─── Formulário de contato ─────────────────────────────────────────────── */

.form {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text-surface);
}

.form .h2 {
  color: inherit;
}

.form .h2 {
  font-size: 1.7rem;
}

.form__intro {
  margin-top: 0.4rem;
  color: var(--c-muted-surface);
}

.form__fields {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  color: var(--c-text);
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-bg);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline-offset: 1px;
  border-color: var(--c-link);
}

.field__hint {
  font-size: 0.82rem;
  color: var(--c-muted-surface);
}

/* Resultado do envio. Sem cor própria de erro no tema: peso e borda na cor do texto, que
   mantém o contraste em qualquer paleta. */
.field__hint[data-state='ok'],
.field__hint[data-state='error'] {
  color: var(--c-text-surface);
  font-size: 0.9rem;
  font-weight: 600;
}

.field__hint[data-state='error'] {
  padding-left: 0.6rem;
  border-left: 3px solid currentColor;
}

.field [aria-invalid='true'],
.check input[aria-invalid='true'] {
  border-width: 2px;
  border-color: currentColor;
  outline: 2px solid var(--c-link);
  outline-offset: 1px;
}

/* Espaço do widget do Turnstile reservado: a página não pula quando ele aparece. */
.form__turnstile {
  min-height: 65px;
}

.form__notice {
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--c-link);
  border-radius: 8px;
  background: var(--c-bg);
  font-size: 0.86rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--c-button);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ─── Redes sociais ─────────────────────────────────────────────────────── */

.social .h2 {
  margin-bottom: 0.9rem;
}

.social__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
}

.social__link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-button);
  color: var(--c-on-button);
  transition: transform 0.2s ease;
}

.social__link svg {
  width: 22px;
  height: 22px;
}

.social--buttons .social__list {
  flex-direction: column;
}

.social--buttons .social__link {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

@media (hover: hover) {
  .social__link:hover {
    transform: translateY(-2px);
  }
}

/* ─── Divisor e espaço ──────────────────────────────────────────────────── */

.divider {
  border: 0;
  margin: 0;
  color: var(--c-border);
}

.divider--line {
  height: 1px;
  background: var(--c-border);
}

.divider--dots,
.divider--flourish {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.divider--dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-muted);
  opacity: 0.6;
}

.divider--flourish svg {
  width: 120px;
  height: 20px;
  color: var(--c-muted);
}

.gap-sm {
  margin-top: calc(-0.75rem * var(--space));
  margin-bottom: calc(-0.75rem * var(--space));
}

.gap-lg {
  margin-top: calc(1rem * var(--space));
  margin-bottom: calc(1rem * var(--space));
}

.spacer--xs {
  height: 0;
}

.spacer--sm {
  height: calc(0.5rem * var(--space));
}

.spacer--md {
  height: calc(1.5rem * var(--space));
}

.spacer--lg {
  height: calc(3rem * var(--space));
}

.spacer--xl {
  height: calc(5rem * var(--space));
}

/* ─── Depoimentos ───────────────────────────────────────────────────────── */

.testimonials .h2 {
  margin-bottom: 0.9rem;
}

.testimonials__list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
}

.testimonial {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text-surface);
}

.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.45;
}

.testimonial__author {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-muted-surface);
}

.testimonials__note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--c-muted);
}

/* ─── Rodapé ────────────────────────────────────────────────────────────── */

.footer {
  padding: calc(2.25rem * var(--space)) 1.5rem calc(2rem * var(--space));
  background: var(--c-band);
  color: var(--c-on-primary);
  text-align: center;
}

.footer a {
  color: var(--c-on-primary);
}

.footer__heading {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
}

.footer .social__link {
  background: var(--c-on-primary);
  color: var(--c-band);
}

.footer__text {
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.footer__sig {
  margin-top: 1rem;
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1.1;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.84rem;
}

.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer__copy {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ─── Aviso de cookies ──────────────────────────────────────────────────── */

/* Cartão no pé da tela, sem tapar a página inteira: dá para ler o site antes de escolher. */
.consent {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 34rem;
  max-height: calc(100vh - 2rem);
  margin-inline: auto;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  color: var(--c-text-surface);
  box-shadow: 0 18px 50px -18px rgb(var(--shadow-rgb) / 0.55);
}

/* `.btn` e os rótulos têm `display` próprio, que venceria o `hidden`. */
.consent[hidden],
.consent [hidden] {
  display: none !important;
}

.consent__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.25;
}

.consent__text {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent__text a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__choices {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.consent__opt {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: calc(var(--radius) * 0.6);
  cursor: pointer;
}

.consent__opt input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  accent-color: var(--c-button);
}

.consent__opt input:disabled {
  cursor: not-allowed;
}

.consent__opt span {
  display: grid;
  gap: 0.15rem;
}

.consent__opt small {
  color: var(--c-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.consent__actions .btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

@media (max-width: 380px) {
  .consent {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 1rem;
  }

  .consent__actions .btn {
    flex-basis: 100%;
  }
}

/* ─── Política de privacidade ──────────────────────────────────────────── */

.legal {
  padding: calc(2rem * var(--space)) 0.25rem 0;
}

.legal > .h2 + .prose {
  margin-top: 1.25rem;
}

.legal .prose a {
  color: var(--c-link);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.legal__cookies {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}

/* ─── 404 ───────────────────────────────────────────────────────────────── */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 1.5rem;
  text-align: center;
}

.notfound__code {
  font-family: var(--font-script);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--c-link);
}

/* ─── Movimento ─────────────────────────────────────────────────────────── */

/* Só com JS e com animação ligada no tema: sem JS tudo aparece de primeira. */
.js .anim [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .anim [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .anim [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
