/* ==========================================================================
   Live Well Diabetes Care - Global Stylesheet
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111c2d;
  background-color: #f9f9ff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c2c6d8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0057cd;
}

/* Accessibility Focus */
*:focus-visible {
  outline: 2px solid #0057cd;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header Logo Responsive Sizing */
.header-logo {
  width: 130px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .header-logo {
    width: auto;
    height: 46px;
    max-height: 46px;
  }
}

@media (min-width: 1024px) {
  .header-logo {
    width: auto;
    height: 54px;
    max-height: 54px;
  }
}

/* Footer Logo Sizing */
.footer-logo {
  height: 5.5rem;
  width: auto;
  object-fit: contain;
}
@media (min-width: 640px) {
  .footer-logo {
    height: 6.5rem;
  }
}
@media (min-width: 1024px) {
  .footer-logo {
    height: 7.5rem;
  }
}

/* --------------------------------------------------------------------------
   Navigation & Dropdowns
   -------------------------------------------------------------------------- */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
  background: #f0f3ff;
  color: #0057cd;
}

/* Active Nav Link */
.nav-link-active {
  color: #0057cd !important;
  font-weight: 700 !important;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0057cd;
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   Mobile Menu Drawer
   -------------------------------------------------------------------------- */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Card Hovers & Animations
   -------------------------------------------------------------------------- */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 87, 205, 0.12);
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

header.scrolled {
  box-shadow: 0 4px 20px -4px rgba(30, 41, 59, 0.12);
}

/* --------------------------------------------------------------------------
   Accordions (FAQ & Criteria)
   -------------------------------------------------------------------------- */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.accordion-body.open {
  max-height: 800px;
}

.accordion-btn[aria-expanded="true"] .acc-icon {
  transform: rotate(180deg);
}

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

/* --------------------------------------------------------------------------
   Timeline & Connectors
   -------------------------------------------------------------------------- */
.timeline-line {
  position: relative;
}

.timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0057cd22 0%, #0057cd55 40%, #0057cd22 100%);
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .timeline-line::before {
    left: 24px;
  }
}

.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: #c2c6d8;
  z-index: 0;
}

@media (max-width: 1023px) {
  .step-connector::after {
    display: none;
  }
}
