/* ====================================
   css/products.css - Products Page Styles
   Font: Asap (changed from Bitter)
   ==================================== */

/* Products Hero Section */
.reldev-products-hero {
    min-height: 35vh;
    /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 94px = 184px total */
    margin-top: 184px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/page-top.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.reldev-products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Diagonal radar lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(25, 121, 57, 0.08) 40px,
            rgba(25, 121, 57, 0.08) 42px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(25, 121, 57, 0.06) 40px,
            rgba(25, 121, 57, 0.06) 42px
        ),
        /* Subtle grid overlay */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.02) 80px,
            rgba(255, 255, 255, 0.02) 81px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.02) 80px,
            rgba(255, 255, 255, 0.02) 81px
        ),
        /* Vignette */
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.reldev-hero-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.reldev-hero-content h1 {
    font-family: 'Asap', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Products Section */
.reldev-products-section {
    padding: 7rem 0;
    background: #f5f5f5;
}

.reldev-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.reldev-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: stretch;
}

/* Product Cards */
.reldev-product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reldev-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-top-color: #197939;
}

.reldev-product-image {
    height: 220px;
    overflow: hidden;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.reldev-product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 121, 57, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.reldev-product-card:hover .reldev-product-image::before {
    opacity: 1;
}

.reldev-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.reldev-product-card:hover .reldev-product-image img {
    transform: scale(1.1);
}

.reldev-product-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.reldev-product-content h3 {
    font-family: 'Asap', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1.25rem 0;
    position: relative;
    padding-bottom: 0.75rem;
}

.reldev-product-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #197939, #145a2c);
    border-radius: 2px;
}

.reldev-product-content p {
    font-family: 'Asap', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #666;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.reldev-development-tag {
    color: #197939;
    font-weight: 600;
    font-style: italic;
}

.reldev-datasheet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #197939 0%, #145a2c 100%);
    color: #ffffff;
    padding: 1rem 1.75rem;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Asap', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    align-self: flex-start;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(25, 121, 57, 0.25);
    text-align: center;
}

.reldev-datasheet-btn:hover {
    background: linear-gradient(135deg, #145a2c 0%, #197939 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 121, 57, 0.35);
    color: #ffffff;
}

.reldev-datasheet-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.reldev-datasheet-btn:hover i {
    transform: translateY(2px);
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1199px) {
    .reldev-products-hero {
        /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 83px = 173px */
        margin-top: 173px;
    }
    
    .reldev-hero-content h1 {
        font-size: 3.2rem;
    }
    
    .reldev-products-grid {
        gap: 2.5rem;
    }
    
    .reldev-product-image {
        height: 200px;
    }
    
    .reldev-product-content {
        padding: 2.25rem;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .reldev-products-hero {
        min-height: 32vh;
        /* Top bar: 50px + Nav: padding 1.25rem*2 (40px) + logo 83px = 173px */
        margin-top: 173px;
        padding: 2rem 2rem;
    }
    
    .reldev-hero-content h1 {
        font-size: 3rem;
    }
    
    .reldev-products-section {
        padding: 6rem 0;
    }

    .reldev-container {
        padding: 0 2rem;
    }
    
    .reldev-products-grid {
        gap: 2.5rem;
    }
    
    .reldev-product-image {
        height: 190px;
    }
}

/* Mobile - Top bar hidden, only nav visible */
@media (max-width: 768px) {
    .reldev-products-hero {
        min-height: 28vh;
        /* No top bar, Nav only: padding 0.75rem*2 (24px) + logo 61px = 85px */
        margin-top: 85px;
        padding: 1.75rem 1.5rem;
    }

    .reldev-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .reldev-container {
        padding: 0 1.5rem;
    }
    
    .reldev-products-section {
        padding: 5rem 0;
    }
    
    .reldev-products-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .reldev-product-image {
        height: 180px;
    }
    
    .reldev-product-content {
        padding: 2rem;
    }
    
    .reldev-product-content h3 {
        font-size: 1.6rem;
    }

    .reldev-datasheet-btn {
        width: 100%;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .reldev-products-hero {
        min-height: 25vh;
        /* Nav: padding 0.75rem*2 (24px) + logo 61px = 85px */
        margin-top: 85px;
        padding: 1.5rem 1.25rem;
    }
    
    .reldev-hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.3;
    }
    
    .reldev-products-section {
        padding: 4.5rem 0;
    }
    
    .reldev-product-image {
        height: 170px;
    }

    .reldev-product-content {
        padding: 1.75rem;
    }
    
    .reldev-product-content h3 {
        font-size: 1.5rem;
    }
    
    .reldev-product-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .reldev-datasheet-btn {
        width: 100%;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .reldev-products-hero {
        min-height: 22vh;
        /* Nav: padding 0.75rem*2 (24px) + logo 55px = 79px */
        margin-top: 79px;
        padding: 1.25rem 1rem;
    }

    .reldev-hero-content h1 {
        font-size: 2rem;
    }
    
    .reldev-container {
        padding: 0 1rem;
    }

    .reldev-products-section {
        padding: 4rem 0;
    }
    
    .reldev-products-grid {
        gap: 2rem;
    }
    
    .reldev-product-image {
        height: 160px;
    }

    .reldev-product-content {
        padding: 1.5rem;
    }
    
    .reldev-product-content h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .reldev-product-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }
    
    .reldev-datasheet-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
}

/* Smallest mobile */
@media (max-width: 375px) {
    .reldev-products-hero {
        min-height: 20vh;
        /* Nav: padding 0.75rem*2 (24px) + logo 55px = 79px */
        margin-top: 79px;
        padding: 1rem 0.875rem;
    }
    
    .reldev-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .reldev-products-section {
        padding: 3.5rem 0;
    }
    
    .reldev-product-image {
        height: 150px;
    }
    
    .reldev-product-content {
        padding: 1.25rem;
    }

    .reldev-product-content h3 {
        font-size: 1.3rem;
    }
    
    .reldev-product-content p {
        font-size: 0.9rem;
    }
    
    .reldev-datasheet-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
}