/* ==========================================
   Index Page Specific Styles
   ========================================== */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide picture,
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.active {
    background: white;
}

/* About Section */
.about-section {
    background: #f8f9fa;
}

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

.about-content {
    padding-right: 20px;
}

.about-text {
    margin: 24px 0;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 16px;
}

.about-image {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-image picture,
.about-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Products Section */
.products-section {
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.products-content {
    padding-right: 20px;
}

.products-text {
    margin: 24px 0;
    line-height: 1.8;
}

.products-text p {
    margin-bottom: 16px;
}

.products-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.products-showcase {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.products-swiper {
    width: 100%;
}

.showcase-item {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #fff;
}

.showcase-item picture,
.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.showcase-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.showcase-desc {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Production Section */
.production-section {
    background: #f8f9fa;
}

.production-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.production-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.production-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.production-item picture,
.production-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

/* Product Categories Section */
.product-categories-section {
    background: white;
}

.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-card__image {
    margin: 0;
}

.product-card__image picture,
.product-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
}

.product-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__category {
    font-size: 0.875rem;
    color: var(--primary-color, #0066cc);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.product-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.product-card__desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
}

/* News Section */
.news-section {
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.news-featured {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-featured__image {
    margin: 0;
}

.news-featured__image picture,
.news-featured__image img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.news-featured__content {
    padding: 32px;
}

.news-featured__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.news-featured__excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-item__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.news-item__date {
    font-size: 0.875rem;
    color: #999;
    display: block;
    margin-bottom: 12px;
}

.news-item__excerpt {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-item__link {
    color: var(--primary-color, #0066cc);
    font-size: 0.9375rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-item__link:hover {
    color: #0052a3;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 80px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .product-categories-grid,
    .production-grid {
        grid-template-columns: 1fr;
    }

    .products-actions,
    .cta-actions {
        flex-direction: column;
    }

    .cta-title {
        font-size: 2rem;
    }
}
