/* ==========================================================================
   GLUCOSWITCH OFFICIAL LANDING PAGE STYLESHEET
   Theme: Medical Trust Blue (Brand Logo/Bottle) & Action Orange (Buttons)
   Font: Jost (Modern, clean, and highly readable)
   ========================================================================== */

/* -----------------------------------------
   1. GOOGLE FONTS & ROOT VARIABLES
   ----------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Jost:100,200,300,400,500,600,700,800,900,100i,200i,300i,400i,500i,600i,700i,800i,900i&display=swap');

:root {
    /* Core Brand Colors (Extracted from Glucoswitch Bottle) */
    --brand-blue: #2A75B3;          /* Main Glucoswitch Blue */
    --brand-blue-hover: #1E5B8E;    /* Darker Blue for hover states */
    --brand-light-blue: #F0F8FF;    /* Alice Blue for soft section backgrounds */
    
    /* High-Converting Accent Colors for Direct Response */
    --brand-accent: #FF8C00;        /* Vibrant Action Orange for CTA Buttons */
    --brand-accent-hover: #E07B00;  /* Darker Orange for Button Hovers */
    
    /* Typography & Structural Colors */
    --brand-dark: #212529;          /* Deep gray text for high readability */
    --brand-light: #F8F9FA;         /* Standard light background */
    --white: #FFFFFF;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--brand-dark);
    background-color: var(--brand-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------
   2. BOOTSTRAP OVERRIDES (BRAND MATCHING)
   ----------------------------------------- */
/* We are overriding the default Bootstrap 'success' classes to utilize 
   our new Glucoswitch Blue. This prevents needing to rewrite the entire HTML.
*/
.text-success {
    color: var(--brand-blue) !important;
}
.bg-success {
    background-color: var(--brand-blue) !important;
}
.border-success {
    border-color: var(--brand-blue) !important;
}

/* Turn 'Warning' buttons into the Brand's High-Converting Action Orange */
.btn-warning {
    background-color: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
    color: var(--white) !important;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
}
.btn-warning:hover {
    background-color: var(--brand-accent-hover) !important;
    border-color: var(--brand-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 140, 0, 0.3) !important;
}

/* Outline button matching the brand blue */
.btn-outline-success {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    border-width: 2px;
    background-color: transparent;
}
.btn-outline-success:hover {
    background-color: var(--brand-blue);
    color: var(--white);
}

/* Brand Logo Styling */
.logo h2 {
    color: var(--brand-blue) !important;
    letter-spacing: -1px;
}

/* -----------------------------------------
   3. HEADER & DESKTOP NAVIGATION
   ----------------------------------------- */
.header {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--brand-blue);
    z-index: 1050;
}
.nav-links a {
    transition: color 0.3s ease;
    font-size: 16px;
    position: relative;
}
.nav-links a:hover {
    color: var(--brand-blue) !important;
}

/* -----------------------------------------
   4. MOBILE SIDEBAR MENU
   ----------------------------------------- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden by default */
    width: 280px;
    height: 100vh;
    background-color: var(--brand-blue);
    z-index: 1060;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 20px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
}
.mobile-sidebar.open {
    right: 0; /* Slides into view */
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover {
    color: var(--brand-accent);
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1055;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* -----------------------------------------
   5. CUSTOM UTILITIES & ANIMATIONS
   ----------------------------------------- */
/* Smooth Hover Lift Effect for Cards & Images */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

/* Custom Drop Shadow specifically for transparent PNG/WEBP Images */
.drop-shadow {
    filter: drop-shadow(0px 12px 18px rgba(0,0,0,0.15));
}

/* Pulse Animation for Primary CTA Buttons (Draws the eye to the buy button) */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(255, 140, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

/* -----------------------------------------
   6. SECTION SPECIFIC STYLES
   ----------------------------------------- */
/* Hero Section Enhancements */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--brand-light-blue) 100%);
    position: relative;
    overflow: hidden;
}

/* Numbered Circles in the Ingredients Layout */
.ingredients-section .rounded-circle {
    box-shadow: 0 6px 12px rgba(42, 117, 179, 0.25);
}

/* Guarantee Section Styling */
.guarantee-section .bg-light {
    border-color: var(--brand-blue) !important;
}
.guarantee-section .col-md-4 {
    background-color: var(--brand-light-blue) !important;
}

/* Certification Section Background Override */
#commitment {
    background-color: var(--brand-light-blue) !important;
}

/* Accordion Customization for the FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: var(--brand-light-blue);
    color: var(--brand-blue);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}
.accordion-button::after {
    filter: contrast(0.5); /* Softens the default bootstrap caret icon */
}

/* Global Heading Weights */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* -----------------------------------------
   7. RESPONSIVE DESIGN TWEAKS
   ----------------------------------------- */
/* Large Devices (Tablets/Laptops) */
@media (max-width: 991px) {
    .display-5 { font-size: 2.5rem; }
    .display-6 { font-size: 2rem; }
    
    .hero-section { text-align: center; }
    .hero-section ul { 
        text-align: left; 
        display: inline-block; 
        margin: 0 auto;
    }
    .hero-section .d-flex.flex-sm-row { 
        justify-content: center; 
    }
}

/* Small Devices (Mobile Phones) */
@media (max-width: 768px) {
    .display-5 { font-size: 2.2rem; }
    .display-6 { font-size: 1.8rem; }
    
    /* Ensure pricing cards stack with proper spacing */
    .pricing-section [class*="col-"] { margin-bottom: 25px; }
    
    /* Remove scale from the 'Best Value' card on mobile to prevent overflow */
    .pricing-section .shadow-lg { 
        transform: scale(1) !important; 
        z-index: 1; 
    }
    
    .footer-section .d-flex {
        flex-direction: column;
        gap: 15px;
    }
}