/* ============================================================
   Psicóloga Patrícia Goulart e Equipe — Design System
   Tokens: cor, tipografia, espaçamento
   ============================================================ */

:root {
  /* Cores */
  --bg: #f7f5ef;
  --bg-alt: #efead9;
  --card: #fcfbf7;
  --ink: #2e2b24;
  --ink-soft: #55503f;
  --sage: #5b6e52;
  --sage-dark: #47573f;
  --sage-light: #8fa37e;
  --sage-pale: #dce3d2;
  --gold: #b98b3e;
  --line: rgba(46, 43, 36, 0.12);
  --whatsapp: #25d366;

  /* Tipografia */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamento */
  --section-pad: clamp(4rem, 8vw, 7.5rem);
  --container-w: 1180px;

  /* Transições */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ Ratio box (aspect-ratio à prova de navegadores antigos) ============
   Usa o truque do padding-top em %, que funciona em qualquer navegador,
   em vez de depender só da propriedade CSS aspect-ratio. */
.ratio-box {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.ratio-box--4-5 {
  padding-top: 125%;
}
.ratio-box--3-4 {
  padding-top: 133.33%;
}
.ratio-box--4-3 {
  padding-top: 75%;
}
.ratio-box img,
.ratio-box svg {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
  max-width: 62ch;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 760px;
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* Compensa o header fixo ao rolar até uma âncora (#sobre, #servicos, etc.) */
#sobre,
#servicos,
#equipe,
#depoimentos,
#faq,
#localizacao {
  scroll-margin-top: var(--header-h, 88px);
}

.section-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sage);
  margin-bottom: 0.6em;
}
.section-kicker--center {
  text-align: center;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 34ch;
}
.section-title--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9em 1.7em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}
.btn--primary {
  background: var(--sage);
  color: #fff;
}
.btn--primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(91, 110, 82, 0.5);
}
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn--small {
  padding: 0.65em 1.3em;
  font-size: 0.9rem;
}
.btn--large {
  padding: 1.1em 2.2em;
  font-size: 1.05rem;
}

/* ============ Progress bar ============ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--sage);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__text em {
  font-style: italic;
  font-size: 0.75rem;
  color: var(--sage);
}

.nav {
  display: flex;
}
.nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
  margin-left: 2rem;
}
.nav a:first-child {
  margin-left: 0;
}
.nav a:hover {
  color: var(--sage);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 34px;
  height: 34px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin-top: 6px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}
.hamburger span:first-child {
  margin-top: 0;
}
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: var(--header-h, 70px);
  z-index: 890;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.35s var(--ease),
    padding 0.5s var(--ease);
}
.mobile-nav.is-open {
  max-height: calc(100vh - var(--header-h, 70px));
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  padding: 1.5rem;
  border-bottom-color: var(--line);
}
.mobile-nav a {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.mobile-nav .btn {
  align-self: flex-start;
  margin-top: 0.3rem;
}

/* ============ Hero ============ */
.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero__branch {
  position: absolute;
  top: -20px;
  left: -60px;
  height: 90%;
  width: 200px;
  color: var(--sage-light);
  opacity: 0.5;
  z-index: 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 1.1rem;
  margin-bottom: 0.8em;
}
.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  max-width: 14ch;
}
.hero__subtitle {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero__stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 0 0 auto;
}
.hero__frame {
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(46, 43, 36, 0.35);
}
.hero__frame .ratio-box img {
  background: var(--bg-alt);
}
.hero__caption {
  margin: 1.1rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ============ Sobre ============ */
.sobre__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.sobre__visual {
  background: var(--sage);
  color: #fff;
  border-radius: 4px;
  padding: 3rem 2.2rem;
  position: relative;
}
.sobre__visual::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}
.sobre__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.4;
}
.sobre__quote span {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--sage-pale);
}
.sobre__list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sobre__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.98rem;
}
.sobre__list i {
  color: var(--sage);
}

/* ============ Serviços ============ */
.servicos {
  background: var(--bg-alt);
}
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.servico-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.4rem 1.9rem;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 34px -20px rgba(46, 43, 36, 0.25);
}
.servico-card--accent {
  background: var(--sage);
  border-color: var(--sage);
}
.servico-card--accent h3,
.servico-card--accent p {
  color: #fff;
}
.servico-card--accent .servico-card__icon {
  color: #fff;
}
.servico-card__icon {
  font-size: 1.6rem;
  color: var(--sage);
  margin-bottom: 1.1rem;
}
.servico-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}
.servico-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============ Nosso espaço ============ */
.espaco-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3.5rem;
}
.espaco-block:first-of-type {
  margin-top: 3rem;
}
.espaco-block__visual {
  border-radius: 90px 4px 90px 4px;
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 420px;
}
.espaco-block__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sage-dark);
  transition: color 0.2s var(--ease);
}
.espaco-block__cta i {
  font-size: 1rem;
}
.espaco-block__cta:hover {
  color: var(--sage);
}

/* ============ Equipe ============ */
.equipe__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.membro-card {
  text-align: center;
}
.membro-card__photo {
  border-radius: 140px 140px 12px 12px;
  margin-bottom: 1.1rem;
  background: var(--sage-pale);
  overflow: hidden;
  border: 1px solid var(--line);
}
.membro-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.15em;
}
.membro-card__crp {
  display: block;
  font-size: 0.8rem;
  color: var(--sage);
  margin-bottom: 0.6em;
}
.membro-card p {
  font-size: 0.9rem;
}
.membro-card__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage-dark);
  transition: color 0.2s var(--ease);
}
.membro-card__wa i {
  font-size: 1rem;
}
.membro-card__wa:hover {
  color: var(--sage);
}

/* ============ Benefícios ============ */
.beneficios__inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.beneficio-item {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.beneficio-item i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 0.3rem;
}
.beneficio-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25em;
}
.beneficio-item p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ============ Destaque (foto de profissional) ============ */
.destaque__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.destaque__visual {
  border-radius: 4px 90px 4px 90px;
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 420px;
}
.destaque__copy .btn {
  margin-top: 1.8rem;
}

/* ============ Prova ============ */
.prova {
  background: var(--sage);
  color: #fff;
}
.prova__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}
.prova__stat {
  text-align: center;
}
.prova__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.2em;
}
.prova__label {
  font-size: 0.82rem;
  color: var(--sage-pale);
  line-height: 1.4;
}

.depoimentos-marquee {
  position: relative;
  overflow: hidden;
  /* Fade suave nas bordas esquerda/direita, para o marquee "sumir"
     em vez de cortar os cards de forma abrupta */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}
.depoimentos-marquee__track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: depoimentos-scroll 38s linear infinite;
}
/* Pausa ao passar o mouse ou focar um card, para permitir a leitura */
.depoimentos-marquee:hover .depoimentos-marquee__track,
.depoimentos-marquee__track:has(:focus-visible) {
  animation-play-state: paused;
}
@keyframes depoimentos-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* Anda exatamente a largura de um conjunto de cards (metade da
       trilha, já que o JS duplica o conjunto uma vez) — o loop fica
       imperceptível */
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .depoimentos-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}
.depoimento-card {
  flex: 0 0 clamp(260px, 32vw, 380px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 1.9rem;
}
.depoimento-card__stars {
  color: #d9b64a;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.7em;
}
.depoimento-card p {
  color: #fff;
  font-size: 0.95rem;
  font-style: italic;
}
.depoimento-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--sage-pale);
}
.depoimento-card span em {
  font-style: italic;
  opacity: 0.75;
}

/* ============ Objeções ============ */
.objecoes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2.5rem;
  margin-top: 3rem;
}
.objecao-item {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.objecao-item h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sage-dark);
  margin-bottom: 0.4em;
}
.objecao-item p {
  font-size: 0.94rem;
  margin-bottom: 0;
}
.objecao-item--desconto {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--sage-pale);
  border: 1px solid var(--sage);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
}
.objecao-item--desconto .objecao-item__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 1.1rem;
}
.objecao-item--desconto h4 {
  color: var(--ink);
}

/* ============ FAQ / Accordion ============ */
.accordion {
  margin-top: 2.5rem;
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-heading {
  margin: 0;
  font-weight: normal;
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-header span {
  text-align: left;
  margin-right: 1rem;
}
.accordion-header i {
  color: var(--sage);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.accordion-header:hover span {
  color: var(--sage-dark);
}
.accordion-item.is-open .accordion-header i {
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion-body p {
  padding-bottom: 1.4rem;
  font-size: 0.96rem;
  margin: 0;
}

/* ============ Localização ============ */
.localizacao__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

/* ============ Seletor de WhatsApp (picker) ============ */
.wa-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(46, 43, 36, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease);
}
.wa-picker-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.wa-picker {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 8px;
  padding: 2.2rem 1.8rem 1.8rem;
  box-shadow: 0 30px 60px -20px rgba(46, 43, 36, 0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.wa-picker-overlay.is-open .wa-picker {
  transform: translateY(0) scale(1);
}
.wa-picker__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 1.05rem;
  cursor: pointer;
  border-radius: 50%;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.wa-picker__close:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.wa-picker__kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--sage);
  font-size: 0.95rem;
  margin: 0 0 0.3em;
}
.wa-picker h3 {
  font-size: 1.3rem;
  max-width: 22ch;
  margin-bottom: 1.4rem;
}
.wa-picker__options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.wa-picker__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.wa-picker__option:hover,
.wa-picker__option:focus-visible {
  border-color: var(--sage);
  background: var(--sage-pale);
  transform: translateY(-1px);
}
.wa-picker__option-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.wa-picker__option-role {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============ Localização ============ */
.localizacao__info {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.localizacao__info li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.localizacao__info i {
  color: var(--sage);
  margin-top: 0.2em;
}
.localizacao__map {
  height: 380px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.localizacao__map iframe {
  height: 100%;
}

/* ============ CTA final ============ */
.cta-final {
  background: var(--bg-alt);
  text-align: center;
  overflow: hidden;
}
.cta-final__branch {
  position: absolute;
  bottom: -30px;
  right: -40px;
  width: 420px;
  height: auto;
  color: var(--sage-light);
  opacity: 0.55;
}
.cta-final__inner {
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  max-width: 20ch;
  margin: 0 auto 0.4em;
}
.cta-final p {
  max-width: 46ch;
  margin: 0 auto 1.8em;
  text-align: center;
}

/* ============ Footer ============ */
.footer {
  background: var(--ink);
  color: #e7e3d6;
  padding-top: 3.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(231, 227, 214, 0.15);
}
.footer__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f7f5ef;
  margin-bottom: 0.9rem;
}
.footer__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.footer__brand p {
  color: #b9b4a2;
  font-size: 0.9rem;
}
.footer__social {
  display: flex;
  margin-top: 1.1rem;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(231, 227, 214, 0.25);
  color: #e7e3d6;
  font-size: 1rem;
  margin-right: 0.7rem;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.footer__social a:hover {
  background: var(--sage);
  border-color: var(--sage);
  transform: translateY(-2px);
}
.footer__col h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: none;
  color: #fff;
  margin-bottom: 0.9rem;
}
.footer__col a {
  display: block;
  color: #b9b4a2;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer__col a:hover {
  color: #fff;
}
.footer__col i {
  margin-right: 0.4rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.4rem 1.5rem;
  font-size: 0.82rem;
  color: #a9a38c;
}
.footer__bottom a {
  color: #c9c4b0;
}
.footer__bottom a:hover {
  color: #fff;
}

/* ============ WhatsApp flutuante ============ */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.6rem + env(safe-area-inset-right, 0px));
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.6);
  z-index: 950;
  animation:
    pulse-whatsapp 2.4s infinite,
    whatsapp-in 0.6s var(--ease) both;
  animation-delay: 0.6s, 0.6s;
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
@keyframes whatsapp-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ============================================================
   Animações — revelação ao rolar, sequência de entrada do hero,
   contadores numéricos e microinterações.
   Tudo dentro de html.js: se o JS não rodar, o conteúdo permanece
   sempre visível (sem risco de ficar "sumido" para o usuário).
   ============================================================ */

/* ---- Revelação ao rolar (fade + leve deslocamento) ---- */
html.js .reveal,
html.js .reveal-left,
html.js .reveal-right {
  opacity: 0;
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
  will-change: opacity, transform;
}
html.js .reveal {
  transform: translateY(26px);
}
html.js .reveal-left {
  transform: translateX(-28px);
}
html.js .reveal-right {
  transform: translateX(28px);
}

html.js .reveal.is-visible,
html.js .reveal-left.is-visible,
html.js .reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger: filhos diretos de .reveal-stagger recebem atraso crescente */
.reveal-stagger > *:nth-child(1) {
  transition-delay: 0ms;
}
.reveal-stagger > *:nth-child(2) {
  transition-delay: 90ms;
}
.reveal-stagger > *:nth-child(3) {
  transition-delay: 180ms;
}
.reveal-stagger > *:nth-child(4) {
  transition-delay: 270ms;
}
.reveal-stagger > *:nth-child(5) {
  transition-delay: 360ms;
}
.reveal-stagger > *:nth-child(6) {
  transition-delay: 450ms;
}

/* ---- Sequência de entrada do Hero (roda uma única vez, ao carregar) ---- */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
html.js .hero__seq {
  opacity: 0;
  animation: hero-fade-up 0.8s var(--ease) both;
  animation-delay: calc(var(--seq, 1) * 110ms + 80ms);
}

/* ---- Desenho dos ramos decorativos (traço se completa ao entrar em cena) ---- */
html.js .hero__branch--draw path,
html.js .hero__branch--draw ellipse,
html.js .cta-final__branch--draw path,
html.js .cta-final__branch--draw ellipse {
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
}
html.js .hero__branch--draw path,
html.js .hero__branch--draw ellipse {
  transition: stroke-dashoffset 1.6s var(--ease);
  transition-delay: 0.3s;
}
html.js .hero__branch--draw.is-drawn path,
html.js .hero__branch--draw.is-drawn ellipse {
  stroke-dashoffset: 0;
}
html.js .cta-final__branch--draw path,
html.js .cta-final__branch--draw ellipse {
  transition: stroke-dashoffset 1.8s var(--ease);
}
html.js .cta-final__branch--draw.is-drawn path,
html.js .cta-final__branch--draw.is-drawn ellipse {
  stroke-dashoffset: 0;
}

/* ---- Zoom sutil nas fotos ao passar o mouse ---- */
.ratio-box img,
.ratio-box svg {
  transition: transform 0.7s var(--ease);
}
.hero__frame:hover .ratio-box img,
.hero__frame:hover .ratio-box svg,
.membro-card:hover .ratio-box img {
  transform: scale(1.045);
}

/* ---- Sublinhado animado no menu ---- */
.nav a {
  background-image: linear-gradient(var(--sage), var(--sage));
  background-repeat: no-repeat;
  background-position: left bottom -2px;
  background-size: 0% 1px;
  transition:
    color 0.25s var(--ease),
    background-size 0.35s var(--ease);
}
.nav a:hover {
  background-size: 100% 1px;
}

/* ============ Responsivo ============ */
@media (max-width: 1024px) {
  .equipe__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .servicos__grid {
    grid-template-columns: 1fr;
  }
  .depoimento-card {
    flex-basis: min(85vw, 340px);
  }
  .prova__stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  .objecoes__grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero__inner,
  .sobre__inner,
  .espaco-block,
  .destaque__inner,
  .localizacao__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    max-width: 340px;
    margin: 0 auto 1rem;
  }
  .hero__branch {
    display: none;
  }
  .espaco-block__visual {
    order: -1;
  }
  .destaque__visual {
    order: -1;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .cta-final__branch {
    width: 280px;
  }
}

@media (max-width: 560px) {
  .equipe__grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .prova__stats {
    grid-template-columns: 1fr 1fr;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1.1rem + env(safe-area-inset-right, 0px));
  }
  .footer__bottom {
    padding-right: 4.5rem;
  }
}
