/* ============================================================
   Luana Coelho · Psicóloga
   Paleta extraída da fotografia — tons quentes e terrosos.
   ============================================================ */

/* -------- Design tokens -------- */
:root {
  /* Cores */
  --cream:      #F8F3EB;   /* fundo principal */
  --cream-2:    #F2E9DC;   /* fundo alternado */
  --sand:       #E7D8C2;   /* superfícies suaves */
  --tan:        #C8AB85;   /* bege do blazer */
  --clay:       #A9825B;   /* acento quente */
  --clay-deep:  #8C6643;   /* acento em hover */
  --sage:       #8C9A7C;   /* verde da planta */
  --espresso:   #4B3B2C;   /* texto forte */
  --ink:        #322619;   /* títulos */
  --muted:      #7C6B57;   /* texto secundário */
  --line:       #E0D2BD;   /* divisórias */
  --white:      #FFFDFA;

  /* Tipografia */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --maxw: 1160px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 20px rgba(75, 59, 44, 0.07);
  --shadow-md: 0 18px 48px rgba(75, 59, 44, 0.12);
  --shadow-lg: 0 30px 70px rgba(75, 59, 44, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance; /* equilibra as linhas, evita palavras viúvas em títulos */
}

/* Evita órfãs/viúvas no fim de parágrafos e textos de apoio */
p, .lead, .section-intro, .aside-quote, .fact-desc, .area, blockquote {
  text-wrap: pretty;
}

h1 { font-size: clamp(2.05rem, 3.7vw, 2.55rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
a { color: var(--clay); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--clay-deep); }

.container {
  width: min(var(--maxw), 100% - 3rem);
  margin-inline: auto;
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* Permite que itens de grid encolham abaixo da largura intrínseca do conteúdo
   (text-wrap: balance reporta max-content e, sem isto, estoura colunas). */
.hero-inner > *, .sobre-grid > *, .abordagem .cards-3 > *,
.areas-grid > *, .atendimento-grid > *, .contato-grid > * { min-width: 0; }

/* Acessibilidade */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 0 0 10px 10px;
  z-index: 200; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; color: var(--cream); }

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

/* -------- Kickers / headings auxiliares -------- */
.eyebrow, .section-kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--clay);
  margin: 0 0 1.1rem;
}

.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-intro { color: var(--muted); font-size: 1.12rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 243, 235, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(75, 59, 44, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--sage); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-serif); font-size: 1.18rem; font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-role {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* Nav */
.nav-list {
  display: flex; align-items: center; gap: 0.35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-block; padding: 0.5rem 0.85rem;
  color: var(--espresso); font-weight: 600; font-size: 0.96rem;
  border-radius: 999px;
}
.nav-list a:hover { color: var(--ink); background: var(--sand); }
.nav-cta {
  background: var(--ink); color: var(--cream) !important;
  padding: 0.55rem 1.25rem !important; margin-left: 0.4rem;
}
.nav-cta:hover { background: var(--clay-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(120% 90% at 85% 0%, var(--cream-2) 0%, var(--cream) 55%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-text { max-width: 40rem; min-width: 0; }
.hero h1 { margin-bottom: 0.7rem; }
.lead {
  font-size: 1.18rem; color: var(--muted); max-width: 33rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }
.hero-note {
  font-size: 0.92rem; color: var(--muted); letter-spacing: 0.02em;
  margin: 0;
}
.hero-note::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--tan); vertical-align: middle; margin-right: 0.6rem;
}

/* Portrait */
.hero-portrait { position: relative; justify-self: center; }
.portrait-frame {
  position: relative; z-index: 2;
  width: clamp(260px, 34vw, 400px);
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.portrait-glow {
  position: absolute; z-index: 1; inset: auto;
  width: 115%; height: 115%; left: -7%; top: -6%;
  background: radial-gradient(circle at 50% 40%, rgba(200, 171, 133, 0.4), transparent 62%);
  filter: blur(10px);
}

/* Folhas decorativas */
.leaf {
  position: absolute; pointer-events: none; opacity: 0.5;
  background: var(--sage);
  -webkit-mask: var(--leaf-mask) center / contain no-repeat;
          mask: var(--leaf-mask) center / contain no-repeat;
  --leaf-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4C30 24 14 40 14 62a36 36 0 0 0 72 0C86 40 70 24 50 4Z'/%3E%3Cpath d='M50 18v74' stroke='%23000' stroke-width='3' fill='none'/%3E%3C/svg%3E");
}
.leaf--a { width: 120px; height: 120px; top: 8%; right: 6%; transform: rotate(28deg); opacity: 0.22; }
.leaf--b { width: 80px; height: 80px; bottom: 10%; left: 3%; transform: rotate(-35deg); opacity: 0.16; }
.leaf--c { width: 160px; height: 160px; top: -30px; right: -30px; transform: rotate(18deg); opacity: 0.14; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--ink); color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--clay-deep); color: var(--cream); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--tan);
}
.btn--ghost:hover { background: var(--sand); color: var(--ink); }
.btn--block { width: 100%; }

/* ============================================================
   SOBRE
   ============================================================ */
.sobre { background: var(--cream); }
.sobre-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.sobre-aside { position: sticky; top: 110px; }
.aside-line { display: block; width: 46px; height: 2px; background: var(--tan); margin: 0 0 1.6rem; }
.aside-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.5rem; line-height: 1.4; color: var(--ink);
  margin: 0; border: 0; padding: 0;
}
.sobre-body h2 { margin-bottom: 1rem; }
.sobre-body p { color: var(--espresso); }
.sobre-facts { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.sobre-facts li {
  padding-left: 1.4rem; position: relative;
}
.sobre-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sage);
}
.fact-title { display: block; font-family: var(--font-serif); font-size: 1.18rem; color: var(--ink); margin-bottom: 0.15rem; }
.fact-desc { display: block; color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   ABORDAGEM
   ============================================================ */
.abordagem { background: var(--cream-2); }
.abordagem .section-head { margin-inline: auto; text-align: center; }
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.3rem 1.9rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--sand); color: var(--clay-deep);
  margin-bottom: 1.3rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; }

/* ============================================================
   ÁREAS / TEMAS
   ============================================================ */
.areas { background: var(--cream); }
.areas .section-head { margin-inline: auto; text-align: center; }
.areas-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.area {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.3rem;
  font-weight: 600; color: var(--espresso); font-size: 1.02rem;
  display: flex; align-items: center; min-height: 100px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.area::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tan); margin-right: 0.8rem; flex: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.area:hover { transform: translateY(-4px); border-color: var(--tan); background: var(--cream-2); }
.area:hover::before { background: var(--sage); transform: scale(1.3); }
.areas-note {
  text-align: center; max-width: 44rem; margin: 2.4rem auto 0;
  color: var(--muted); font-style: italic; font-family: var(--font-serif);
  font-size: 1.18rem;
}

/* ============================================================
   ATENDIMENTO
   ============================================================ */
.atendimento { background: var(--cream-2); }
.atendimento-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.atendimento-intro p { color: var(--muted); margin-bottom: 1.8rem; }
.atendimento-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.atendimento-list li {
  display: flex; gap: 1.3rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-serif); font-size: 1.6rem; color: var(--tan);
  line-height: 1; flex: none;
}
.atendimento-list h3 { margin-bottom: 0.25rem; }
.atendimento-list p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ============================================================
   DÚVIDAS / FAQ
   ============================================================ */
.duvidas { background: var(--cream); }
.duvidas .section-head { margin-inline: auto; text-align: center; }
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 0.4rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative; font-family: var(--font-serif); font-size: 1.22rem;
  color: var(--ink); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--clay);
  font-family: var(--font-sans); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  color: var(--muted); margin: 0 0 1rem; padding-right: 2.5rem;
  animation: fade-down 0.4s var(--ease);
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--espresso), var(--ink));
  color: var(--cream);
}
.contato h2, .contato .form-title { color: var(--cream); }
.contato .section-kicker { color: var(--tan); }
.contato-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  position: relative; z-index: 2;
}
.contato-text > p { color: rgba(248, 243, 235, 0.78); max-width: 30rem; }
.contato .leaf--c { background: var(--tan); }

.contato-links { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.contato-links a {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255, 253, 250, 0.06); border: 1px solid rgba(255, 253, 250, 0.12);
  border-radius: var(--radius); padding: 1rem 1.3rem; color: var(--cream);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contato-links a:hover {
  background: rgba(255, 253, 250, 0.12); transform: translateX(4px);
  border-color: var(--tan); color: var(--cream);
}
.contato-links .ci {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: rgba(200, 171, 133, 0.22); color: var(--tan); flex: none;
}
.contato-links strong { display: block; font-size: 1rem; }
.contato-links small { color: rgba(248, 243, 235, 0.65); font-size: 0.88rem; }

/* Form */
.contato-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.2rem; box-shadow: var(--shadow-lg);
}
.form-title {
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--ink) !important;
  margin: 0 0 1.4rem;
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-weight: 700; font-size: 0.92rem; color: var(--espresso);
  margin-bottom: 0.45rem;
}
.field input, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 1rem;
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); color: var(--espresso); resize: vertical;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(169, 130, 91, 0.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #b4623f; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--cream-2); color: var(--espresso); padding-top: 3.5rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.footer-brand .brand-name { font-size: 1.4rem; display: block; }
.footer-brand .brand-role { display: block; margin-bottom: 1rem; }
.footer-ethic { font-size: 0.86rem; color: var(--muted); max-width: 32rem; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { color: var(--espresso); font-weight: 600; }
.footer-nav a:hover { color: var(--clay-deep); }
.footer-urgency p { margin: 0 0 0.35rem; font-size: 0.92rem; color: var(--muted); }
.footer-urgency strong { color: var(--ink); }
.footer-bottom { padding: 1.4rem 0; }
.footer-bottom p { text-align: center; margin: 0; font-size: 0.84rem; color: var(--muted); }

/* ============================================================
   REVEAL (scroll animation)
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-text { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-portrait { order: -1; margin-bottom: 1.5rem; }
  .hero-note::before { display: none; }

  .sobre-grid { grid-template-columns: minmax(0, 1fr); }
  .sobre-aside { position: static; }
  .atendimento-grid, .contato-grid { grid-template-columns: minmax(0, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; z-index: 120; }
  .nav-list {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw);
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--cream); padding: 5.5rem 1.4rem 2rem;
    box-shadow: -16px 0 50px rgba(50, 38, 25, 0.18);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin: 0.6rem 0 0; }
  body.menu-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
  .areas-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-role { display: none; }
  .contato-form { padding: 1.6rem; }
}

/* Respeita preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
