/* 
 * Projeto Escuta e Cuida
 * Desenvolvido por Lincoln Berto — github.com/eilincoln
 * © 2026 — Uso não comercial. Créditos obrigatórios.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #2e7d52;
  --green-light: #e8f5ee;
  --green-mid: #a8d5bb;
  --green-dark: #1a5c3a;
  --cream: #f9f6f0;
  --white: #ffffff;
  --text: #1e1e1e;
  --text-mid: #555;
  --text-light: #999;
  --wa: #25d366;
  --wa-dark: #1aab55;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

/* ─── NAVBAR ─── */

nav {
  background: var(--white);
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: var(--green-dark);
}

.nav-logo em {
  font-style: italic;
  color: var(--green);
}

.nav-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  font-weight: 500;
}

/* ─── HERO ─── */

.hero-psi {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif;
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero {
  background: var(--green-dark);
  color: white;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

/* Animação de entrada do hero */
.hero-badge,
.hero h1,
.hero p,
.hero-info-strip {
  animation: heroFadeUp 0.7s ease both;
}

.hero h1 {
  animation-delay: 0.1s;
}
.hero p {
  animation-delay: 0.2s;
}
.hero-info-strip {
  animation-delay: 0.3s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Ponto verde pulsante */
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-mid);
}

.hero p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

.hero-info-strip {
  display: inline-flex;
  gap: 2.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-info-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--green-mid);
  line-height: 1;
}

.hero-info-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* ─── COMO FUNCIONA ─── */

.how {
  padding: 4.5rem 2.5rem;
  background: var(--white);
}

.section-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 300;
  text-align: center;
  color: var(--text);
  margin-bottom: 2rem;
}

.section-title em {
  font-style: italic;
  color: var(--green-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: var(--cream);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 92, 58, 0.08);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
  transition: transform 0.25s;
}

.step:hover .step-num {
  transform: scale(1.1);
}

.step h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── ABORDAGENS TERAPÊUTICAS ─── */

.approaches {
  padding: 4.5rem 2.5rem;
  background: var(--green-light);
}

.approaches-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.approach-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #ececec;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 92, 58, 0.1);
}

.approach-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.approach-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.approach-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .approaches-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── PSICÓLOGOS ─── */

#psicologos {
  padding: 4.5rem 2.5rem;
  background: var(--cream);
}

.psi-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.psi-card {
  width: 300px;
  align-self: start;
  background: var(--white);
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.psi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 92, 58, 0.1);
}

.psi-card-top {
  background: var(--green-light);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.psi-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  transition: transform 0.3s;
}

.psi-card:hover .psi-avatar {
  transform: scale(1.05);
}

.psi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.psi-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1.2;
}

.psi-crp {
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-top: 0.15rem;
}

.psi-card-body {
  padding: 1.2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.psi-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0.25rem;
}

.psi-description {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.psi-description.expanded {
  line-clamp: unset;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.psi-read-more {
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
}

.psi-read-more:hover {
  text-decoration: underline;
}

.psi-wa-btn {
  margin-top: auto;
}

.psi-info-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.psi-info-row svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.psi-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 1rem 0;
}

.psi-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--wa);
  color: white;
  text-decoration: none;
  padding: 0.85rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    background 0.2s,
    transform 0.2s;
  margin-top: auto;
}

.psi-wa-btn:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
}

/* ─── EQUIPE DO PROJETO ─── */

.project-team {
  padding: 4.5rem 2.5rem;
  background: var(--white);
}

.team-description {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
}

.team-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--cream);
  border: 1px solid #ececec;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 92, 58, 0.08);
}

.team-card h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.team-card span {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* ─── DESENVOLVEDOR ─── */

.developer {
  padding: 4.5rem 2.5rem;
  background: var(--green-light);
}

.developer-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e8e8e8;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.developer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 92, 58, 0.1);
}

.developer-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.developer-role {
  color: var(--green);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.developer-info p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-mid);
  line-height: 1.8;
}

.developer-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.developer-links a {
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 0.7rem;
  background: var(--green-dark);
  color: white;
  font-weight: 500;
  transition:
    transform 0.2s,
    background 0.2s;
}

.developer-links a:hover {
  transform: translateY(-2px);
  background: var(--green);
}

/* ─── NOTICE ─── */

.notice {
  background: var(--green-dark);
  color: white;
  padding: 3rem 2.5rem;
  text-align: center;
}

.notice p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0.6rem auto 0;
  line-height: 1.8;
}

.notice strong {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  display: block;
  margin-bottom: 0.3rem;
}

/* ─── FOOTER ─── */

footer {
  background: #111;
  color: rgba(255, 255, 255, 0.45);
  padding: 1.8rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

footer .footer-left {
  font-size: 0.78rem;
  line-height: 1.7;
}

footer .footer-left strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

footer .footer-center {
  font-size: 0.78rem;
  text-align: center;
}

footer .footer-center a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

footer .footer-center a:hover {
  color: var(--green-mid);
}

footer .footer-right {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: right;
}

/* ─── ANIMAÇÃO SCROLL (fade-in ao entrar na viewport) ─── */

.psi-card,
.step,
.approach-card,
.team-card,
.developer-card {
  animation: fadeUp 0.5s ease both;
}

.psi-card:nth-child(1) {
  animation-delay: 0.05s;
}
.psi-card:nth-child(2) {
  animation-delay: 0.1s;
}
.psi-card:nth-child(3) {
  animation-delay: 0.15s;
}
.psi-card:nth-child(4) {
  animation-delay: 0.2s;
}
.psi-card:nth-child(5) {
  animation-delay: 0.25s;
}
.psi-card:nth-child(6) {
  animation-delay: 0.3s;
}
.psi-card:nth-child(7) {
  animation-delay: 0.35s;
}

.step:nth-child(1) {
  animation-delay: 0.05s;
}
.step:nth-child(2) {
  animation-delay: 0.15s;
}
.step:nth-child(3) {
  animation-delay: 0.25s;
}

.approach-card:nth-child(1) {
  animation-delay: 0.05s;
}
.approach-card:nth-child(2) {
  animation-delay: 0.15s;
}
.approach-card:nth-child(3) {
  animation-delay: 0.25s;
}

.team-card:nth-child(1) {
  animation-delay: 0.05s;
}
.team-card:nth-child(2) {
  animation-delay: 0.1s;
}
.team-card:nth-child(3) {
  animation-delay: 0.15s;
}
.team-card:nth-child(4) {
  animation-delay: 0.2s;
}
.team-card:nth-child(5) {
  animation-delay: 0.25s;
}
.team-card:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── RESPONSIVO ─── */

@media (max-width: 700px) {
  nav {
    padding: 1rem 1.2rem;
  }

  .hero {
    padding: 3.5rem 1.2rem 3rem;
  }

  .hero-info-strip {
    gap: 1.5rem;
    padding: 1rem 1.5rem;
  }

  .how,
  #psicologos {
    padding: 3rem 1.2rem;
  }

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

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
