/*
Theme Name: Green Scapes Co Theme
Theme URI: https://example.com
Author: Robert Lavender
Description: A custom performance-focused starter theme integrated with Elementor.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: greenscapes-co-theme
*/

/* Core Global Elements */
body {
    background-color: #F4F7F5;
    color: #2B2D2F;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, a, li, span {
    font-display: swap; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Header & Navigation Layout */
.site-header {
    background-color: #ffffff; 
    border-bottom: 1px solid #E2ECE5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0; 
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
}


.site-logo {
    display: inline-flex;
    align-items: center;
    margin-top: 5px; 
}

.site-logo img {
    max-height: 50px; 
    width: auto; 
    display: block;
}


.site-title-link {
    color: #2E6F40;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.4rem;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; 
}

.nav-menu-list li a {
    color: #2B2D2F;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
    padding: 5px 0;
}

.nav-menu-list li a:hover {
    color: #2E6F40; 
}

.nav-menu-list li a:hover,
.nav-menu-list li.current-menu-item > a {
    color: #2E6F40;
    border-bottom: 2px solid #76A035;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.site-main {
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.elementor-full-width-content {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-full-width-content .container {
    max-width: 100%;
    padding: 0;
}

/* Footer */
.site-footer {
    background-color: #2B2D2F; 
    color: #E2ECE5; 
    padding: 60px 0 0 0;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 2px;
    background-color: #76A035; 
}

.footer-description {
    line-height: 1.6;
    color: #B4C6B9;
}

.footer-menu-list, .footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-list li a {
    color: #B4C6B9;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-menu-list li a:hover {
    color: #76A035;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #B4C6B9;
}

.footer-contact-list strong {
    color: #ffffff;
}

.sub-footer {
    background-color: #1F2122; 
    padding: 20px 0;
    border-top: 1px solid #3A3D40;
    font-size: 0.85rem;
    text-align: center;
    color: #8C9E92;
}

.sub-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub-footer p {
    margin: 0;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr ; 
        gap: 40px; 
        justify-content: center; 
    }

    
    .brand-info {
        grid-column: 1 / -1; 
        text-align: left;
        margin-bottom: 10px;
    }

    
    .navigation-links, 
    .contact-info {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
        padding-left: 10%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%); 
    }
    
    .footer-column {
        text-align: center;
    }
}

@media (min-width: 1025px) {
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px 40px 20px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; 
        
    }

    .navigation-links {
        justify-self: center; 
        width: 100%;
        max-width: max-content;
    }

    .footer-menu-list {
        display: grid !important;
        grid-template-columns: max-content max-content;
        gap: 10px 25px; 

    }
}

/* Hero Banner  Styling */

.global-site-hero-banner {
    background-color: #2E6F40; 
    padding: 80px 20px;
    width: 100%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-grid-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
    align-items: center;
}

.hero-left-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #ffffff;
    font-family: sans-serif;
    letter-spacing: -0.5px;
}

.hero-main-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #E2ECE5;
    margin: 0 0 25px 0;
    font-family: sans-serif;
}

.hero-action-btn {
    display: inline-block;
    background-color: #76A035; 
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    padding: 12px 24px;
    transition: background-color 0.2s ease-in-out;
    font-family: sans-serif;
}

.hero-action-btn:hover, .hero-action-btn:focus {
    background-color: #2C7C06;
}


.hero-right-image-zone {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-grid-container {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .hero-left-content {
        text-align: center;
        align-items: center;
    }
    .hero-right-image-zone {
        display:none;
    }
}

.rank-math-breadcrumb {
    display:none;
}

/* Projects Styling */
.project-archive-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}


.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: #ffffff;
    color: #2B2D2F;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #E2ECE5;
    transition: all 0.25s ease-in-out;
}

.filter-btn:hover, .filter-btn.active {
    background: #2E6F40; 
    color: #ffffff;
    border-color: #2E6F40;
    box-shadow: 0 4px 12px rgba(46, 111, 64, 0.2);
}


.portfolio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px;
}


.project-card-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(226, 236, 229, 0.5);
}

.project-card-item:hover {
    transform: translateY(-6px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card-image-box {
    height: 220px;
    overflow: hidden;
    background-color: #E2ECE5;
}

.responsive-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card-item:hover .responsive-card-img {
    transform: scale(1.05); /* Soft premium hover image zooming zoom scaling */
}

.card-body-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-taxonomy-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #76A035; /* Accent Leaf Green */
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-taxonomy-badge a {
    color: #76A035;
    text-decoration: none;
}

.card-entry-title {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-entry-title a {
    color: #2B2D2F;
    text-decoration: none;
    transition: color 0.2s;
}

.card-entry-title a:hover {
    color: #2E6F40;
}

.card-excerpt-text {
    color: #606461;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-action-link {
    margin-top: auto; 
    color: #2E6F40;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.card-action-link:hover {
    color: #76A035;
}

.no-posts-alert {
    grid-column: 1 / -1;
    text-align: center;
    color: #606461;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
}

.portfolio-cards-grid .card-image-box {
    border: 3px solid #E2ECE5; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: border-color 0.25s ease-in-out;
}

.project-card-item:hover .card-image-box {
    border-color: #76A035; 
}


.single-project-layout-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    width: 100%;
}

.project-main-graphic-wrapper {
    width: 100%;
    max-height: 500px; 
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2ece5;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
}

.project-main-graphic-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover; 
    object-position: center;
    display: block;
}


.project-detailed-narration p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A4D4F;
    margin-bottom: 20px;
}

.project-meta-panel {
    align-items: start !important;
}

.project-meta-panel > div {
    padding: 5px 10px;
    border-left: 2px solid #E2ECE5; /* Elegant vertical separator lines between fields */
}

.project-meta-panel > div:first-child {
    border-left: none;
    padding-left: 0;
}

/* --- WCAG 2.1 AA Core Accessibility Overrides --- */

a:focus, 
button:focus, 
input:focus, 
textarea:focus,
.filter-btn:focus {
    outline: 3px solid #76A035 !important; 
    outline-offset: 4px !important;
    box-shadow: 0 0 0 5px rgba(118, 160, 53, 0.3) !important;
}

.site-footer {
    color: #F4F7F5 !important; 
}
.sub-footer {
    color: #B4C6B9 !important;
}
.site-footer a {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer a:hover {
    color: #76A035;
}

/* Hamburger Styling */
.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
    position: relative;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #2B2D2F; 
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); 

}

@media (max-width: 768px) {
    
    .header-container {
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
    }
    
    .site-logo {
        margin-top: 0; 
    }

    .menu-toggle-btn {
        display: flex; 

    }
    .nav-menu-list {
        display: none !important; 
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 2px solid #E2ECE5;
        padding: 20px 0 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        gap: 0 !important;
        z-index: 9998;
    }

    .nav-menu-list li {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }

    .nav-menu-list li a {
        display: block;
        padding: 15px 0 !important;
        width: 100%;
        font-size: 1.1rem !important;
        border: none !important;
    }

    
    .main-navigation.is-menu-active .nav-menu-list {
        display: flex !important; 

    }

    .main-navigation.is-menu-active .bar-top {
        transform: translateY(9px) rotate(45deg);
        background-color: #2E6F40; 
    }

    .main-navigation.is-menu-active .bar-mid {
        opacity: 0;
        transform: translateX(-20px);
    }

    .main-navigation.is-menu-active .bar-bot {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #2E6F40;
    }
}

html {
    scroll-behavior: smooth; 
}

/* Custom Webkit Scrollbar Theme */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F4F7F5; 
}

::-webkit-scrollbar-thumb {
    background: #76A035; 
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2E6F40; 
}


.header-contact-bar {
    font-family: sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    gap: 20px;
}

.header-contact-bar a {
    color: #76A035 !important; 
    text-decoration: none !important; 
    transition: color 0.2s;
}

.header-contact-bar a:hover,
.header-contact-bar a:focus {
    text-decoration: underline !important; 
    color: #2E6F40 !important; 
}


@media (max-width: 768px) {
    .header-contact-bar {
        display: none !important;
    }
}