/* ==========================================================================
   SITE PSICOLOGIA CLÍNICA - JANAÍNA M. SOUZA (CRP 12/12902)
   ========================================================================== */

/* 1. Variáveis e Configurações Globais */
:root {
  /* 1. AZUL PROFUNDO / AZUL PETRÓLEO (Principal e Botões) */
  --primary-color: #1E3A4C;
  --primary-hover: #152936;  
  --primary-dark: #122531;

  /* 2. AZUL ACINZENTADO (Elementos Secundários) */
  --secondary-color: #5B7588;
  --secondary-light: #EBF1F5;

  /* 3. VERDE SÁLVIA (Detalhes e Destaques) */
  --accent-sage: #6F8B7B;
  --accent-sage-light: #EDF3EF;

  /* 4. TERRACOTA / ROSA QUEIMADO (Pequenos Detalhes Discretos) */
  --terracotta: #B26E63;
  --terracotta-light: #F9EFEF;

  /* 5. FUNDOS: OFF-WHITE / CREME E AREIA / BEGE CLARO */
  --bg-white: #FAF8F5;
  --bg-offwhite: #FAF8F5;
  --bg-areia: #F3EFEA;

  /* 6. TEXTOS */
  --text-dark: #20272E;
  --text-light: #566470;

  /* 7. ESTRUTURA E FONTES */
  --border-radius: 12px;
  --container-width: min(1200px, 90%);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --section-padding: 5rem 1.5rem;
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1rem;
  }
}

/* 2. Reset Básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-white);
}

/* 3. Tipografia e Títulos */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

p {
  color: var(--text-light);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

/* 4. Container Central */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* 5. Barra de Navegação (Navbar) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.85rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.btn-nav {
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  background-color: var(--secondary-light);
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background-color: var(--primary-color);
  color: #fff !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* 6. Seção Hero */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 110px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, var(--accent-sage) 0%, transparent 60%);
  opacity: 0.25;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
}

.hero-crp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BOTÃO PRINCIPAL COM AS NOVAS CORES */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(30, 58, 76, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(30, 58, 76, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 7. Seção Sobre Mim */
.section-sobre {
  padding: var(--section-padding);
  background-color: var(--bg-white);
  border-bottom: 1px solid #edf2f7;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4.5rem;
  align-items: center;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-sage);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.sobre-texto h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.sobre-texto p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.crp-badge {
  display: inline-block;
  margin: 1.5rem 0;
  padding: 0.5rem 1.2rem;
  background-color: var(--secondary-light);
  color: var(--primary-color);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(91, 117, 136, 0.2);
}

.credentials-list {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #E7E2D9;
}

.credentials-list h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.credentials-list li {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.credentials-list li::before {
  content: '•';
  color: var(--terracotta);
  font-weight: bold;
}

/* Image frame com borda em Verde Sálvia */
.image-frame {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.image-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-sage);
  border-radius: 20px;
  z-index: 0;
}

.profile-card {
  position: relative;
  z-index: 1;
  background: var(--bg-areia);
  padding: 2.2rem;
  border-radius: 20px;
  border: 1px solid #E7E2D9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: var(--primary-color);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-box {
  background: #fff;
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid #E7E2D9;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* 8. Seção Serviços / Atendimento */
.section-servicos {
  padding: var(--section-padding);
  background-color: var(--bg-areia);
  position: relative;
  border-bottom: 1px solid #E7E2D9;
}

.section-servicos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--secondary-color) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.service-card {
  background: #fff;
  padding: 2.2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border-top: 5px solid var(--accent-sage);
  border-left: 1px solid #E7E2D9;
  border-right: 1px solid #E7E2D9;
  border-bottom: 1px solid #E7E2D9;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 9. Seção Abordagem */
.section-abordagem {
  padding: var(--section-padding);
  background-color: var(--bg-white);
  border-bottom: 1px solid #E7E2D9;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--bg-areia);
  border: 1px solid #E7E2D9;
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.25s ease;
}

.step-card:hover {
  border-color: var(--accent-sage);
  transform: translateY(-4px);
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  display: block;
}

.step-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.abordagem-banner {
  background-color: var(--secondary-light);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(91, 117, 136, 0.2);
}

.abordagem-banner blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* 10. Seção FAQ */
.section-faq {
  padding: var(--section-padding);
  background-color: var(--bg-white);
  border-bottom: 1px solid #E7E2D9;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.2rem;
  border: 1px solid #E7E2D9;
  border-radius: 10px;
  padding: 1.4rem;
  transition: all 0.25s ease;
  background-color: #fff;
}

.faq-item:hover {
  border-color: var(--accent-sage);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-question {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f7fafc;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.emergency-notice {
  margin-top: 2rem;
  padding: 1.2rem;
  border-radius: 10px;
  background-color: var(--terracotta-light);
  border: 1px solid #F0D5D2;
  color: #8A4A41;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* 11. Seção Contato */
.section-contato {
  position: relative;
  padding: var(--section-padding);
  color: #fff;
  background: var(--primary-dark);
  overflow: hidden;
}

.section-contato::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-sage) 0%, transparent 60%);
  opacity: 0.2;
}

.contato-box {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3.5rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contato-box h2 {
  color: #fff;
  margin-bottom: 0.6rem;
  font-size: 2.8rem;
}

.contato-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #FAF8F5;
}

.contato-info p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.contato-info a {
  color: #FAF8F5;
  font-weight: 600;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contato-info a:hover {
  color: #fff;
  border-bottom-style: solid;
}

.contato-location {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
}

/* 12. Rodapé */
footer {
  background-color: #0D1B24;
  color: rgba(255, 255, 255, 0.65);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer strong {
  color: #fff;
}

/* 13. Botão Flutuante do WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: all 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  background-color: #20bd5a;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* 14. Responsividade Mobile */
@media (max-width: 900px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 1.2rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .image-frame::before {
    display: none;
  }

  .contato-box {
    padding: 2.5rem 1.2rem;
  }

  .contato-box h2 {
    font-size: 2.2rem;
  }
}