/* --- Arborists Only LLC: Core Styles --- */

    :root {
        --primary-red: #C00000; /* Deep, professional Red */
        --secondary-green: #004D40; /* Dark Teal/Forest Green for contrast */
        --light-bg: #F8F8F8;
        --dark-text: #222;
        --light-text: #FFF;

        /* Define Footer Colors for Consistency */
        --arbor-footer-red: #A30000;
        --footer-link-color: #CCCCCC;
    }
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        color: var(--dark-text);
       background-color: #EFEFEF;
   display: flex;
    flex-direction: column;
    min-height: 100vh;
}
    a {
        text-decoration: none;
        color: var(--primary-red);
    }
    a:hover {
        text-decoration: underline;
    }

    /* --- Header & Banner --- */
    .top-banner {
        background-color: var(--primary-red);
        color: var(--light-text);
        padding: 15px 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .logo {
        font-size: 24px;
        font-weight: bold;
        color: var(--light-text);
    }
    .nav-menu a {
        color: var(--light-text);
        margin: 0 15px;
        font-weight: 500;
        transition: color 0.3s;
    }
    .nav-menu a:hover {
        color: #FFD700; /* Gold highlight on hover */
        text-decoration: none;
    }
   .phone-cta-container {
    text-align: center;
    background-color: #f8f8f8; /* Light grey background to separate it from the banner */
    padding: 20px 0;
    border-bottom: 2px solid #ddd;
}

.green-icon svg {
    color: #85CB44;
    /* Increase these values to make the icon even bigger */
    width: 48px;    
    height: 48px;
    margin-right: 15px;
    stroke: #85CB44; 
    stroke-width: 1px; /* This makes the icon look thicker/bolder */
    display: inline-block;
    vertical-align: middle;
}

.phone-link {
    /* Keep this at your original preferred text size */
    font-size: 2.2rem; 
    font-weight: bold;
    color: #b22222;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
}

main {
    flex-grow: 1; /* This tells the main content to take up all available vertical space */
}

.centered-contact-info {
    /* This centers the text and the inline link inside the wrapper */
    text-align: center;
    
    /* Optional: If the contact info block is currently full-width, you may want to 
       constrain its width to match your 850px hero image, and then center the block itself. */
    /* max-width: 850px; 
    margin-left: auto;
    margin-right: auto; */
}

/* --- New Image Banner Styles --- */
.image-banner {
    position: relative;
    width: 100%;
    /* Define the banner height/ratio (e.g., 25vh, or 25% of viewport height) */
    height: 50vh; 
    overflow: hidden; /* Crucial for cropping the square image */
    background-color: var(--light-bg); /* Fallback */
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image cover the banner area, cropping sides/top as needed */
    object-position: 50% 50%; /* Center the image within the container */
}

/* Ensure the navigation and phone CTA overlays the image */
.top-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    background-color: rgba(192, 0, 0, 0.8); /* Semi-transparent red for readability */
    color: var(--light-text);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .image-banner {
        height: 30vh; /* A bit taller on mobile */
    }
}

    /* --- Main Content --- */
    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 0;
    }

    /* --- FIX FOR DEPRECATED API WARNING --- */
    /* Explicitly define font-size and margin for h1 to avoid reliance on deprecated browser defaults */
    h1 {
        /* This ensures the H1 size is fixed and does not change based on nesting */
        font-size: 2em; 
        margin-block-start: 0.67em;
        margin-block-end: 0.67em;
    }
    /* Group the rest of your headings */
    h2, h3 {
        color: var(--primary-red);
        text-align: center;
        margin-bottom: 20px;
    }
    h1, h2, h3 {
        color: var(--primary-red);
        text-align: center;
        /* The existing styles applied to all three */
    }
.text-container {
    /* Set the maximum width to match the hero image container (850px) */
    max-width: 700px; 
    
    /* Center the block of text on the page */
    margin-left: auto;
    margin-right: auto;
    
    /* Optional: Add some space above the text */
    padding-top: 20px;
}

    .cta-button {
        display: block;
        width: 250px;
        margin: 30px auto;
        padding: 15px 25px;
        background-color: var(--primary-red);
        color: var(--light-text);
        text-align: center;
        border-radius: 8px;
        font-size: 1.2em;
        font-weight: bold;
        transition: background-color 0.3s;
    }
    .cta-button:hover {
        background-color: #D32F2F;
        text-decoration: none;
    }
/* --- New Gallery/Slider Styling for Hero Section --- */

.hero-image {
    flex: 1;
    max-width: 850px !important; /* MATCHES YOUR GLOBAL MENU WIDTH */
    border-radius: 8px;
    position: relative; 
    width: 100%;
    overflow: hidden; 
    border: 6px solid #C00000; 
    box-sizing: border-box;
    padding: 0; 
    margin: 0 auto !important; /* SHORTHAND FOR CENTERING */

    /* THE FIX FOR THE WHITE SPACE: */
    height: auto !important; 
    transition: height 0.5s ease-in-out; 
}

.et_pb_gallery_items {
    display: flex;
    width: 800%; 
    transition: transform 0.5s ease-in-out; 
    height: auto !important; 
    /* The gallery system may be using Flexbox or Grid */
    align-items: flex-start !important;

    }.et_pb_gallery_item {
    width: 12.5%; 
    flex-shrink: 1;
}

.et_pb_gallery_item img {
    width: auto;
    height: auto;
    max-width: 100%; 
    max-height: 100%;
    display: block;
}


/* --- Consolidated Footer Styles (Combined & Cleaned) --- */
.footer {
    background-color: var(--arbor-footer-red); /* Using the variable defined in :root */
    color: var(--light-text); 
    padding: 30px 5%;
    margin-top: auto;
    font-size: 0.9em;
}

/* 1. NEW GRID LAYOUT for 4 Columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)); 
    gap: 40px; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}

/* 2. Style to split the Service Area list */
.service-area-lists {
    display: flex; 
    justify-content: space-between; 
    width: 100%;
}

/* 3. Styling the lists inside the service area */
.service-area-lists ul {
    list-style: none; 
    padding: 0;
    margin: 0;
}


/* Specific adjustment for Service Area H4 before the lists */
.footer-col-service h4 {
     margin-bottom: 5px; 
}

/* Contact Address Class */
.contact-address {
    white-space: nowrap; 
}

/* Styling for the links inside the footer */
.footer a {
    color: #FFFFFF; 
    text-decoration: none;
}

.footer {
    /* ... existing styles ... */
    color: #FFFFFF;
}

/* Logo Sizing */
.logo-footer {
    width: 150px; 
    height: 113px;
    display: block; 
    margin-bottom: 10px; 
}

/* Optional: Styling for link hover state */
.footer a:hover {
    color: #CCCCCC; 
    text-decoration: underline; 
}

.footer-col h4, 
.footer-col-contact h4, 
.footer-col-links h4 {
    color: #E0F7FA !important; /* Replace with your chosen Hex Code */
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Ensure old .footer-col styles are reset if needed (if you are reusing .footer-col) */
.footer-col {
    padding: 0; 
}

/* Styling for the copyright text */
.copyright {
    color: white;
    text-align: center;
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
    font-size: 0.8em;
    margin-top: 10px;
}

/* --- New Banner Container Style --- */

.banner-container {
    width: 100%;
    /* Remove max-height from here to let the image define the height */
    background-color: var(--primary-red); 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.menu-banner-image {
    width: 100%;
    max-width: 1000px; /* Limits size on large desktops */
    height: auto;
    /* aspect-ratio is the key for your coordinate math */
    aspect-ratio: 1 / 1; 
    display: block;
    margin: 0 auto;
    /* Remove max-height and object-fit to prevent internal shifting */
}
/* Styling for the container holding your service area list */
.city-list-container ul {
    column-count: 2;
    list-style: disc; 
    margin-left: 20px;
    padding-left: 0;
}

/* Optional: Make it stack back into one column on very small screens */
@media (max-width: 600px) {
    .city-list-container ul {
        column-count: 1;
    }
}

/* Styling for the Mission Statement Section */
.mission-section {
    padding: 60px 20px; 
    background-color: #f9f9f9; 
    color: #333; 
}

.mission-container {
    max-width: 800px; 
    margin: 0 auto; 
    text-align: left; 
}

.mission-container h2 {
    text-align: center; 
    color: #A30000; 
    margin-bottom: 30px; 
    font-size: 2em;
}

.mission-container p {
    line-height: 1.8; 
    margin-bottom: 20px; 
    font-size: 1.1em; 
}


.content-wrapper {
    max-width: 900px; 
    margin: 0 auto; 
    background-color: #FFFFFF;
    padding: 0 20px;
    /* This tells the browser to treat this as a solid block immediately */
    display: block;
    overflow: hidden; 
}/* --- CONSOLIDATED & CORRECTED MEDIA QUERIES --- */

/* 1. Tablet/Mid-sized Screens (Max 1024px) */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* 2. Small Screens (Mobile - Max 768px) */
@media (max-width: 768px) {
    .home-page .container {
        padding-top: 0 !important;
    }
    
    .home-page h1 {
        margin-top: 0 !important;
    }

    .top-banner {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        margin: 10px 0;
    }

    .nav-menu a {
        display: block;
        margin: 5px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr; 
    }

    .footer-col {
        margin-bottom: 20px;
    }

    .service-area-lists {
        flex-direction: column; 
    }
    
    .service-area-lists ul {
        margin-bottom: 15px;
    }

    .narrative-center {
        max-width: 750px !important; 
        width: 90% !important; 
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important; 
    }

    /* Stacks the services into one column on mobile */
    .services-grid {
        grid-template-columns: 1fr; 
    }
} 

/* 3. Desktop Services Grid (Outside the mobile query) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 40px; 
}

/* Update your .service-item in styles.css */
.service-item {
    margin-bottom: 40px;
    
    /* ADD BORDER ON RIGHT SIDE */
    border-right: 5px solid var(--primary-red);
    padding-right: 15px; 

    /* Keep or update the left side as desired */
    border-left: 5px solid var(--primary-red);
    padding-left: 15px; 
}

.service-image {
    text-align: center; 
    margin-bottom: 5px;
/* --- FIX FOR PAGESPEED/CLS --- */
    /* Use padding to create a 1:1 aspect ratio container */
    padding-top: 100%; /* The padding-top percentage is relative to the width, so 100% means 1:1 */
    position: relative; /* Needed so the image can be positioned absolutely inside */
    height: 0;          /* Reset height to zero so padding-top controls the box size */
    overflow: hidden;   /* Hides any accidental overflow */
}

.service-image img {
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use object-fit to ensure the image covers the reserved space cleanly */
    object-fit: cover;
}

.service-cta {
    width: 200px;
}

/* Mobile: Overrides for screens smaller than 768px (uses the existing media query) */
@media (max-width: 768px) {
    .services-grid {
        /* Mobile: Switch to one column */
        grid-template-columns: 1fr; 
    }
}

/* 1. Universal Styles for both Desktop and Mobile */
/* 1. Full-Width Background Container */
.nav-full-width-bg {
    width: 100%;
    background-color: #b12b28; /* Your specific red color */
    display: block;
}

/* 2. Centered Content Wrapper (Restricts the banner/links) */
.nav-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1000px; /* Keeps your banner from getting too big */
    margin: 0 auto;    /* Centers the banner on the screen */
    overflow: hidden;
}

/* Ensure the banner image fills the centered wrapper */
.menu-banner-image {
    display: block;
    width: 100%;
    height: auto;
}
/* 2. Desktop-Specific Alignment (Screens wider than 768px) */
@media (min-width: 769px) {
    .touch-target {
        position: absolute;
        left: 50px;    /* Keeps links tucked to the left side of the banner */
        width: 280px;  /* Fixed width prevents links from running off the page */
        height: 55px;  /* Comfortable height for mouse clicks */
        z-index: 10;
        background: rgba(255, 0, 0, 0); /* Invisible */
    }
}

/* 3. Mobile-Specific Alignment (Phones) */
@media (max-width: 768px) {
    .touch-target {
        position: absolute;
        left: 0;        /* Changed from 5% to 0 to align perfectly with the edge */
        width: 30%;     /* Lower this from 45% until it clears the truck/bucket */
        height: 65px;  
        z-index: 10;
        background: rgba(255, 0, 0, 0.0); 
    }
}
/* 4. Vertical Positions (Shifted down two full slots) */
.home     { top: 23%; }
.map      { top: 31%; }
.services { top: 38%; }
.gallery  { top: 45%; }
.about    { top: 53%; }
.contact  { top: 60%; }

/* --- Global Mobile Footer Adjustments --- */
@media (max-width: 768px) {
    /* Increases size for the list of cities in the Service Area */
    .service-area-lists li, 
    .footer-col-service li,
    .footer-col-service ul li {
        font-size: 1.3rem !important; /* Larger for easy reading */
        margin-bottom: 10px !important; /* Extra space to prevent accidental taps */
        list-style: none;
    }

    /* Increases size for all Quick Links */
    .footer-col-links p, 
    .footer-col-links a {
        font-size: 1.3rem !important;
        padding: 8px 0 !important; /* Larger tap target */
        display: block !important;
        text-decoration: none;
    }

    /* Ensures legal links at the bottom are also clear */
    .footer-col-links hr + p a {
        font-size: 1.1rem !important;
    }
}

/* --- Global Footer Header Update --- */
.footer h4,
.footer h3, 
.footer h2, 
.footer-col h4, 
.footer-col-service h4, 
.footer-col-links h4, 
.footer-col-contact h4 {
    color: #ffffff !important; /* Forces the new Soft Cyan color */
    font-size: 1.4rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(224, 247, 250, 0.3); /* Matching subtle underline */
    padding-bottom: 5px;
    text-align: left;
}

/* --- Mobile Footer Contact spacing & Phone highlight --- */
@media (max-width: 768px) {
    /* Spreads out the 5 lines to fill the container and prevent mis-clicks */
    .footer-col-contact p {
        margin-bottom: 25px !important; /* Increases gap between rows */
        line-height: 1.6 !important;
    }

    /* Target the phone number specifically to make it larger */
    .footer-col-contact a[href^="tel:"] {
        font-size: 1.6rem !important; /* Larger than other text */
        display: inline-block;
        padding: 10px 0; /* Larger tap area */
        font-weight: bold;
    }
    
    /* Ensure the address doesn't wrap awkwardly with the new spacing */
    .contact-address {
        display: block;
        padding-top: 5px;
    }
}

/* Hide by default on desktop */
.mobile-phone-cta {
    display: none;
}

@media (max-width: 768px) {
    /* Show only on mobile */
    .mobile-phone-cta {
        display: block;
        text-align: center;
        background-color: var(--primary-red); /* Matches your theme */
        padding: 15px 0;
    }

    .mobile-phone-cta h1 a {
        color: #FFFFFF !important;
        font-size: 2.2rem; /* Large and bold */
        text-decoration: none;
        display: block;
    }
}