/* ===================================
   HHpro - Start Page Styles
   Landing page with product line cards
   UPDATED: 4-column grid layout
   testing 
   =================================== */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Product Lines Container */
.product-lines-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-xl);
}

/* Product Lines Grid - 4 columns */
.product-lines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    justify-items: center;
}

/* ===================================
   Product Line Card
   =================================== */

.product-line-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    width: 100%;
    max-width: 380px;
}

/* Card hover - Blue glow effect */
.product-line-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 8px 32px rgba(0, 168, 232, 0.35),
        0 0 20px rgba(0, 168, 232, 0.2),
        inset 0 0 0 1px rgba(0, 168, 232, 0.3);
    border-color: rgba(0, 168, 232, 0.5);
}

/* ===================================
   Product Line Image
   =================================== */

.product-line-image {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    padding-bottom: 50px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
}

.product-line-image img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

/* ===================================
   Gradient Overlay - Title only
   =================================== */

.product-line-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    text-align: center;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Hover state - gradient shifts to blue tint */
.product-line-card:hover .product-line-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 168, 232, 0) 0%,
        rgba(0, 168, 232, 0.6) 50%,
        rgba(0, 168, 232, 0.9) 100%
    );
}

.product-line-overlay h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.product-line-card:hover .product-line-overlay h3 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Responsive Styles
   =================================== */

@media (max-width: 1600px) {
    .product-lines-grid {
        gap: var(--spacing-lg);
    }
    
    .product-line-image {
        height: 260px;
    }
}

@media (max-width: 1400px) {
    .product-lines-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }
    
    .product-line-card {
        max-width: 320px;
    }
    
    .product-line-image {
        height: 240px;
    }
}

@media (max-width: 1200px) {
    .product-lines-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-line-card {
        max-width: 350px;
    }
    
    .product-line-image {
        height: 250px;
    }
}

@media (max-width: 900px) {
    .product-lines-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-line-card {
        max-width: 380px;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .product-lines-container {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .product-lines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .product-line-image {
        height: 200px;
        padding-bottom: 45px;
    }
    
    .product-line-overlay {
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    }
    
    .product-line-overlay h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .product-lines-grid {
        grid-template-columns: 1fr;
    }
    
    .product-line-card {
        max-width: 400px;
    }
    
    .product-line-image {
        height: 220px;
        padding: var(--spacing-md);
        padding-bottom: 45px;
    }
    
    .product-line-overlay {
        padding: var(--spacing-sm);
    }
    
    .product-line-overlay h3 {
        font-size: 1rem;
    }
}