/* ==========================================================================
   Edison Bueno — Psicologia Clínica & Neuropsicologia
   Design inspirado no estilo orgânico, sofisticado e acolhedor de Isabella Sibinelli
   ========================================================================== */

:root {
  --bg: #F8F5EE;
  --bg-soft: #EFE8DA;
  --card: #FFFFFF;
  --card-tint: #FAF7F0;
  --ink: #26211D;
  --ink-soft: #5C5247;
  --ink-light: #8E8478;
  --pine: #354D3B;
  --pine-dark: #223427;
  --clay: #B87352;
  --clay-soft: #DBA387;
  --clay-light: #F4E8E1;
  --gold: #C9A058;
  --line: rgba(38, 33, 29, 0.11);
  --line-strong: rgba(38, 33, 29, 0.18);
  --shadow-sm: 0 4px 14px rgba(38, 33, 29, 0.05);
  --shadow-md: 0 12px 30px rgba(38, 33, 29, 0.08);
  --shadow-lg: 0 24px 50px rgba(34, 52, 39, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--pine-dark);
}

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

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

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: 'Work Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--clay);
  display: inline-block;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  color: var(--pine-dark);
}

.brand small {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--pine-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--pine-dark);
  color: var(--bg);
  border-color: var(--pine-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--pine);
  box-shadow: 0 10px 22px rgba(34, 52, 39, 0.2);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--pine-dark);
  transform: translateY(-2px);
  background: rgba(34, 52, 39, 0.03);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--pine-dark);
  font-weight: 600;
}

.btn-gold:hover {
  background: #D8B16B;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(201, 160, 88, 0.35);
}

.btn-clay {
  background: var(--clay);
  border-color: var(--clay);
  color: #FFFFFF;
  font-weight: 600;
}

.btn-clay:hover {
  background: #A66545;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(184, 115, 82, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}

/* Mobile dropdown drawer */
.mobile-drawer {
  display: none;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 24px 32px;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--pine-dark);
  padding: 6px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 32px 64px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  line-height: 1.12;
  margin: 18px 0 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  display: inline-block;
}

.hero-visual {
  position: relative;
}

.hero-art-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.hero-art-card img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.hero-badge {
  position: absolute;
  left: -20px;
  bottom: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--clay-light);
  border: 1px solid var(--clay-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clay);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.badge-text strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  color: var(--pine-dark);
}

.badge-text span {
  font-size: 0.74rem;
  color: var(--ink-light);
  font-weight: 500;
}

/* ---------- Sections Generics ---------- */
section {
  padding: 96px 32px;
  position: relative;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

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

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-top: 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
}

.divider svg {
  opacity: 0.45;
}

/* ---------- Sobre o Psicólogo ---------- */
.about {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: center;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: var(--pine-dark);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.portrait-tag {
  position: absolute;
  right: -16px;
  bottom: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clay);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.04em;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.about-copy p.highlight-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--pine-dark);
  border-left: 3px solid var(--clay);
  padding-left: 18px;
  margin: 24px 0;
  font-style: italic;
  font-weight: 400;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.cred-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: 14px;
}

.cred-card small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 4px;
}

.cred-card strong {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  color: var(--pine-dark);
  font-weight: 500;
}

/* ---------- Abordagens (Cards) ---------- */
.approaches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.approach-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 34px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.approach-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.approach-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--clay-light);
  color: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.approach-card.pine-accent .approach-icon {
  background: rgba(45, 66, 51, 0.1);
  color: var(--pine-dark);
}

.approach-card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.approach-subtitle {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 14px;
}

.approach-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.62;
  margin-bottom: 20px;
  flex-grow: 1;
}

.approach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.approach-tag {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--ink-soft);
}

/* ---------- Para quem é / Temas (Pills) ---------- */
.themes {
  background: var(--bg-soft);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.theme-pill {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  background: var(--card);
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-pill:hover {
  border-color: var(--clay);
  color: var(--pine-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
}

/* ---------- Livros ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.book-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.book-cover {
  width: 150px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(38, 33, 29, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.book-info {
  display: flex;
  flex-direction: column;
}

.book-info .eyebrow {
  margin-bottom: 6px;
}

.book-info h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 4px;
}

.book-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 12px;
}

.book-info p.book-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}

.book-meta {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 18px;
}

/* ---------- Como funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 24px;
  position: relative;
  transition: transform 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--clay-soft);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-soft);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 24px 6px;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--pine-dark);
  font-weight: 500;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--clay);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--clay);
  color: var(--clay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--clay);
  color: #FFFFFF;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 6px;
}

.faq-item.open .faq-a {
  max-height: 240px;
  padding-bottom: 24px;
}

.faq-a p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- CTA / Contato (Estilo Pinho Nobre de Isabella) ---------- */
.cta-box {
  background: linear-gradient(155deg, var(--pine-dark) 0%, var(--pine) 100%);
  border-radius: 28px;
  padding: 72px 56px;
  color: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(34, 52, 39, 0.25);
  max-width: 1040px;
  margin: 0 auto;
}

.cta-box::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(248, 245, 238, 0.12);
  pointer-events: none;
}

.cta-box .eyebrow {
  color: var(--gold);
}

.cta-box h2 {
  color: var(--bg);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 14px 0 16px;
}

.cta-lead {
  color: rgba(248, 245, 238, 0.85);
  font-size: 1.08rem;
  max-width: 54ch;
  margin-bottom: 34px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 0.85rem;
  color: rgba(248, 245, 238, 0.65);
}

/* ---------- Footer ---------- */
footer {
  padding: 72px 32px 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--pine-dark);
  margin-bottom: 12px;
}

footer p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clay);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--pine-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--ink-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    max-width: 440px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .portrait-frame {
    max-width: 380px;
    margin: 0 auto;
  }
  .approaches-grid {
    grid-template-columns: 1fr;
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box {
    padding: 50px 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 14px 20px;
  }
  .hero {
    padding: 50px 20px 40px;
  }
  section {
    padding: 64px 20px;
  }
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .book-cover {
    width: 140px;
  }
  .book-info {
    align-items: center;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 40px 24px;
  }
  .hero-badge {
    left: 8px;
    bottom: 12px;
  }
}
