/* ============================================
   GUILHERME LUSTOSA - PSICÓLOGO
   Paleta inspirada na logo: tons terrosos, bege,
   verde profundo. Tipografia: Cormorant + Inter.
   ============================================ */

:root {
  /* Cores */
  --bg: #faf6f0;
  --bg-soft: #f3ece1;
  --bg-card: #ffffff;
  --ink: #2d2a26;
  --ink-soft: #5a544c;
  --ink-mute: #8a8278;
  --accent: #a08866;        /* dourado/marrom da logo */
  --accent-dark: #806b4f;
  --accent-light: #c4a880;
  --green: #4a5848;         /* verde da camisa - acolhedor */
  --green-dark: #3a463a;
  --line: #e6dccd;
  --shadow: 0 20px 60px -20px rgba(80, 60, 30, 0.18);
  --shadow-soft: 0 8px 30px -10px rgba(80, 60, 30, 0.12);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 4px;
  --radius-lg: 12px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Acessibilidade - skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 246, 240, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo-link { display: block; }
.logo-img {
  height: 56px;
  width: auto;
  border-radius: 4px;
}

.nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   BOTÕES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 4px 20px -8px rgba(74, 88, 72, 0.5);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(74, 88, 72, 0.6);
}
.btn-primary i { font-size: 1.15rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  margin-top: 8px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 168, 128, 0.15), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 28px;
  padding-left: 36px;
  position: relative;
}
.eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 480px;
}

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

.hero-image {
  position: relative;
}

.image-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.image-frame:hover img { transform: scale(1.04); }

.image-decor {
  position: absolute;
  top: 30px;
  right: -30px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: 1;
}

/* ============================================
   SEÇÕES GERAIS
   ============================================ */
section { padding: 110px 0; position: relative; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}

.section-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 620px;
}

.section-head {
  text-align: center;
  margin: 0 auto 70px;
  max-width: 720px;
}
.section-head .section-lead { margin: 0 auto; }

/* ============================================
   SOBRE
   ============================================ */
.sobre {
  background: var(--bg-soft);
}

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

.sobre-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.sobre-content p strong {
  color: var(--ink);
  font-weight: 500;
}

.credenciais {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.cred-item i {
  color: var(--accent);
  font-size: 1.1rem;
}

/* ============================================
   ABORDAGEM
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--bg-card);
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent-light);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-size: 1.4rem;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--ink);
}

.card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================
   ÁREAS
   ============================================ */
.areas {
  background: var(--bg-soft);
}

.areas-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin-bottom: 70px;
}

.areas-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink);
  transition: all 0.3s;
}
.areas-list li:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.areas-list li i {
  color: var(--accent);
  font-size: 0.5rem;
}

.cta-mini {
  text-align: center;
  padding: 50px 30px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.cta-mini p {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 400;
}

/* ============================================
   CONTATO
   ============================================ */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contato-info > p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.contato-canais {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.canal-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all 0.3s;
}
.canal-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.canal-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.canal-item strong {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.canal-item span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* FORMULÁRIO */
.contato-form-wrap {
  background: var(--bg-card);
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contato-form h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-sub {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 28px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-row label span {
  color: var(--accent-dark);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(160, 136, 102, 0.15);
}

.form-row textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 14px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--bg-soft);
  padding: 60px 0 30px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 60px;
  width: auto;
  border-radius: 4px;
  filter: brightness(1.05);
  opacity: 0.95;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(243, 236, 225, 0.7);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(243, 236, 225, 0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(243, 236, 225, 0.1);
  width: 100%;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(243, 236, 225, 0.5);
}

/* ============================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================ */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
  animation: pulse 2.5s infinite;
}
.float-whatsapp:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ============================================
   ANIMAÇÕES DE REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 968px) {
  .hero-grid,
  .sobre-grid,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-image { max-width: 460px; margin: 0 auto; }
  .image-decor { display: none; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .areas-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    padding: 100px 32px 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .nav.open { right: 0; }
  .nav ul {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .nav a { font-size: 1.1rem; }

  section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }

  .hero h1 { font-size: 2.3rem; }
  .hero-sub { font-size: 1rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .areas-list {
    grid-template-columns: 1fr;
  }

  .contato-form-wrap { padding: 28px 24px; }

  .cta-mini p { font-size: 1.3rem; }

  .float-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .logo-img { height: 44px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .contato-form-wrap { padding: 24px 18px; }
}
