/* ============================================
   Align Health Collective — Clinic Demo Styles
   Loaded on: clinic-demo.html only
   Myodetox-inspired warm wellness design
   ============================================ */

/* Clinic Navigation */
.nav-clinic {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 200ms ease;
}

.nav-clinic.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* Demo Banner */
.demo-banner {
  background: #163A86;
  color: #FFFFFF;
}

.demo-banner a {
  color: #5EEAD4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-banner a:hover {
  color: #FFFFFF;
}

/* Scrolling Marquee */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 2.5rem;
  white-space: nowrap;
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 200ms ease;
}

.accordion-trigger:hover {
  color: #0D9488;
}

.accordion-trigger svg {
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-trigger svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.accordion-item.is-open .accordion-content {
  max-height: 500px;
}

/* Accordion image crossfade */
.accordion-image {
  opacity: 0;
  transition: opacity 500ms ease;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accordion-image.is-active {
  opacity: 1;
}

/* Testimonial Carousel */
.carousel-track {
  display: flex;
  transition: transform 500ms ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 200ms ease, transform 200ms ease;
}

.carousel-dot.is-active {
  background: #0D9488;
  transform: scale(1.25);
}

/* Chatbot Widget */
.chatbot-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0D9488;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.chatbot-toggle:hover {
  background: #0F766E;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.4);
}

.chatbot-toggle.is-hidden {
  display: none;
}

.chatbot-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 81;
  width: 360px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  max-height: calc(100vh - 6rem);
  background: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 300ms ease, opacity 300ms ease;
}

.chatbot-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #0D9488;
  color: #FFFFFF;
  flex-shrink: 0;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-msg {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chatbot-msg--bot {
  align-self: flex-start;
  background: #F1F5F9;
  color: #1E293B;
  border-bottom-left-radius: 0.25rem;
}

.chatbot-msg--user {
  align-self: flex-end;
  background: #0D9488;
  color: #FFFFFF;
  border-bottom-right-radius: 0.25rem;
}

.chatbot-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: #F1F5F9;
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
}

.chatbot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94A3B8;
  animation: typingBounce 1.2s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  border: 1px solid #E2E8F0;
  border-radius: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 200ms ease;
  font-family: 'Raleway', sans-serif;
}

.chatbot-input:focus {
  border-color: #0D9488;
}

.chatbot-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0D9488;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 200ms ease;
}

.chatbot-send:hover {
  background: #0F766E;
}

.chatbot-send:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
}

/* Clinic-specific scroll-to-top */
.scroll-top-btn--clinic {
  background: #FFFFFF;
  color: #0D9488;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* Move to left to avoid chatbot toggle overlap */
  right: auto;
  left: 2rem;
}

.scroll-top-btn--clinic:hover {
  background: #0D9488;
  color: #FFFFFF;
}

/* Clinic hero overlay */
.clinic-hero-overlay {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(22, 58, 134, 0.75) 100%);
}

/* Section alternating backgrounds */
.clinic-section-warm {
  background: #F7F5F2;
}

/* Clinic card hover */
.clinic-card {
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.clinic-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Mobile menu for clinic */
.clinic-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.clinic-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.clinic-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  width: 300px;
  max-width: 85vw;
  background: #FFFFFF;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateX(100%);
  transition: transform 300ms ease;
  overflow-y: auto;
}

.clinic-mobile-panel.is-open {
  transform: translateX(0);
}
