/* ==========================================================================
   AKEST NIGERIA LTD - MODERN DESIGN SYSTEM & COMPONENT STYLES
   ========================================================================== */

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

:root {
  --primary: #0a2540;
  --primary-dark: #061727;
  --primary-light: #133a61;
  --secondary: #00a86b;
  --secondary-dark: #008755;
  --secondary-light: #e6f7f0;
  --accent: #0284c7;
  --accent-amber: #f59e0b;
  --neutral-bg: #f8fafc;
  --neutral-surface: #ffffff;
  --neutral-border: #e2e8f0;
  --neutral-text: #334155;
  --neutral-heading: #0f172a;
  --neutral-muted: #64748b;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(10, 37, 64, 0.08), 0 4px 12px -2px rgba(10, 37, 64, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(10, 37, 64, 0.12), 0 10px 15px -5px rgba(10, 37, 64, 0.05);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--neutral-text);
  background-color: var(--neutral-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

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

.hero-gradient h1,
.hero-gradient h2,
.hero-gradient h3,
.text-white h1,
.text-white h2,
.text-white h3 {
  color: #ffffff !important;
}

.mono-spec {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* Hero Section with Photographic Image Overlay */
.hero-gradient {
  background: 
    linear-gradient(135deg, rgba(6, 23, 39, 0.92) 0%, rgba(10, 37, 64, 0.86) 50%, rgba(5, 19, 32, 0.94) 100%),
    url('../../images/hero_bg_lab.jpg') center/cover no-repeat;
  position: relative;
}

.hero-glass-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.glass-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.08);
}

/* Partner Carousel / Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

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

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

.partner-card {
  transition: all 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

/* Service Card Transitions */
.service-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--neutral-border);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #93c5fd;
}

/* Product Card Design */
.product-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--neutral-border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.cas-badge {
  font-family: var(--font-mono);
  background-color: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.grade-badge-hplc { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.grade-badge-acs  { background: #ccfbf1; color: #115e59; border: 1px solid #99f6e4; }
.grade-badge-ar   { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.grade-badge-edu  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.grade-badge-med  { background: #ffe4e6; color: #9f1239; border: 1px solid #fecdd3; }

/* Slide-out Quote Drawer */
.quote-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quote-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.quote-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.quote-drawer.active {
  transform: translateX(0);
}

/* Floating WhatsApp Widget */
.wa-float-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.wa-btn {
  background-color: #25d366;
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  position: relative;
}

.wa-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  z-index: -1;
  animation: wa-pulse 2.2s infinite ease-out;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.wa-btn:hover {
  background-color: #20ba59;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wa-btn svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.wa-popup-panel {
  width: 320px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--neutral-border);
  overflow: hidden;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.wa-popup-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

/* FAQ Accordion Styling */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-header {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--neutral-heading);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-header:hover {
  color: var(--secondary-dark);
}

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

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

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 20px;
  color: var(--neutral-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-body {
  max-height: 250px;
  padding-bottom: 20px;
}

/* Toast Manager */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  max-width: 360px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-left: 4px solid var(--secondary);
}

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

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

/* Modal styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* Interactive Category Filter Pills */
.filter-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--neutral-border);
  background: #ffffff;
  color: var(--neutral-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: #cbd5e1;
  color: var(--neutral-heading);
}

.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.2);
}

/* Animations for scroll fade */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Print Styles for Quotations */
@media print {
  header, footer, .wa-float-container, .toast-container, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
