/*
Theme Name: Garments Quality Hub
Theme URI: https://garmentsqualityhub.com
Author: Garments Quality Hub Team
Description: Premium B2B theme for custom apparel manufacturing and quality control.
Version: 1.0.0
Text Domain: cc-theme
*/

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #4f46e5;
    font-size: 24px;
    font-weight: 800;
}

.custom-logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-slogan {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    color: #4f46e5;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

/* Dropdown Menu Styles */
nav ul li {
    position: relative;
}

nav ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 100;
    list-style: none;
    display: block;
}

nav ul li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Styles */
.mega-menu-parent {
    position: static !important;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 0 0 24px 24px;
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 100;
}

.mega-menu-parent:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.mega-menu-column h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1e293b;
    margin-bottom: 20px;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 10px;
}

.mega-menu-column ul li a {
    font-size: 13px;
    color: #64748b;
    padding: 0;
    font-weight: 500;
}

.mega-menu-column ul li a:hover {
    color: #4f46e5;
    background: transparent;
}

.promo-column {
    background: #f5f7ff;
    padding: 30px;
    border-radius: 20px;
}

.promo-box h4 {
    color: #4f46e5;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 10px;
}

.promo-box p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.promo-btn {
    display: inline-block;
    background: #4f46e5;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-transform: uppercase;
}

/* Header Layout */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

.nav-primary {
    display: flex;
    align-items: center;
}

.nav-primary ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: #1e293b;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-primary {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 1000;
        padding: 80px 40px;
        overflow-y: auto;
    }

    .nav-primary ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-primary ul li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-primary ul li a {
        padding: 15px 0;
        display: block;
        font-size: 16px;
    }

    .nav-primary ul.active {
        right: 0;
    }

    .nav-primary.active {
        right: 0;
    }

    /* Mobile Dropdowns */
    .menu-item-has-children .sub-menu,
    .mega-menu {
        position: static !important;
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 20px !important;
        width: 100% !important;
        background: #f8fafc !important;
    }

    .menu-item-has-children.open > .sub-menu,
    .menu-item-has-children.open > .mega-menu {
        display: block;
    }

    .mega-menu-content {
        display: block;
        padding: 20px 0;
    }

    .mega-menu-column {
        margin-bottom: 30px;
    }

    .header-actions {
        display: flex;
        gap: 10px;
        margin-top: 20px;
        width: 100%;
    }

    .header-actions .cc-btn {
        flex: 1;
        text-align: center;
        font-size: 14px;
        padding: 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    section div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

nav ul .sub-menu li {
    width: 100%;
}

nav ul .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: 0.2s;
}

nav ul .sub-menu a:hover {
    background: #f5f7ff;
    color: #4f46e5;
}

/* Nested Sub-menu */
nav ul .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
}

.menu-item-has-children > a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 10px;
}

.hero {
    padding: 120px 0;
    background: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.hero h1 span {
    color: #4f46e5;
}

footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.cc-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.cc-btn.primary {
    background: #4f46e5;
    color: #fff;
}

.cc-btn.primary:hover {
    background: #4338ca;
}
