/* Services */
.products-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
}

.product-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.product-img {
    display: block; /* Don't delete: it makes the image occupy the whole space. */
    width: 100%;
    height: 28rem;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: all 0.3s ease-in;
}

@media (hover: hover) and (pointer: fine) {
    .product-item:hover .product-img {
        transform: scale(1.05);
    }
}

.product-content {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)); 
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 12px;
    display: grid; 
    align-items: last baseline;
    padding: 1.5rem;
}

.product-content h3 {
    color: white;
    font-size: clamp(2rem, 10vw, 3rem);
}

.product-content .learn-more, .product-content .get-quote {
    display: none;
    width: 7.5rem;
    text-align: center;
    padding: 0.5rem 0;
    margin: 0.5rem 0.25rem 0 0;
    text-decoration: none;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #bbbdb2;
    color: #bbbdb2;
    font-weight: 500;
    transition: all 0.6s ease;
}

.product-content .get-quote {
    background-color: #bbbdb2;
    color: black;
    margin-right: 0;
}

@media (hover: hover) and (pointer: fine) {
    .product-content .learn-more:hover {
        border: 1px solid white;
        color: white;
    }

    .product-content .get-quote:hover {
        border: 1px solid white;
        background-color: white;
    }
}