/* ============================================================
   TOKENS SEMÂNTICOS DO DESIGN SYSTEM
   ============================================================ */
:root {
  /* Cores base */
  --cream              : #FFF8CA; /* Lemon Chiffon */
  --wine               : #6B0B0C; /* Rosewood */
  --wine-hover         : #850E0F;
  --dark               : #2D120D; /* Coffee Bean */
  --ice                : #CDE3E8; /* Botticelli */
  --surface-card       : #FFFFFF;

  /* Cores de texto com contraste WCAG AA/AAA garantido */
  --text-on-light      : #2D120D;
  --text-on-light-soft : rgba(45, 18, 13, 0.84);
  --text-on-dark       : #FFF8CA;
  --text-on-dark-soft  : rgba(255, 248, 202, 0.86);

  /* Bordas e sombras semânticas */
  --border-wine-subtle : rgba(107, 11, 12, 0.18);
  --border-cream-subtle: rgba(255, 248, 202, 0.22);
  --border-ice-subtle  : rgba(205, 227, 232, 0.42);
  --shadow-card        : 0 4px 18px rgba(45, 18, 13, 0.08);
  --shadow-photo       : 0 14px 34px rgba(0, 0, 0, 0.28);

  /* Tipografia */
  --f-serif            : 'Castoro', Georgia, 'Times New Roman', serif;
  --f-sans             : 'Lexend', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Espaçamentos, raios e transições */
  --radius             : 6px;
  --radius-photo       : 8px;
  --trans              : 0.24s ease;
  --mw                 : 1080px;
  --pad-x              : clamp(1.125rem, 5vw, 3.5rem);
  --pad-y              : clamp(3.25rem, 6.5vw, 5.75rem);
}

/* ============================================================
   RESET E BASE ACESSÍVEL
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--f-sans);
  background: var(--cream);
  color: var(--text-on-light);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img,
picture,
figure {
  display: block;
  max-width: 100%;
}

/* Foco visível acessível */
:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
}

#site-header :focus-visible,
#hero :focus-visible,
#sobre :focus-visible,
#psicodrama :focus-visible,
#contato :focus-visible {
  outline-color: var(--ice);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 999;
  background: var(--cream);
  color: var(--dark);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 0.75rem;
}

/* ============================================================
   LAYOUT HELPERS E TÍTULOS SUBLINHADOS
   ============================================================ */
.wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

.s-title {
  font-family: var(--f-serif);
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  display: inline-block;
  border-bottom: 3px solid currentColor;
  padding-bottom: 0.22rem;
  margin-bottom: 2.5rem;
}

.s-title--wine  { color: var(--wine); }
.s-title--cream { color: var(--cream); }
.s-title--ice   { color: var(--ice); }

/* ============================================================
   BOTÕES (Alvo mínimo de toque: 44x44 px)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  min-width: 44px;
  padding: 0.78rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
  text-align: center;
}

.btn-wine {
  background: var(--wine);
  color: var(--cream);
  border-color: var(--wine);
}

.btn-wine:hover {
  background: var(--wine-hover);
  border-color: var(--wine-hover);
}

.btn-outline {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}

.btn-outline:hover {
  background: var(--wine);
  color: var(--cream);
}

.btn-cream {
  background: var(--cream);
  color: var(--wine);
  border-color: var(--cream);
}

.btn-cream:hover {
  background: var(--ice);
  border-color: var(--ice);
  color: var(--dark);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.32);
}

.nav-row {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0.8rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.nav-logo {
  font-family: var(--f-serif);
  font-size: clamp(0.95rem, 2.2vw, 1.18rem);
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: 0.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-on-dark-soft);
  transition: color var(--trans);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--cream);
}

.nav-cta {
  font-size: 0.84rem;
  padding: 0.55rem 1rem;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav-row {
    gap: 0.5rem;
  }

  .nav-logo {
    font-size: 0.9rem;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
}

/* ============================================================
   MOLDURAS DE FOTOS (Proporção 3/4 sem CLS)
   ============================================================ */
.photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-photo);
  overflow: hidden;
  border: 1px solid var(--border-cream-subtle);
  box-shadow: var(--shadow-photo);
  background: var(--dark);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-img--hero {
  object-position: center 20%;
}

.portrait-img--sobre {
  object-position: center 25%;
}

/* ============================================================
   DOBRA 1 — HERO
   ============================================================ */
#hero {
  background: var(--dark);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 88% 42%, rgba(107, 11, 12, 0.45) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--mw);
  width: 100%;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid var(--border-ice-subtle);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero-h1 {
  font-family: var(--f-serif);
  font-size: clamp(1.9rem, 4.2vw, 3.35rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-on-dark-soft);
  max-width: 520px;
  margin-bottom: 2.25rem;
}

@media (max-width: 760px) {
  #hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 2.25rem;
  }

  .hero-left {
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-right {
    text-align: left;
  }
}

/* ============================================================
   DOBRA 2 — DEMANDAS QUE ATENDO
   ============================================================ */
#demandas {
  background: var(--cream);
}

.demands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 720px) {
  .demands-grid {
    grid-template-columns: 1fr;
  }
}

.demand-card {
  align-self: start;
  background: var(--surface-card);
  border: 1px solid var(--border-wine-subtle);
  border-radius: var(--radius);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--trans);
}

.demand-card:hover {
  box-shadow: 0 6px 22px rgba(45, 18, 13, 0.12);
}

.demand-title {
  font-family: var(--f-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.demand-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-on-light-soft);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s ease;
}

.demand-card.is-open .demand-body {
  grid-template-rows: 1fr;
}

.demand-body-inner {
  overflow: hidden;
  min-height: 0;
}

.demand-body-inner p {
  padding-bottom: 0.9rem;
}

.demand-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wine);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.25rem 0;
  align-self: flex-start;
  transition: opacity var(--trans);
}

.demand-toggle:hover {
  opacity: 0.78;
}

.demand-toggle svg {
  transition: transform 0.3s ease;
}

.demand-card.is-open .demand-toggle svg {
  transform: rotate(180deg);
}

/* ============================================================
   DOBRA 3 — SOBRE MIM
   ============================================================ */
#sobre {
  background: var(--dark);
  color: var(--cream);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem 3.75rem;
  align-items: start;
}

.sobre-bio p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  color: var(--text-on-dark-soft);
}

.sobre-bio p:last-of-type {
  margin-bottom: 0;
}

.sobre-cta {
  margin-top: 2.25rem;
}

@media (max-width: 780px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .sobre-photo-col {
    order: -1;
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
  }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

@media (max-width: 620px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-n {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  color: var(--wine);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.stat-l {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-light-soft);
  line-height: 1.4;
}

/* ============================================================
   ACCORDION (Dobras 4 e 9)
   ============================================================ */
.accordion {
  margin: 0;
}

.acc-item {
  border-bottom: 1px solid var(--border-wine-subtle);
}

.acc-item:first-child {
  border-top: 1px solid var(--border-wine-subtle);
}

.acc-trigger {
  width: 100%;
  min-height: 56px;
  background: transparent;
  border: none;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-on-light);
  text-align: left;
}

.acc-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 2px solid var(--wine);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.32s ease;
  color: var(--wine);
}

.acc-item.is-open .acc-icon {
  transform: rotate(45deg);
}

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.36s ease;
}

.acc-item.is-open .acc-body {
  grid-template-rows: 1fr;
}

.acc-body-inner {
  overflow: hidden;
  min-height: 0;
}

.acc-body-content {
  padding-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-on-light-soft);
}

.acc-body-content p + p {
  margin-top: 1rem;
}

/* ============================================================
   DOBRA 4 — SERVIÇOS OFERTADOS
   ============================================================ */
#servicos {
  background: var(--cream);
}

.servicos-cta {
  margin-top: 2.5rem;
}

/* ============================================================
   DOBRA 5 — BENEFÍCIOS DOS SERVIÇOS PSICOLÓGICOS
   ============================================================ */
#beneficios {
  background: var(--ice);
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.ben-card {
  background: var(--surface-card);
  border-left: 4px solid var(--wine);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.5rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.ben-card h3 {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--wine);
  margin-bottom: 0.6rem;
}

.ben-card p {
  font-size: 1rem;
  color: var(--text-on-light-soft);
}

/* ============================================================
   DOBRA 6 — DEPOIMENTOS DE CLIENTES (ELFSIGHT)
   ============================================================ */
#depoimentos {
  background: var(--cream);
}

.elfsight-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 160px;
}

.depo-cta {
  margin-top: 2.5rem;
}

/* ============================================================
   DOBRA 7 — SOBRE O PSICODRAMA
   ============================================================ */
#psicodrama {
  background: var(--dark);
  color: var(--cream);
}

.psico-layout {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.psico-top-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 720px) {
  .psico-top-grid {
    grid-template-columns: 1fr;
  }
}

.psico-card {
  border-top: 3px solid var(--border-cream-subtle);
  padding-top: 1.4rem;
}

.psico-card h3 {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 0.85rem;
}

.psico-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-on-dark-soft);
}

.psico-columns {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

/* ============================================================
   DOBRA 9 — FAQ
   ============================================================ */
#faq {
  background: var(--ice);
}

.faq-cta {
  margin-top: 2.5rem;
}

/* ============================================================
   DOBRA 10 — CONTATO
   ============================================================ */
#contato {
  background: var(--wine);
  color: var(--cream);
}

.contato-wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (max-width: 720px) {
  .contato-wrap {
    grid-template-columns: 1fr;
  }
}

.contato-name {
  font-family: var(--f-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.contato-crp {
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--ice);
  margin-bottom: 1.65rem;
}

.contato-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: 1rem;
  color: var(--text-on-dark-soft);
  margin-bottom: 0.35rem;
  word-break: break-word;
  transition: color var(--trans);
}

.contato-info a:hover {
  color: var(--cream);
}

.socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.soc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  background: rgba(255, 248, 202, 0.12);
  color: var(--cream);
  border: 1px solid var(--border-cream-subtle);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--trans), border-color var(--trans);
}

.soc-btn:hover {
  background: rgba(255, 248, 202, 0.22);
  border-color: var(--cream);
}

.contato-online {
  background: rgba(45, 18, 13, 0.28);
  border: 1px solid var(--border-cream-subtle);
  border-radius: var(--radius);
  padding: 1.85rem 1.65rem;
}

.contato-online-title {
  font-family: var(--f-sans);
  font-weight: 600;
  color: var(--ice);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}

.online-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.online-item:last-child {
  margin-bottom: 0;
}

.online-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 248, 202, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ice);
}

.online-item-text strong {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.15rem;
}

.online-item-text span {
  font-size: 0.92rem;
  color: var(--text-on-dark-soft);
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: var(--text-on-dark-soft);
  text-align: center;
  padding: 1.5rem var(--pad-x);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-cream-subtle);
}

.icon {
  flex-shrink: 0;
}