﻿/* Styles for small screens like mobile phones */
@media screen and (max-width: 600px) {
    .heroWrapper {
        padding-top: 2rem !important;
    }


    .servicesBoxes {
        display: block;
    }

    .servicesBoxes .card {
        width: 100%;
        margin: 0.5rem 0 !important;
    }
}

.wrapper {
    background-color: rgb(3, 120, 124);
    height: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.heroBox {
    height: 100%;
    /* Ensure the container takes full height of its parent */
    width: 100%;
    /* Ensure the container takes full width of its parent, adjust as needed for responsiveness */
    overflow: hidden;
    /* Ensure no overflow from the image container */
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heroBox .text-decoration-none {
    position: relative;
    /* height: 100% removed to anchor text to image bottom */
    display: inline-block;
    unicode-bidi: isolate;
    user-select: text;
}

.heroBox .text-decoration-none img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    /* Ensure the image covers the entire section */
    filter: brightness(0.8);
    /* Darken the image */
    transform-style: preserve-3d;
    transition: transform .75s cubic-bezier(.1, .2, 0, 1);
    will-change: transform;
    /* Help optimize performance */
}

/* removed hover scale */

.heroBox .text-decoration-none .heroContent {
    position: absolute;
    /* Keep the absolute positioning for text */
    bottom: 25px;
    /* Adjust to the desired position */
    left: 40px;
    /* Adjust to the desired position */
    z-index: 1;
    /* Ensure it stays above the other content */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
    text-decoration: none;
    transform: none !important;
    /* Prevent the text from scaling */
    pointer-events: none;
    /* So hover still works on image */
}

.heroBox a .heroContent .heroContent1 {
    font-size: 1.6rem;
    text-align: left;
    font-weight: 600 !important;
}

/* Products Grid Section */
.products-section {
    background-color: white;
    padding: 1.5rem 0 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .25rem 2rem;
}

.product-item {
    padding: 0.5rem 0;
}

.product-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: rgb(3, 120, 124);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.product-title:hover {
    color: #026d70;
    text-decoration: underline;
}

.product-desc {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* Responsive - single column on mobile */
@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-desc {
        font-size: 0.9rem;
    }
}