/* CSS Variables - Color System */
:root {
    /* Color Variables - New Palette */
    --bg: #F5F5F5; /* off-white background */
    --header: #D9D9D9; /* light gray for headers */
    --description: #58585A; /* dark gray for descriptions */
    --text: #141414; /* black for main text */
    --card: #141414; /* dark */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

main {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-script {
    font-family: 'Anton', cursive;
    font-size: 2rem;
    font-weight: 500;
    color: var(--card);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 45px;
    width: auto;
}

.nav-logo .logo-script {
    font-family: 'Anton', cursive;
    font-size: 2rem;
    font-weight: 500;
    color: var(--card);
}


.nav-logo-link {
    text-decoration: none;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 6px; 
}


    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--card);

        transform: scaleX(0); 
        transform-origin: center; 
        transition: transform 0.3s ease-out; 
    }


    .nav-link:hover {
        color: var(--card);
    }

        .nav-link:hover::after {
            transform: scaleX(1);
        }


.nav-link-active {
    color: var(--card) !important;
    font-weight: 700;
}


    .nav-link-active::after {
        transform: scaleX(1);
    }

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: var(--card);
    }

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--card);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 2rem 0;
    min-height: 70vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}


.hero-image {
    position: relative;
    width: 100%;
    /*height: 400px;*/
    aspect-ratio: 3 / 2;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.hero-slides-container {
    display: flex;
    height: 100%;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.hero-image .slider-btn {
    z-index: 10;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 37, 58, 0.7); 
    color: #FFFFFF; 
    font-size: 1.8rem; 
    font-weight: bold; 
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .slider-btn:hover {
        background-color: var(--card); 
        color: #FFFFFF; 
    }

.hero-dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center; 
    gap: 8px; 

    background-color: rgba(30, 37, 58, 0.7);
    padding: 8px 12px; 
    border-radius: 20px; 

    z-index: 10;
}


.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); 
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}
    .hero-dot.active {
        background-color: #FFFFFF;
        width: 24px; 
        border-radius: 10px; 
    }


.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.brand-name {
    font-family: 'Anton', cursive;
    font-weight: 500;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--description);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--card);
    color: var(--bg);
}

    .btn-primary:hover {
        background-color: var(--card);
        transform: translateY(-2px);
    }

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--card);
}

    .btn-secondary:hover {
        background-color: var(--card);
        color: var(--bg);
        transform: translateY(-2px);
    }

/* Sections */
section {
    padding: 6rem 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
}

/* Product Stories */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .story-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }

    .story-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

.story-content {
    padding: 1.5rem;
}

    .story-content h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--text);
    }

    .story-content p {
        color: var(--description);
        margin-bottom: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 4.8rem; /* approximate height for 3 lines of text to ensure alignment */
    }

.read-more-btn {
    background-color: var(--card);
    color: var(--bg);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .read-more-btn:hover {
        background-color: var(--card);
        color: var(--bg);
        transform: translateY(-2px);
    }

/* Products Slider */
.products {
    background-color: var(--header);
}

.products-slider {
    position: relative;
    overflow: hidden;
}

.products-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    transition: transform 0.3s ease;
    overflow: auto;
}

.product-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 8px;
}


    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }


.product-info {
    padding-top: 1.2rem; 
    text-align: center;
}

.product-card h3 {
    /* padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600; */
    color: var(--text);
    margin-bottom: 0.25rem;
}

.product-image-wrapper {
    position: relative;
    padding: 20px;
    overflow: hidden;
    border-radius: 15px;
 background-color: hsl(0 0% 96% / 1);
}


    .product-image-wrapper img {
        width: 100%;
        height: 200px;
        object-fit: contain; /* !! الأهم: لعرض التيشيرت كاملاً !! */
        display: block;
        transition: transform 0.3s ease;
        /* !! إضافة: بادنج "داخل" الإطار الرمادي !! */
        padding: 10px;
    }

    .product-image-wrapper:hover img {
        transform: scale(1.05);
    }

.price {
    font-size: 1rem; 
    font-weight: 550;
    color: var(--description);
    /* padding-bottom: 1rem;*/
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Family Section */
.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.family-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .family-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    }

    .family-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

.family-content {
    padding: 1.5rem;
}

    .family-content h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: var(--text);
    }

    .family-content p {
        color: var(--description);
        margin-bottom: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 4.8rem;
    }

.learn-more-btn {
    background-color: var(--card);
    color: var(--bg);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .learn-more-btn:hover {
        background-color: var(--card);
        transform: translateY(-2px);
    }

/* Footer */
.footer {
    background-color: var(--card);
    color: var(--bg);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: 'Anton', cursive;
}

.footer-section h3 {
    font-size: 2rem;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

        .footer-section ul li a {
            color: var(--bg);
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: var(--header);
            }

.social-links {
    display: flex;
    gap: 1rem;
}

    .social-links a {
        font-size: 1.5rem;
        text-decoration: none;
        transition: all 0.3s ease;
        color: var(--bg);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
    }

        .social-links a:hover {
            transform: scale(1.05);
            color: var(--header);
            background-color: rgba(255, 255, 255, 0.2);
        }

.footer-bottom {
    border-top: 1px solid var(--description);
    padding-top: 1rem;
    text-align: center;
    color: var(--bg);
}

    .footer-bottom a {
        color: var(--header);
        text-decoration: underline;
        transition: color 0.3s ease;
    }

        .footer-bottom a:hover {
            color: var(--bg);
        }

.fa-location-icon {
    color: var(--card) !important;
    font-size: 1.2em;
    vertical-align: middle;
    margin-right: 0.5em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

        .nav-menu.active {
            left: 0;
        }

    .nav-toggle {
        display: flex;
    }

        .nav-toggle.active .bar:nth-child(2) {
            opacity: 0;
        }

        .nav-toggle.active .bar:nth-child(1) {
            transform: translateY(8.5px) rotate(45deg);
        }

        .nav-toggle.active .bar:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    h2 {
        font-size: 2rem;
    }

    .stories-grid,
    .family-grid {
        grid-template-columns: 1fr;
    }

    .products-container {
        padding-left: 1rem;
    }

    .slider-btn {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1rem;
    }
}
