:root {
    --color-primary: #1f873e;
    --color-primary-dark: #17692f;
    --color-dark: #1a1a1a;
    --color-text: #2b2b2b;
    --color-muted: #6b6b6b;
    --color-bg: #ffffff;
    --color-bg-alt: #f6f7f6;
    --font-body: "Open Sans", system-ui, -apple-system, sans-serif;
    --font-heading: "Merriweather", Georgia, serif;
    --nav-height: 72px;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

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

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.wrap--narrow {
    max-width: 720px;
}

.rule {
    display: block;
    width: 60px;
    height: 3px;
    margin: 0 auto 1.5em;
    background: var(--color-primary);
    border-radius: 2px;
}

.rule--light {
    background: rgba(255, 255, 255, 0.85);
}

/* Nav */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(255, 255, 255, 0);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand img {
    height: 34px;
}

.nav__menu {
    display: flex;
    gap: 2.25rem;
}

.nav__menu a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #fff;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav__menu a:hover {
    border-color: var(--color-primary);
}

.nav.is-scrolled .nav__menu a {
    color: var(--color-dark);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.nav.is-scrolled .nav__toggle span {
    background: var(--color-dark);
}

/* Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(10, 15, 12, 0.62), rgba(10, 15, 12, 0.62)), url("img/background_1250x834.jpg") center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
}

.hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.25;
    margin-bottom: 0.75em;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2em;
}

/* Stats strip */

.stats {
    padding: 44px 0;
    background: var(--color-bg-alt);
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.stats__inner {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    text-align: center;
}

.stat {
    padding: 0 2.5rem;
    flex: 1 1 200px;
    max-width: 280px;
}

.stat + .stat {
    border-left: 1px solid #ddd;
}

.stat__value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--color-primary);
}

.stat__label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

@media (max-width: 700px) {
    .stats__inner {
        flex-direction: column;
        gap: 1.75rem;
    }
    .stat + .stat {
        border-left: none;
    }
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

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

.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn--outline:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Bands / sections */

.band {
    padding: 90px 0;
}

.band--primary {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
}

.band--primary p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.band--dark {
    background: var(--color-dark);
    color: #fff;
    text-align: center;
}

.heading {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Services */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.service__icon svg {
    width: 100%;
    height: 100%;
}

.service h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5em;
}

.service p {
    color: var(--color-muted);
    font-size: 0.97rem;
}

/* Social */

.social {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding: 0;
    margin: 1.5rem 0 0;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.social a:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

/* Contact */

.contact__email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.15rem;
}

.contact__email a {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-primary);
}

.contact__email svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Footer */

.footer {
    background: var(--color-bg-alt);
    text-align: center;
    padding: 1.75rem 24px;
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* Reveal on scroll */

.reveal {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */

@media (max-width: 760px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: max-height 0.25s ease;
    }

    .nav__menu.is-open {
        max-height: 240px;
    }

    .nav__menu a {
        padding: 1rem 24px;
        border-bottom: 1px solid #eee;
        color: var(--color-dark);
    }

    .band {
        padding: 64px 0;
    }
}
