/* ==========================================================================
   FREE SUGAR PRO GLOBAL VARIABLES & TYPOGRAPHY
   ========================================================================== */
/* Using Poppins font for a very modern, clean, and medical supplement brand feel */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700;900&display=swap');

:root {
  /* Colors accurately derived from the Free Sugar Pro product label */
  --brand-blue: #63a8c7;      /* Light Blue from the label background */
  --brand-blue-dark: #2a7293; /* Darker Blue for highly readable text and UI borders */
  --brand-red: #d93a3a;       /* Vibrant Red from the "PRO" text and swoosh */
  --brand-red-hover: #b82d2d; /* Darker Red for button hover states */
  --brand-green: #4caf50;     /* Natural Green representing the leaves in the background */
  
  --text-dark: #222222;
  --text-muted: #555555;
  --light-bg: #f8f9fa;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   COLOR OVERRIDES FOR HTML CLASSES (Matching Product Theme)
   ========================================================================== */

/* Overriding Bootstrap's default Success to match the Brand's Blue identity */
.text-success { color: var(--brand-blue-dark) !important; }
.bg-success { background-color: var(--brand-blue-dark) !important; color: #ffffff !important; }
.border-success { border-color: var(--brand-blue-dark) !important; }

/* Overriding Bootstrap's default Warning to create high-converting Red CTA Buttons */
.btn-warning {
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-warning:hover {
  background-color: var(--brand-red-hover) !important;
  border-color: var(--brand-red-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 58, 58, 0.4) !important;
  color: #ffffff !important;
}

.bg-warning { background-color: var(--brand-red) !important; color: #ffffff !important; }

/* Primary class overrides for secondary elements */
.text-primary { color: var(--brand-blue-dark) !important; }
.bg-primary { background-color: var(--brand-blue-dark) !important; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  transition: all 0.3s ease-in-out;
  border-bottom: 1px solid #eeeeee;
}

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--brand-blue-dark) !important;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--brand-blue-dark);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   CUSTOM COMPONENT STYLES & ANIMATIONS
   ========================================================================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Pulse Animation for Best Value Button in Pricing Section */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 58, 58, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(217, 58, 58, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 58, 58, 0); }
}

/* Pricing Cards Interaction */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

/* FAQ Accordion Styling overrides */
.accordion-button:not(.collapsed) {
  background-color: rgba(99, 168, 199, 0.1);
  color: var(--brand-blue-dark) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,0.125);
}

/* ==========================================================================
   MOBILE SIDEBAR (OFFCANVAS CUSTOM)
   ========================================================================== */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--brand-blue-dark);
  padding: 30px 20px;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1050;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0,0,0,0.2);
}

.mobile-sidebar.open {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1040;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 40px;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.sidebar-nav a {
  transition: padding-left 0.3s ease, color 0.3s ease;
  color: #ffffff !important;
}

.sidebar-nav a:hover {
  padding-left: 10px;
  color: var(--brand-red) !important;
}

/* ==========================================================================
   RESPONSIVE TWEAKS (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 991px) {
  .display-5 { font-size: 2.5rem; }
  .display-6 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-section ul li {
    text-align: left; /* Keeps features bullet points easily readable on mobile */
  }
}