/* Styles for the Homepage (index.html) */

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 500px;
    background-color: var(--white);
    overflow: hidden;
}

.hero-content {
    padding: 4rem 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Featured Products */
.featured-products {
    padding: 4rem 0;
}

.featured-products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
    display: block; /* Ensure it behaves like a block-level element */
    text-decoration: none; /* Remove underline from the link */
    color: var(--text-color); /* Inherit default text color */
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.featured-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-item h3 {
    padding: 1rem 1rem 0.5rem;
    color: var(--primary-color);
}

.featured-item p {
    padding: 0 1rem;
    color: #666;
}

.product-link {
    display: inline-block;
    margin: 1rem 0 1.5rem;
    color: var(--logo-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.featured-item:hover .product-link {
    color: var(--primary-color);
}

/* About Preview */
.about-preview {
    padding: 4rem 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #666;
}

.text-link {
    color: var(--logo-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--primary-color);
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.about-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-img-1 {
    transform: translateY(-20px);
}

/* Gallery Section */
.gallery-showcase {
    padding: 4rem 0;
}

.gallery-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.gallery-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 3rem 1rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        height: 300px;
        margin: 1rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
