:root {
    color: #234d20;
    color-scheme: light dark;
    --body-background-light: #f6fff7;
    --body-background-dark: #234d20;
    --default-font-color-light: #234d20;
    --default-font-color-dark: #f6fff7;
    --strong-border-color-light: #8d6e63;
    --strong-border-color-dark: #3D1E13;
    --nav-background-light: #ffffff;
    --nav-background-dark: darkgrey;
    --max-contianer-width: 1000px;


    --default-bg-color-light: #f6fff7;
    --default-border-color-light: #8d6e63;
    --default-shadow-color-light: rgba(60,80,60,0.48);
}
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: light-dark(var(--body-background-light), var(--body-background-dark));
    color: light-dark(var(--default-font-color-light), var(--default-font-color-dark));
}

header {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: linear-gradient(180deg, #4caf50 60%, #388e3c 100%);
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px -2px rgba(60,80,60,0.48);
    width: 100vw;
}

.hero-image {
    max-width: 1000px;
    max-height: 25vh;
    width: 85vw;
    height: auto;
    margin: 1rem;
}

header nav {
    width: 100%;
    background: light-dark(var(--nav-background-light), var(--nav-background-dark));
    border-top: 3px solid light-dark(var(--strong-border-color-light), var(--strong-border-color-dark));
    border-bottom: 3px solid light-dark(var(--strong-border-color-light), var(--strong-border-color-dark));
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    z-index: 2;
    position: relative;
}

header nav button {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #4e342e;
    cursor: pointer;
    margin-right: 2rem;
}

.subheader-nav {
    display: flex;
    gap: 2.5rem;
}
.subheader-nav a {
    color: #4e342e;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: .05rem;
    transition: color 0.15s;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.subheader-nav a:hover,
.subheader-nav a:focus {
    background: #f6eee7;
    color: #2e1c13;
}

main {
    max-width: var(--max-contianer-width);
    margin: 2rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(60,80,60,0.07);
    padding: 2rem 2.5rem;
}

.service img {
    width: 3rem;
    height: auto;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    header nav {
        justify-content: flex-end;
        padding-left: 1rem;
    }
    .subheader-nav {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #d7ccc8;
        padding: 0.5rem 0;
        z-index: 10;
    }
    .subheader-nav.open {
        display: flex;
    }
    .subheader-menu-btn {
        display: block;
    }

    main {
        padding: 1rem;
        margin: 1rem;
    }
}

footer {
    border-top: 3px solid #8d6e63;
    background: linear-gradient(0deg, #4caf50 60%, #388e3c 100%);
    color: #000000;
    margin-top: auto;
    box-shadow: 0 -4px 12px -2px rgba(60,80,60,0.48);
    padding: 1rem;
    width: 100vw;
    display: flex;
    justify-content: center;
}

.footer-container {
    max-width: var(--max-contianer-width);
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.facebook-button-link {
    text-decoration: none;
    color: #ffffff;
    margin: 0.5em;
    background-color: #3b5998;
    border-radius: 5px;
    transition: background 0.2s;
    padding: 0.5em 0.75em;
    display: inline-block;    
    height: fit-content;        
}

.facebook-button-link:hover, .facebook-button-link:focus {
    background-color: #2d4373;
}

.facebook-button {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.facebook-button svg {
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    fill: #ffffff;
    stroke: none;
}







.services {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 2rem;
}
.service, .gallery figure {
    flex: 1 1 250px;
    background: #e8f5e9;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(60,80,60,0.05);
    transition: transform 0.2s;
}
.service:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 18px rgba(60,80,60,0.12);
}
.service svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    fill: #388e3c;
}
.service h3 {
    margin: 0.5rem 0 0.5rem 0;
    font-size: 1.2rem;
    color: #234d20;
}
.service p {
    margin: 0;
    color: #3e5c3e;
    font-size: 1rem;
}
.estimate-button {
    margin-bottom: 2rem;
    text-align: center;
}
.estimate-button a {
    background: #43a047;
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(60,80,60,0.09);
    transition: background 0.2s;
    display: inline-block;
}
.estimate-button a:hover, .estimate-button a:focus {
    background: #2e7031;
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-top: 2rem;
}
.gallery figure {
    flex: 1 1 300px;
    margin: 0;
}
.gallery figure img {
    width: 100%;
    max-width: 100%;;
}

.bonus {
    display: none;
}

@media (max-width: 700px) {
    .services, .gallery {
        flex-direction: column;
        gap: 1.2rem;
    }
}