/* Homepage specific styles with responsive scaling */

/* banner */

#banner {
    position: relative;
    display: flex;
    background-image: url('/static/images/banner1.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100vw; /* full viewport width */
    max-width: 100%;
    height: 80vh;
    overflow: hidden;
    align-items: center;
    margin-bottom: 70px;
    transition: background-image 1s step-end;
}

#banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* Darker overlay */
    z-index: 1;
}

.bannerText {
    position: relative;
    left: 15%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    z-index: 2; /* above overlay */
}

.bannerText h1 {
    font-weight: bolder;
    font-size: 4rem;
    width: 90%;
    color: white;
}

.bannerText h3 {
    font-weight: 500;
    font-size: 1.5rem;
    color: white;
}

/* main content */

#content {
    position: static;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    line-height: 2;
    text-indent: 2rem;
    font-size: 0.8rem;
}

/* services */

.services {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 100px;
    width: 100%;
    justify-content: space-around;
    flex-wrap: nowrap;  /* keep in one row */
}

.service {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    margin-bottom: 30px;
}

.imgLink {
    display: flex;
}

.service img {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease-in-out;
}

.service-btn {
    width: fit-content;
    background-color: #000;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    padding: 10px 30px 10px 0px;
}

.service img:hover {
    transform: scale(1.05);
}

.service-btn:hover {
    background-color: #252525;
}

/* qualities section - keep 2x2 grid always until phone size, just scale text */

#qualities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 75px;
    text-indent: 0;
    gap: 20px;
}

.quality {
    text-align: left;
    font-size: 1.5rem;
    margin: 10px;
}

.quality h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

hr {
    border: none;
    height: 2px;
    width: 20%;
    background-color: black;
    margin-bottom: 10px;
}

/* video call back section */

#videoCallBack {
    position: relative;
    width: auto;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: left;
    overflow: hidden;
    flex-wrap: wrap;
}

#videoCallBack video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

#videoCallBack::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

#videoCallBack div {
    flex: 1;
    padding: 20px;
    max-width: 500px;
    min-width: 280px;
    margin-bottom: 30px;
}

#videoCallBack div h3 {
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

#videoCallBack div h2 {
    font-size: 2.25rem;
    color: white;
    margin-top: 15px;
    margin-bottom: 15px;
}

#videoCallBack div p {
    font-size: 1rem;
    color: white;
    line-height: 1.4;
}

#videoCallBack a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

#videoCallBack a:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
}

/* satisfaction guarantee */

#satisfactionGarantee {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    gap: 30px;
    flex-wrap: nowrap;
}

#satisfactionGarantee div {
    display: flex;
    flex-direction: column;
    text-indent: 0px;
    font-size: 2.75em;
    line-height: 1.2;
    min-width: 300px;
}

#satisfactionGarantee a {
    background-color: #000;
    border-radius: 15px;
    width: fit-content;
    padding: 20px 30px;
    align-self: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#satisfactionGarantee a:hover {
    background-color: #252525;
}

/* Responsive scaling for smooth shrinking */

/* Scale banner text, services, qualities font sizes on smaller screens */

@media (max-width: 1400px) {
    #banner .bannerText {
        width: 70%;
        left: 10%;
    }

    #banner .bannerText h1 {
        font-size: 3rem;
    }

    #banner .bannerText h3 {
        font-size: 1.2rem;
    }

    .services {
        gap: 10px;
    }

    .service {
        min-width: 180px;
        font-size: 1.3rem;
    }

    .quality {
        font-size: 1.3rem;
        margin: 8px 0;
    }

    #satisfactionGarantee div {
        min-width: 250px;
        font-size: 2.5em;
    }
}

@media (max-width: 1100px) {
    .service, .quality {
        min-width: 150px;
        font-size: 1.1rem;
    }

    .quality {
        margin: 6px 0;
    }

    #satisfactionGarantee div {
        min-width: 200px;
        font-size: 1.5em;
    }
}

/* Here’s the important part for qualities grid: keep 2 columns until small phone size */

@media (max-width: 450px) {
    #qualities {
        grid-template-columns: 1fr; /* stack vertically on small phones */
        gap: 10px;
    }

    .quality {
        font-size: 1rem;
        margin: 5px 0;
    }
}

@media (max-width: 700px) {
    .service, .quality {
        min-width: 120px;
        font-size: 1rem;
    }

    #satisfactionGarantee {
        flex-wrap: wrap;
    }

    #satisfactionGarantee div {
        font-size: 1.5rem;
        min-width: auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #banner {
        height: 50vh;
    }

    .bannerText {
        width: 90%;
        left: 5%;
    }

    .bannerText h1 {
        font-size: 2rem;
    }

    .bannerText h3 {
        font-size: 1rem;
    }

    #content {
        font-size: 1rem;
        text-indent: 0;
    }

    #videoCallBack {
        min-height: 400px;
        flex-wrap: wrap;
    }

    #videoCallBack div {
        max-width: 100%;
        margin-bottom: 30px;
    }
}
