/* Force menu toggle visibility */
.menu-toggle {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: auto !important;
    display: none !important; /* Hide by default on desktop */
}

.hamburger-line {
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    background-color: #333 !important;
    width: 100% !important;
    height: 3px !important;
    min-height: 3px !important;
}

/* Mobile menu fixes */
@media (max-width: 1120px) {
    .menu-toggle {
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        height: 40px;
        width: 40px;
        padding: 8px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2500;
        position: relative;
        order: 3;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 10px;
        outline: none;
    }
    
    .hamburger-line {
        display: block !important;
        visibility: visible !important;
        width: 28px;
        height: 3px;
        margin: 3px 0;
        background-color: #333 !important;
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
        opacity: 1 !important;
        border-radius: 2px;
    }
    
    [data-theme="dark"] .hamburger-line {
        background-color: #FBBA00 !important;
    }
    
    .menu-toggle.active .hamburger-line:nth-child(1) {
        -webkit-transform: translateY(8px) rotate(45deg);
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0 !important;
    }
    
    .menu-toggle.active .hamburger-line:nth-child(3) {
        -webkit-transform: translateY(-8px) rotate(-45deg);
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Override the header-controls positioning */
    .header-controls {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 1900 !important;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .nav {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    
    .logo {
        margin-right: 0;
        -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
    }
    
    .right-section {
        -webkit-order: 2;
        -ms-flex-order: 2;
        order: 2;
        -webkit-flex: 0 1 auto;
        -ms-flex: 0 1 auto;
        flex: 0 1 auto;
        margin-right: 10px;
    }
}

/* Footer Shell logo fix for mobile */
@media (max-width: 768px) {
    .shell-brand {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .shell-distributor-logo {
        width: 100%;
        max-width: 250px;
        height: auto;
        object-fit: contain;
    }
    
    /* Make product and service cards display one per row */
    .product-grid,
    .service-grid {
        grid-template-columns: 1fr !important;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Add more space between cards */
    .product-card,
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Ensure product image has proper spacing */
    .product-image {
        height: 200px;
    }
    
    /* Fix team carousel for mobile */
    .team-section {
        padding: 3rem 0 !important;
    }
    
    .carousel-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    .team-grid {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .team-card {
        width: 80% !important; 
        max-width: 280px !important;
        margin: 0 auto !important;
        transform: scale(1) !important;
    }
    
    .team-carousel {
        position: relative !important;
        padding: 0 50px !important;
    }
    
    .carousel-arrow {
        top: 40% !important;
    }
    
    .carousel-arrow.prev {
        left: 10px !important;
    }
    
    .carousel-arrow.next {
        right: 10px !important;
    }
    
    /* Adjust member image for better display */
    .member-image-wrapper {
        max-width: 250px !important;
        margin: 0 auto 1rem !important;
    }
    
    .member-image {
        padding-bottom: 100% !important;
    }
    
    .member-info {
        text-align: center !important;
        padding: 0.5rem !important;
    }
}

/* Fix for very small mobile screens */
@media (max-width: 480px) {
    .hamburger-line {
        width: 24px;
        height: 2px;
        margin: 4px 0;
    }
    
    .menu-toggle {
        padding: 6px;
        width: 36px;
        height: 36px;
    }
    
    .shell-distributor-logo {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    /* Further improve team section for very small screens */
    .team-carousel {
        padding: 0 40px !important;
    }
    
    .team-card {
        width: 90% !important;
        max-width: 240px !important;
    }
    
    .carousel-arrow {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
    
    .carousel-arrow.prev {
        left: 5px !important;
    }
    
    .carousel-arrow.next {
        right: 5px !important;
    }
    
    .member-image-wrapper {
        max-width: 220px !important;
    }
    
    .member-info h3 {
        font-size: 1.1rem !important;
    }
    
    .member-info .position {
        font-size: 0.8rem !important;
    }
} 