/**
 * Kultiva Agricultural Equipment - Main Page Styles
 *
 * This file contains styles specific to the homepage/main page:
 * - Hero Section
 * - Hero Stats
 * - Product Preview Cards
 *
 * @version 1.0.0
 * @updated 2026-01-04
 */

/* ============================================
   HERO CAROUSEL SECTION - WITH INVISIBLE FRAME
   ============================================ */

.hero-carousel-section {
    width: 100%;
    padding: 0;
    position: relative;
    background: transparent;
    border-bottom: 1px solid var(--color-accent);
}

/* Wide Container - Full width edge-to-edge */
.carousel-container {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

/* Full-width wrapper - No frame */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

/* Hero Carousel - Contained within wrapper */
.hero-carousel {
    width: 100%;
    aspect-ratio: 4.88 / 1;
    max-height: 350px;
    position: relative;
    overflow: hidden;
    background: #000;
}

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

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

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Fallback Image */
.hero-fallback-image {
    width: 100%;
    aspect-ratio: 4.88 / 1;
    overflow: hidden;
}

.hero-fallback-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Carousel Controls - Clean and Professional */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 20px;
}

.hero-carousel .carousel-control-next {
    right: 20px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Carousel Indicators - Minimalist */
.hero-carousel .carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
    z-index: 10;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 6px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.hero-carousel .carousel-indicators button.active {
    width: 32px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.95);
    opacity: 1;
}

/* Carousel Responsive */
@media (max-width: 991.98px) {
    .hero-carousel-section {
        padding: 0;
    }

    .carousel-container {
        padding: 0;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        opacity: 1;
        width: 44px;
        height: 44px;
    }

    .hero-carousel .carousel-control-prev {
        left: 15px;
    }

    .hero-carousel .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .hero-carousel-section {
        padding: 0;
    }

    .carousel-container {
        padding: 0;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 36px;
        height: 36px;
    }

    .hero-carousel .carousel-control-prev {
        left: 10px;
    }

    .hero-carousel .carousel-control-next {
        right: 10px;
    }

    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }

    .hero-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .hero-carousel .carousel-indicators button.active {
        width: 24px;
    }
}


/* ============================================
   HERO CONTENT SECTION - BELOW CAROUSEL
   ============================================ */

.hero-content-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    transform: skewX(-15deg);
    transform-origin: top right;
}

.hero-content-section h1 {
    color: white;
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: white;
}

.hero-content-section .btn {
    margin: 0.5rem;
}

/* Hero Content Responsive */
@media (max-width: 768px) {
    .hero-content-section {
        padding: 3rem 0;
    }

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

    .hero-content-section .lead {
        font-size: 1.1rem;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    min-width: 120px;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    color: white;
}

/* Hero Buttons */
.hero-buttons {
    justify-content: center;
    margin-bottom: 1rem;
}

/* Hero Stats Responsive */
@media (max-width: 576px) {
    .hero-stats {
        gap: 2rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .hero-stat {
        min-width: 100px;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .hero-stat-label {
        font-size: 0.8rem;
    }
}


/* ============================================
   PRODUCT CARDS (HOMEPAGE)
   ============================================ */

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.product-card-body {
    padding: 1.5rem;
}

.product-card h5 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.product-card p {
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
