/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    --primary: #245c36;
    --primary-dark: #174326;
    --accent: #d8a62a;
    --dark: #182019;
    --text: #333;
    --muted: #687268;
    --light: #f5f7f4;
    --white: #fff;
    --border: #e1e6e1;
    --radius: 10px;
    --shadow: 0 8px 25px rgba(0,0,0,.08);
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-dark); }

.container { width: min(92%, var(--max-width)); margin-inline: auto; }

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    position: relative;
}
  
.navbar {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    position: relative;
}   

.navbar .nav-menu {
    display: flex;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: var(--dark);
}

.logo img, .scaleImg {
    height: 60px;       
    width: auto;        
    display: inline-block;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding-inline: 15px;
}

.nav-links a:hover,
.nav-links a.active { 
    color: var(--primary); 
}

.nav-cta { 
    font-weight: 800; 
}

/* Desktop Dropdown Menu */
.nav-links li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    list-style: none;
    padding: 8px 0;
    z-index: 1000;
}

.nav-links li:hover > ul {
    display: block;
}

.nav-links li ul li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.95rem;
    color: var(--text);
}

.nav-links li ul li a:hover {
    background: var(--light);
    color: var(--primary);
}

/* Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
}

/* ==========================================================================
   3. HERO SECTION & TYPOGRAPHY
   ========================================================================== */
.hero,
.page-hero {
    background: linear-gradient(rgba(20,50,28,.80), rgba(20,50,28,.80)),  center/cover no-repeat;
    color: var(--white);
    padding: 105px 0;
}

.hero h1,
.page-hero h1 {
    max-width: 920px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.12;
    margin-bottom: 22px;
}

.hero p,
.page-hero p {
    max-width: 820px;
    font-size: 1.12rem;
    margin-bottom: 28px;
}

.hero-text { 
    max-width: 760px; 
    font-size: 1.12rem; 
}

.eyebrow,
.section-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    font-size: .82rem;
    margin: 0 0 .5rem;
}

h2 {
    color: var(--dark);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.25;
    margin-bottom: 18px;
}

h3 {
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 12px;
}

.section-heading { 
    max-width: 760px; 
    margin: 0 auto 2rem; 
    text-align: center; 
}

.section-intro {
    max-width: 820px;
    margin-bottom: 35px;
}

/* ==========================================================================
   4. BUTTONS & UTILITIES
   ========================================================================== */
.button-row,
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
    margin-top: 1.25rem;
}

.button-row.center { 
    justify-content: center; 
}

.btn {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 6px;
    font-weight: 800;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #111;
}

.btn-primary:hover {
    background: #c29118;
    color: #111;
}

.btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

section { padding: 78px 0; }
.section-alt, section:nth-of-type(even) { background: var(--light); }

.notice {
    padding: 18px 20px;
    background: #fff8df;
    border-left: 4px solid var(--accent);
    margin: 25px 0;
}

/* ==========================================================================
   5. LAYOUT GRIDS & SECTIONS
   ========================================================================== */
.two-column {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature {
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.service-card h2,
.service-card h3 { font-size: 1.3rem; }
.service-card p { margin-bottom: 16px; }
.service-card a:last-child { font-weight: 800; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.project-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-card div { padding: 20px; }

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    margin-top: 28px;
}

.area-grid a {
    padding: 19px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 800;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.trust-section { text-align: center; }
.trust-section p { max-width: 860px; margin: auto; }

.content-section p { max-width: 860px; margin-bottom: 19px; }
.content-section h2:not(:first-child) { margin-top: 42px; }

.check-list { max-width: 760px; padding-left: 25px; }
.check-list li { margin-bottom: 9px; }

.feature-section { background: var(--light); }
.feature-content { max-width: 820px; }

.cta-section {
    background: var(--primary) !important;
    color: var(--white);
    text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { max-width: 720px; margin: 0 auto 25px; }

/* ==========================================================================
   6. GALLERY GRID
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.gallery-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-item figcaption,
.gallery-item div {
    padding: 16px 20px;
}

/* ==========================================================================
   7. MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar .nav-menu,
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        border-top: 1px solid var(--border);
        border-bottom: 2px solid var(--primary);
        box-shadow: var(--shadow);
        padding: 10px 0;
        z-index: 999;
    }

    .navbar .nav-menu.active,
    .navbar .nav-menu.open,
    .nav-links.active,
    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 24px;
        text-align: left;
        color: var(--dark);
        font-weight: 600;
    }

    /* Mobile Services Dropdown */
    .nav-links li.open > ul,
    .nav-links li.open > .dropdown-menu {
        display: flex;
        position: static;
        flex-direction: column;
        width: 100%;
        padding: 0 0 8px;
        background: var(--white);
        box-shadow: none;
        border: 0;
    }

    .nav-links li.open > ul li,
    .nav-links li.open > .dropdown-menu li {
        border-bottom: 0;
    }

    .nav-links li.open > ul a,
    .nav-links li.open > .dropdown-menu a {
        padding: 11px 40px;
        font-size: .95rem;
        font-weight: 500;
    }
}

/* ==========================================================================
   8. QUOTE REQUEST FORM
   ========================================================================== */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Shared footer: consistent layout, accessible links and deferred below-fold rendering */
.site-footer {
    background: var(--dark);
    color: var(--white);
    content-visibility: auto;
    contain-intrinsic-size: 360px;
    padding: 48px 0 0;
}

.site-footer .container {
    width: min(100% - 32px, var(--max-width));
    margin-inline: auto;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.site-footer h2,
.site-footer h3 {
    color: var(--white);
    margin-bottom: 14px;
}

.site-footer p {
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
    margin-bottom: 12px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .footer-button {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 6px;
}

.site-footer .footer-button:hover,
.site-footer .footer-button:focus-visible {
    color: var(--dark);
    text-decoration: none;
    filter: brightness(1.08);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .16);
    margin-top: 36px;
    padding: 18px 0;
}

.site-footer .footer-bottom p {
    margin: 0;
    font-size: .9rem;
}

@media (max-width: 800px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }
}

@media (max-width: 520px) {
    .site-footer {
        padding-top: 36px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Professional visual refinement */
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fbfcfa;
}

.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(36, 92, 54, .12);
    box-shadow: 0 4px 18px rgba(24, 32, 25, .05);
    padding: 10px max(4%, calc((100% - var(--max-width)) / 2));
    z-index: 1002;
}

.logo {
    gap: 10px;
    font-size: 1.08rem;
    letter-spacing: -.02em;
}

.nav-links {
    gap: 8px;
}

.nav-links a {
    border-radius: 7px;
    padding: 10px 13px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(36, 92, 54, .08);
    color: var(--primary-dark);
}

.hero,
.page-hero {
    min-height: 480px;
    display: grid;
    align-items: center;
    background-color: var(--primary-dark);
}

.hero h1,
.page-hero h1 {
    letter-spacing: -.035em;
}

.btn {
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(24, 32, 25, .08);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(24, 32, 25, .14);
}

section {
    padding: clamp(64px, 8vw, 96px) 0;
}

.service-card,
.project-card,
.gallery-item,
.feature,
.contact-card,
.contact-form {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover,
.project-card:hover,
.gallery-item:hover,
.feature:hover,
.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(36, 92, 54, .35);
    box-shadow: 0 16px 34px rgba(24, 32, 25, .12);
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 38px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(24, 32, 25, .08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border-radius: 8px;
    border-color: #cfd8cf;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 92, 54, .12);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form #result {
    min-height: 24px;
    margin: 14px 0 0;
    font-weight: 700;
}

@media (max-width: 700px) {
    .site-header {
        padding-inline: 4%;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero,
    .page-hero {
        min-height: 420px;
        padding-block: 76px;
    }
}

/* Preserve photo proportions instead of cropping images into fixed 4:3 boxes */
.project-card img,
.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: #f4f7f3;
}

/* Local service-page presentation */
.page-hero .container {
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}

.page-hero .section-label,
.page-hero .eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-hero h1 {
    max-width: 900px;
    margin-inline: auto;
}

.page-hero p:not(.section-label):not(.eyebrow) {
    max-width: 760px;
    margin: 18px auto 26px;
    color: rgba(255, 255, 255, .88);
    font-size: 1.08rem;
    line-height: 1.75;
}

.page-hero .btn {
    margin: 6px;
}

.services-section {
    background: #f3f7f2;
}

.services-section .container > h2 {
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.services-section .service-grid {
    align-items: stretch;
}

.services-section .service-card {
    height: 100%;
    background: var(--white);
    border: 1px solid rgba(36, 92, 54, .12);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(24, 32, 25, .06);
}

.services-section .service-card h3 {
    margin-bottom: 10px;
}

.services-section .service-card h3 a {
    color: var(--primary-dark);
    text-decoration: none;
}

.services-section .service-card h3 a:hover,
.services-section .service-card h3 a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-section > .container > p {
    max-width: 820px;
    margin-inline: auto;
}

.cta-section {
    text-align: center;
}

.cta-section p {
    max-width: 680px;
    margin: 0 auto 24px;
}

.cta-section .btn {
    margin: 5px;
}

