/* ==========================================================================
   Avexa Healthcare & Path Labs - Master Styling Sheet
   Ultra-High-End Medical Diagnostics UI & Design System
   Tokarkhada, Silvassa
   Development by Aaryav Technologies
   ========================================================================== */

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

:root {
  --color-navy: #0A1E35;
  --color-navy-dark: #061324;
  --color-navy-surface: #0F2B48;
  --color-teal: #0D9488;
  --color-teal-dark: #0F766E;
  --color-teal-light: #14B8A6;
  --color-teal-subtle: #F0FDFA;
  --color-cyan: #0284C7;
  --color-cyan-light: #E0F2FE;
  --color-charcoal: #1E293B;
  --color-body: #475569;
  --color-surface-card: #FFFFFF;
  --color-surface-muted: #F8FAFC;
  --color-border: #E2E8F0;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: #FAFCFE;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   Modern Web Guidance: Native <dialog> Modal Styles
   -------------------------------------------------------------------------- */
dialog:modal {
  overscroll-behavior: contain;
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  box-shadow: 0 25px 60px -15px rgba(10, 30, 53, 0.35);
}

dialog::backdrop {
  background: rgba(6, 19, 36, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
  animation: fadeInBackdrop 0.25s ease-out forwards;
}

dialog[open] {
  animation: modalEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalEntrance {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Header & Navigation Styling (100% Solid & Safe Against Scrolling Overlap)
   -------------------------------------------------------------------------- */
.glass-header,
.glass-nav,
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  background-color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 14px -3px rgba(15, 43, 72, 0.08) !important;
}

.card-elevation {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 43, 72, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-elevation:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 20px 40px -12px rgba(15, 43, 72, 0.12);
}

.hero-mesh-bg {
  background-color: #FAFCFE;
  background-image: 
    radial-gradient(at 100% 0%, rgba(13, 148, 136, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(2, 132, 199, 0.07) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(240, 253, 250, 0.5) 0px, transparent 100%);
}

.gradient-text-teal {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-glow-teal {
  background: #F0FDFA;
  border: 1px solid rgba(20, 184, 166, 0.3);
  box-shadow: 0 0 16px -2px rgba(13, 148, 136, 0.2);
}

.badge-glow-amber {
  background: #FFFBEB;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 16px -2px rgba(245, 158, 11, 0.2);
}

/* --------------------------------------------------------------------------
   Floating Actions (WhatsApp & Click-to-Call)
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whatsapp-float {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.55);
}

/* --------------------------------------------------------------------------
   Tab & Interactive Controls
   -------------------------------------------------------------------------- */
.hub-tab-btn {
  transition: all 0.25s ease;
  position: relative;
}
.hub-tab-btn.active {
  background-color: #0D9488;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeInTab 0.3s ease-out;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Specimen Tube Badges
   -------------------------------------------------------------------------- */
.tube-edta {
  background: #F3E8FF;
  color: #6B21A8;
  border: 1px solid #E9D5FF;
}
.tube-serum {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.tube-fluoride {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}
.tube-urine {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* --------------------------------------------------------------------------
   FAQ Accordions
   -------------------------------------------------------------------------- */
.faq-header {
  cursor: pointer;
  user-select: none;
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-body {
  max-height: 350px;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Gallery Lightbox Styling
   -------------------------------------------------------------------------- */
.gallery-card {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.gallery-card img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 19, 36, 0.9) 0%, rgba(6, 19, 36, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar & Print
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F8FAFC;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.hidden-custom {
  display: none !important;
}

@media print {
  header, footer, .floating-actions, .no-print {
    display: none !important;
  }
}
