
/* === Updated main.css overrides for M&E Cleaning Services === */

/* Darker text for better readability */
body, input, select, textarea {
    color: #333333; /* darker gray */
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 16pt;
    font-weight: 400;
    line-height: 1.75em;
}

h1, h2, h3, h4, h5, h6, strong, b {
    color: #222222;
}

/* Banner/logo adjustments */
.banner-container {
    margin: 0 0 1rem;
    text-align: center;
}

.banner-image {
    width: 180px;
    max-width: 55%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (min-width: 980px) {
    .banner-image {
        width: 260px;
        max-width: 260px;
    }
}

/* Section spacing adjustments (reduce large gaps) */
#main > section {
    border-top: solid 1px #efefef;
    margin: 1.5em 0 0 0;
    padding: 1.5em 0 0 0;
}

/* Compact spacing on smaller screens */
@media (max-width: 736px) {
    #main {
        padding: 1.25em 1em 0.75em 1em;
    }

        #main > section {
            margin: 1.25em 0 0;
            padding: 1.25em 0 0;
        }

    p {
        margin: 0 0 1.25em;
    }
}

/* Services chip style */
#services h4 {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
    font-weight: 600;
    font-size: 0.95em;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
}

/* Minor text tweaks in work items */
.work-item h3 {
    margin-bottom: 0.4rem;
}

.work-item p {
    margin: 0;
}

/* Call Us button styling + alignment */
.call-button {
    text-align: center;
    margin-bottom: 1rem;
}

    .call-button .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75em 1.5em;
        font-size: 1em;
        font-weight: 600;
    }

        .call-button .button i {
            margin-right: 0.5em;
            font-size: 1.1em;
        }

@media (min-width: 980px) {
    .call-button {
        text-align: right;
        margin-top: 2.0rem;
        margin-bottom: 2.0rem;
    }
}

/* Force header/intro text to render black, overriding template gray */
header p, header.major p {
    color: #000000 !important;
}

/* Mobile typography adjustments: smaller & tighter */
/*@media (max-width: 736px) {
    body, input, select, textarea {
        font-size: 14px;
        line-height: 1.4em;
    }

    p {
        font-size: 14px;
        line-height: 1.4em;
    }
}*/

/* ===== Mobile (<=736px): smaller, tighter text, compact spacing ===== */
@media (max-width: 736px) {
    body, input, select, textarea {
        font-size: 14px;
        line-height: 1.4em;
    }

    p {
        font-size: 14px;
        line-height: 1.4em;
    }

    #main {
        padding: 1.25em 1em 0.75em 1em;
    }

        #main > section {
            margin: 1.25em 0 0;
            padding: 1.25em 0 0;
        }
}

/* ===== Desktop (>=981px): reduce font size and tighten column gap ===== */
@media (min-width: 981px) {
    body, input, select, textarea {
        font-size: 15px;
        line-height: 1.6em;
    }

    p {
        font-size: 15px;
        line-height: 1.6em;
    }

    /* tighten main content and center it */
    #main {
        padding: 2rem;
        max-width: 900px;
    }

    /* Slightly reduce section shadow on large screens */
    #main section {
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
}



/* Extra breathing room below the Call Us button */
.call-button {
    margin-top: 2rem;
    margin-bottom: 0.5rem; /* adjust as needed */
}

@media (min-width: 980px) {
    .call-button {
        margin-bottom: 3rem; /* extra space on desktop */
    }
}

h2 {
    color: #49bf9d; /*#358f75; */ /* blue accent similar to logo */
    font-weight: 800;
}

#main section {
    background: #f9f9f9; /* light gray background (different from white) */
    border-radius: 12px; /* rounded corners */
    padding: 0.5rem; /* inner spacing */
    margin-bottom: 0.5rem; /* space between sections */
    box-shadow: 0 2px 6px rgba(0,0,0,0.35); /* subtle shadow for depth */
}

    #main section:nth-of-type(odd) {
        background: #f9f9f9; /* light gray */
    }

    #main section:nth-of-type(even) {
        background: #eef6fb; /* very light blue, complements your logo */
    }

/* Contact buttons side-by-side */
.contact-buttons {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem; /* spacing between buttons */
    flex-wrap: wrap; /* stack on smaller screens */
}

    .contact-buttons .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75em 1.5em;
        font-size: 1em;
        font-weight: 600;
    }

        .contact-buttons .button i {
            margin-right: 0.5em;
        }

/* Differentiate styles */
.button.primary {
    background: #49bf9d; /* green */
    color: #fff;
}

.button.secondary {
    background: #49bf9d; /* blue (like logo) */
    color: #fff;
}

#main section h2 {
    background: #49bf9d; /* green background */
    color: #ffffff; /* white text */
    font-weight: 650;
    padding: 0.5em .75em; /* 0.75em 1em; padding for breathing room */
    border-top-left-radius: 12px; /* round top corners */
    border-top-right-radius: 12px;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem; /* stretch to edges of section box */
}

/* Wrap long email addresses (and other long words) in the contact area */
#three, /* your contact section */
#three a,
#three .contact-info,
#three .contact-info a {
    overflow-wrap: anywhere; /* modern, best option */
    word-break: break-word; /* fallback for older engines */
}

    #three .contact-info a {
        display: inline-block; /* ensures wrapping respects container */
        max-width: 100%; /* prevents overflow from flex/grid quirks */
    }


/* ===== Mobile-only menu ===== */
@media (max-width: 736px) {
    .mobile-menu-btn {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 1100;
        border: 0;
        border-radius: 10px;
        padding: 10px 12px;
        background: #49bf9d; /* same green as Call Us */
        color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,.2);
    }

        .mobile-menu-btn i {
            font-size: 1.25rem;
        }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 78%;
        max-width: 320px;
        background: #49bf9d;
        box-shadow: -4px 0 16px rgba(0,0,0,.15);
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 1099;
        padding-top: 64px; /* space for button area */
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

        .mobile-menu.open {
            transform: translateX(0);
        }

        .mobile-menu a {
            padding: 14px 18px;
            font-weight: 600;
            color: #fff;
            border-bottom: 1px solid #f0f0f0;
        }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 1098;
        display: none;
    }

        .menu-backdrop.open {
            display: block;
        }

    /* prevent body scrolling when menu is open */
    body.no-scroll {
        overflow: hidden;
    }
}

/* Hide hamburger & panel on larger screens */
@media (min-width: 737px) {
    .mobile-menu-btn, .mobile-menu, .menu-backdrop {
        display: none !important;
    }
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}



/* Fix long email links so they wrap instead of overflowing */
.labeled-icons li h3.icon.solid.fa-envelope + a {
    display: inline-block;
    max-width: 100%;
    white-space: normal; /* allow wrapping */
    overflow-wrap: anywhere; /* modern browsers */
    word-break: break-word; /* fallback */
}