/* ═══════════════════════════════════════════════════════════════════════════
   NEUROSPHERE - NEUROLOGIA DE PRECISÃO | DRA. KATIANE MARIN
   Boutique Longevity & Precision Medical Design System
   Paleta: Off-White Arquitetônico (#F8F9FC / #FFFFFF), Azul Profundo (#0A182E / #112647)
   e Dourado Fino nos Detalhes (#C5A059 / #D6B77B)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-ivory:        #F8F9FC;
  --bg-surface:      #FFFFFF;
  --bg-subtle:       #F0F3F8;
  --navy-950:        #071120;
  --navy-900:        #0A182E;
  --navy-800:        #112647;
  --navy-700:        #1B3968;
  --text-main:       #0A182E;
  --text-body:       #3B4A62;
  --text-muted:      #6C7A91;
  --gold-detail:     #C5A059;
  --gold-light:      #DFC38A;
  --gold-hairline:   rgba(197, 160, 89, 0.34);
  --navy-border:     rgba(10, 24, 46, 0.08);
  --shadow-boutique: 0 20px 50px rgba(10, 24, 46, 0.05), 0 4px 14px rgba(10, 24, 46, 0.03);
  --shadow-hover:    0 28px 64px rgba(10, 24, 46, 0.09), 0 0 0 1px rgba(197, 160, 89, 0.38);
  --radius-card:     20px;
  --radius-pill:     9999px;
}

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

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

body {
  background-color: var(--bg-ivory);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: rgba(197, 160, 89, 0.22);
  color: var(--navy-900);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-ivory);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-800);
  border-radius: 3px;
}

/* ─── TIPOGRAFIA ─── */
.font-serif-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans-clean {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── DETALHES DOURADOS SUTIS ─── */
.gold-hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-detail) 50%, transparent);
  opacity: 0.55;
}

.gold-hairline-left {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-detail) 0%, rgba(197, 160, 89, 0.05) 100%);
}

.gold-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-detail);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.16);
}

.gold-accent-text {
  color: #A88238;
}

/* ─── NAVBAR BOUTIQUE ─── */
#ns-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  z-index: 60;
  background: rgba(248, 249, 252, 0.84);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(10, 24, 46, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ns-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  flex: none;
}

.ns-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}

.ns-brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0A182E;
  line-height: 1;
}

.ns-brand-line {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #9E7B36;
  line-height: 1.1;
  white-space: nowrap;
}

.ns-brand-doctor {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #1B3968;
  line-height: 1.1;
  white-space: nowrap;
}

.ns-main-nav {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  flex: none;
  min-width: 0;
}

@media (min-width: 1024px) {
  .ns-main-nav {
    display: flex;
  }
}

#ns-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(197, 160, 89, 0.25);
  box-shadow: 0 10px 34px rgba(10, 24, 46, 0.05);
}

.ns-nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  flex: none;
  transition: color 0.2s ease;
}

.ns-nav-sep {
  width: 1px;
  height: 11px;
  margin: 0 0.42rem;
  background: rgba(10, 24, 46, 0.16);
  flex: none;
}

.ns-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-detail);
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-nav-link:hover,
.ns-nav-link.active {
  color: var(--navy-900);
}

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

/* ─── BOTÕES BOUTIQUE ─── */
.btn-navy-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: var(--navy-900);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(197, 160, 89, 0.42);
  box-shadow: 0 10px 26px rgba(10, 24, 46, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-navy-gold:hover {
  background: var(--navy-800);
  border-color: var(--gold-detail);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(10, 24, 46, 0.22), 0 0 0 1px rgba(197, 160, 89, 0.35);
}

.btn-navy-gold:active {
  transform: translateY(0) scale(0.98);
}

.btn-boutique-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid rgba(10, 24, 46, 0.16);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-boutique-outline:hover {
  border-color: var(--gold-detail);
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 24, 46, 0.06);
}

/* ─── CARDS CLÍNICA BOUTIQUE ─── */
.boutique-card {
  background: var(--bg-surface);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-boutique);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.boutique-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.boutique-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(197, 160, 89, 0.38);
}

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

/* ─── PROGRAMA TEEN | NEXT (IDENTIDADE PRÓPRIA) ─── */
.teen-next-shell {
  background: radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 12% 85%, rgba(197, 160, 89, 0.14) 0%, transparent 42%),
              linear-gradient(135deg, #071224 0%, #0D2142 52%, #132C58 100%);
  border-radius: 28px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  box-shadow: 0 32px 72px rgba(7, 18, 36, 0.24);
  color: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.teen-next-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.teen-next-pillar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.teen-next-pillar:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
}

/* ─── ANIMAÇÕES DE REVELAÇÃO ─── */
.ns-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ONDA SINÁPTICA DECORATIVA ─── */
@keyframes synaptic-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.18); }
}

.synapse-node {
  animation: synaptic-pulse 3.4s ease-in-out infinite;
}

/* ─── FORMULÁRIOS E PASSOS DE AGENDAMENTO (CLÍNICA BOUTIQUE) ─── */
.ns-input {
  width: 100%;
  background: #F8F9FC;
  border: 1px solid rgba(10, 24, 46, 0.14);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--navy-900);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ns-input::placeholder {
  color: #7B89A1;
}

.ns-input:focus {
  background: #FFFFFF;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.22);
}

.ns-input.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.ns-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

/* Stepper Agendamento */
.ns-step-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.ns-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.ns-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(10, 24, 46, 0.15);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ns-step-item.active .ns-step-circle {
  background: var(--navy-900);
  border-color: var(--gold-detail);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(10, 24, 46, 0.2);
}

.ns-step-item.done .ns-step-circle {
  background: rgba(197, 160, 89, 0.16);
  border-color: var(--gold-detail);
  color: var(--navy-900);
}

/* Calendário e Horários */
.ns-cal-day {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-900);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.ns-cal-day:hover:not(.cal-disabled):not(.cal-selected) {
  background: rgba(10, 24, 46, 0.05);
  border-color: rgba(197, 160, 89, 0.45);
}

.ns-cal-day.cal-selected {
  background: var(--navy-900);
  color: #FFFFFF;
  border-color: var(--gold-detail);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(10, 24, 46, 0.18);
}

.ns-cal-day.cal-today:not(.cal-selected) {
  border-color: var(--gold-detail);
  color: var(--navy-900);
  font-weight: 700;
}

.ns-cal-day.cal-disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.ns-slot {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(10, 24, 46, 0.12);
  background: #F8F9FC;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-900);
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ns-slot:hover:not(.slot-booked):not(.slot-selected) {
  background: #FFFFFF;
  border-color: var(--gold-detail);
  transform: translateY(-1px);
}

.ns-slot.slot-selected {
  background: var(--navy-900);
  color: #FFFFFF;
  border-color: var(--gold-detail);
  box-shadow: 0 6px 16px rgba(10, 24, 46, 0.16);
}

.ns-slot.slot-booked {
  opacity: 0.32;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #EEF1F6;
}

@media (prefers-reduced-motion: reduce) {
  .ns-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn-navy-gold, .btn-boutique-outline, .boutique-card {
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
