/* ==========================================
   HOME PAGE (INDEX) STYLES
   ========================================== */

/* Hero Carousel Styles */
#heroCarousel {
    position: relative;
    height: 450px;
}

#heroCarousel .carousel-item {
    height: 450px;
    position: relative;
}

#heroCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

#heroCarousel .carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

#heroCarousel .carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-in-out;
}

#heroCarousel .carousel-caption p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1.2s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Carousel */
@media (max-width: 768px) {
    #heroCarousel,
    #heroCarousel .carousel-item {
        height: 400px;
    }
    
    #heroCarousel .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #heroCarousel,
    #heroCarousel .carousel-item {
        height: 300px;
    }
    
    #heroCarousel .carousel-caption h1 {
        font-size: 1.4rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
}

/* Company intro background */
.company-intro-bg {
    background: #f5f5f0;
}

/* ==========================================
   GRID SERVICES LAYOUT - 3 COLUMNS
   ========================================== */

.grid-services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.grid-service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.grid-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-service-card:hover .grid-service-image img {
    transform: scale(1.1);
}

.grid-service-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
    z-index: 2;
}

.grid-service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.grid-service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.grid-service-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .grid-service-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .grid-services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .grid-service-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }
    
    .grid-service-content {
        padding: 1.5rem;
    }
    
    .grid-service-title {
        font-size: 1.2rem;
    }
    
    .grid-service-description {
        font-size: 0.9rem;
    }
    
    .grid-service-image {
        height: 180px;
    }
    
    .grid-service-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 12px;
        left: 12px;
    }
}

/* ==========================================
   PROFESSIONAL PRODUCTS SECTION
   ========================================== */

.products-section-professional {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.products-section-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="rgba(46,125,50,0.02)"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>') repeat;
}

.products-container-professional {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.products-header-professional {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.products-title-professional {
    position: relative;
    display: inline-block;
}

.products-title-professional::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    border-radius: 2px;
}

.products-grid-professional {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card-professional {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
}

.product-card-professional:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.product-image-container-professional {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-image-professional {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-professional:hover .product-image-professional {
    transform: scale(1.05);
}

.product-content-visible {
    padding: 1.5rem;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title-visible {
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description-visible {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-btn-visible {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    align-self: flex-start;
}

.product-btn-visible:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Static number badge (always visible) */
.product-badge-professional {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(46,125,50,0.9), rgba(102,187,106,0.9));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    backdrop-filter: blur(10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-container-professional {
        padding: 0 1rem;
    }
    
    .products-grid-professional {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card-professional {
        height: 300px;
    }
    
    .product-image-container-professional {
        height: 180px;
    }
    
    .product-title-professional {
        font-size: 1.2rem;
    }
    
    .product-title-visible {
        font-size: 1.1rem;
    }
    
    .product-number-professional {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .products-header-professional {
        margin-bottom: 2rem;
    }
    
    .product-content-visible {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .product-card-professional {
        height: 280px;
    }
    
    .product-image-container-professional {
        height: 160px;
    }
    
    .product-title-visible {
        font-size: 1rem;
    }
    
    .product-btn-visible {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .product-content-visible {
        padding: 1rem;
    }
}

/* Products section background */
.products-section-bg {
    background: #f5f5f0;
}

/* Product images */
.product-image-fixed {
    height: 350px;
    object-fit: cover;
}
