/* Clinical Clarity - Core CSS & Design System Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Typography & Root Rules */
:root {
  --color-primary: #002045;
  --color-secondary: #1960a3;
  --color-teal: #4FD1C5;
  --color-background: #f7fafc;
  --color-surface-lowest: #ffffff;
  --color-surface-container: #ebeef0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

/* Material Symbols Outlined Custom Weight Settings */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
}

/* Ambient Shadows based on Design System Levels */
.shadow-ambient-card {
  box-shadow: 0px 2px 4px rgba(26, 54, 93, 0.04);
}

.shadow-ambient-hover {
  box-shadow: 0px 8px 16px rgba(26, 54, 93, 0.08);
}

.shadow-ambient-modal {
  box-shadow: 0px 10px 25px rgba(26, 54, 93, 0.12);
}

/* Glassmorphism Styles */
.glassmorphism {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Page Micro-Transitions and Animations */
.transition-lift {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 20px rgba(26, 54, 93, 0.08);
}

/* Smooth Navigation Highlights */
.nav-link-active {
  color: var(--color-secondary) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--color-secondary);
}

/* Mobile Menu Transitions */
.mobile-menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

/* FAQ Accordion Transitions */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-icon {
  transition: transform 0.3s ease;
}

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

/* Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-scale {
  animation: fadeInScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Spinner */
.spinner {
  border: 3px solid rgba(25, 96, 163, 0.15);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border-left-color: var(--color-secondary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
