/* Oreya, custom CSS supplement to Tailwind CDN */

:root {
  --navy: #0B1E3F;
  --teal: #14B8A6;
  --gold: #E0B964;
  --cream: #FAFAF7;
}

html { scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Fade-up animation for scroll reveals */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav scroll state */
#main-nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 16px 0 rgba(11,30,63,0.08);
}

/* Card hover lift */
.card-lift {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px 0 rgba(11,30,63,0.13);
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--teal);
  margin-left: 2px;
  animation: blink 0.85s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* Pulse ring for call button */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--teal);
  animation: pulse-ring 2s ease-out infinite;
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-content.open {
  max-height: 600px;
}

/* Focus rings */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #c8d3e8; border-radius: 3px; }

/* Transcript chat bubbles */
.bubble-oreya {
  background: #e8f5f4;
  color: var(--navy);
  border-radius: 16px 16px 16px 4px;
}
.bubble-patient {
  background: white;
  color: var(--navy);
  border: 1px solid #e4e8f0;
  border-radius: 16px 16px 4px 16px;
  margin-left: auto;
}

/* Live call status indicator */
.speaking-indicator {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 20px;
}
.speaking-indicator span {
  width: 3px;
  background: var(--teal);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
.speaking-indicator span:nth-child(2) { animation-delay: 0.1s; }
.speaking-indicator span:nth-child(3) { animation-delay: 0.2s; }
.speaking-indicator span:nth-child(4) { animation-delay: 0.3s; }
.speaking-indicator span:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}
