.hero-sub-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* 1. Force the Card Style: Rounded Corners & Soft Shadow */
.strong-view.default .testimonial {
    background: #ffffff !important;
    border: none !important; /* Removes that thin black line */
    border-radius: 12px !important; /* Rounded corners */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08) !important; /* The soft shadow you liked */
    padding: 20px !important;
    margin-bottom: 20px !important;
}

/* 2. Fix the Border on the inner element */
.strong-view.default .testimonial-inner {
    border: none !important;
    background: transparent !important;
}
/* This makes all buttons on your site fade smoothly */
button, 
.button, 
.wp-block-button__link, 
a.btn, 
.strong-view .button {
    transition: all 0.2s ease-in-out !important;
}

/* This specifically ensures the hover effect is smooth */
button:hover, 
.button:hover, 
.wp-block-button__link:hover, 
a.btn:hover {
    transition: all 0.2s ease-in-out !important;
}

/* 1. Set the Base Button Style (Deep Forest Green) */
.wp-block-button__link, 
.button, 
button {
    background-color: #228B22 !important; /* Forest Green base */
    color: #ffffff !important; /* Crisp White text for maximum contrast */
    transition: all 0.3s ease-in-out !important; /* Smooth fade effect */
    border: none !important;
}

/* 2. Set the Hover State (Slightly Darker Green) */
.wp-block-button__link:hover, 
.button:hover, 
button:hover {
    background-color: #182D09 !important; /* Deepest Forest Green hover */
    color: #ffffff !important; /* Keeps text white so it doesn't turn blue */
    transform: translateY(-2px); /* Optional: Slight lift for a modern feel */
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1); /* Adds depth on hover */
}

/* 1. Container Setup */
.service-hover-box {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pins content to the bottom */
}

/* 2. The Text Container (the List) */
.service-hover-box .wp-block-cover__inner-container,
.service-hover-box .wp-block-group { 
    opacity: 0;
    transform: translateY(100%); /* Start completely below the frame */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 30px 20px 20px 20px !important;
    width: 100%;
    z-index: 2;
    text-align: center;
}

/* 3. The Green Gradient Overlay */
.service-hover-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; /* Gradient covers the bottom 70% of the image */
    background: linear-gradient(to top, rgba(46, 125, 50, 0.95) 0%, rgba(46, 125, 50, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* 4. Hover State: Bring everything up */
.service-hover-box:hover .wp-block-cover__inner-container,
.service-hover-box:hover .wp-block-group {
    opacity: 1;
    transform: translateY(0); /* Slide into view */
}

.service-hover-box:hover::after {
    opacity: 1;
}

/* 5. Mobile Layout: Green Block below the Image */
@media screen and (max-width: 767px) {
    /* Stack image and text vertically */
    .service-hover-box {
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        height: auto !important;
        background: transparent !important;
    }

    /* Target the text box and move it below */
    .service-hover-box .wp-block-cover__inner-container,
    .service-hover-box .wp-block-group {
        position: relative !important; /* Forces it below the image */
        opacity: 1 !important;
        transform: translateY(0) !important;
        width: 100% !important;
        
        /* BRANDING: Forest Green Background */
        background-color: #2E7D32 !important; 
        color: #ffffff !important; /* White text for contrast */
        
        padding: 25px 20px !important;
        border-radius: 0 0 12px 12px !important; /* Rounds the bottom corners */
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    /* Ensure list bullets are white */
    .service-hover-box ul {
        margin: 0 !important;
        padding-left: 25px !important;
        list-style-type: disc !important;
        color: #ffffff !important;
    }

    /* Hide the old hover gradient */
    .service-hover-box::after {
        display: none !important;
    }

    /* Fix the image corners to sit flush with the green box */
    .service-hover-box img, 
    .service-hover-box .wp-block-cover__image-background {
        position: relative !important;
        height: 220px !important;
        border-radius: 12px 12px 0 0 !important; /* Rounds the top corners */
        object-fit: cover;
    }
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* CLEAN CIRCLE SCROLL TO TOP */
.floating-top-btn {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 9999 !important;
    /* Removes any background/border from the outer block */
    background: transparent !important; 
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important; 
}

.floating-top-btn a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important; /* Forces a perfect circle width */
    height: 50px !important; /* Forces a perfect circle height */
    border-radius: 50% !important; /* Makes it round */
    background-color: #2E7D32 !important; /* Your green */
    color: white !important;
    text-decoration: none !important;
    font-size: 20px !important;
    /* Adds a soft shadow ONLY to the circle, not the square box */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transition: transform 0.2s ease-in-out !important;
}

/* Adds a little "pop" when you hover over it */
.floating-top-btn a:hover {
    transform: scale(1.1);
}

/* 1. TOP-LEVEL MENU (Services, About, etc.) - Keep these Dark */
.wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    color: #2E7D32 !important; /* Your Brand Green (or use #000000 for Black) */
}

/* 2. DROPDOWN CONTAINERS - The Green Boxes */
.wp-block-navigation .wp-block-navigation__submenu-container {
    background-color: #2E7D32 !important; 
    border-radius: 8px !important;
    padding: 5px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* 3. DROPDOWN LINKS ONLY - Make these White */
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    color: #ffffff !important; 
    padding: 12px 20px !important;
    font-size: 14px !important;
}

/* 4. HOVER EFFECT inside the Dropdown */
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    background-color: #1B5E20 !important;
    color: #ffffff !important;
}

/* 5. FORCE 3rd LEVEL TO THE RIGHT */
.wp-block-navigation-item.has-child .wp-block-navigation__submenu-container .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
    left: 100% !important;
    right: auto !important;
    top: 0 !important;
}

/* 1. Remove the green square and style the arrow */
.wp-block-navigation-submenu__toggle svg {
    background-color: transparent !important; /* Removes the green box */
    color: #2E7D32 !important; /* Makes the arrow your brand green */
    width: 12px !important; /* Makes it a subtle size */
    height: 12px !important;
    margin-left: 8px !important; /* Gives it some breathing room from the text */
    transition: transform 0.3s ease !important;
}

/* 2. Remove any extra padding/borders on the button itself */
.wp-block-navigation-submenu__toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* 3. Optional: Make the arrow rotate when the menu is open */
.is-menu-open .wp-block-navigation-submenu__toggle svg {
    transform: rotate(180deg);
}

.no-underline a { text-decoration: none !important; }

/* Adds space between image and text on mobile for Media & Text blocks */
@media (max-width: 600px) {
    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
}