/*
Kalia Hudson 
09-04-26
This file contians the CSS for the other pages of the website. 
The main styling still lies in the styles.css file.
*/

/***Services Page***/

.service {
  padding: 4rem 0;                 
}

.service .container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.service .layout {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 20px;
    max-width: 25rem;
    background-color: #ffff;
    color: black;
    opacity: 0.95;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 8px rgba(7, 30, 97, 0.2);
}

.service-card .description2 {
    min-height: 19rem;
}

.service-card h3 {
    font: 1.5rem Montserrat, sans-serif;
    font-weight: 300;
    text-decoration: underline;
}

/*Contact Page*/

.service a {
    text-decoration: none;
    color: black;
}

/*About Page*/

.about-content {
    padding: 6rem 0;
}

.about-content .container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.about-content .layout {
    max-width: 700px;
    margin: auto;
    display: grid;
    gap: 1.25rem;
}


/*Mobile Responsiveness*/
/* ============================
   MOBILE RULES
   ============================ */
@media (max-width: 768px) {

    /* Global */
    html {
        font-size: 15px;
    }

    header .nav {
        flex-wrap: wrap;
        gap: .5rem;
    }

    /* HERO SECTION */
    .hero {
        min-height: 50vh;
    }

    .hero-content {
        transform: translate(-50%, 50%);
        padding: 1rem;
        width: 90%;
    }

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

    /* GALLERY SECTION */
    .gallery {
        padding: 2rem 1rem;
    }

    .gallery .grid {
        grid-template-columns: 1fr; /* stack images */
        gap: 1rem;
    }

    /* WHY HIRE ME CAROUSEL */
    .whyCarousel {
        padding: 2rem 1rem;
    }

    .whyCarousel {
        overflow: hidden; /* hides extra slides */
    }

    .whyCarousel .carousel-track {
        display: flex;
        transform: translateX(0); /* keeps alignment clean */
    }

    .whyCarousel .carousel-slide {
        min-width: 100%;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    /* FINAL CTA */
    .final-cta {
        margin: 3rem 1rem;
    }

    /* FOOTER */
    .footer-item p,
    .footer a {
        font-size: .9rem;
    }

    /* SERVICES PAGE */
    .service {
        padding: 2rem 0;
    }

    .service .layout {
        flex-direction: column; /* stack cards */
        align-items: center;
    }

    .service-card {
        max-width: 90%;
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card .description2 {
        min-height: auto;
    }

    /* ABOUT PAGE */
    .about-content {
        padding: 3rem 0;
    }

    .about-content .layout {
        max-width: 100%;
        padding: 0 1rem;
    }
}