:root {
    --primary-color: #2e7d32; /* Green for eco theme */
    --primary-hover: #1b5e20;
    --secondary-color: #455a64;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --accent-color: #ffd700; /* Subtle yellow accent */
    --font-main: 'Inter', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

#root, #__next {
    isolation: isolate;
}

html {
    font-size: 16px; /* Explicit base size */
    -webkit-text-size-adjust: 100%; /* Prevent iOS text inflation */
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 1rem; /* Relative to html base */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* Firefox/macOS smoothing */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 20px auto;
    padding: 0 var(--spacing-unit);
}

@media (max-width: 768px) {
    :root {
        --spacing-unit: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1.2rem;
    }
}

/* Header / Hero */
header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: keep-all; /* Prevent breaking inside words */
    overflow-wrap: normal; /* Ensure standard wrapping behavior */
}

header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Contact Bar */
.contact-bar {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.contact-bar a {
    color: #fff;
    font-weight: bold;
    margin: 0 0.5rem;
}

.contact-bar a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    padding: 4rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.intro-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.intro-images img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    width: 48%;
    object-fit: cover;
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    flex: 1 1 300px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Gallery */
.gallery-section {
    margin-bottom: 4rem;
}

.gallery-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gallery-grid img {
    flex: 1 1 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

footer .footer-link {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Utilities */
.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Content Page */
.content-page {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto;
}

.content-page h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.text-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
