/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-green: #2E7D32;
    --hover-green: #1b5e20;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--accent-green);
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

/* Header */
.site-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    height: 50px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.main-nav li {
    margin: 0 1.25rem;
    min-width: 80px;
    text-align: center;
}

.main-nav a {
    color: #5f5d5d;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.5rem;
}

.main-nav a:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url("images/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 2rem;
    text-align: center;
    color: #fff;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-section h1 {
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-section p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.cta-button {
    margin-top: 2rem;
    background-color: var(--accent-green);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background-color: var(--hover-green);
}

/* Services Section */
.services-section {
    background-color: #fff;
    padding: 4rem 0;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--accent-green);
}

.service-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-item {
    border-left: 4px solid var(--accent-green);
    padding-left: 1rem;
}

.service-item h3 {
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

/* Products Section */
.products-section {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-green);
}

.product-list {
    list-style: none;
    padding-left: 0;
}

.product-list li {
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s, text-decoration 0.3s;
    text-align: left;
}

.product-list li:hover {
    color: var(--accent-green);
    text-decoration: underline;
    background: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-category {
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid var(--accent-green);
    border-radius: 6px;
    padding: 1rem;
}

.product-category h3 {
    margin-bottom: 0.75rem;
    color: var(--accent-green);
    font-size: 1.1rem;
}

.product-category ul {
    list-style: none;
    padding-left: 0;
    line-height: 0.6;
}

.product-category li {
    font-weight: 500;
    color: #333;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-green);
}

.contact-section a {
    font-weight: 600;
    color: var(--accent-green);
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #eee;
    text-align: center;
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    font-size: 0.9rem;
}

.site-footer a {
    color: #bbb;
    margin: 0 0.5rem;
}

.site-footer a:hover {
    color: var(--accent-green);
}

/* Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.product-modal.modal-open {
    display: block;
}

.modal-content {
    background-color: white;
    max-width: 500px;
    margin: 10% auto;
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    border-radius: 8px;
    position: relative;
    color: #222;
}

.close-button {
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--accent-green);
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .main-nav li {
        margin: 0.5rem 0;
        min-width: 100px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .container {
        padding: 1.5rem;
    }

    .product-list li {
        font-size: 1.2rem;
    }

    .modal-content {
        max-width: 90%;
        margin: 5% auto;
        padding: 1.5rem;
    }
}

.product-details {
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid var(--accent-green);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 6px;
}

.product-details h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-block {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-block ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}