/* Existing CSS to hide the subscribe bar and three-dot menu */
document.addEventListener("DOMContentLoaded", function() {
    var style = document.createElement('style');
    style.innerHTML = `
    .wp-block-cover__inner-container .wp-block-cover__inner-overlay .subscribe-bar, .subscribe-bar {
        display: none !important;
    }
    #wpadminbar, .mobile-menu-toggle {
        display: none !important;
    }
    `;
    document.head.appendChild(style);
});

/* Remove margin and padding for all blocks */
.wp-block {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure all adjacent blocks have no gap */
.wp-block + .wp-block {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.custom-divider {
    height: 5px; /* Adjust the height as needed */
    background-color: #46c8f5; /* Same color as the heading */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}



.custom-button-block {
    text-align: center;
    margin: 10px 0 30px 0; /* Reduced margin above, added padding below */
}

.custom-button {
    display: inline-block;
    background-color: #25CB2A; /* Your shade of blue */
    color: white;
    padding: 15px 30px; /* Increased top/bottom padding to make the button taller */
    text-decoration: none;
    font-size: 20px; /* Increased font size for a bigger button */
    border-radius: 8px;
    margin: 0 20px; /* White margins on each side */
}

/* General Styles */
.blue-bar {
    background-color: #46c8f5;
    padding: 5px 20px;
    text-align: center;
}

.blue-bar a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.main-header {
    background-color: #fff;
    border-bottom: 2px solid #46c8f5;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
}

/* Make the mobile menu icon sticky on mobile */
@media only screen and (max-width: 767px) {
    .main-header {
        position: relative; /* No sticky header */
    }

    .mobile-header-text {
        color: #00039c;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: block;
        background-color: #fff;
        border: 2px solid #46c8f5;
        border-radius: 50%;
        padding: 10px;
        font-size: 42px;
        color: #46c8f5;
        cursor: pointer;
        position: fixed;
        top: 40px; /* Adjusted back to the original position */
        right: 10px;
        z-index: 1003;
    }
}

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

.logo {
    height: 60px;
    margin-right: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.phone-number {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 32px; /* Lowered a bit */
    right: 0;
    width: 62%;
    height: 50%;
    background-color: #fff;
    z-index: 1002;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 30px;
}

.mobile-menu-bar {
    width: 100%;
    height: 5px;
    background-color: #46c8f5;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1003;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 15px;
}

.mobile-menu ul li {
    margin-bottom: 25px;
    font-size: 20px;
}

.mobile-menu ul li a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 36px;
    background: none;
    border: none;
    color: #46c8f5;
    cursor: pointer;
    z-index: 1003;
}

.mobile-menu.open .mobile-menu-close {
    display: block;
}

.mobile-phone-number {
    color: #46c8f5;
    font-weight: bold;
    text-decoration: none;
    font-size: 20px;
    margin-top: 20px;
}

/* Responsive Styles */
@media only screen and (max-width: 767px) {
    .nav-links,
    .phone-number {
        display: none;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-header-text {
        display: block;
    }
}

/* Hide the center text on desktop */
@media only screen and (min-width: 768px) {
    .mobile-header-text {
        display: none;
    }

    /* Hide the mobile menu toggle on desktop */
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hide the center text on very small screens */
@media only screen and (max-width: 360px) {
    .mobile-header-text {
        display: none;
    }
}


/* General Footer Styles */
.desktop-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0;
    text-align: center;
    position: relative;
}

/* Footer Sections */
.desktop-footer .footer-sections {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 40px; /* Increased space between sections */
}

/* Individual Section */
.desktop-footer .footer-section {
    max-width: 460px;
    text-align: center;
}

/* Headings */
.desktop-footer h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Paragraphs and Links */
.desktop-footer p, .desktop-footer a {
    font-size: 15px;
    color: #fff;
    text-decoration: none;
}

.desktop-footer a:hover {
    color: #46c8f5;
}

/* Social Icons */
.desktop-footer .social-icons {
    display: flex;
    justify-content: center;
    margin: 80px 0; /* Increased space above and below the icons */
    width: 100%;
}

/* Individual Social Icon */
.desktop-footer .social-icons a {
    margin: 0 35px;
}

.desktop-footer .social-icons img {
    width: 60px;
    height: 60px;
    display: inline-block;
}

/* Footer Bottom Bar */
.desktop-footer .footer-bottom {
    background-color: #222;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    width: 98.6%; /* Keep the width of the footer bar */
    margin-top: 35px; /* Further increased space above the bottom bar */
    position: absolute;
    left: 0;
    bottom: 0;
}

/* Mobile Footer Styles */
.mobile-footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    display: none;
}

.mobile-footer .footer-section {
    margin-bottom: 20px;
}

.mobile-footer h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.mobile-footer p, .mobile-footer a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

.mobile-footer a:hover {
    color: #46c8f5;
}

.mobile-footer .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-footer .social-icons a {
    margin: 10px;
}

.mobile-footer .social-icons img {
    width: 45px;
    height: 45px;
    display: inline-block;
}

.mobile-footer .footer-bottom {
    background-color: #222;
    padding: 10px;
    font-size: 12px;
    text-align: center;
}

/* Ensure the desktop footer is hidden on mobile */
@media only screen and (max-width: 767px) {
    .desktop-footer {
        display: none !important;
    }

    .mobile-footer {
        display: block !important;
    }
}

/* Ensure the desktop footer remains visible on larger screens */
@media only screen and (min-width: 768px) {
    .desktop-footer {
        display: flex;
    }

    .mobile-footer {
        display: none;
    }
}

/* Hide the mobile map on desktop */
@media (min-width: 768px) {
    .mobile-map {
        display: none !important;
    }
}

/* Hide the desktop map on mobile */
@media (max-width: 767px) {
    .desktop-map {
        display: none !important;
    }
}

/* General Page Styles */
.services-page {
    background-color: #e0e0e0; /* Slightly darker gray background */
    max-width: 100%; /* Ensure background goes full width */
    margin: 0;
    padding: 40px 20px;
    text-align: center;
}

.services-page h2 {
    font-size: 32px;
    margin-bottom: 100px; /* Space between header and first image */
    font-weight: bold; /* Bold the heading */
    color: #00026b;
}

.services-page .service {
    margin-bottom: 50px;
}

.services-page .service img {
    width: 100%;
    max-width: 1000px; /* Large image size */
    height: 600px; /* Taller images */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer; /* Make the image look clickable */
}

.services-page h3 {
    font-size: 24px;
    margin-top: 20px;
    font-weight: bold; /* Bold the subheadings */
    color: #00026b;
}

.services-page p {
    font-size: 18px; /* Slightly bigger font for better readability */
    margin: 10px auto;
    color: #333;
    max-width: 600px; /* Reduced box size for regular text */
}

.services-page .quote-button {
    display: inline-block;
    background-color: #1da323; /* Slightly darker green */
    color: white;
    padding: 12px 25px; /* Slightly smaller button size */
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    font-weight: normal;
    margin-top: 20px; /* Add space above button */
}

.services-page .quote-button:hover {
    background-color: #188e1f;
}

/* Custom mobile image adjustments */
@media only screen and (max-width: 767px) {
    /* Hide desktop block and show mobile block */
    .desktop-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
    }

    .mobile-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 10px;
        margin: 0 auto;
    }

    /* Adjust image size and position for mobile */
    .service img {
        height: 250px;
        object-fit: cover;
        object-position: center;
    }

    /* Specific adjustment for the first service's text box */
    .service:nth-child(1) p {
        max-width: 95%; /* Increase width slightly */
        margin: 0 auto;
        line-height: 1.7; /* Adjust line height for better spacing */
    }

    /* Adjust the regular text box for other services */
    .service p {
        max-width: 95%; /* Keep the width for other services */
        margin: 0 auto;
    }

    .quote-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Ensure desktop images are visible on larger screens */
@media only screen and (min-width: 768px) {
    .mobile-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
    }

    .desktop-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}



/* General Styles for Partners Page */
.partners-page {
    background-color: #373737;
    padding: 50px 0;
    text-align: center;
}

.partners-page h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 50px;
    color: white;
}

/* Container for the partner sections */
.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 10px; /* Side padding */
}

/* Individual partner section */
.partner {
    flex: 0 0 48%; /* Slightly less than 50% to allow gaps */
    box-sizing: border-box;
    margin: 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Keep side-by-side until 1200px */
@media (min-width: 1201px) {
    .partner {
        flex: 0 0 48%;
    }
}

/* Stack vertically below 1200px */
@media (max-width: 1200px) {
    .partner {
        flex: 0 0 100%;
        margin: 10px 0;
    }
}

/* Content inside each partner section */
.partner-content {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.partner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay content */
.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Text overlay near the top */
.partner-text-overlay {
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    z-index: 2;
}

/* Overlay bottom content */
.overlay-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -10px; /* Bring closer to the button */
    z-index: 2;
}

.small-overlay-img {
    width: 160px; /* Larger size */
    height: auto;
    margin-bottom: -10px; /* Touch the button */
    cursor: pointer; /* Indicate clickable */
}

/* Partner Button */
.partner-button {
    background-color: #25CB2A;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.partner-button:hover {
    background-color: #188e1f;
}

/* Partner description */
.partner-description {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 18px;
    line-height: 1.8;
    padding: 15px; /* Reduced padding for responsiveness */
    border-radius: 10px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    min-height: 180px; /* Adjusted min-height */
}

/* Ensure descriptions are aligned side by side with equal heights */
.partners-container {
    align-items: stretch;
}

.partner-description {
    flex: 1;
}

/* Specific adjustments for the second image to prevent important content from being cut off */
.partner:nth-child(2) .partner-image {
    object-position: center; /* Adjusted to prevent cutting */
}

/* Make images stretch almost edge-to-edge */
body, html {
    margin: 0;
    padding: 0;
}

.partners-container {
    margin: 0;
    padding: 0;
}

.partner {
    padding: 0;
    margin: 0;
}

/* For larger screens, reduce padding to make images almost touch the sides */
@media (min-width: 1400px) {
    .partners-container {
        padding: 0 5px; /* Reduced side padding */
    }
    .partner {
        margin: 0.5%; /* Reduced margin */
    }
}

/* Adjust small images to be larger and closer to buttons on all screen sizes */
.small-overlay-img {
    width: 160px; /* Larger size */
    margin-bottom: -10px; /* Touch the button */
}

/* Adjust small images on screens below 1030px */
@media (max-width: 1030px) {
    .small-overlay-img {
        width: 150px; /* Increased size for screens >850px and <=1030px */
        margin-bottom: -10px; /* Touch the button */
    }
}

/* Adjust small images on mobile screens */
@media (max-width: 850px) {
    .small-overlay-img {
        width: 160px; /* Slightly larger size for mobile */
        margin-bottom: -10px; /* Touch the button */
    }

    .partner-content {
        padding-top: 80%; /* Make images longer vertically */
    }
    
    .partner-image {
        object-position: center; /* Ensure full visibility */
    }

    .overlay-bottom {
        margin-bottom: -10px; /* Closer to the button */
    }

    .partner-button {
        z-index: 2; /* Ensure button is above image */
    }

    .partner-text-overlay {
        font-size: 24px; /* Reduced font size for mobile */
    }
}

/* Further adjustments for very small mobile screens below 650px */
@media (max-width: 650px) {
    .partner-content {
        padding-top: 90%; /* Make images even longer vertically */
    }

    .partner-text-overlay {
        font-size: 20px; /* Further reduce font size */
    }

    .small-overlay-img {
        width: 150px; /* Slightly smaller size for very small mobiles */
        margin-bottom: -10px; /* Touch the button */
    }

    .partner-description {
        padding: 10px; /* Further reduce padding */
        min-height: 150px; /* Adjust min-height */
    }
}

/* Adjust descriptions to prevent being too thick */
.partner-description {
    padding: 15px; /* Further reduced padding */
    box-sizing: border-box;
}

@media (max-width: 1000px) {
    .partner-description {
        padding: 10px; /* Further reduce padding */
        min-height: 180px; /* Adjust min-height */
    }
}

/* Ensure small images are just above the button on all non-mobile screens */
@media (min-width: 851px) and (max-width: 1200px) {
    .small-overlay-img {
        margin-bottom: -10px; /* Touch the button */
    }
}

/* Contact Page Styles */
.contact-page {
    padding: 50px 20px;
    background-color: #f4f4f4;
    font-family: 'Open Sans', sans-serif;
}

.contact-page h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #002D62;
    text-align: center;
}

.contact-intro {
    font-size: 20px;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-box {
    flex: 1 1 300px;
    max-width: 400px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-box h3 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #002D62;
}

.contact-box h3 a {
    color: #002D62;
    text-decoration: none;
}

.contact-box h3 a:hover {
    text-decoration: underline;
}

.contact-method {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-method a {
    color: #333;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 10px;
}

/* Buttons */
.button {
    display: inline-block;
    background-color: #25CB2A;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    font-weight: bold;
    margin: 20px auto;
    text-align: center;
    border: none;
    cursor: pointer;
    width: fit-content;
}

.button:hover {
    background-color: #188e1f;
}

.social-button {
    background-color: #1E90FF;
}

.social-button:hover {
    background-color: #1C86EE;
}

/* Footer Social Icons */
.social-icon {
    transition: transform 0.3s, background-color 0.3s;
}

.social-icon.highlight {
    transform: scale(1.2);
    background-color: #ffea00;
    border-radius: 50%;
}

/* Centering Button Container */
.button-container {
    text-align: center;
    font-size: 20px; /* Increased font size for bottom texts */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    .contact-box {
        width: 90%;
        max-width: 350px;
        padding: 10px;
        margin: 0;
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        margin: 5px 0;
    }

    .contact-box h3 {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .contact-method {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .button {
        padding: 10px 20px;
        font-size: 16px;
        margin: 10px;
    }

    .button-container {
        font-size: 22px; /* Increased font size for bottom texts on mobile */
        margin-top: 15px;
    }
}

/* CSS for the Submit Button of Form ID 4026 */
#wpforms-submit-4026 {
    width: 100%;
    padding: 15px;
    background-color: #25CB2A;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1em;
    cursor: pointer;
}

#wpforms-submit-4026:hover {
    background-color: #1ea623;
}

/* Additional Styles for Responsiveness */
@media (max-width: 768px) {
    #wpforms-submit-4026 {
        width: 100%;
    }
}

.wpforms-container.wpf-center {
margin: 0 auto !important;
/* Adjust the width in the next 2 lines as your site needs */
max-width: 500px !important;
width: 500px !important;
}
 
/* Readjust the form width for smaller devices */
@media only screen and (max-width: 600px) {
 
.wpforms-container.wpf-center {
/* Reset the width for devices under 600px */
max-width: unset !important;
width: auto !important;
}
 
}

/* Quote Page Hero Section */
.quote-hero-section {
    background-image: url('https://scalabrinicleanings.com/wp-content/uploads/2024/10/Staircase-Cleaning-1024x672.jpeg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh; /* Makes the background cover the upper half of the page */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.quote-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity here */
    z-index: -1;
}

/* Hero Text Styling */
.quote-hero-text h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    margin: 0;
    padding: 0;
    z-index: 2;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .quote-hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #wpforms-submit-4026 {
        padding: 35px 15px; /* Increased vertical padding to 35px */
        font-size: 1.8em; /* Increased font size */
        border-radius: 20px; /* Made the button rounder */
        text-align: center; /* Ensures text stays centered */
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
