/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1100; /* High z-index to ensure it stays above everything */
    background: linear-gradient(180deg, #5A1414 90%, #451010); /* Adds slight gradient */
    color: #FFB612;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Adds subtle depth */
    padding: 15px 20px; /* Adds better spacing */
    text-align: center;
    font-size: 24px;
    font-family: 'Lora', serif;
    font-weight: bold;
    white-space: nowrap;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    padding: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between title and button */
    width: 100%;
    padding: 15px 20px; /* Adds some spacing inside */
    position: relative; /* Allows the button to be positioned separately */
    flex-wrap: nowrap; /* Prevents items from stacking */
    height: auto; /* Ensures header stays tall enough */
    will-change: transform; /* Optimizes rendering */
}

.navbar-title {
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column; /* Stacks title and contact info */
    align-items: center;
}


.navbar-title h1 {
    margin: 0;
    font-size: 40px;
    font-weight: bold;
    color: white;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px; /* Adds space between title and links */
}

.contact-info {
    font-size: 16px;
    color: white;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    margin-top: 5px; /* Adds spacing below the title */
    white-space: nowrap; /* Keeps everything on one line */
    overflow: hidden; /* Prevents text overflow */
    text-overflow: ellipsis; /* Shortens text instead of cutting it off */
    max-width: calc(100% - 40px); /* Ensures it doesn’t cause reflows */
    display: flex;
    justify-content: center;
    gap: 10px; /* Adds spacing */
}

.contact-info a {
    color: #ffb612;
    font-weight: bold;
    text-decoration: none;
}

.contact-info a:hover {
    color: #4FC3F7;
    font-weight: bold;
}

/* Header contact links - white for accessibility contrast compliance */
.site-header .contact-info a {
    color: #ffffff;
    text-decoration: underline;
}

.site-header .contact-info a:hover {
    color: #4FC3F7;
}

/* Hamburger Menu */
.hamburger-icon {
    position: relative; /* No longer absolute to prevent overlap */
    right: 15px; /* Locks it inside the visible area */
    font-size: 50px; /* Keeps button size readable */
    cursor: pointer; /* Ensures it's clickable */
    border: none; /* Removes default button styles */
    background: none; /* No background */
    color: #ffb612; /* Keeps the gold color */
    padding: 8px 12px;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown Menu */
.overlay {
    height: auto;
    width: 100%;
    max-width: 250px;
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #666; /* Medium gray */
    border-radius: 15px; /* Make the whole container rounded */
    overflow-y: auto;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    max-height: calc(100vh - 120px);
    transition: 0.5s ease;
    display: none;
    z-index: 1003;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.overlay-content {
    position: relative;
    top: 10%;
    width: 100%;
    text-align: center;
    padding: 20px 10px;
}

/* Dropdown Menu Links (Buttons) */
.overlay-content a {
    padding: 12px 12px; /* Minimum 48px tap height */
    text-decoration: none;
    font-size: 16px;
    font-family: 'Lora', serif;
    font-weight: bold;
    color: #5A1414;
    background-color: #ffb612;
    border-radius: 5px;
    margin: 5px 0;
    display: block;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: calc(100% - 20px);
    box-sizing: border-box;
}

.overlay-content a:hover {
    background-color: #5A1414; /* Maroon color for hover background */
    color: #FFB612; /* Gold color for hover text */
}

/* Hero Section */
.hero-section {
    background: url('../images/Halls-Landscaping-Falls-Church.webp') no-repeat center center;
    background-size: cover;
    position: relative; /* Required for overlay positioning */
    padding: 100px 20px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Add a dark overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 40% black overlay */
    z-index: 1;
}

/* Ensure text appears above the overlay */
.hero-text {
    position: relative;
    z-index: 2;
}

.hero-section h2 {
    color: #FFB612; /* Gold Header */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Keeps it readable */
    font-size: 30px;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.hero-section p {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    font-family: 'Merriweather', serif;
}


/* CTA Button */
.cta-button {
    background-color: #5A1414; /* Maroon for default state */
    color: #FFB612; /* Gold for text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin: 20px auto;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    background-color: #FFB612; /* Gold for hover background */
    color: #5A1414; /* Maroon for hover text */
}

/* About Us Section */
.about-section {
    background-color: #f7f2e7;
    padding: 5px 0;
    color: #5A1414;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.about-section h2 {
    color: #FFB612;
    background-color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.about-section p {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* Highlights Section */
.highlights-section {
    background-color: white;
    color: #5A1414;
    text-align: center;
    padding: 5px 0;
    font-family: 'Open Sans', sans-serif;
}

.highlights-section h2 {
    color: #FFB612;
    background-color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.highlights-section h3 {
    color: #5A1414;
    background-color: #ffb612;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-family: serif;
}

.highlights-section p {
    color: black;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* FAQ Section Styling */
.faq-section p {
    font-size: 16px;
    color: #5A1414;
    text-align: center;
}

.faq-section h2 {
    color: #FFB612;
    background-color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.faq-section h3 {
    font-size: 22px;
    text-align: center;
    color: #FFB612;
    font-family: serif;
    font-weight: bold;
    background-color: #5A1414;
    border-radius: 5px;
    padding: 5px;
}

.faq-cta-button {
    display: block;
    text-align: center;
    margin: 20px auto;
    max-width: 300px; /* Ensures button width is reasonable */
}

/* Services Section */
.services-section {
    background-color: #f7f2e7;
    padding: 5px 0;
    font-family: 'Open Sans', sans-serif;
}

.services-section h2 {
    color: #FFB612;
    background-color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.services-section .col-md-4 {
    margin-bottom: 20px;
} /* Adds bottom margin on index page so service pictures have padding */

.services-section .col-md-4-2 {
    margin-bottom: 0px;
} /* Removes bottom margin from service pages */
  /* Also used to remove bottom margin at bottom of Services Section (IVY REMOVAL SPOT) to close white gap   */

.services-section h3 {
    font-size: 22px;
    color: #FFB612;
    font-family: serif;
    font-weight: bold;
    text-align: center;
    background-color: #5A1414;
    border-radius: 5px;
    padding: 5px;
}

.services-section p {
    font-size: 16px;
    color: #5A1414;
}

/* Index Page Services Image Styles */
.service-item {
    display: flex;
    flex-direction: column; /* Stacks on small screens */
    align-items: stretch;
    text-align: center;
}

.service-image {
    max-width: 100%; /* Ensure it doesn't go beyond the container */
    height: auto;    /* Maintain aspect ratio */
    display: block;  /* Prevent unwanted inline spacing */
    margin: 0 auto;  /* Center the image */
}

/* Service page image — stretches to match expanded text content */
.col-md-4-2 .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    align-self: stretch;
}


/* Contact Section */
.contact-section {
    background-color: #5A1414;
    padding: 10px 0;
    color: #FFB612;
    font-family: 'Open Sans', sans-serif;
}

.contact-section h2 {
    color: #FFB612;
    background-color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.form-group {
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Center the form group */
    padding: 0 10px; /* Add padding for better alignment */
}

.form-control {
    width: 100%; /* Full width of the parent container */
    max-width: 100%; /* Ensure it doesn’t exceed its container */
    box-sizing: border-box; /* Include padding and borders in width calculations */
    padding: 12px; /* Keep padding for good usability */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-section button {
    background-color: #1e7e34; /* Distinct green color */
    color: white;
    font-size: 16px;
    padding: 15px 30px; /* Added padding to the button for a more compact look */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 300px; /* Set a max-width for the button */
    margin: 0 auto; /* Center the button */
    display: block; /* Ensure it behaves as a block element to respect margins */
}

.contact-section button:hover {
    background-color: #ffb612;
    transform: scale(1.05);
}

/* FAQ Section FOR INDEX PAGE */
.faq-index-section {
    background-color: #f7f2e7;
    color: #5A1414;
    text-align: center;
    padding: 5px 0;
    font-family: 'Open Sans', sans-serif;
}

.faq-index-section h2 {
    color: #FFB612;
    background-color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.faq-item h3 {
    font-size: 22px;
    text-align: center;
    color: #FFB612;
    font-family: serif;
    font-weight: bold;
    background-color: #5A1414;
    border-radius: 5px;
    padding: 5px;
}

.faq-item p {
    font-size: 16px;
    color: #5A1414;
    text-align: center;
}

/* Footer Section */
.site-footer {
    background-color: #FFB612;
    color: white;
    text-align: center;
}

.site-footer a {
    color: #5A1414;
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.footer-logo {
    flex: 1;
    text-align: center;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 10px auto 20px;
}

.footer-badge {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-lists {
    display: flex;
    justify-content: space-between;
    flex: 3;
    flex-wrap: nowrap;
}

.footer-lists .quick-links,
.footer-lists .services-links {
    flex: 1;
    text-align: center;
    margin-right: 20px;
}

.footer-lists ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: #5A1414;
    font-size: 14px;
    font-weight: bold;
}

.footer-lists h3 {
    color: black;
    font-size: 16px;
    font-weight: bold;
    font-family: serif;
    margin-bottom: 15px;
}

.footer-lists li {
    margin-bottom: 10px;
}

.footer-lists li a {
    color: blue;
    text-decoration: underline;
}

.footer-lists li a:hover {
    color: white;
    text-decoration: underline;
}

.contact-info-footer, .copyright-text {
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 16px;
    color: #bbb;
}

.copyright-text {
    margin-top: 10px;
}

/* Lower Footer Styles */
.lower-footer {
    background-color: #5A1414; /* Maroon background */
    padding: 5px; /* Add some padding */
}

.contact-info-footer, .copyright-text {
    color: #bbb; /* Smoky color */
    text-align: center;
    font-family: 'Lora', serif;
    font-size: 16px;
    margin: 0;
}

.lower-footer a {
    color: #ffb612; /* Gold links */
    font-weight: bold;
}

.lower-footer a:hover {
    text-decoration: underline;
}

/* Service Pages Page Title Bar */
.page-title-bar {
    background-color: #2d4f2f; /* Dark Green For The Title Bar */
    color: #ffb612; /* Gold text for consistency */
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Add spacing from the top */
}

.page-title-bar h2 {
    font-size: 24px;
    text-align: center;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.page-title-bar p {
    font-size: 16px;
    margin: 5px 0 0;
    font-family: 'Open Sans', sans-serif;
}
        
        /* All Media Queries */
/* ===== Mobile Styles (Max 1024px) ===== */
@media (max-width: 1024px) { /* Affects mid-sized screens & tablets - Is this needed? */
    .header-container {
        display: nowrap;
        flex-direction: row; /* Keeps everything in one line */
        align-items: center;
        justify-content: space-between;
        text-align: left;
        width: 100%;
    }

    .navbar-title {
        width: auto;
        text-align: left;
    }

    .contact-info {
        display: flex;
        justify-content: flex-end; /* Keeps contact info left-aligned */
        gap: 10px;
        white-space: nowrap; /* Prevents breaking */
    }

    .footer-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .footer-logo {
        text-align: center;
    }

    .footer-lists {
        flex-wrap: nowrap;
    }

    .footer-lists .quick-links,
    .footer-lists .services-links {
        margin-right: 10px;
    }

    .contact-info-footer {
        margin-top: 10px;
    }
}

/* ===== Mobile Styles (Min 768px) ===== */
@media (min-width: 768px) { /* Inline layout for larger screens */
    .service-item {
        flex-direction: row; /* Side-by-side layout */
        text-align: left;
    }
    .service-image {
        width: 40%; /* Adjust width for inline placement */
        margin-right: 20px; /* Adds spacing between image and text */
    }
    .col-md-4-2 .service-image {
        height: 100%; /* Override base height:auto so image fills text height */
    }
    .service-text {
        width: 60%;
    }
}

/* ===== Mobile Styles (Max 768px) ===== */
@media (max-width: 768px) {
    .header-container {
        justify-content: space-between; /* Ensures title & button are spaced */
        padding: 20px 15px; /* Padding for better spacing */
        position: relative; /* Ensures child elements align correctly */
    }

    .navbar-title h1 {
        font-size: 32px; /* Adjust title size for smaller screens */
        margin-bottom: 10px; /* Adds space between title and links */
    }
    
    .nav-links {
        text-align: left; /* Left-aligns links on mobile */
    }    

    .hamburger-icon {
        position: absolute;
        right: 15px; /* Ensures it doesn't go off-screen to the right */
        top: 10px; /* Moves it vertically - lower number means higher on page */
        margin-right: 10px; /* Mobile-specific fix - Adds spacing so it doesn’t hit the edge */
        font-size: 40px; /* Adjust menu button size */
        padding: 8px 10px; /* Sufficient tap area */
        min-width: 48px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    /* Ensures the contact info stays left-aligned and fits within the available space */
    .contact-info {
        text-align: left; /* Aligns text to the left instead of center */
        display: flex; /* Uses flexbox to keep items on the same line */
        justify-content: flex-start; /* Keeps items grouped to the left */
        gap: 10px; /* Adds space between "Call:" and "Email:" sections */
        flex-wrap: nowrap; /* Ensures that everything stays on a single line */
        overflow: hidden; /* Prevents content from overflowing off the screen */
        white-space: nowrap; /* Ensures no line breaks */
        max-width: 100%; /* Ensures it never exceeds the width of container */
    }

    /* This keeps "Call:" and the phone number together, as well as "Email:" and the email address */
    
    .contact-info span {
        display: flex; /* Groups the label and link together in a row */
        align-items: center; /* Ensures they align properly in height */
        gap: 5px; /* Adds slight spacing between label ("Call:") and the actual number */
        white-space: nowrap; /* Ensures "Call:" and number never split onto separate lines */
    }

    /* Ensures the links behave properly and don’t wrap */
    .contact-info a {
        display: inline-flex; /* Keeps it inline while allowing for styling */
        align-items: center;
        min-height: 48px; /* Sufficient tap target height */
        overflow: hidden; /* Prevents the link from overflowing its container */
        text-overflow: clip; /* Ensures the text does not get cut off with an ellipsis */
        white-space: nowrap; /* Ensures the link text remains on one line */
    }

}

/* ===== Mobile Styles (Max 480px) ===== */
@media (max-width: 480px) {
    .form-group {
        padding: 0 5px; /* Reduce side padding for very small screens */
    }

    .form-control {
        padding: 10px; /* Slightly smaller padding for compact fields */
    }
}


/* ===== TESTIMONIALS SECTION FOR INDEX PAGE (COMMENTED OUT FOR FUTURE USE IF NEEDED) =====
.testimonials-section {
    background-color: #2d4f2f;
    color: white;
    padding: 10px 0;
    font-family: sans-serif;
}

.testimonials-section h2 {
    color: #ffb612;
    background-color: black;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.testimonials-section .col-md-4 p {
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}
===== END OF COMMENTED OUT TESTIMONIALS SECTION ===== */