/* ==========================================================================
   Laura Figueira — Psicóloga · laurafigueirapsico.com.br
   ========================================================================== */

:root {
  --nude-bg: #F4EEE5;
  --nude-deep: #E9DFCF;
  --tan: #C29A72;
  --tan-soft: #D8BE9C;
  --graphite: #33312E;
  --off: #FBF8F3;
  --gold-italic: #8A7355;
  --eyebrow: #8A7B66;
  --body-text: #55503F;
  --whatsapp: #25D366;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body-text);
  background: var(--nude-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* Foco visível no teclado */
:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilitários ---------- */
.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--alt { background: var(--off); }
.section--deep { background: var(--nude-deep); overflow: hidden; }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.18;
  color: var(--graphite);
}

.section__title em,
.hero__title em {
  font-style: italic;
  color: var(--gold-italic);
}

.section__head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .42em;
  color: var(--eyebrow);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.eyebrow--center { justify-content: center; }

/* Losango assinatura (7×7 rotacionado 45°) */
.diamond {
  width: 7px;
  height: 7px;
  background: var(--tan);
  transform: rotate(45deg);
  flex: none;
  display: inline-block;
}
.diamond--inline { margin-right: .65rem; vertical-align: middle; }

/* Filete 1px */
.rule {
  width: 72px;
  height: 1px;
  background: var(--tan);
  opacity: .55;
  margin: 1.4rem 0 1.6rem;
}
.rule--center { margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .95rem 2.1rem;
  border-radius: 2px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.btn--solid {
  background: var(--graphite);
  color: var(--off);
}
.btn--solid:hover { background: #4a463f; transform: translateY(-2px); }

.btn--outline {
  border: 1.5px solid var(--tan);
  color: var(--graphite);
  padding: .6rem 1.5rem;
}
.btn--outline:hover { background: var(--tan); color: var(--off); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  font-size: .9rem;
  padding: 1.1rem 2.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .35);
}
.btn--whatsapp:hover { background: #1fb958; transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color .35s ease, box-shadow .35s ease;
}

.header.is-scrolled {
  background: var(--off);
  box-shadow: 0 1px 0 rgba(194, 154, 114, .35), 0 6px 24px rgba(51, 49, 46, .06);
}

.header__inner {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.header__symbol { width: 34px; height: auto; }

.header__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--graphite);
  letter-spacing: .02em;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  gap: 2rem;
}

.header__nav a {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--body-text);
  position: relative;
  padding-block: .3rem;
}

.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--tan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.header__nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 1rem; }

/* Hambúrguer (mobile) */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.header__burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--graphite);
  transition: transform .3s ease, opacity .3s ease;
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .header__burger { display: flex; }
  .header__cta { display: none; }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--off);
    border-top: 1px solid rgba(194, 154, 114, .35);
    box-shadow: 0 18px 30px rgba(51, 49, 46, .08);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .35s ease, visibility 0s .35s;
  }
  .header__nav.is-open {
    max-height: 320px;
    visibility: visible;
    transition: max-height .35s ease, visibility 0s;
  }
  .header__nav a {
    padding: 1.05rem 1.5rem;
    border-bottom: 1px solid rgba(194, 154, 114, .18);
  }
  .header__nav a::after { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--nude-bg);
}

.hero__rings {
  position: absolute;
  top: -180px;
  left: -220px;
  width: 620px;
  opacity: .8;
  pointer-events: none;
}

.hero__inner {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero__text { padding-block: 7.5rem 4rem; max-width: 34rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  line-height: 1.12;
  color: var(--graphite);
  margin-bottom: 1.4rem;
}

.hero__lead {
  font-weight: 300;
  font-size: 1.02rem;
  max-width: 30rem;
  margin-bottom: 2.2rem;
}

.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.hero__link {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-italic);
  border-bottom: 1px solid rgba(194, 154, 114, .55);
  padding-bottom: .25rem;
  transition: color .25s ease, border-color .25s ease;
}
.hero__link:hover { color: var(--graphite); border-color: var(--graphite); }

/* Foto com fade para o fundo */
.hero__media {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero__media picture { width: 100%; }

.hero__media img {
  width: 100%;
  height: min(88svh, 720px);
  object-fit: cover;
  object-position: center 22%;
  -webkit-mask-image:
    linear-gradient(to left, #000 62%, transparent 98%),
    linear-gradient(to top, transparent 1%, #000 22%),
    linear-gradient(to bottom, transparent 1%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to left, #000 62%, transparent 98%),
    linear-gradient(to top, transparent 1%, #000 22%),
    linear-gradient(to bottom, transparent 1%, #000 22%);
  mask-composite: intersect;
}

@media (max-width: 860px) {
  .hero { min-height: auto; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__text {
    padding-block: 6.5rem 0;
    order: 1;
  }

  .hero__media { order: 2; margin-top: 2.5rem; }

  .hero__media img {
    height: min(62svh, 460px);
    object-position: center 15%;
    -webkit-mask-image:
      linear-gradient(to top, transparent 2%, #000 30%),
      linear-gradient(to bottom, transparent 0%, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to top, transparent 2%, #000 30%),
      linear-gradient(to bottom, transparent 0%, #000 14%);
    mask-composite: intersect;
  }
}

/* ==========================================================================
   Sobre
   ========================================================================== */
.sobre__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.sobre__media { position: relative; }

.sobre__frame {
  position: relative;
  border: 1px solid rgba(194, 154, 114, .55);
  padding: 14px;
  max-width: 380px;
  margin-inline: auto;
}

.sobre__frame img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 18%;
}

.sobre__symbol {
  position: absolute;
  width: 74px;
  right: -6px;
  bottom: -26px;
  opacity: .9;
}

.sobre__text p:not(.eyebrow) {
  font-weight: 300;
  font-size: 1.02rem;
  max-width: 34rem;
}

@media (max-width: 860px) {
  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__media { max-width: 320px; margin-inline: auto; }
}

/* ==========================================================================
   Especialidades — cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.card {
  background: var(--nude-bg);
  border: 1px solid rgba(194, 154, 114, .35);
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.4rem, 2.4vw, 2rem);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--tan);
  box-shadow: 0 18px 40px rgba(51, 49, 46, .07);
}

.card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.3rem;
}
.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--graphite);
  margin-bottom: .7rem;
}

.card__text {
  font-weight: 300;
  font-size: .93rem;
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* ==========================================================================
   Atendimento
   ========================================================================== */
.atendimento__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 860px;
  margin-inline: auto;
}

.atendimento__col {
  text-align: center;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(194, 154, 114, .35);
  background: var(--off);
}

.atendimento__note {
  text-align: center;
  margin-top: 2.6rem;
  font-size: .88rem;
  letter-spacing: .04em;
  color: var(--eyebrow);
}

@media (max-width: 700px) {
  .atendimento__cols { grid-template-columns: 1fr; max-width: 420px; }
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta { text-align: center; }

.cta__rings {
  position: absolute;
  right: -240px;
  bottom: -280px;
  width: 640px;
  pointer-events: none;
}

.cta__inner { position: relative; z-index: 1; }

.cta__title { margin-bottom: 1rem; }

.cta__text {
  font-weight: 300;
  max-width: 30rem;
  margin: 0 auto 2.4rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--nude-bg);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.2rem;
  text-align: center;
}

.footer__logo {
  width: min(260px, 64vw);
  margin: 0 auto 2.2rem;
}

.footer__contacts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.4rem;
  margin-bottom: .6rem;
}

.footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  color: var(--body-text);
  transition: color .25s ease;
}
.footer__contacts a:hover { color: var(--gold-italic); }
.footer__contacts svg { color: var(--tan); flex: none; }

.footer__copy {
  font-size: .8rem;
  letter-spacing: .04em;
  margin-top: 1.6rem;
}

.footer__credits {
  font-size: .72rem;
  opacity: .55;
  margin-top: .4rem;
  letter-spacing: .06em;
}

/* ==========================================================================
   Botão WhatsApp flutuante
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: .85rem;
}

.wa-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
  animation: wa-pulse 3s ease-out infinite;
  transition: transform .25s ease;
}
.wa-float__btn:hover { transform: scale(1.08); }

@keyframes wa-pulse {
  0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, .45); }
  60%  { box-shadow: 0 6px 20px rgba(37, 211, 102, .4), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 6px 20px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float__tooltip {
  background: var(--graphite);
  color: var(--off);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .03em;
  padding: .55rem 1rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  position: relative;
}
.wa-float__tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--graphite);
}
.wa-float__tooltip.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Animações de entrada
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Páginas internas (Projetos)
   ========================================================================== */
.header--solid {
  background: var(--off);
  box-shadow: 0 1px 0 rgba(194, 154, 114, .35), 0 6px 24px rgba(51, 49, 46, .06);
}

.page-hero {
  padding: clamp(8rem, 16vw, 11rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.page-hero__lead {
  font-weight: 300;
  font-size: 1.02rem;
  max-width: 40rem;
  margin: 1.2rem auto 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(37, 211, 102, .12);
  color: #147a3d;
  border: 1px solid rgba(37, 211, 102, .4);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 999px;
}
.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
}

/* --- Lista de projetos --- */
.projetos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 860px;
  margin-inline: auto;
}

.projeto-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  background: var(--off);
  border: 1px solid rgba(194, 154, 114, .4);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.projeto-card:hover {
  transform: translateY(-4px);
  border-color: var(--tan);
  box-shadow: 0 20px 44px rgba(51, 49, 46, .08);
}

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

.projeto-card__body {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
}

.projeto-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--graphite);
  line-height: 1.2;
}

.projeto-card__text { font-weight: 300; font-size: .95rem; }

.projeto-card__meta {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.projetos-empty {
  text-align: center;
  font-size: .9rem;
  color: var(--eyebrow);
  margin-top: 3rem;
}

@media (max-width: 700px) {
  .projeto-card { grid-template-columns: 1fr; }
  .projeto-card__media img { max-height: 300px; object-position: top; }
}

/* --- Página do projeto --- */
.turmas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.turma {
  border: 1px solid rgba(194, 154, 114, .35);
  background: var(--off);
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border-top: 4px solid var(--turma-accent, var(--tan));
}
.turma--rosa { --turma-accent: #D98E96; }
.turma--verde { --turma-accent: #1AA79B; }
.turma--amarela { --turma-accent: #E9B63C; }

.turma__idade {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--turma-accent);
}

.turma__nome {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--graphite);
  margin: .35rem 0 .7rem;
}

.turma__foco { font-weight: 300; font-size: .92rem; margin-bottom: 1rem; }

.turma__horario {
  font-size: .86rem;
  border-top: 1px solid rgba(194, 154, 114, .35);
  padding-top: .9rem;
  color: var(--gold-italic);
}

@media (max-width: 860px) {
  .turmas-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* Lista "o que desenvolve" */
.dev-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 2.5rem;
  max-width: 760px;
  margin-inline: auto;
}
.dev-list li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-weight: 300;
  font-size: .97rem;
}
.dev-list .diamond { transform: rotate(45deg) translateY(-1px); }

@media (max-width: 700px) {
  .dev-list { grid-template-columns: 1fr; }
}

/* Estrutura do encontro */
.encontro-steps {
  list-style: none;
  counter-reset: passo;
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  max-width: 640px;
  margin-inline: auto;
}
.encontro-steps li {
  counter-increment: passo;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--off);
  border: 1px solid rgba(194, 154, 114, .3);
  padding: 1rem 1.3rem;
  font-weight: 300;
  font-size: .95rem;
}
.encontro-steps li::before {
  content: counter(passo, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tan);
  flex: none;
}

/* Investimento */
.precos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  max-width: 900px;
  margin-inline: auto;
}

.preco {
  position: relative;
  text-align: center;
  background: var(--nude-bg);
  border: 1px solid rgba(194, 154, 114, .35);
  padding: 2.2rem 1.4rem 1.8rem;
}
.preco--destaque { border-color: var(--tan); border-width: 1.5px; }

.preco__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tan);
  color: var(--off);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.preco__valor {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--graphite);
  line-height: 1;
}

.preco__unidade { font-size: .8rem; color: var(--gold-italic); margin-top: .3rem; }
.preco__desc { font-weight: 300; font-size: .9rem; margin-top: .8rem; }

@media (max-width: 700px) {
  .precos-grid { grid-template-columns: 1fr; max-width: 380px; }
}

/* Nota / devolutiva */
.nota {
  max-width: 720px;
  margin-inline: auto;
  border-left: 2px solid var(--tan);
  background: var(--off);
  padding: 1.4rem 1.8rem;
  font-weight: 300;
  font-size: .95rem;
}

/* Equipe */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.equipe {
  text-align: center;
  border: 1px solid rgba(194, 154, 114, .35);
  background: var(--off);
  padding: 1.8rem 1.4rem;
}

.equipe__nome {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--graphite);
}
.equipe__cargo { font-size: .85rem; color: var(--gold-italic); margin: .3rem 0 .8rem; }
.equipe__contato { font-size: .85rem; font-weight: 300; }
.equipe__contato a { color: var(--body-text); }
.equipe__contato a:hover { color: var(--gold-italic); }

@media (max-width: 640px) {
  .equipe-grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}

/* Galeria */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin-inline: auto;
}
.galeria a {
  display: block;
  border: 1px solid rgba(194, 154, 114, .35);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.galeria a:hover { transform: translateY(-3px); border-color: var(--tan); }
.galeria img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 700px) {
  .galeria { grid-template-columns: repeat(2, 1fr); }
}

.reel {
  max-width: 380px;
  margin: 2.5rem auto 0;
}
.reel video {
  width: 100%;
  border: 1px solid rgba(194, 154, 114, .4);
  display: block;
}

/* CTA dupla WhatsApp */
.cta-duo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Popup do projeto (index)
   ========================================================================== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.popup[hidden] { display: none; }

.popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 49, 46, .55);
  opacity: 0;
  transition: opacity .35s ease;
  border: none;
  cursor: default;
}

.popup__card {
  position: relative;
  background: var(--off);
  border: 1px solid rgba(194, 154, 114, .5);
  max-width: 720px;
  width: 100%;
  max-height: min(88vh, 640px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .4s ease, transform .4s ease;
  box-shadow: 0 30px 80px rgba(51, 49, 46, .3);
}

.popup.is-open .popup__backdrop { opacity: 1; }
.popup.is-open .popup__card { opacity: 1; transform: translateY(0) scale(1); }

.popup__media {
  min-height: 0;
  background: #12867E; /* verde da arte — evita faixas destoantes no letterbox */
  display: flex;
  align-items: center;
}
.popup__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popup__body {
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  overflow-y: auto;
}

.popup__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.15;
  color: var(--graphite);
}
.popup__title em { font-style: italic; color: var(--gold-italic); }

.popup__text { font-weight: 300; font-size: .93rem; }

.popup__meta {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .4rem;
}
.popup__actions .btn { font-size: .74rem; padding: .8rem 1.5rem; }

.popup__close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(251, 248, 243, .92);
  color: var(--graphite);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s ease, transform .25s ease;
  z-index: 1;
}
.popup__close:hover { background: var(--nude-deep); transform: rotate(90deg); }

@media (max-width: 640px) {
  .popup__card { grid-template-columns: 1fr; max-height: 92svh; }
  .popup__media { max-height: 200px; }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .wa-float__btn { animation: none; }
}
