/* Reset & General Styles */
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto; /* Allow vertical scrolling */
}

/* Header */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(51, 51, 51, 1); /* Solid grey background */
    padding: 15px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 300; /* Ensure header is above everything */
}

/* Logo */
.mobile-logo {
    max-width: 120px;
    height: auto;
    margin-left: 15px;
}

/* Hamburger Menu */
#menu-toggle {
    background: none;
    border: none;
    font-size: 8vw; /* Increased size for better visibility */
    color: white;
    cursor: pointer;
    padding: 1vw;
    position: absolute;
    left: 320px; /* Keep it fixed at the proper location */
    top: 2vw;
    z-index: 400;
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    background: rgba(51, 51, 51, 1); /* Solid grey background */
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 60px; /* Below the header */
    left: 0;
    z-index: 350; /* Ensure menu is above all content */
    text-align: center;
}

#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobile-menu ul li {
    padding: 15px;
    border-bottom: 1px solid #777;
}

#mobile-menu ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: block;
}

/* Main Content */
#main-content {
    position: relative !important;
    z-index: 100 !important; /* Ensure content is above the slideshow */
    background: rgba(255, 255, 255, 0.9); /* Slight transparency for readability */
    padding: 20px;
    border-radius: 10px;
    width: 85vw; /* Adjust width for responsiveness */
    max-width: 600px;
    margin-top: 160px; /* Ensures content starts below the header */
    margin-left: auto;
    margin-right: auto;
    color: black !important;
    text-align: center;
    min-height: calc(100vh - 140px); /* Prevents content from being hidden behind header/footer */
    overflow-y: auto; /* Enables scrolling if needed */
}
/* Service Map - Adjust Size */
.service-map {
    width:80%; /* Reduce size to fit properly */
    max-width: px; /* Shrink if too large */
    margin: 20px auto; /* Center it properly */
    display: block;
}

/* Reviews Section */
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 90%; /* Ensures reviews do not exceed the content area */
    margin: 0 auto;
}

.reviews-container img {
    width: 100%;
    max-width: 300px; /* Adjust review images for proper display */
    height: auto;
    border-radius: 5px;
}
/* Ensure About Us Page Content is Below Header */
.about-main {
    margin-top: 160px !important; /* Forces content further down */
    min-height: calc(100vh - 140px); /* Prevents overlap with footer */
}
/* Service Map - Forced Sizing */
.service-map {
    width: 75% !important; /* Reduce size and make it responsive */
    max-width: 320px !important; /* Ensure it doesn't get too large */
    margin: 15px auto !important; /* Adjust positioning */
    display: block !important;
}
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces 3 images per row */
    gap: 15px;
    justify-content: center;
}

.project-gallery img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}


/* Contact Page Styling - Fix Layout Issues */
.quote-form {
    background: rgba(51, 51, 51, 0.95);
    color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 450px;
    margin: 20px auto;
    text-align: left;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.quote-form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

.quote-form input, .quote-form textarea, .quote-form button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: none;
    font-size: 1.1em;
}

.quote-form textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-form button {
    background: white;
    color: #444;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.quote-form button:hover {
    background: #ddd;
}

/* Fix Content Alignment Issues */
#main-content {
    position: relative !important;
    z-index: 100 !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    width: 85vw;
    max-width: 600px;
    margin-top: 140px; /* Lowered to ensure correct spacing */
    margin-left: auto;
    margin-right: auto;
    color: black !important;
    text-align: center;
    min-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Keep Contact Links Centered */
.contact-links {
    margin-top: 20px;
    text-align: center;
}

.contact-links a {
    display: block;
    background: rgba(51, 51, 51, 1);
    color: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
}

.contact-links a:hover {
    background: rgba(70, 70, 70, 1);
}

/* Footer */
.mobile-footer {
    background-color: rgba(51, 51, 51, 1); /* Solid grey background */
    color: white;
    padding: 10px;
    width: 100%;
    position: fixed;
    bottom: 0;
    text-align: center;
    z-index: 300; /* Ensure it's always visible */
}

/* Footer Links */
.mobile-footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.mobile-footer a:hover {
    text-decoration: underline;
}