/* =============================================
   PSICANÁLISE BASEADA EM PESSOAS — style.css
   ============================================= */

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

:root {
  --sage:      #7a9e87;
  --sage-dark: #4f7260;
  --sage-pale: #e8f0eb;
  --sand:      #c9b99a;
  --cream:     #f7f4ef;
  --bark:      #3b2e22;
  --ink:       #1c1a18;
  --mist:      #6b6560;
  --white:     #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius: 4px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* --- Layout helpers --- */
.container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* =============================================
   HEADER
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 185, 154, 0.3);
  transition: box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: 0 2px 20px rgba(59, 46, 34, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--sage-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--bark);
  line-height: 1.2;
  max-width: 180px;
}

#mainNav {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sage-dark);
  border-bottom-color: var(--sage);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bark);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   PAGES (SPA navigation)
   ============================================= */
.page { display: none; padding-top: 68px; }
.page.active { display: block; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(28, 26, 24, 0.72) 0%,
    rgba(79, 114, 96, 0.38) 60%,
    rgba(28, 26, 24, 0.20) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 700px;
}

.hero-title em {
  font-style: italic;
  color: #b8d4c2;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 38px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), transform 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
  border-color: var(--sage-dark);
}
.btn-primary:hover {
  background: #3d5a4a;
  border-color: #3d5a4a;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border-color: var(--sage-dark);
}
.btn-outline:hover {
  background: var(--sage-dark);
  color: var(--white);
}

/* =============================================
   SECTION HELPERS
   ============================================= */
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 14px;
}
.section-eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--bark);
  line-height: 1.2;
  margin-bottom: 28px;
}
.section-title.center { text-align: center; }

/* =============================================
   SOBRE A PBP
   ============================================= */
.sobre {
  padding: 100px 0;
  background: var(--white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sobre-text p {
  color: var(--mist);
  margin-bottom: 18px;
  font-size: 1rem;
}

.sobre-visual {
  position: relative;
}

.sobre-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}

.sobre-quote {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--sage-dark);
  color: var(--white);
  padding: 28px 32px;
  max-width: 320px;
  border-radius: 2px;
}

.sobre-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

.sobre-quote cite {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  font-style: normal;
}

/* =============================================
   PILARES
   ============================================= */
.pilares {
  padding: 100px 0;
  background: var(--cream);
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 52px;
}

.pilar-card {
  background: var(--white);
  padding: 42px 36px;
  border-top: 3px solid var(--sage);
  transition: transform var(--transition), box-shadow var(--transition);
}

.pilar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 46, 34, 0.08);
}

.pilar-icon {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sage);
  margin-bottom: 20px;
}

.pilar-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 14px;
}

.pilar-card p {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* =============================================
   LIVRO
   ============================================= */
.livro {
  padding: 100px 0;
  background: var(--bark);
  color: var(--white);
}

.livro-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: center;
}

.livro-cover-wrap {
  position: relative;
}

.livro-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.4);
}

.livro-text .section-eyebrow { color: var(--sand); }
.livro-text .section-title { color: var(--white); }

.livro-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sand);
  margin-bottom: 24px;
  margin-top: -16px;
}

.livro-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  font-size: 1rem;
}

.livro-text .btn-primary {
  margin-top: 10px;
  background: var(--sage);
  border-color: var(--sage);
}
.livro-text .btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

/* =============================================
   MANIFESTO PAGE
   ============================================= */
.manifesto-hero {
  background: var(--bark);
  padding: 80px 0 60px;
  text-align: center;
}

.manifesto-hero .section-eyebrow { color: var(--sand); }

.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 36px;
}

.manifesto-line {
  width: 60px;
  height: 2px;
  background: var(--sage);
  margin: 0 auto;
}

.manifesto-body {
  padding: 72px 0 100px;
  background: var(--cream);
}

.manifesto-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 5%;
}

.manifesto-container p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #2d2822;
  line-height: 1.85;
  margin-bottom: 28px;
}

.manifesto-h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bark);
  margin: 56px 0 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(201, 185, 154, 0.4);
}

.manifesto-pilares {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 40px;
}

.manifesto-pilar {
  padding: 28px 32px;
  border-left: 4px solid var(--sage);
  margin-bottom: 20px;
  background: var(--white);
}

.manifesto-pilar-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--sage-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.manifesto-pilar p {
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--mist);
  line-height: 1.65;
  margin: 0;
}

.manifesto-closing {
  border-top: 1px solid rgba(201, 185, 154, 0.4);
  border-bottom: 1px solid rgba(201, 185, 154, 0.4);
  padding: 32px 0;
  margin: 48px 0 48px;
}

.manifesto-closing p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sage-dark) !important;
  margin-bottom: 10px !important;
  line-height: 1.5 !important;
}
.manifesto-closing p:last-child { margin-bottom: 0 !important; }

.manifesto-assinatura { text-align: center; }

.manifesto-final {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bark) !important;
  line-height: 1.55 !important;
}

/* =============================================
   NOTÍCIAS PAGE
   ============================================= */
.noticias-hero {
  background: var(--sage-pale);
  border-bottom: 1px solid rgba(122, 158, 135, 0.25);
  padding: 72px 0 52px;
  text-align: center;
}

.noticias-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--bark);
}

.noticias-section {
  padding: 72px 0 100px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid rgba(201, 185, 154, 0.2);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59, 46, 34, 0.1);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-card-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--sage);
}

.post-card-body {
  padding: 28px;
}

.post-card-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 10px;
}

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--mist);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
  transition: color var(--transition);
}
.post-card:hover .post-card-link { color: var(--bark); }

.posts-loading,
.posts-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mist);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 64px 0;
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 320px;
}

.footer-brand .logo-mark {
  flex-shrink: 0;
  background: var(--sage-dark);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-brand p small {
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--sage); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 50px; }
  .sobre-quote { position: static; margin-top: 24px; max-width: 100%; }
  .pilares-grid { grid-template-columns: 1fr; }
  .livro-grid { grid-template-columns: 1fr; gap: 44px; }
  .livro-cover-wrap { max-width: 320px; margin: 0 auto; }
  .footer-inner { flex-direction: column; }
  .footer-nav { text-align: left; }
}

@media (max-width: 640px) {
  #mainNav { display: none; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0; background: var(--cream);
    padding: 24px 5%; border-bottom: 1px solid rgba(201,185,154,0.3);
    box-shadow: 0 8px 24px rgba(59,46,34,0.08); gap: 18px; }
  #mainNav.open { display: flex; }
  .menu-toggle { display: flex; }

  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }

  .sobre { padding: 60px 0; }
  .pilares { padding: 60px 0; }
  .livro  { padding: 60px 0; }

  .posts-grid { grid-template-columns: 1fr; }

  .manifesto-container { padding: 0 6%; }
  .manifesto-pilar { padding: 22px 20px; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
