/* ===========================================================
   Espaço Casulo · sistema visual
   Cores extraídas do logo oficial. Marca é clara por definição:
   não existe versão escura deste site.
   =========================================================== */

:root {
  color-scheme: light;

  --sage: #9bbb91;
  --sage-deep: #7a9b71;
  --sage-ink: #4e6a48;
  --terra: #d58b71;
  /* Clareia no hover em vez de escurecer: o texto do botão é escuro, então
     é assim que o contraste sobe em vez de cair. */
  --terra-hover: #de9a83;
  /* Versão escura o bastante para texto passar em AA sobre branco e creme. */
  --terra-deep: #9a5d48;
  --peach: #f7cab0;
  --cream: #faeddd;
  --cream-soft: #fdf7ef;
  --white: #fff;

  --ink: #4a4038;
  --ink-soft: #675c53;
  --ink-faint: #756960;
  --on-terra: #3a312a;
  --line: #ece0d2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px rgba(74, 64, 56, 0.04), 0 2px 8px rgba(74, 64, 56, 0.05);
  --shadow-md: 0 2px 6px rgba(74, 64, 56, 0.05), 0 12px 32px rgba(74, 64, 56, 0.08);
  --shadow-lg: 0 4px 12px rgba(74, 64, 56, 0.06), 0 24px 56px rgba(74, 64, 56, 0.1);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-arch: 999px 999px var(--r-lg) var(--r-lg);

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(68px, 9vw, 132px);
  --maxw: 1180px;

  --ease: cubic-bezier(0.32, 0.72, 0.3, 1);
}

/* --- reset ------------------------------------------------ */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  /* Header fixo não pode cobrir o título da seção ancorada. */
  :target {
    scroll-margin-top: 96px;
  }
}

body {
  margin: 0;
  background: var(--cream-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2.5px solid var(--terra-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--peach);
  color: var(--ink);
}

/* --- tipografia ------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.95rem, 4.3vw, 3.05rem);
  letter-spacing: -0.022em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.09rem, 1.9vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--sage);
  flex: none;
}

.eyebrow--center::before {
  display: none;
}

/* --- layout ----------------------------------------------- */

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

.wrap--narrow {
  max-width: 820px;
}

.section {
  padding-block: var(--section);
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: 0.85rem 1.5rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: translate 0.2s var(--ease);
}

.skip-link:focus {
  translate: -50% 0;
}

/* --- botões ----------------------------------------------- */

.btn {
  --btn-bg: var(--terra);
  --btn-fg: var(--on-terra);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.92em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(74, 64, 56, 0.08);
  transition:
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    translate 0.22s var(--ease);
}

.btn:hover {
  --btn-bg: var(--terra-hover);
  translate: 0 -1.5px;
  box-shadow: var(--shadow-md);
}

.btn:active {
  translate: 0 0;
  box-shadow: 0 1px 2px rgba(74, 64, 56, 0.1);
}

.btn svg {
  flex: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.btn--ghost:hover {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  border-color: transparent;
}

.btn--on-photo {
  --btn-bg: rgba(255, 255, 255, 0.92);
  --btn-fg: var(--ink);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--on-photo:hover {
  --btn-bg: var(--white);
}

.btn--sm {
  padding: 0.62em 1.15em;
  font-size: 0.87rem;
}

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

/* --- cabeçalho -------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition:
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(
    rgba(52, 43, 36, 0.62) 0%,
    rgba(52, 43, 36, 0.38) 55%,
    rgba(52, 43, 36, 0) 100%
  );
  height: 168px;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

/* --solid é o cabeçalho das páginas internas, que não têm foto no topo e
   por isso nunca ficam transparentes. */
.header.is-stuck,
.header--solid {
  background: rgba(253, 247, 239, 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}

.header.is-stuck::before,
.header--solid::before {
  opacity: 0;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 78px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
  text-decoration: none;
}

.header__logo img {
  width: auto;
  height: 52px;
  transition: height 0.3s var(--ease);
}

.header.is-stuck .header__logo img,
.header--solid .header__logo img {
  height: 46px;
}

/* O logo tem miolo branco: sobre a foto do topo ele precisa de um halo. */
.header__logo img {
  filter: drop-shadow(0 1px 8px rgba(255, 255, 255, 0.75));
}

.header.is-stuck .header__logo img,
.header--solid .header__logo img {
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.6vw, 1.35rem);
}

.nav a {
  position: relative;
  padding: 0.5rem 0.15rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(74, 64, 56, 0.45);
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1.5px;
  background: currentColor;
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.28s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  scale: 1 1;
}

.header.is-stuck .nav a,
.header--solid .nav a {
  color: var(--ink);
  text-shadow: none;
}

.header.is-stuck .nav a:hover,
.header--solid .nav a:hover {
  color: var(--terra-deep);
}

.header__cta {
  flex: none;
}

/* O CTA dentro do nav existe só para o menu mobile. */
@media (min-width: 901px) {
  .nav .btn {
    display: none;
  }
}

.nav-toggle {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: background 0.2s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transition: translate 0.25s var(--ease), rotate 0.25s var(--ease);
}

.nav-toggle span::before {
  translate: 0 -5.5px;
}

.nav-toggle span::after {
  translate: 0 5.5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  translate: 0 0;
  rotate: 45deg;
}

.nav-toggle[aria-expanded="true"] span::after {
  translate: 0 0;
  rotate: -45deg;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    opacity: 0;
    translate: 0 -8px;
    transition:
      opacity 0.25s var(--ease),
      translate 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
  }

  .nav a {
    padding: 0.95rem 0;
    font-size: 1.05rem;
    color: var(--ink);
    text-shadow: none;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .nav .btn {
    margin-top: 1.1rem;
  }
}

/* --- hero ------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 820px);
  padding-top: 130px;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
  background: var(--sage-ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* <picture> é inline por padrão: sem isso o height:100% da imagem não
   resolve e ela vaza para fora do hero. */
.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

/* Duas camadas: um véu vertical para o rodapé do hero e um lateral que dá
   cama para o texto sem apagar o lado direito da foto. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to right,
      rgba(50, 41, 34, 0.74) 0%,
      rgba(50, 41, 34, 0.55) 34%,
      rgba(50, 41, 34, 0.12) 68%,
      rgba(50, 41, 34, 0.05) 100%
    ),
    linear-gradient(
      to top,
      rgba(50, 41, 34, 0.6) 0%,
      rgba(50, 41, 34, 0.22) 45%,
      rgba(50, 41, 34, 0.08) 75%,
      rgba(50, 41, 34, 0.2) 100%
    );
}

@media (max-width: 760px) {
  .hero::after {
    background: linear-gradient(
      to top,
      rgba(50, 41, 34, 0.86) 0%,
      rgba(50, 41, 34, 0.64) 45%,
      rgba(50, 41, 34, 0.42) 75%,
      rgba(50, 41, 34, 0.5) 100%
    );
  }
}

.hero__inner {
  max-width: 40rem;
  color: var(--white);
}

.hero .eyebrow {
  color: var(--peach);
}

.hero .eyebrow::before {
  background: var(--peach);
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 30px rgba(50, 40, 32, 0.35);
}

.hero__sub {
  margin-top: 1.4rem;
  font-size: clamp(1.06rem, 1.9vw, 1.24rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.93);
  max-width: 34rem;
  text-shadow: 0 1px 16px rgba(50, 40, 32, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.hero__meta svg {
  flex: none;
  opacity: 0.8;
}

/* --- pilares ---------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.45rem;
  background: var(--cream);
  border-radius: 50%;
  color: var(--sage-ink);
}

.section--cream .pillar__icon {
  background: var(--white);
}

.pillar h2 {
  font-size: 1.16rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* --- manifesto -------------------------------------------- */

.manifesto {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .manifesto {
    grid-template-columns: 0.92fr 1.08fr;
  }
}

.manifesto__media {
  position: relative;
}

/* Nas páginas de especialidade o texto é longo: a imagem acompanha a
   leitura em vez de boiar no meio de um vão em branco. */
.manifesto--top {
  align-items: start;
}

@media (min-width: 900px) {
  .manifesto--top .manifesto__media {
    position: sticky;
    top: 108px;
  }
}

/* O arco ecoa as portas de arco do espaço real. */
.arch {
  overflow: hidden;
  border-radius: var(--r-arch);
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}

.arch img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.manifesto__quote {
  margin-top: 1.8rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--sage);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.38;
  font-style: italic;
  color: var(--ink);
}

.manifesto__body > * + * {
  margin-top: 1.15rem;
}

.manifesto__body p {
  color: var(--ink-soft);
  font-size: 1.07rem;
}

/* --- especialidades --------------------------------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.spec {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    translate 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.spec:hover {
  translate: 0 -4px;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.spec__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.3rem;
  background: var(--cream);
  border-radius: 16px;
  color: var(--sage-ink);
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}

.spec:hover .spec__icon {
  background: var(--sage);
  color: var(--white);
}

.spec h3 {
  font-size: 1.28rem;
  margin-bottom: 0.55rem;
}

.spec p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.spec__who {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.spec__go {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--terra-deep);
}

.spec__go svg {
  transition: translate 0.28s var(--ease);
}

.spec:hover .spec__go svg {
  translate: 3px 0;
}

/* --- equipe ----------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 208px), 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
}

/* --- carrossel ------------------------------------------- */

.carousel {
  --per: 4;
  --card-gap: clamp(1.1rem, 2.2vw, 1.75rem);
  position: relative;
}

@media (max-width: 1000px) {
  .carousel {
    --per: 3;
  }
}

@media (max-width: 720px) {
  .carousel {
    --per: 2;
  }
}

@media (max-width: 480px) {
  /* O card cortado avisa que há mais gente para o lado. */
  .carousel {
    --per: 1.35;
  }
}

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* espaço para o realce de foco e a sombra do card não serem cortados */
  margin: -6px;
  padding: 6px;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

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

/* Arrastar com o mouse no desktop (no toque a rolagem nativa já resolve). */
@media (hover: hover) and (pointer: fine) {
  .carousel.is-ready .carousel__viewport {
    cursor: grab;
  }
}

.carousel.is-grabbing .carousel__viewport {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.carousel.is-grabbing .carousel__viewport img {
  -webkit-user-drag: none;
}

.carousel__track {
  display: flex;
  gap: var(--card-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.carousel__track > .member {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--card-gap)) / var(--per));
  scroll-snap-align: start;
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.carousel__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.carousel__btn:hover:not(:disabled) {
  background: var(--terra);
  color: var(--on-terra);
  border-color: transparent;
}

.carousel__btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.carousel__btn-icon {
  display: grid;
  place-items: center;
}

.carousel__btn-icon--flip {
  rotate: 180deg;
}

.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-inline: 0.35rem auto;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--line);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    width 0.3s var(--ease),
    background 0.3s var(--ease);
}

.section--cream .carousel__dot {
  background: #e3d3c0;
}

.carousel__dot:hover {
  background: var(--ink-faint);
}

.carousel__dot[aria-current="true"] {
  width: 26px;
  background: var(--terra);
}

/* Com muitos grupos as bolinhas viram poluição: no estreito vira contador. */
.carousel__count {
  display: none;
  margin-inline: 0.5rem auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .carousel__dots {
    display: none;
  }

  .carousel__count {
    display: block;
  }
}

.carousel__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  flex: none;
  padding: 0.6em 1.05em;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease);
}

.carousel__toggle:hover {
  background: var(--white);
  color: var(--ink);
}

.carousel__ico-play {
  display: none;
}

.carousel.is-paused .carousel__ico-pause {
  display: none;
}

.carousel.is-paused .carousel__ico-play {
  display: block;
}

/* Sem JS as setas e o play não fazem nada: some com eles e o viewport
   continua rolável na mão. */
.carousel:not(.is-ready) .carousel__controls {
  display: none;
}

@media (max-width: 560px) {
  .carousel__toggle span {
    display: none;
  }

  .carousel__toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

.member figure {
  margin: 0;
}

.member__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.member__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: scale 0.6s var(--ease);
}

.member:hover .member__photo img {
  scale: 1.035;
}

.member__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.3em 0.75em;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--terra-deep);
}

.member figcaption {
  padding-top: 0.9rem;
}

.member__name {
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.member__role {
  margin-top: 0.22rem;
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.member__role--pending {
  color: var(--ink-faint);
  font-style: italic;
}

/* Card sem foto ainda: monograma na cor da marca até a foto chegar. */
.member__photo--placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--cream-soft) 0%, var(--peach) 100%);
  text-align: center;
}

.member__monogram {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--terra-deep);
  line-height: 1;
}

.member__soon {
  margin-top: 0.6rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- espaço / vídeo --------------------------------------- */

.video {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sage-ink);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* O player não é clicável: sem isso o YouTube mostra o overlay dele
   (play, copiar link, logo) assim que o mouse passa por cima. */
.video iframe {
  pointer-events: none;
}

.video__controls {
  position: absolute;
  right: clamp(0.7rem, 2vw, 1.2rem);
  bottom: clamp(0.7rem, 2vw, 1.2rem);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.video__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(24, 19, 14, 0.55);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background 0.22s var(--ease);
}

.video__btn:hover {
  background: rgba(24, 19, 14, 0.78);
}

.video__ico-sound {
  display: none;
}

.video:not(.is-muted) .video__ico-muted {
  display: none;
}

.video:not(.is-muted) .video__ico-sound {
  display: block;
}

/* Sem JS os botões não fazem nada: some com eles. */
.video:not(.is-ready) .video__controls {
  display: none;
}

/* --- coverflow das fotos do espaço ------------------------ */

.spaceflow {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.spaceflow__stage {
  position: relative;
  outline: none;
}

.spaceflow__track {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spaceflow__slide {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--cream);
  box-shadow: var(--shadow-md);
}

.spaceflow__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Fallback sem JS: uma faixa rolável na horizontal, foto por foto. */
.spaceflow:not(.is-ready) .spaceflow__track {
  display: flex;
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.spaceflow:not(.is-ready) .spaceflow__slide {
  flex: 0 0 clamp(280px, 82vw, 560px);
  scroll-snap-align: center;
}

/* Com JS: coverflow 3D com o card central em destaque. */
.spaceflow.is-ready .spaceflow__stage {
  height: clamp(228px, 46vw, 464px);
  perspective: 1600px;
  overflow: hidden;
  cursor: grab;
  /* Deixa o deslize horizontal pro carrossel e mantém a rolagem vertical. */
  touch-action: pan-y;
}

.spaceflow.is-grabbing .spaceflow__stage,
.spaceflow.is-grabbing .spaceflow__slide {
  cursor: grabbing;
}

/* Enquanto arrasta (ou com movimento reduzido) o card acompanha na hora. */
.spaceflow.is-dragging .spaceflow__slide,
.spaceflow.no-anim .spaceflow__slide {
  transition: none;
}

.spaceflow.is-ready .spaceflow__slide img {
  -webkit-user-drag: none;
  user-select: none;
}

.spaceflow.is-ready .spaceflow__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(290px, 62vw, 618px);
  cursor: grab;
  will-change: transform, opacity;
  transition:
    transform 0.5s var(--ease),
    opacity 0.45s var(--ease),
    box-shadow 0.5s var(--ease);
}

.spaceflow.is-ready .spaceflow__slide.is-active {
  box-shadow: var(--shadow-lg);
}

/* Véu suave nos cards laterais pra jogar o foco no centro. */
.spaceflow.is-ready .spaceflow__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(74, 64, 56, 0.3);
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}

.spaceflow.is-ready .spaceflow__slide.is-active::after {
  opacity: 0;
}

.spaceflow__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(1.3rem, 2.8vw, 1.9rem);
}

.spaceflow__controls .carousel__dots {
  margin-inline: 0;
}

/* Sem JS os controles não fazem nada: o fallback rolável basta. */
.spaceflow:not(.is-ready) .spaceflow__controls {
  display: none;
}

/* --- convênios -------------------------------------------- */

.cov-split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 940px) {
  .cov-split {
    grid-template-columns: 1fr 1.1fr;
  }
}

.cov-panel {
  min-width: 0;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.cov-intro {
  min-width: 0;
}

.cov-grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.1rem);
}

@media (min-width: 560px) {
  .cov-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cov-card {
  padding: clamp(1.35rem, 2.6vw, 1.7rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.cov-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.15rem;
  color: var(--terra);
  background: var(--cream);
  border-radius: var(--r-md);
}

.cov-card h3 {
  margin: 0 0 0.35rem;
}

.cov-card > p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.cov-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
}

.cov-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 1em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.cov-badges svg {
  flex: none;
  color: var(--sage-deep);
}

.cov-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1.25rem, 3vw, 1.6rem);
  background: var(--cream-soft);
  border: 1px solid var(--terra);
  border-radius: var(--r-md);
}

.cov-note svg {
  flex: none;
  margin-top: 1px;
  color: var(--terra);
}

.cov-note p {
  font-size: 1rem;
  color: var(--ink-soft);
}

.cov-note strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.cov-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  white-space: normal;
  text-align: center;
}

.cov-cta svg {
  flex: none;
}

.cov-cta-arrow {
  transition: transform 0.2s ease;
}

.cov-cta:hover .cov-cta-arrow {
  transform: translateX(4px);
}

.plans {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 860px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

/* --- outras áreas: texto + card de especialidades ------------- */

.areas-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .areas-split {
    grid-template-columns: 1fr 1.15fr;
  }
}

.areas-split .section-head {
  margin-bottom: 0;
}

.areas-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-md);
}

.areas-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
}

.areas-card__sub {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.areas-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}

.areas-pills a {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.42em 1.05em 0.42em 0.42em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.areas-pills a:hover,
.areas-pills a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--terra);
  box-shadow: var(--shadow-md);
}

.areas-pills__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.05em;
  height: 2.05em;
  border-radius: 50%;
  background: var(--cream);
  color: var(--terra-deep);
}

.areas-pills__ic svg {
  width: 1.05em;
  height: 1.05em;
}

.plan-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.68em 1.25em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  box-shadow: var(--shadow-sm);
}

.plan-list svg {
  flex: none;
  color: var(--sage-deep);
}

.note {
  display: flex;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 1.75rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.section--cream .note {
  background: var(--white);
}

.note svg {
  flex: none;
  margin-top: 2px;
  color: var(--terra);
}

.note p {
  font-size: 0.99rem;
  color: var(--ink-soft);
}

.note strong {
  color: var(--ink);
}

/* --- faq -------------------------------------------------- */

.faq {
  max-width: 800px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  font-weight: 500;
  line-height: 1.32;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

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

.faq summary:hover {
  color: var(--terra-deep);
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--sage-deep);
  border-bottom: 2px solid var(--sage-deep);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.3s var(--ease), translate 0.3s var(--ease);
}

.faq details[open] summary::after {
  rotate: -135deg;
  translate: 0 3px;
}

.faq__body {
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
  max-width: 64ch;
}

.faq__body > * + * {
  margin-top: 0.9rem;
}

/* --- contato ---------------------------------------------- */

.contact {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1.05fr;
  }
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1.5rem;
}

.info-list li {
  display: flex;
  gap: 1rem;
}

.info-list svg {
  flex: none;
  margin-top: 4px;
  color: var(--sage-deep);
}

.info-list h3 {
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.info-list a {
  text-decoration: none;
  font-weight: 600;
}

.info-list a:hover {
  color: var(--terra-deep);
  text-decoration: underline;
}

.hours {
  display: grid;
  gap: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 21rem;
  font-size: 0.97rem;
}

.hours dt {
  color: var(--ink-soft);
}

.hours dd {
  margin: 0;
  font-weight: 600;
}

.hours .is-closed dd {
  color: var(--ink-faint);
  font-weight: 400;
}

.map {
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--cream);
  aspect-ratio: 4 / 3.4;
}

.map iframe {
  width: 100%;
  height: 100%;
}

/* --- cta final -------------------------------------------- */

.closing {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background: var(--sage-ink);
  color: var(--white);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.closing__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(60, 76, 56, 0.82);
}

.closing h2 {
  color: var(--white);
  max-width: 18ch;
  margin-inline: auto;
}

.closing p {
  max-width: 46ch;
  margin: 1.2rem auto 2.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.closing .btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
}

.closing .btn:hover {
  --btn-bg: var(--cream);
}

/* --- rodapé ----------------------------------------------- */

.footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer__brand img {
  height: 78px;
  width: auto;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

.footer h3 {
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.footer a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer a:hover {
  color: var(--terra-deep);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* --- whatsapp flutuante ----------------------------------- */

.wa-float {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.42);
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition:
    opacity 0.3s var(--ease),
    translate 0.3s var(--ease),
    scale 0.2s var(--ease),
    visibility 0.3s;
}

.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.wa-float:hover {
  scale: 1.07;
}

/* --- páginas internas ------------------------------------- */

.page-hero {
  padding-top: clamp(130px, 17vw, 190px);
  padding-bottom: clamp(2.8rem, 6vw, 4.5rem);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--terra-deep);
  text-decoration: underline;
}

.crumbs svg {
  flex: none;
  opacity: 0.55;
}

.page-hero .lede {
  margin-top: 1.3rem;
}

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: 1.2rem;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-top: 2.8rem;
}

.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.7rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--sage);
  border-radius: 50%;
}

.prose strong {
  color: var(--ink);
}

/* --- entrada suave ---------------------------------------- */

/* O estado oculto só existe depois que o main.js assume o controle. Se o JS
   falhar ou não carregar, o conteúdo continua visível. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    translate: 0 18px;
    transition:
      opacity 0.7s var(--ease),
      translate 0.7s var(--ease);
  }

  .reveal-ready .reveal.is-in {
    opacity: 1;
    translate: 0 0;
  }
}

@media print {
  .header,
  .wa-float,
  .video__controls,
  .closing {
    display: none;
  }
}
