body {
    font-family: 'Alegreya Sans', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

h1 {
    font: 700 20px 'Alegreya Sans', sans-serif;
    color: #505827;
    letter-spacing: 1px;
    text-align: center;
    margin: 30px 0 25px 0;
}

h2, h3 {
    font: 700 19px 'Alegreya Sans', sans-serif;
    letter-spacing: 1px;
    color: #3C5318;
    text-align: center;
    margin: 40px 0 30px 0;
}

/* Underline for Headings - Centered */
.heading-underline {
    position: relative;
    padding-bottom: 14px;
    display: block;           /* Changed from inline-block */
    width: 100%;              /* Ensures it takes full width of parent */
    text-align: center;       /* Centers the text */
    margin: 30px 0 25px 0;    /* Optional: adds breathing room */
}

.heading-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background: #91C73E;
    border-radius: 2px;
}

/* Specific widths */
h1.heading-underline::after {
    width: 200px;
}
h2.heading-underline::after {
    width: 180px;        /* "Our Completed Carpentry Projects" */
}
h3.heading-underline::after {
    width: 140px;
}

/* Top Testimonial Bar */
.top-bar {
    background: #e5e5e5;
    color: #333;
    padding: 10px 0;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #d0d0d0;
}

/* Header */
.header-main {
    background: white;
    padding: 5px 20px;
    border-bottom: 4px solid #55823B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}

.logo {
    height: 145px;
    width: auto;
}

.testimonial {
    background: #f0f0f0;
    color: #55823B;
    padding: 5px 28px;
    font-size: 21px;
    font-weight: 700;
    border: 1px solid #55823B;
    white-space: nowrap;
}
.header-right {
    display: none;                    /* Hidden by default on mobile */
}

/* Hide desktop-only links on mobile */
.desktop_only {
    display: none;
}

/* Green Navigation */
.green-nav {
    background: #55823B;
    padding: 0;
    border-bottom: 4px solid #b9d7a7;
}

.green-nav .nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-links {
    flex: 1;
    text-align: center;
}

.nav-links a {
    color: white;
    margin: 0 18px;
    text-decoration: none;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.cur_page_item {
    color: #91C73E;
}
/*
.phone-number {
    color: white;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 20px;
}
*/


    /* Email Link Styling */
    .email-link {
        /*color: white;
        text-decoration: none;
        */
    }
    
    .email-text {
        display: inline;
    }
    
    .email-icon {
        display: none;
        width: 50px;
        height: 35px;
        flex-shrink: 0;
        object-fit: contain;
    }
    
    /* On mobile: Hide text and show email icon */
    @media (max-width: 768px) {
        .email-text {
            display: none;
        }
        
        .email-icon {
            display: inline;
            padding-top: 15px;
        }
    }

    /* On desktop: Show text and hide icon */
    @media (min-width: 769px) {
        .email-icon {
            display: none;
        }
    }


/* Phone Number Styling */
.phone-number {
    margin-right: 15px;
}

.phone-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.phone-icon {
    display:none;
}

/* Mobile: Show only the icon */
@media (max-width: 768px) {
    .phone-text {
        display: none;
    }
    
    .phone-icon {
        display: inline;
        width: 42px;
        height: 31px;
    }
}

/* Desktop: Show text + icon */
@media (min-width: 769px) {
    .phone-text {
        display: inline;
        font-size: 15px;
    }
}
/* Layout */
.container {
    max-width: 1100px;
    margin: 20px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 15px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

.left-sidebar {
    width: 220px;
    padding: 15px;
    flex-shrink: 0;
}

/* Sidebar Menu Links */
.sidebar-link {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    font: 700 15px 'Alegreya Sans', sans-serif;
    color: #3B3738;
}

.sidebar-link:hover {
    color: #91C73E;
}

/* Resources Menu Block */
.resources-box {
    position: relative;
    z-index: 2;
    padding: 10px 10px;
    background: #f0f0f0;
    max-width: 110px;
    margin: 35px auto 0 34px;
}

.resources-box a {
    display: block;
    margin: 10px 0;
    color: #3B3738;
    text-decoration: none;
    font: 700 15px 'Alegreya Sans', sans-serif;
}

.resources-box a:hover {
    color: #91C73E;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.carpentry_intro {
    background: white;
    border: 2px solid #f0f0f0;
    padding: 35px 30px;
    border-radius: 6px;
    margin-bottom: 45px;
    text-align: center;
}

/* Filter Buttons Group */
.filter-btn {
    background: #f0f0f0;
    color: #55823B;
    border: none;
    padding: 10px 20px;
    margin: 6px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #f0f0f0;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: white;
    color: #91C73E;
}

.filter-btn.active {
    background: white;
    color: #91C73E;
}

.grid_button_links {
    width: 100%;
    padding: 10px;
    background: #55823B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.grid_button_links:hover {
    background: #91C73E;
}

.featured_buttons {
    color: #55823B;
    font-weight: 700;
    text-decoration: none;
}

.featured_buttons:hover {
    color: #91C73E;
}

/* Modal Images Grid */
.modal-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 15px;
}

/* Footer Links */
.footer-link {
    color: #3C5318;
    text-decoration: none;
    margin: 0 12px;
    font-size: 15px;
    display: inline-block;
}

.footer-link:hover {
    color: #55823B;
    text-decoration: underline;
}

.hamburger {
    display: none;
}

/* Clean Mobile Menu */
.mobile-menu {
    display: none;
    width: 100%;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 100;
    margin-top: 10px;
}

.mobile-link {
    display: block;
    padding: 12px 10px;
    color: #3B3738;
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-link:hover {
    background: #f8f8f8;
    color: #55823B;
}



/* Visible on desktop and larger tablets */
@media (min-width: 769px) {
    .header-right {
        display: block;               
        text-align: right;
        font-size: 15px;
        line-height: 1.5;
        margin: 80px 0 0 0;
    }
    .desktop_only {
        display: inline;
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .mobile-menu.active {
        display: block;
    }
    .testimonial {
        order: 3;
        width: 100%;
        white-space: normal;
    }
    .header-right {
        text-align: center;
        margin: 0;
    }
    .nav-links {
        margin-bottom: 10px;
    }
    .left-sidebar {
        display: none;
        width: 100%;
        position: absolute;
        top: 195px;
        left: 0;
        z-index: 100;
        padding: 20px;
    }
    .left-sidebar.active {
        display: block;
    }
    .hamburger {
        display: block;
        font-size: 32px;
        cursor: pointer;
        color: #003366;
        padding: 8px 15px;
    }
}

#projectGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 50px;
}