/* GENERAL */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #17231d;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}

.section-container {
    width: 90%;
    max-width: 1180px;
    margin: auto;
}

.section-label {
    margin: 0 0 12px;
    color: #176b31;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-heading {
    margin: 0;
    font-size: 40px;
    line-height: 1.2;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #188834;
}

.header-container,
.navbar {
    position: relative;
    width: 90%;
    max-width: 1180px;
    min-height: 78px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 150px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links > a,
.dropdown-toggle {
    text-decoration: none;
    color: #17231d;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.nav-links > a:hover,
.dropdown-toggle:hover {
    color: #188834;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: block;
    padding: 30px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 270px;
    padding: 10px 0;
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    background: #ffffff;
    border-top: 3px solid #188834;
    box-shadow: 0 12px 30px rgba(23, 35, 29, 0.12);
    transition: 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {

    .nav-dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
    }

}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #17231d;
    font-size: 13px;
    line-height: 1.4;
}

.dropdown-menu a:hover {
    background: #ebf5ee;
    color: #188834;
}

.menu-toggle {
    display: none;
}

/* HERO */

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url("images/home.jpg") center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 45, 25, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1000px;
    color: #ffffff;
}

.hero h1 {
    margin: 0 0 25px;
    font-size: 56px;
    line-height: 1.15;
}

.hero p {
    margin: 0 auto 35px;
    max-width: 700px;
    font-size: 19px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 25px;
    border: 0;
    border-radius: 3px;
    background: #176b31;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover {
    background: #125625;
}

.btn.secondary {
    background: transparent;
    border: 1px solid #ffffff;
}

.btn.secondary:hover {
    background: #ffffff;
    color: #176b31;
}


/* INTRO */

.intro {
    padding: 90px 0 70px;
}

.intro-text {
    max-width: 850px;
    margin-top: 25px;
}

.intro-text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
}


/* IMPACT */

.impact-numbers {
    min-height: 260px;
    padding: 0;
    display: flex;
    align-items: center;
    background: #176b31;
}

.impact-numbers .section-container {
    width: 90%;
    max-width: 1180px;
    margin: auto;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.number-item {
    padding: 35px 20px;
    text-align: center;
    color: #ffffff;
}

.number-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
}

.number-value strong {
    font-size: 45px;
    line-height: 1;
}

.number-value span {
    font-size: 22px;
    font-weight: bold;
}

.number-item p {
    margin: 12px 0 0;
    font-size: 14px;
}


/* ABOUT */

.our-story {
    padding: 100px 0;
    background: #ffffff;
}

.story-heading {
    max-width: 850px;
    margin-bottom: 50px;
}

.story-heading > span {
    display: block;
    margin-bottom: 12px;
    color: #176b31;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.story-heading h2 {
    margin: 0 0 20px;
    font-size: 40px;
    line-height: 1.2;
}

.story-heading p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.story-card {
    overflow: hidden;
    background: #f4f8f5;
}

.story-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.04);
}

.story-content {
    padding: 28px;
}

.story-content > span {
    color: #176b31;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.story-content h3 {
    margin: 12px 0 15px;
    font-size: 22px;
    line-height: 1.3;
}

.story-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}


/* PROJECTS */

.projects-preview {
    padding: 100px 0;
    background: #f4f8f5;
}

.projects-intro {
    max-width: 800px;
    margin: 25px 0 45px;
}

.projects-intro p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-stat {
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
}

.project-stat strong {
    display: block;
    margin-bottom: 8px;
    color: #176b31;
    font-size: 32px;
}

.project-stat span {
    font-size: 14px;
}

.section-button {
    margin-top: 40px;
    text-align:center;
}


/* CONTACT */

.contact {
    padding: 100px 0;
    text-align: center;
}

.contact .section-container {
    max-width: 850px;
}

.contact p:not(.section-label) {
    margin: 25px auto 30px;
    font-size: 17px;
    line-height: 1.7;
}


/* POPUP */

.consultation-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}

.consultation-overlay.active {
    display: flex;
}

.consultation-popup {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    background: #ffffff;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 18px;
    border: 0;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.consultation-popup h2 {
    margin: 0 0 30px;
    font-size: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccd5ce;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #176b31;
}

#formStatus {
    margin-top: 15px;
}


/* FOOTER */

.site-footer {
    background: #17231d;
    color: #ffffff;
    padding: 32px 0 12px;
}

.footer-content {
    width: 90%;
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.site-footer h4 {
    margin: 0 0 10px;
    font-size: 15px;
}

.site-footer p {
    margin: 0;
    line-height: 1.45;
    color: #dce5df;
    font-size: 13px;
}

.office-row,
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.office-row strong,
.contact-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.contact-row a {
    color: #dce5df;
    text-decoration: none;
}

.contact-row a:hover {
    color: #8fcf9b;
}

.footer-bottom {
    width: 90%;
    max-width: 1180px;
    margin: 20px auto 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #dce5df;
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 650px) {

    .footer-content {
        width: 90%;
    }

    .office-row,
    .contact-row {
        gap: 20px;
    }
}

@media (max-width: 420px) {

    .office-row,
    .contact-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* TABLET */

@media (max-width: 900px) {

    .header-container,
    .navbar {
        min-height: 70px;
    }

    .logo img {
        width: 125px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        margin: auto;
        background: #17231d;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        left: auto;
        width: min(280px, 78vw);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 18px;
        box-sizing: border-box;
        background: #ffffff;
        border: 1px solid #dfe8e2;
        border-top: 3px solid #176b31;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > a,
    .dropdown-toggle {
        padding: 12px 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: none;
        padding: 0;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        border-top: 1px solid #dfe8e2;
        box-shadow: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 9px 12px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .story-cards {
        grid-template-columns: 1fr;
    }

    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

}


/* MOBILE */

@media (max-width: 550px) {

    .header-container,
    .navbar {
        min-height: 64px;
    }

    .logo img {
        width: 115px;
    }

    .nav-links {
        top: 64px;
        right: 0;
        width: min(260px, 82vw);
        max-height: calc(100vh - 74px);
    }

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .impact-numbers {
        padding: 20px 0;
    }

    .number-item {
        padding: 25px 20px;
    }

    .section-heading,
    .story-heading h2 {
        font-size: 32px;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .consultation-popup {
        padding: 30px 20px;
    }

}