﻿/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #ff6600;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

    a:hover {
        color: var(--secondary-color);
    }

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background-color: var(--secondary-color);
        color: var(--white);
        transform: translateY(-2px);
    }

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

/* Logo and Company Name */
.logo-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo {
    flex: 0 0 auto;
}

.company-name {
    margin-left: 15px;
}

    .company-name span {
        font-size: 20px;
        font-weight: 700;
        color: var(--primary-color);
        white-space: nowrap;
    }

/* Button-styled Main Navigation */
.main-nav {
    flex: 0 0 auto;
}

.logo-image {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

    .main-nav ul li {
        margin-left: 10px;
    }

        .main-nav ul li a {
            display: block;
            color: var(--dark-color);
            padding: 10px 15px;
            border-radius: 4px;
            font-weight: 600;
            transition: var(--transition);
        }

            .main-nav ul li a:hover {
                background-color: var(--primary-color);
                color: var(--white);
                transform: translateY(-2px);
            }

            .main-nav ul li a.active {
                background-color: var(--primary-color);
                color: var(--white);
                font-weight: 700;
                position: relative;
            }

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark-color);
}

.product-item img {
    object-fit: cover;
    padding: 10px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/b1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 60px;
}

    .hero h1 {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 20px;
        margin-bottom: 30px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

/* Quick Links */
.quick-links {
    padding: 60px 0;
    background-color: var(--light-color);
}

    .quick-links .container {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

.quick-link-item {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

    .quick-link-item:hover {
        transform: translateY(-10px);
    }

    .quick-link-item i {
        font-size: 40px;
        color: var(--primary-color);
        margin-bottom: 20px;
    }

    .quick-link-item h3 {
        margin-bottom: 15px;
    }

    .quick-link-item a {
        display: inline-block;
        margin-top: 15px;
        color: var(--primary-color);
        font-weight: 600;
    }

/* About Section */
.about-section {
    padding: 80px 0;
}

    .about-section .container {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

.about-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

    .about-image img {
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 120px 0 60px;
    margin-top: 60px;
}

    .page-banner h1 {
        font-size: 42px;
        margin-bottom: 15px;
    }

/* Button-styled Products Navigation - DESKTOP */
.products-nav {
    background-color: var(--light-color);
    padding: 20px 0;
    position: sticky;
    top: 85px;
    z-index: 999;
}

    .products-nav ul {
        display: flex;
        justify-content: center;
        list-style: none;
        flex-wrap: wrap;
    }

        .products-nav ul li {
            margin: 0 10px;
        }

            .products-nav ul li a {
                display: block;
                background-color: var(--white);
                color: var(--dark-color);
                padding: 10px 15px;
                border-radius: 4px;
                font-weight: 600;
                border: 1px solid #ddd;
                transition: var(--transition);
                box-shadow: var(--shadow);
            }

                .products-nav ul li a:hover {
                    background-color: var(--primary-color);
                    color: var(--white);
                    transform: translateY(-2px);
                }

                .products-nav ul li a.active {
                    background-color: var(--primary-color);
                    color: var(--white);
                    font-weight: 700;
                    transform: scale(1.05);
                }

/* Product Categories */
.product-category {
    padding: 100px 0;
}

    .product-category h2 {
        text-align: center;
        margin-bottom: 40px;
        font-size: 32px;
        color: var(--secondary-color);
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

    .product-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

    .product-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .product-item h3 {
        padding: 15px;
        font-size: 18px;
    }

    .product-item p {
        padding: 0 15px 15px;
        color: var(--text-light);
    }

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

    .partner-item img {
        max-height: 80px;
        margin-bottom: 20px;
    }

/* Supplier Logos */
.supplier-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.logo-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

    .logo-item img {
        max-height: 60px;
        max-width: 100%;
    }

.supplier-item img {
    max-height: 60px;
    max-width: 100%;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

    .contact-section .container {
        display: flex;
        flex-wrap: wrap;
    }

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

    .contact-info h2 {
        margin-bottom: 20px;
        color: var(--secondary-color);
    }

    .contact-info p {
        margin-bottom: 15px;
    }

    .contact-info i {
        color: var(--primary-color);
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

    .contact-form h2 {
        margin-bottom: 20px;
        color: var(--secondary-color);
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: inherit;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 150px;
    }

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Contact Addresses */
.contact-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.address-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

    .address-item h3 {
        color: var(--secondary-color);
        margin-bottom: 15px;
    }

    .address-item p {
        margin-bottom: 8px;
    }

/* Map Section */
.map-section {
    padding: 0 0 60px;
}

    .map-section h2 {
        text-align: center;
        margin-bottom: 30px;
        color: var(--secondary-color);
    }

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

    footer .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 40px;
    padding: 0 20px;
}

    .footer-col h3 {
        color: var(--white);
        margin-bottom: 20px;
        font-size: 20px;
    }

    .footer-col ul {
        list-style: none;
    }

        .footer-col ul li {
            margin-bottom: 10px;
        }

            .footer-col ul li a {
                color: #adb5bd;
            }

                .footer-col ul li a:hover {
                    color: var(--white);
                }

.copyright {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: #adb5bd;
}

/* Featured Suppliers Section */
.featured-suppliers {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.supplier-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .supplier-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.supplier-logo-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.supplier-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.supplier-content {
    padding: 1.5rem;
}

    .supplier-content h3 {
        color: var(--secondary-color);
        margin-bottom: 1rem;
        font-size: 1.4rem;
    }

.supplier-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.learn-more-btn {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

    .learn-more-btn:hover {
        color: var(--secondary-color);
    }

/* Company Profile */
.company-profile {
    padding: 80px 0;
}

    .company-profile h2 {
        margin-bottom: 20px;
        color: var(--secondary-color);
    }

    .company-profile h3 {
        margin: 30px 0 15px;
        color: var(--primary-color);
    }

    .company-profile p {
        margin-bottom: 15px;
        line-height: 1.8;
    }

/* Service Commitment */
.service-commitment {
    padding: 60px 0;
    background-color: var(--light-color);
}

    .service-commitment h2 {
        text-align: center;
        margin-bottom: 30px;
        color: var(--secondary-color);
    }

    .service-commitment p {
        margin-bottom: 20px;
        line-height: 1.8;
        text-align: center;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

/* ============================================ */
/* MOBILE RESPONSIVE STYLES */
/* ============================================ */

/* Mobile-first approach for all devices below 992px */
@media (max-width: 992px) {
    .logo-container {
        flex: 0 0 auto;
    }

    .company-name span {
        font-size: 16px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        z-index: 1001;
    }

        .main-nav.active {
            display: block;
        }

        .main-nav ul {
            flex-direction: column;
            padding: 20px;
        }

            .main-nav ul li {
                margin: 5px 0;
            }

    .mobile-menu-btn {
        display: block;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .supplier-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .quick-link-item {
        min-width: 200px;
    }

    /* PRODUCTS NAVIGATION MOBILE STYLES */
    .products-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
        padding: 25px 0 20px;
        z-index: 1100;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }

        .products-nav.active {
            transform: translateY(0);
        }

        .products-nav ul {
            flex-direction: column;
            max-height: 60vh;
            overflow-y: auto;
            padding: 10px 25px;
            margin: 0;
        }

            .products-nav ul li {
                margin: 10px 0;
                width: 100%;
            }

                .products-nav ul li a {
                    display: block;
                    width: 100%;
                    text-align: left;
                    padding: 16px 20px;
                    border: 2px solid #f0f0f0;
                    border-radius: 10px;
                    font-size: 16px;
                    font-weight: 600;
                    transition: all 0.3s ease;
                    background-color: var(--light-color);
                }

                    .products-nav ul li a:hover,
                    .products-nav ul li a.active {
                        background-color: var(--primary-color);
                        color: var(--white);
                        transform: translateX(8px);
                        border-color: var(--primary-color);
                    }

    /* Products Navigation Toggle Button */
    .products-nav-toggle {
        position: fixed;
        bottom: 25px;
        right: 25px;
        background-color: var(--primary-color);
        color: var(--white);
        width: 65px;
        height: 65px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 25px rgba(0, 86, 179, 0.5);
        z-index: 1101;
        border: none;
        font-size: 26px;
        transition: all 0.3s ease;
    }

        .products-nav-toggle:hover {
            background-color: var(--secondary-color);
            transform: scale(1.1);
        }

    /* Products Navigation Overlay */
    .products-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1099;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

        .products-nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }

    /* Adjust content padding for mobile */
    .product-category {
        padding-bottom: 100px;
    }
}

/* Mobile Landscape Specific Adjustments */
@media (max-width: 992px) and (orientation: landscape) {
    .products-nav ul {
        max-height: 50vh;
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 12px;
    }

        .products-nav ul li {
            margin: 0;
        }

    .products-nav-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .product-category {
        padding-bottom: 80px;
    }
}

/* Small mobile devices */
@media (max-width: 768px) {
    .company-name span {
        font-size: 14px;
    }

    .hero {
        padding: 150px 0 80px;
    }

        .hero h1 {
            font-size: 28px;
        }

        .hero p {
            font-size: 16px;
        }

    .btn {
        padding: 8px 16px;
    }

    .page-banner h1 {
        font-size: 32px;
    }

    .product-category h2 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .company-name span {
        font-size: 14px;
    }

    .products-nav {
        padding: 20px 0 15px;
        border-radius: 15px 15px 0 0;
    }

        .products-nav ul {
            padding: 10px 20px;
        }

            .products-nav ul li a {
                padding: 14px 18px;
                font-size: 15px;
            }

    .products-nav-toggle {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Desktop styles - ensure products nav works normally */
@media (min-width: 993px) {
    .products-nav-toggle,
    .products-nav-overlay {
        display: none !important;
    }
}

/* ============================================ */
/* GUARANTEED PRODUCTS NAVIGATION FIX */
/* ============================================ */

/* Mobile Products Navigation - SIMPLE VERSION */
.mobile-products-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0056b3;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.5);
    align-items: center;
    justify-content: center;
}

.mobile-products-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 25px 0;
    z-index: 9999;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
}

    .mobile-products-nav.active {
        display: block;
        animation: slideUp 0.3s ease;
    }

    .mobile-products-nav ul {
        list-style: none;
        padding: 0 25px;
        margin: 0;
    }

    .mobile-products-nav li {
        margin: 10px 0;
    }

    .mobile-products-nav a {
        display: block;
        padding: 15px 20px;
        background: #f8f9fa;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        text-decoration: none;
        color: #333;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .mobile-products-nav a:hover,
        .mobile-products-nav a.active {
            background: #0056b3;
            color: white;
            border-color: #0056b3;
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
        }

        /* Active state styles for all navigation */
        .products-nav a.active,
        .mobile-products-nav a.active {
            background-color: var(--primary-color) !important;
            color: var(--white) !important;
            border-color: var(--primary-color) !important;
            transform: translateX(5px) !important;
            box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3) !important;
        }

        /* Hover states */
        .products-nav a:hover,
        .mobile-products-nav a:hover {
            background-color: var(--secondary-color) !important;
            color: var(--white) !important;
            border-color: var(--secondary-color) !important;
            transform: translateX(3px) !important;
        }

/* Ensure desktop navigation active states work */
@media (min-width: 993px) {
    .products-nav a.active {
        transform: scale(1.05) !important;
    }
}

/* Mobile specific active states */
@media (max-width: 992px) {
    .mobile-products-nav a.active {
        position: relative;
    }

        .mobile-products-nav a.active::after {
            content: '✓';
            position: absolute;
            right: 15px;
            color: var(--white);
            font-weight: bold;
        }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Show on mobile only */
@media (max-width: 992px) {
    .mobile-products-toggle {
        display: flex;
    }

    /* Hide the original products nav on mobile */
    .products-nav {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 993px) {
    .mobile-products-toggle,
    .mobile-products-nav {
        display: none !important;
    }

    /* Show the original products nav on desktop */
    .products-nav {
        display: block !important;
    }
}

/* Landscape adjustments */
@media (max-width: 992px) and (orientation: landscape) {
    .mobile-products-nav {
        max-height: 60vh;
    }

        .mobile-products-nav ul {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
}
