/* ==========================================================================
   ALEX SILVEIRA - PSICÓLOGO, PSICANALISTA & SEXÓLOGO
   Design System & Master Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --gold-primary: #D4A359;
  --gold-light: #E8C88A;
  --gold-dark: #A87C35;
  --gold-gradient: linear-gradient(135deg, #E6C280 0%, #D4A359 50%, #B58738 100%);
  --gold-glow: 0 8px 32px rgba(212, 163, 89, 0.25);
  
  --bg-obsidian: #121417;
  --bg-dark-card: #1B1E23;
  --bg-dark-card-hover: #23272E;
  
  --bg-light: #FAF8F5;
  --bg-warm: #F4EFE6;
  --bg-card-light: #FFFFFF;
  
  --text-dark: #1F2124;
  --text-body: #4A4D53;
  --text-muted: #787D87;
  --text-light: #FAF8F5;
  --text-gold: #D4A359;
  
  --border-gold: rgba(212, 163, 89, 0.28);
  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Layout & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 24px 48px rgba(212, 163, 89, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography Utilities */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(212, 163, 89, 0.12);
  border: 1px solid rgba(212, 163, 89, 0.3);
  border-radius: var(--radius-full);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3rem auto;
}

/* Header & Navbar (Transparente no topo e sem bordas) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border: none !important;
  border-bottom: none !important;
  transition: var(--transition-smooth);
}

.header .nav-link {
  color: #FAF8F5;
}

.header .logo-img {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

/* Header ao Rolar (Scrolled sem bordas) */
.header.scrolled {
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none !important;
  border-bottom: none !important;
  box-shadow: var(--shadow-subtle);
}

.header.scrolled .nav-link {
  color: var(--text-dark);
}

.header.scrolled .logo-img {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-header {
  padding: 0.7rem 1.5rem;
  background: var(--gold-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(212, 163, 89, 0.3);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: var(--transition-fast);
}

.header.scrolled .mobile-toggle span {
  background-color: var(--text-dark);
}

/* ==================== HERO SECTION (PANORAMIC BANNER) ==================== */
.hero-panoramic {
  position: relative;
  min-height: 92vh;
  padding-top: 140px;
  padding-bottom: 90px;
  background: var(--bg-obsidian) url('assets/hero-banner.png') no-repeat center right / cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-panoramic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #121417 0%, #121417 40%, rgba(18, 20, 23, 0.75) 65%, rgba(18, 20, 23, 0.15) 100%);
  z-index: 1;
}

.hero-panoramic-container {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-badge-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 600;
}

.hero-badge-dark i {
  color: var(--gold-primary);
}

.hero-title-dark {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.hero-title-dark span {
  color: var(--gold-light);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description-dark {
  font-size: 1.15rem;
  color: #D1D5DB;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 560px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--gold-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--gold-glow);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(212, 163, 89, 0.35);
}

/* Quote Banners (Entre as sessões) */
.quote-banner {
  background: var(--bg-obsidian);
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.quote-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(212, 163, 89, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.quote-container {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.quote-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: #F8F6F0;
  margin-bottom: 1.5rem;
}

.quote-author {
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

/* Seção Sobre / Biografia */
.bio-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.bio-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.bio-image-wrapper {
  position: relative;
}

.bio-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-gold);
}

/* Card Flutuante de Identificação do Doutor */
.bio-floating-card {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: rgba(20, 22, 25, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.bio-floating-card .floating-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.bio-floating-card .floating-text p {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 2px;
  font-family: var(--font-body);
}

.bio-floating-card .floating-text strong {
  font-size: 1rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
}

.bio-content h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.bio-paragraph {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.bio-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cred-card {
  background: var(--bg-warm);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
  transition: var(--transition-fast);
}

.cred-card:hover {
  transform: translateX(4px);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.cred-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.cred-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Seção Especialidades */
.specialties-section {
  padding: 6rem 0;
  background: var(--bg-warm);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.specialty-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-fast);
}

.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-gold);
}

.specialty-card:hover::before {
  opacity: 1;
}

.specialty-icon {
  width: 56px;
  height: 56px;
  background: rgba(212, 163, 89, 0.12);
  color: var(--gold-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.specialty-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.specialty-card p {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Seção Modalidades de Atendimento */
.modality-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.modality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.modality-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.modality-card.highlight {
  background: var(--bg-obsidian);
  color: #ffffff;
  border: 1px solid var(--border-gold);
}

.modality-card.highlight h3,
.modality-card.highlight h4 {
  color: #ffffff;
}

.modality-card.highlight p {
  color: #A0A5B1;
}

.modality-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.modality-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modality-card ul {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
}

.modality-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}

.modality-card li i {
  color: var(--gold-primary);
}

/* Seção Localização e Mapa */
.location-section {
  padding: 6rem 0;
  background: var(--bg-warm);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-info {
  background: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-gold);
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.location-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 163, 89, 0.12);
  color: var(--gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.location-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.location-text p {
  color: var(--text-body);
  font-size: 0.95rem;
}

.map-wrapper {
  height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 2px solid #ffffff;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Seção FAQ (Perguntas Frequentes) */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: none;
}

.faq-question i {
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
  transition: max-height 0.4s ease-in-out;
}

/* Footer */
.footer {
  background: var(--bg-obsidian);
  color: #A0A5B1;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid var(--border-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-logo {
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer-title {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--gold-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-fast);
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

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

/* Responsividade Mobile */
@media (max-width: 992px) {
  .hero-panoramic::before {
    background: linear-gradient(180deg, #121417 0%, rgba(18, 20, 23, 0.88) 60%, rgba(18, 20, 23, 0.4) 100%);
  }
  
  .bio-grid,
  .modality-grid,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: #121417;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: flex;
  }
}
