/* Responsive CSS Styles */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    #hero-banner-bg{
        padding-bottom: 0;
    }
    .hero-banner {
        min-height: auto;
        padding-bottom: 2rem;
        background-position: center center;
        background-size: cover;
    }
    
    .hero-content {
        padding: 1rem 0 2rem 0;
        position: relative;
        z-index: 2;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem;
    }
    
    .hero-text {
        margin-bottom: 1.5rem;
        text-align: left;
        margin-top: 1rem;
    }
    
    .fsa-eligible {
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }
    
    .hero-content .row {
        flex-direction: column;
    }
    
    .hero-content .col-lg-8,
    .hero-content .col-lg-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .hero-cta-wrapper {
        padding-top: 0;
        justify-content: flex-start;
        margin-bottom: 2rem;
        order: 3;
    }
    
    .btn-hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: auto;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background-color: #ffffff !important;
        color: #000000 !important;
        border: none !important;
    }
    
    .product-cards {
        margin-top: 2rem;
    }
    
    .product-cards .row {
        flex-direction: column;
    }
    
    .product-cards .col-md-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .product-card {
        padding: 1.25rem;
        flex-direction: row !important;
        text-align: left;
        align-items: center !important;
        width: 100%;
    }
    
    .product-card-content {
        margin-bottom: 1rem;
    }
    
    .product-arrow {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .trust-logos {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    /* Slider mobile styles - only affects mobile */
    .trust-badges {
        padding: 2rem 0;
    }
    
    .trust-badges .container-fluid {
        padding: 0 1rem;
    }
    
    .trust-logos-carousel.owl-hidden {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .trust-logos-carousel {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .trust-logos-carousel .owl-stage-outer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .trust-logos-carousel .owl-stage {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .trust-logos-carousel .owl-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .trust-logos-carousel .owl-item .item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
    }
    
    .trust-logo {
        max-height: 30px !important;
        max-width: 100px !important;
        height: auto !important;
        width: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 0.6 !important;
        min-width: 60px;
        min-height: 20px;
    }
    
    .hero-banner .navbar {
        padding: 0.75rem 0;
        min-height: 60px;
        display: flex;
        align-items: center;
    }
    
    .hero-banner .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-banner .navbar-brand {
        margin-right: 0;
        display: flex;
        align-items: center;
    }
    
    .navbar-logo {
        height: 32px;
    }
    
    .navbar-btn {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .navbar-toggler {
        border: none !important;
        border-radius: 4px;
        padding: 0.25rem 0.5rem;
        background: transparent;
        margin-left: 0.5rem;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Mobile Sidebar Styles */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-sidebar.active {
        visibility: visible;
        opacity: 1;
    }
    
    .mobile-sidebar-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }
    
    .mobile-sidebar-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        background-color: #ffffff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        z-index: 1;
    }
    
    .mobile-sidebar.active .mobile-sidebar-content {
        transform: translateX(0);
    }
    
    .mobile-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .mobile-sidebar-logo {
        height: 35px;
        width: auto;
    }
    
    .mobile-sidebar-close {
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: #171717;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: background-color 0.2s;
    }
    
    .mobile-sidebar-close:hover {
        background-color: #f8f9fa;
    }
    
    .mobile-sidebar-nav {
        list-style: none;
        padding: 1rem 0;
        margin: 0;
        flex: 1;
        overflow-y: auto;
    }
    
    .mobile-nav-item {
        border-bottom: 1px solid #f1f1f1;
    }
    
    .mobile-nav-link {
        display: block;
        padding: 1rem 1.5rem;
        color: #171717;
        text-decoration: none;
        font-family: 'Manrope', sans-serif;
        font-weight: 500;
        font-size: 1rem;
        transition: background-color 0.2s, color 0.2s;
    }
    
    .mobile-nav-link:hover {
        background-color: #f8f9fa;
        color: var(--primary-color);
    }
    
    .mobile-sidebar-footer {
        padding: 1.5rem;
        border-top: 1px solid #e9ecef;
    }
    
    .btn-mobile-cta {
        width: 100%;
        background-color: var(--primary-color);
        color: #ffffff;
        border: none;
        padding: 0.875rem 1.5rem;
        border-radius: 40px;
        font-family: 'Manrope', sans-serif;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        transition: all 0.3s;
    }
    
    .btn-mobile-cta:hover {
        background-color: var(--velvet-dark-red);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(125, 31, 30, 0.3);
    }
    
    .btn-mobile-cta i {
        font-size: 0.875rem;
    }
    
    /* Remove borders from header Get Started button on mobile */
    .btn-get-started {
        border: none !important;
        background: var(--primary-color) !important;
    }
    
    .btn-get-started i {
        border: none !important;
        background: transparent !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
    
    .hero-content {
        padding: 2.5rem 0;
    }
    
    .product-card {
        padding: 1.25rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 3.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .product-cards .row {
        margin-top: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 3.8rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 4rem;
    }
}

/* BMI Calculator Section Responsive */
@media (max-width: 991.98px) {
    .bmi-calculator-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .support-section {
        margin-bottom: 2rem;
    }
    
    .goal-bg-wrapper {
        min-height: 400px;
        position: relative;
        display: block;
    }
    
    .goal-bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .support-features {
        position: absolute !important;
        left: 1.5rem !important;
        bottom: 1.5rem !important;
        top: auto !important;
        transform: none !important;
        padding: 0 !important;
        align-items: flex-start;
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        z-index: 2;
    }
    
    .feature-badge {
        width: auto;
        display: flex !important;
    }
    
    .bmi-calculator,
    .weight-loss-goal {
        margin-bottom: 2rem;
    }
}

