/*
=============================================================================
VERGIN CLINIC - MODERN MEDICAL PRACTICE STYLESHEET
=============================================================================
Pure CSS stylesheet providing custom typography, transitions, card elevation,
and mobile-first responsive adjustments. Compatible with modern web standards
and ready for static hosting (GitHub Pages / custom domain).
=============================================================================
*/

:root {
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-teal-900: #134e4a;
  --color-teal-800: #115e59;
  --color-teal-700: #0f766e;
  --color-teal-600: #0d9488;
  --color-teal-50: #f0fdfa;
  --color-emerald-600: #059669;
  --color-emerald-500: #10b981;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-slate-900);
  background-color: var(--color-slate-50);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive typography & selection */
::selection {
  background-color: #ccfbf1;
  color: #115e59;
}

/* Image fallback styling */
.clinic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.clinic-img:hover {
  transform: scale(1.03);
}

/* Custom interactive accordion animation */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
  max-height: 500px;
  transition: max-height 0.3s ease-in-out;
}

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

/* Modal styles */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

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

.modal-card {
  transform: scale(0.95);
  transition: transform 0.2s ease-in-out;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

/* Mobile Sticky Bar - strict 15% height limit */
.mobile-sticky-bar {
  max-height: 14vh;
}

/* Utility hairline border */
.hairline-b {
  border-bottom: 1px solid var(--color-slate-200);
}
