:root {
    --green: #2f6b3d;
    --green-dark: #214f2d;
    --yellow: #d8b64c;
    --light: #f8f8f8;
    --dark: #222;
    --gray: #666;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: .3s;
    text-align: center;
}

.btn:hover,
.btn:active {
    background: var(--green-dark);
    transform: translateY(-2px);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    transition: box-shadow 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-dark);
    padding: 5px 0;
}

.menu-toggle {
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--green-dark);
    padding: 10px;
    margin-right: -10px;
}

.navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: var(--shadow);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.show {
    display: block;
}

.nav-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.nav-links a {
    padding: 16px 5%;
    color: var(--dark);
    font-weight: 600;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--green);
    background: var(--light);
}

/* HERO */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 140px 20px 80px 20px;
    background-image: url('/images/tractor.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* SECTION UNIVERSALS */
.about-preview,
.services-preview {
    padding: 60px 0;
}

/* ABOUT */
.about-grid {
    display: grid;
    gap: 30px;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    margin-bottom: 15px;
    color: var(--green-dark);
    font-size: 1.8rem;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 1rem;
}

/* SERVICES */
.services-preview {
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--green-dark);
}

.section-title p {
    color: var(--gray);
}

.service-grid {
    display: grid;
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s;
}

.service-card img {
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--green-dark);
    font-size: 1.3rem;
}

.service-card p {
    padding: 0 20px 20px;
    color: var(--gray);
    font-size: 0.95rem;
}

.services-btn {
    text-align: center;
    margin-top: 35px;
}

/* FOOTER */
.footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

.footer h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--yellow);
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 400px;
    margin: 0 auto;
}

.footer-links {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.copyright {
    margin-top: 25px;
    padding-top: 20px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: .6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* TABLET & IPAD BREAKPOINT */
@media(min-width:768px) {

    .about-preview,
    .services-preview {
        padding: 100px 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: none;
    }

    .navbar {
        display: block;
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
        border-top: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 20px;
        padding: 0;
    }

    .nav-links a {
        padding: 10px 15px;
        border-bottom: none;
    }

    .nav-links a:hover {
        background: none;
    }

    .hero {
        min-height: 100vh;
        padding: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
}

/* DESKTOP BREAKPOINT */
@media(min-width:1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card:hover {
        transform: translateY(-8px);
    }
}