/* ==========================================================================
   PSICOLOGIA VITÓRIA FADEL - ESTILOS PRINCIPAIS
   Design: Moderno, Acolhedor, Acessível e Responsivo
   ========================================================================== */

:root {
  --color-bg: #FAF9F6;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F3F1EC;
  --color-primary: #1C3B34;
  --color-primary-light: #2A544A;
  --color-accent: #C48B71;
  --color-accent-soft: #F9EBE5;
  --color-text-main: #242928;
  --color-text-muted: #616766;
  --color-border: #E5E2DB;
  --color-wa: #25D366;
  --color-wa-dark: #1EBE5D;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Cambria", "Times New Roman", serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   HEADER & NAVEGAÇÃO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-link {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.brand-crp {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  padding: 8px 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-accent);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.nav-cta:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

/* ==========================================================================
   SEÇÕES GERAIS E HERO
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-surface);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   CARDS E PILARES
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.price-tag {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.tag-pending {
  background: #FFF3CD;
  color: #856404;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #FFEBAA;
}

/* ==========================================================================
   GALERIA DO CONSULTÓRIO
   ========================================================================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   BOTÃO FIXO WHATSAPP
   ========================================================================== */
.wa-floating-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-wa);
  color: #fff !important;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: pulse-wa 3s infinite;
}

.wa-floating-btn:hover {
  background: var(--color-wa-dark);
  transform: scale(1.05);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   FOOTER & ÉTICA
   ========================================================================== */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 440px;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-cvv {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 0 auto;
  color: #fff;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .grid-2, .grid-3, .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .main-nav {
    display: none; /* Em telas móveis, botão CTA e WhatsApp mantêm o canal de conversão */
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
}
