/* --- 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 a {
        background-color: var(--secondary-green);
        color: var(--light-text);
        padding: 10px 15px;
        border-radius: 5px;
        font-weight: bold;
        white-space: nowrap;
        transition: background-color 0.3s;
    }
    .phone-cta a:hover {
        background-color: #00796B;
        text-decoration: none;
    }

main {
    flex-grow: 1; /* This tells the main content to take up all available vertical space */
}

/* --- 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);
}
/* --- Vertical Menu Component Styles --- */

/* Define variables for easy color changes */
/* These are redundant if using the top :root block, consider consolidating */
:root {
    --arbor-red: #C41E3A; /* A close red matching the image */
    --arbor-green: #4CAF50; /* Green for the leaf/tree icons */
    --text-color: #ffffff; 
}

.vertical-menu-sidebar {
    width: 280px; /* Width of the menu column */
    background-color: var(--arbor-red);
    color: var(--text-color);
    height: 100%; /* If used as a full-height sidebar */
}

/* Logo Area */
.logo-area {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-icon-container {
    display: inline-block;
}

.tree-symbol {
    font-size: 36px;
    line-height: 1;
    color: var(--arbor-green);
    display: block;
}

.logo-text {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
}

/* Navigation List */
.side-nav ul {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
}

.side-nav a {
    display: flex; /* Use flexbox to align icon and text */
    align-items: center;
    padding: 15px 30px; 
    text-decoration: none;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.side-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15); 
}

.leaf-icon {
    color: var(--arbor-green);
    font-size: 20px;
    margin-right: 15px; 
}


@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 */
    }


    .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: auto; 
    border-radius: 8px;
    position: relative; 
}
.hero-image {
  width: 100%;
  overflow: hidden; 
  border: 6px solid #C00000; 
  box-sizing: border-box;
  padding: 0; 
}
.et_pb_gallery_items {
    display: flex;
    width: 800%; 
    transition: transform 0.5s ease-in-out; 
    
    }.et_pb_gallery_item {
    width: 12.5%; 
    flex-shrink: 0;
}

.et_pb_gallery_item img {
    width: 100%;
    height: auto;
    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;
}

.footer h4 { 
    color: #FFD700;
    border-bottom: 1px solid #444; /* Note: This border is darker than the text; consider using var(--footer-link-color) */
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 1.2em;
}

/* Ensure H2s inside the footer have the high-contrast color */
.footer h2 { 
    color: #FFD700; /* Bright gold/yellow for high contrast on red background */
    border-bottom: 1px solid #444; 
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 1.2em;
}


/* 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 {
    max-width: 150px; 
    height: auto;
    display: block; 
    margin-bottom: 10px; 
}

/* Optional: Styling for link hover state */
.footer a:hover {
    color: #CCCCCC; 
    text-decoration: underline; 
}

/* 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 {
    max-width: 100%; 
    height: auto;
    position: relative; 
}

/* Base style for the banner image */
.menu-banner-image {
    width: 100%; 
    height: auto;
    display: block;
}

/* 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; 
}


/* CSS to center the main content area */
.content-wrapper {
    max-width: 900px; 
    margin-left: auto; 
    margin-right: auto;
    background-color: #FFFFFF;
    padding: 0 20px;
}

/* --- CONSOLIDATED & CORRECTED MEDIA QUERIES --- */

/* ---------------------------------------------------- */
/* MEDIA QUERY 1: Tablet/Mid-sized Screens (Max 1024px) */
/* ---------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid {
        /* Switch from 4 columns to a 2x2 layout on mid-size screens */
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}


/* ---------------------------------------------------- */
/* MEDIA QUERY 2: Small Screens (Mobile - Max 768px) */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
    /* Existing Top Banner Fix */
    .top-banner {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu {
        margin: 10px 0;
    }
    .nav-menu a {
        display: block;
        margin: 5px 0;
    }
    /* Footer Grid Adjustments (Combined from your duplicate blocks) */
    .footer-grid {
        /* On small screens, stack all FOUR columns vertically */
        grid-template-columns: 1fr; 
    }
    .footer-col {
        margin-bottom: 20px; /* Add spacing between the stacked columns */
    }
    .service-area-lists {
        /* For phones, stack the two lists vertically too */
        flex-direction: column; 
    }
    .service-area-lists ul {
        margin-bottom: 15px; /* Add space between the stacked lists */
    }
    /* Narrative Center Fix (Using your !important rules) */
    .narrative-center {
        max-width: 750px !important; 
        width: 90% !important; 
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important; 
    }
}


/* ---------------------------------------------------- */
/* --- MEDIA QUERY 3: Extra Small Screens (Dedicated Banner Fix - Max 600px) --- */
@media (max-width: 600px) {
    /* CRITICAL: Allow horizontal scrolling for the entire page to view the fixed-width banner */
    body {
        overflow-x: auto; 
    }

    /* 1. Target the main container that holds the image map */
    .banner-container {
        /* Force the width you determined works */
        width: 700px !important; 
        max-width: none !important;

        /* --- THE NEW CENTERING FIX --- */
        position: relative !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; 
        
        /* Clean up redundant margin/padding */
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: visible; 
    }

    /* 2. Target the image with the map attribute */
    .menu-banner-image {
        width: 100% !important; 
        max-width: none !important; 
        height: auto !important;
    }
}

/* --- Services Page Layout Grid --- */
.services-grid {
    display: grid;
    /* Desktop: Two columns of equal width */
    grid-template-columns: 1fr 1fr; 
    /* Spacing between columns and rows */
    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;
}

.service-image img {
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto;
}

.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; 
    }
}