/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL */
body {
    font-family: 'Poppins', sans-serif;
    color: #0a2a43;
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 2px solid #e5e5e5;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO — desktop */
.logo {
    width: 450px;
    height: auto;
}

/* NAVIGATION */
.nav {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: #0a2a43;
    font-weight: 600;
    font-size: 1.15rem;
}

/* CALL BUTTON */
.call-btn {
    background: #0a2a43;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* ----------------------------- */
/* RESPONSIVE HEADER FIXES       */
/* ----------------------------- */

/* TABLET — shrink logo + call button */
@media (max-width: 1000px) {
    .logo {
        width: 300px;
    }

    .call-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .nav {
        gap: 20px;
    }
}

/* MOBILE — stack header + shrink logo more */
@media (max-width: 700px) {
    .header-flex {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        width: 220px;
    }

    .nav {
        gap: 14px;
    }

    .call-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* EXTRA SMALL PHONES — smallest clean layout */
@media (max-width: 500px) {
    .logo {
        width: 180px;
    }

    .call-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* IPAD / MID-TABLET FIX — stack nav + call button */
@media (max-width: 900px) and (min-width: 701px) {
    .header-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .call-btn {
        order: 3;
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .logo {
        order: 1;
        width: 260px;
    }
}

/* TABLETS & SMALL LAPTOPS — move call button to its own row */
@media (max-width: 1100px) {
    .header-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .logo {
        width: 300px;
        order: 1;
    }

    .nav {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .call-btn {
        order: 3;
        padding: 8px 14px;
        font-size: 0.9rem;
    }
}

/* FIX NAV SPACING ON TABLETS + MOBILE */
@media (max-width: 1100px) {
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        /* smaller gap so items don’t look far apart */
    }
}

@media (max-width: 850px) {
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

/* FULL-WIDTH CLEANING PHOTO */
.fullwidth-photo {
    width: 100%;
}

.hero-cleaning-photo {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* HERO SECTION */
.hero {
    padding: 60px 0;
    background: #f5faff;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

.tagline {
    margin: 10px 0 20px;
    font-weight: 600;
    color: #1e6bb8;
}

.hero-call {
    background: #1e6bb8;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* SERVICES */
.services {
    padding: 60px 0;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-card {
    background: #f5faff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.service-card h3 {
    color: #1e6bb8;
}

/* SERVICE AREAS */
.service-areas {
    padding: 60px 0;
}

.service-areas h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.service-area-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.service-area-grid li {
    background: #f5faff;
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #0a2a43;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ABOUT */
.about {
    padding: 100px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-img {
    max-width: 420px;
    border-radius: 8px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 550px;
}

/* CONTACT */
.contact {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-details p {
    font-size: 1.1rem;
    margin: 8px 0;
}

.contact-details a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 600;
}

.contact-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-call,
.btn-email {
    padding: 12px 25px;
    background: #0077cc;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-call:hover,
.btn-email:hover {
    background: #005fa3;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background: #0a2a43;
    color: white;
    margin-top: 40px;
}

/* MEDIA QUERIES */
@media (max-width: 1000px) {
    .service-area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .nav {
        gap: 16px;
    }

    .hero-flex {
        flex-direction: column;
    }

    .about-flex {
        flex-direction: column;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .service-area-grid {
        grid-template-columns: 1fr;
    }
}

/* FIX ANCHOR SCROLL OFFSET FOR STICKY HEADER */

/* DESKTOP */
html {
    scroll-padding-top: 270px;
}

/* TABLET (iPad, Surface Go, small laptops) */
@media (max-width: 1100px) and (min-width: 851px) {
    html {
        scroll-padding-top: 200px;
    }
}

/* IPAD PRO (1024–1366px) */
@media (max-width: 1366px) and (min-width: 851px) {
    html {
        scroll-padding-top: 140px;
    }
}

/* MOBILE + ANDROID */
@media (max-width: 850px) {
    html {
        scroll-padding-top: 260px;
    }
}

/* EXTRA SMALL PHONES */
@media (max-width: 500px) {
    html {
        scroll-padding-top: 200px;
    }
}

/* Hero image adjustments for desktop and mobile */
/* Desktop & tablet */
.hero-cleaning-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-cleaning-photo {
        content: url('images/cleaning-square.jpeg');
        /* use the square photo */
        height: auto;
        object-fit: cover;
        object-position: center;
    }
}
