/* 
* La Tienda de Don Goyo - Home Page Styles
* Refined styles for the main homepage
*/

/* Section Spacing */
.hero {
    margin-bottom: 6rem; /* Add space after hero section */
}

.about-intro {
    padding-top: 5rem;
    padding-bottom: 7rem;
    margin-bottom: 6rem; /* Add clear separation between sections */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Subtle divider */
}

.featured-products {
    padding-top: 5rem;
    padding-bottom: 7rem;
    background-color: var(--section-bg);
    margin-bottom: 6rem; /* Add clear separation between sections */
}

.product-categories {
    margin-top: 3rem;
}

.product-categories h3 {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    font-size: 2.8rem;
}

.product-categories h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
}

.testimonials {
    padding-top: 5rem;
    padding-bottom: 7rem;
    margin-bottom: 6rem; /* Add clear separation between sections */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Subtle divider */
}

.visit-contact {
    padding-top: 5rem;
    padding-bottom: 7rem;
    background-color: var(--section-bg);
    margin-bottom: 6rem; /* Add space before footer */
}

/* Features Cards Section */
.features-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: 2px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 2.2rem;
}

.feature-card p {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    color: var(--text-light);
}

.feature-card .btn-secondary {
    margin-top: auto;
}

/* Featured Products Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

.featured-card {
    background-color: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.featured-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.featured-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-card h4 {
    padding: var(--spacing-sm) var(--spacing-sm) 0;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
    color: var(--dark-color);
}

.featured-card p {
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    font-size: 1.4rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* View More Button */
.view-more {
    text-align: center;
    margin-top: 4rem;
}

/* Visit Contact Section */
.visit-contact {
    padding-top: 5rem;
    padding-bottom: 7rem;
    background-color: var(--section-bg);
    margin-bottom: 6rem; /* Add space before footer */
}

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

.contact-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: 2px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 2.6rem;
    color: var(--dark-color);
}

.contact-card p {
    margin-bottom: var(--spacing-md);
    font-size: 1.6rem;
    color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .features-cards,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        margin-bottom: 4rem;
    }
    
    .about-intro,
    .featured-products,
    .testimonials,
    .visit-contact {
        padding-top: 4rem;
        padding-bottom: 5rem;
        margin-bottom: 4rem;
    }
    
    .features-cards {
        margin-top: 3rem;
    }
    
    .featured-grid {
        margin-top: 3rem;
        margin-bottom: 4rem;
    }
    
    .view-more {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .features-cards,
    .featured-grid {
        grid-template-columns: 1fr;
    }
}
