/* ==========================================================================
   Summit Neuro, custom styles
   Design system modeled on a modern Tailwind clinic theme.
   Palette: primary #0B0B0D (navy), gold #C9A24B, sky #5DADE2, tertiary #CFF4FF, secondary #D33414, cream #FCF4E9
   Fonts: Montserrat (sans) + Lora (serif italic accents)
   ========================================================================== */

:root {
  --primary: #0B0B0D;
  --primary-soft: #0A1A33;
  --gold: #C9A24B;
  --sky: #5DADE2;
  --tertiary: #CFF4FF;
  --secondary: #D33414;
  --cream: #FCF4E9;
}

html { scroll-behavior: smooth; }
body { background-color: #fff; color: var(--primary); }

.font-montserrat { font-family: 'Montserrat', system-ui, sans-serif; }
.font-lora { font-family: 'Lora', Georgia, serif; }

/* ---------- Header ---------- */
.site-header {
  transition: background-color .3s ease, box-shadow .3s ease, margin .3s ease, width .3s ease, border-radius .3s ease;
}
.site-header.scrolled {
  background-color: #FCF4E9 !important;
  box-shadow: 0 10px 30px -12px rgba(11,11,13,.25);
}

/* Dropdown */
.nav-dropdown > .dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  pointer-events: none;
}
.nav-dropdown:hover > .dropdown-panel,
.nav-dropdown:focus-within > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
#mobile-menu {
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  transform: translateX(100%);
}
#mobile-menu.open { transform: translateX(0); }
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mobile-sub.open { max-height: 320px; }

/* ---------- Hero ---------- */
.hero-overlay {
  background: linear-gradient(90deg, rgba(11,11,13,.96) 0%, rgba(11,11,13,.82) 38%, rgba(11,11,13,.45) 70%, rgba(11,11,13,.25) 100%);
}

/* ---------- Service cards ---------- */
.service-card .default-overlay { transition: opacity .5s ease; }
.service-card .hover-overlay { opacity: 0; transition: opacity .5s ease; }
.service-card .hover-content { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.service-card:hover .default-overlay { opacity: 0; }
.service-card:hover .default-content { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.service-card:hover .hover-overlay { opacity: 1; }
.service-card:hover .hover-content { opacity: 1; transform: translateY(0); }

/* ---------- Accordion ---------- */
.accordion-item .accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-item.active .accordion-body { max-height: 600px; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-icon { transition: transform .3s ease; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Typewriter cursor ---------- */
.tw-cursor { display:inline-block; margin-left:2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Misc ---------- */
.text-balance { text-wrap: balance; }
.float-cta {
  box-shadow: 0 12px 28px -8px rgba(211,52,20,.6);
}
.condition-pill { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.condition-pill:hover { transform: translateY(-2px); }

/* keep dropdown bridge so hover doesn't drop */
.nav-dropdown > .dropdown-panel::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
