/* ==========================================================================
   EAGLES PHARMA - CORPORATE STYLESHEET & DESIGN SYSTEM
   Tagline: Improving Access to Quality Medicines in South Sudan
   Headline: Better Medicines. Brighter Communities.
   Primary Colors: Navy Blue (#092B50) | Green (#16803F) | White (#F4F7F8)
   ========================================================================== */

:root {
  --color-navy: #092B50;
  --color-navy-dark: #051930;
  --color-navy-light: #0E3D6E;
  --color-navy-surface: #F0F4F8;
  --color-green: #16803F;
  --color-green-hover: #126933;
  --color-green-tint: #E8F5EE;
  --color-green-light: #10B981;
  --color-white: #FFFFFF;
  --color-offwhite: #F4F7F8;
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-400: #94A3B8;
  --color-slate-600: #475569;
  --color-slate-800: #1E293B;
  --color-slate-900: #0F172A;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 1px 3px 0 rgb(9 43 80 / 0.05), 0 1px 2px -1px rgb(9 43 80 / 0.05);
  --shadow-card: 0 4px 6px -1px rgb(9 43 80 / 0.07), 0 2px 4px -2px rgb(9 43 80 / 0.07);
  --shadow-hover: 0 20px 25px -5px rgb(9 43 80 / 0.12), 0 8px 10px -6px rgb(9 43 80 / 0.08);
  --shadow-glow-green: 0 0 25px -5px rgba(22, 128, 63, 0.35);
  --shadow-glow-navy: 0 0 25px -5px rgba(9, 43, 80, 0.35);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  font-family: 'Plus Jakarta Sans', 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-offwhite);
  color: var(--color-slate-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
  border: 2px solid #F1F5F9;
}
::-webkit-scrollbar-thumb:hover {
  background: #16803F;
}

/* Selection */
::selection {
  background-color: #16803F;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   PRELOADER
   -------------------------------------------------------------------------- */
.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(22, 128, 63, 0.15);
  border-top-color: #16803F;
  border-right-color: #092B50;
  border-radius: 50%;
  animation: preloader-spin 0.8s linear infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   PRE-LAUNCH ALERT BANNER (PERSISTENT & DISCREET)
   -------------------------------------------------------------------------- */
.prelaunch-banner {
  background: linear-gradient(90deg, #051930 0%, #092B50 50%, #051930 100%);
  color: #FFFFFF;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 60;
}

.pulse-indicator {
  display: inline-flex;
  position: relative;
  width: 8px;
  height: 8px;
}
.pulse-indicator::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #10B981;
  opacity: 0.75;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.pulse-indicator::after {
  content: '';
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0.2; }
  100% { transform: scale(0.6); opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   STICKY HEADER & DYNAMIC NAVIGATION (SAME AS SMGPL REFERENCE)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Transparent Header over Dark Cinematic Hero (when not scrolled) */
.site-header.transparent-nav.dark-hero:not(.scrolled) {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.site-header.transparent-nav.dark-hero:not(.scrolled) .nav-link:not(.active) {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.site-header.transparent-nav.dark-hero:not(.scrolled) .nav-link.active {
  color: #10B981 !important;
}

.site-header.transparent-nav.dark-hero:not(.scrolled) .badge-prelaunch {
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: #FDE68A !important;
  border-color: rgba(253, 230, 138, 0.4) !important;
  backdrop-filter: blur(8px);
}

.site-header.transparent-nav.dark-hero:not(.scrolled) #mobileToggleBtn {
  color: #FFFFFF !important;
}

/* Scrolled Sticky Header (Becomes Crisp Frosted White) */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px -2px rgba(9, 43, 80, 0.08) !important;
}

.site-header.scrolled .nav-link:not(.active) {
  color: #334155 !important;
  text-shadow: none !important;
}

.site-header.scrolled #mobileToggleBtn {
  color: #092B50 !important;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 0.25rem;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-green-light) !important;
}

.nav-link.active {
  color: var(--color-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--color-green-light);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Badges */
.badge-prelaunch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 9999px;
  background-color: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-pill-navy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  background-color: #F0F4F8;
  color: #092B50;
  border: 1px solid #CBD5E1;
}

.badge-pill-green {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  background-color: #E8F5EE;
  color: #16803F;
  border: 1px solid #A7F3D0;
}

/* --------------------------------------------------------------------------
   CINEMATIC HERO BACKGROUND (SAME AS SMGPL REFERENCE)
   -------------------------------------------------------------------------- */
.cinematic-hero-section {
  position: relative;
  min-height: calc(100vh - 38px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #051930;
  border-bottom: 1px solid #0F172A;
}

@media (min-width: 1024px) {
  .cinematic-hero-section {
    min-height: calc(100vh - 38px);
  }
}

/* --------------------------------------------------------------------------
   CARD STYLES & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.corporate-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.corporate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #CBD5E1;
}

.icon-box-navy {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  background-color: #F0F4F8;
  color: #092B50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.corporate-card:hover .icon-box-navy {
  background-color: #092B50;
  color: #FFFFFF;
}

.icon-box-green {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  background-color: #E8F5EE;
  color: #16803F;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.corporate-card:hover .icon-box-green {
  background-color: #16803F;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   STATUTORY DISCLAIMER CALLOUT
   -------------------------------------------------------------------------- */
.regulatory-callout {
  background: #FFFDF5;
  border: 1px solid #FDE68A;
  border-left: 4px solid #D97706;
  border-radius: 0.75rem;
  padding: 1.15rem 1.35rem;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn-primary-green {
  background-color: #16803F;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(22, 128, 63, 0.35);
}

.btn-primary-green:hover {
  background-color: #126933;
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-2px);
}

.btn-secondary-navy {
  background-color: #092B50;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(9, 43, 80, 0.25);
}

.btn-secondary-navy:hover {
  background-color: #061e38;
  box-shadow: var(--shadow-glow-navy);
  transform: translateY(-2px);
}

.btn-glass-pill {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-glass-pill:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid #CBD5E1;
  background-color: #FFFFFF;
  color: #092B50;
  font-weight: 600;
  padding: 0.72rem 1.45rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: #092B50;
  background-color: #F8FAFC;
  color: #092B50;
}

/* --------------------------------------------------------------------------
   MODALS & DRAWERS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 43, 80, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility var(--transition-normal);
}

.mobile-drawer.active {
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 25, 48, 0.65);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.active .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-content {
  position: relative;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background-color: #FFFFFF;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   BACK TO TOP & FLOATING ACTIONS
   -------------------------------------------------------------------------- */
.scroll-progress-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: #092B50;
  box-shadow: 0 8px 16px -2px rgba(9, 43, 80, 0.25);
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
}

.scroll-progress-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-progress-btn:hover {
  background-color: #16803F;
  color: #FFFFFF;
  border-color: #16803F;
  box-shadow: var(--shadow-glow-green);
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background-color: #092B50;
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  border-left: 4px solid #16803F;
  pointer-events: auto;
  animation: toast-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Transparent Header Uncontained Logo Glow (Over Dark Hero Only) */
.site-header.transparent-nav.dark-hero:not(.scrolled) .brand-logo-img {
  filter: drop-shadow(0 0 1px #FFFFFF) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.85)) drop-shadow(0 4px 16px rgba(255, 255, 255, 0.45));
}
