/* ===== CSS Variables ===== */
:root {
    --header-height: 5rem;
    
    /* Colors */
    --primary-color: #4A7C2E;
    --primary-color-dark: #2D5016;
    --accent-color: #7CB342;
    --text-color: #333333;
    --text-color-light: #666666;
    --white-color: #FFFFFF;
    --body-color: #F5F5F5;
    --container-color: #FFFFFF;
    
    /* Typography */
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Outfit', sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    
    /* Font Weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    
    /* Spacing */
    --mb-0-5: 0.5rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;
    
    /* Z-index */
    --z-fixed: 100;
}

/* Responsive Typography */
@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 3.5rem;
        --h1-font-size: 2.5rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: 0.938rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--text-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== Reusable Classes ===== */
.container {
    max-width: 1140px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-2-5);
    text-align: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-semi-bold);
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.btn--primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(74, 124, 46, 0.2);
}

.btn--nav {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn--nav:hover {
    background-color: var(--accent-color);
}

/* ===== Header & Navigation ===== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--white-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: center; /* Center the nav since logo is gone */
    align-items: center;
    height: var(--header-height);
    max-width: 1140px;
    margin: 0 auto;
}

/* Spacer explicitly hidden/removed, logic handled by justify-content center */
.nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav__item {
    list-style: none;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
    font-size: var(--normal-font-size);
}

.nav__link:hover,
.active-link {
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.25rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ===== Home/Hero Section ===== */
.home {
    background: linear-gradient(135deg, rgba(74, 124, 46, 0.95), rgba(58, 70, 50, 0.95)),
                url('../assets/images/hero-bg.png') center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.home__container {
    padding: 2rem 0;
}

.home__data {
    text-align: center;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home__logo {
    height: 360px; /* Large and prominent */
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); /* Make it pop against background */
}

.home__title {
    font-size: var(--biggest-font-size);
    margin-bottom: var(--mb-1);
    color: var(--white-color);
}

.home__description {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-2-5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white-color);
}

/* ===== Services Section ===== */
.services {
    background-color: var(--white-color);
}

.services__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.services__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.services__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.services__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: var(--mb-1-5);
}

.services__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    color: var(--primary-color-dark);
}

.services__description {
    color: var(--text-color-light);
    line-height: 1.6;
}

/* ===== About Section ===== */
.about {
    background-color: var(--body-color);
}

.about__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__description {
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    line-height: 1.8;
    margin-top: var(--mb-1-5);
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--white-color);
}

.contact__container {
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__content {
    margin-bottom: var(--mb-2);
}

.contact__description {
    margin-bottom: var(--mb-2);
    color: var(--text-color-light);
}

.contact__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: var(--mb-2);
}

.contact__card {
    background-color: var(--body-color);
    padding: 1rem; /* Reduced from 1.5rem to give text more space */
    border-radius: 0.75rem;
    text-align: center;
}

.contact__card-title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: var(--mb-0-5);
    color: var(--primary-color-dark);
}

.contact__card-data {
    color: var(--primary-color);
    font-weight: var(--font-medium);
    display: block;
    white-space: nowrap; /* Force one line */
    font-size: 0.85rem; /* Slightly smaller to fit */
    overflow: hidden;
    text-overflow: ellipsis; /* Fallback for very small screens */
}

.contact__card-data:hover {
    color: var(--accent-color);
}

.contact__form {
    background-color: var(--body-color);
    padding: 2rem;
    border-radius: 1rem;
}

.contact__inputs {
    display: grid;
    gap: 1.5rem;
}

.contact__label {
    display: block;
    margin-bottom: var(--mb-0-5);
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.contact__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.contact__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact__form button {
    margin-top: var(--mb-1);
    width: 100%;
}

.contact__message {
    margin-top: var(--mb-1);
    text-align: center;
    font-weight: var(--font-medium);
}

.contact__message.success {
    color: var(--accent-color);
}

.contact__message.error {
    color: #d32f2f;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color-dark);
    color: var(--white-color);
    padding: 3rem 0 2rem;
}

.footer__container {
    text-align: center;
}

.footer__logo {
    font-size: var(--h2-font-size);
    font-family: var(--heading-font);
    font-weight: var(--font-bold);
    color: var(--white-color);
    margin-bottom: var(--mb-0-5);
    display: inline-block;
}

.footer__description {
    margin-bottom: var(--mb-2);
    color: rgba(255, 255, 255, 0.8);
}

.footer__copy {
    margin-top: var(--mb-2);
    text-align: center;
    font-size: var(--small-font-size);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--mb-1-5);
}

/* Scroll Up Button */
.scrollup {
    position: fixed;
    right: 2rem;
    bottom: -20%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem;
    border-radius: 0.5rem;
    z-index: var(--z-fixed);
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.scrollup:hover {
    background-color: var(--accent-color);
}

.show-scroll {
    bottom: 3rem;
}

.scrollup__icon {
    font-size: 1.5rem;
    font-style: normal;
}

/* ===== Responsive Design ===== */

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }
    
    .nav__list {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .nav__list.show-menu {
        right: 0;
    }
    
    .nav__toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav__toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .logo img {
        height: 2.5rem; /* Slightly smaller on mobile */
    }
}

/* Tablets */
@media screen and (min-width: 769px) and (max-width: 968px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .services__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media screen and (min-width: 968px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    
    .section {
        padding: 6rem 0 2rem;
    }
    
    .home {
        min-height: 100vh;
    }
    
    .home__container {
        padding: 4rem 0;
    }
    
    .contact__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
    
    .services__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop */
@media screen and (min-width: 1200px) {
    .logo img {
        height: 4rem; /* Even larger on big screens */
    }
}

/* ===== Utility Classes ===== */
.button--flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Scroll Header */
.scroll-header {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
