/* ================================
   BASIC RESET
================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    color: #26302a;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ================================
   SHARED CLASSES
================================ */

.container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

.section {
    padding: 6rem 0;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: #4d7c45;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: #173b27;
    line-height: 1.15;
}

h1 {
    max-width: 850px;
    font-size: clamp(2.7rem, 7vw, 5.5rem);
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
}

h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.4rem;
    border: 2px solid #4d7c45;
    border-radius: 0.35rem;
    background: #4d7c45;
    color: white;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.button:hover {
    border-color: #386131;
    background: #386131;
    transform: translateY(-2px);
}

.button-secondary {
    border-color: white;
    background: transparent;
}

.button-secondary:hover {
    border-color: white;
    background: white;
    color: #173b27;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 3rem;
}

.section-heading > p:last-child {
    color: #5f6962;
    font-size: 1.05rem;
}

/* ================================
   HEADER
================================ */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid #e3e8e4;
    background: rgb(255 255 255 / 95%);
    backdrop-filter: blur(10px);
}

.header-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    color: #214e34;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.navigation a {
    font-weight: 600;
    text-decoration: none;
}

.navigation a:hover {
    color: #4d7c45;
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #173b27;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ================================
   HERO
================================ */

.hero {
    min-height: 700px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(rgb(8 34 19 / 72%), rgb(8 34 19 / 72%)),
        url("images/hero-landscaping.jpg");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
}

.hero-content {
    padding-block: 7rem;
}

.hero h1 {
    color: white;
}

.hero .eyebrow {
    color: #c8e6bd;
}

.hero-description {
    max-width: 680px;
    margin: 1.5rem 0 2rem;
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ================================
   TRUST BAR
================================ */

.trust-bar {
    padding: 1.25rem 0;
    background: #173b27;
    color: white;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

/* ================================
   SERVICES
================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
    border: 1px solid #dde5df;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgb(21 50 31 / 7%);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #86aa78;
    box-shadow: 0 16px 38px rgb(21 50 31 / 13%);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgb(69 112 62 / 18%);
    border-radius: 0.65rem;

    color: #3f713a;
    background: #eff6eb;
    font-size: 1.25rem;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.service-card:hover .service-icon {
    color: #ffffff;
    background: #4f7d47;
    transform: scale(1.05);
}

.service-card h3 {
    margin: 0 0 0.75rem;
    color: #18341f;
    font-size: 1.25rem;
    line-height: 1.25;
}

.service-card p {
    margin: 0;
    color: #5b6b60;
    line-height: 1.7;
}

/* Tablet */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* ================================
   PROJECTS
================================ */

.projects-section {
    background: #f5f7f3;
}

.projects-section .section-heading {
    margin-bottom: 0;
}

.projects-section .section-description {
    max-width: 720px;
    margin: 0;
    color: #667269;
    font-size: 1.05rem;
    line-height: 1.7;
}

.projects-section .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}

.projects-section .project-card {
    overflow: hidden;
    border: 1px solid #dfe6df;
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 12px 32px rgb(21 50 31 / 8%);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.projects-section .project-card:hover {
    transform: translateY(-7px);
    border-color: #8eaa8b;
    box-shadow: 0 20px 45px rgb(21 50 31 / 14%);
}

.projects-section .project-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #e8ede7;
}

.projects-section .project-image {
    width: 100%;
    max-width: none;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-section .project-card:hover .project-image {
    transform: scale(1.05);
}

.projects-section .project-category {
    position: absolute;
    z-index: 2;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 999px;
    color: #ffffff;
    background: rgb(20 45 27 / 84%);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.projects-section .project-info {
    padding: 1.5rem;
}

.projects-section .project-info h3 {
    margin: 0 0 0.65rem;
    color: #18341f;
    font-size: 1.3rem;
    line-height: 1.3;
}

.projects-section .project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #667269;
    font-size: 0.95rem;
}

.projects-section .project-location i {
    color: #5d8a52;
    font-size: 0.9rem;
}

/* Tablet */
@media (max-width: 900px) {
    .projects-section .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .projects-section .projects-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .projects-section .project-image-wrapper {
        height: 220px;
    }
}

/* ================================
   ABOUT
================================ */

.about-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about-layout p {
    margin-bottom: 1rem;
}

.about-box {
    padding: 2.5rem;
    border-radius: 0.75rem;
    background: #214e34;
    color: white;
}

.about-box h3 {
    color: white;
}

.about-box ul {
    padding-left: 1.2rem;
}

.about-box li {
    margin-top: 0.75rem;
}

/* ================================
   CONTACT
================================ */

.contact-section {
    background: #f5f1e8;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.75rem;
}

.estimate-form {
    padding: 2rem;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 15px 40px rgb(26 52 34 / 10%);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #173b27;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #b9c4bc;
    border-radius: 0.35rem;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid rgb(77 124 69 / 20%);
    border-color: #4d7c45;
}

.form-button {
    width: 100%;
}

.form-message {
    margin-top: 1rem;
    color: #386131;
    font-weight: 700;
}

/* ================================
   FOOTER
================================ */

.site-footer {
    padding: 2rem 0;
    background: #142d1e;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 800px) {
    .section {
        padding: 4rem 0;
    }

    .menu-button {
        display: block;
    }

    .header-button {
        display: none;
    }

    .navigation {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid #dde5df;
        background: white;
    }

    .navigation.navigation--open {
        display: flex;
    }

    .navigation a {
        padding: 0.9rem;
    }

    .hero {
        min-height: 600px;
    }

    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 550px) {
    .services-grid,
    .projects-grid,
    .trust-items {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }
}
