:root {
    --primary-color: #8B4513; /* Saddle Brown */
    --secondary-color: #D2B48C; /* Tan */
    --accent-color: #556B2F; /* Dark Olive Green */
    --light-bg: #FFF8DC; /* Cornsilk */
    --text-color: #333;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    --white-color: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    display: flex; /* Added for footer stickiness */
    flex-direction: column; /* Added for footer stickiness */
    min-height: 100vh; /* Added for footer stickiness */
}

main { /* Added for footer stickiness */
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

/* Underline effect for section titles */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.5rem auto 0; /* Center the underline */
}

/* Generic section styling */
section {
    padding: 60px 20px;
    text-align: center; /* Center content within sections by default */
    max-width: 1100px; /* Constrain section width */
    margin-left: auto; /* Center section block */
    margin-right: auto; /* Center section block */
}

section p {
     max-width: 700px;
     margin-left: auto;
     margin-right: auto;
     margin-bottom: 1.5rem;
     text-align: left; /* Justify text for better readability */
}

section > p:first-of-type { /* Center the first paragraph below h2 */
    text-align: center;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 248, 220, 0.95); /* Slightly less transparent */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure header spans full width */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s ease;
    padding: 5px 0; /* Add padding for active state */
    position: relative; /* For active state underline */
}

nav ul li a:hover,
nav ul li a.active { /* Style for active page link */
    color: var(--accent-color);
    text-decoration: none;
}

/* Optional: Add underline to active nav link */
nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Hero Section (Homepage) */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('hero-background.png');
    background-size: cover;
    background-position: center;
    height: 70vh; /* Adjusted height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
    margin-bottom: 40px; /* Space below hero */
    max-width: none; /* Hero should span full width */
    padding: 0; /* Reset section padding */
}

.hero-content {
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.2); /* Slight background for readability */
    padding: 2rem;
    border-radius: 8px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white-color); /* Override default heading color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: var(--white-color); /* Ensure text is white */
    text-align: center; /* Center hero paragraph */
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color) !important; /* Ensure text is white */
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none !important; /* Remove underline */
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none; /* Reset border */
    cursor: pointer; /* Indicate clickable */
    font-family: var(--body-font); /* Ensure correct font */
    font-size: 1rem; /* Ensure correct font size */
    margin: 0.5rem; /* Add some spacing between buttons */
}

.cta-button:hover {
    background-color: #6B8E23; /* Olive Drab - slightly lighter green */
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-button.secondary { /* Style for less prominent buttons */
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}
.cta-button.secondary:hover {
    background-color: #c1a77d; /* Darker Tan */
}

/* Intro Section (Homepage) */
.intro-section {
    background-color: var(--white-color);
}
.intro-links {
    margin-top: 2rem;
}

/* Page specific adjustments */
.page-content {
    padding: 40px 0; /* Add some padding to main content area */
}

/* About Page */
.page-apropos section {
   background-color: var(--white-color); /* Specific background for this section */
   border-radius: 8px;
   box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.page-banner {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
}
.section-header {
    position: relative; /* For banner positioning if needed */
    margin-bottom: 1rem;
}
.about-image {
    max-width: 400px; /* Control image size */
    margin: 2rem auto 0; /* Center image */
    border-radius: 8px;
}

/* Gallery Page */
#gallerie {
     background-color: transparent; /* Remove old bg color if any */
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for uniformity */
    object-fit: cover; /* Crop images nicely */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color); /* Placeholder bg */
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.gallery-cta {
    margin-top: 3rem; /* Space above gallery CTA */
}

/* Contact Page */
.page-contact section {
    background-color: var(--secondary-color); /* Specific background for this section */
    color: var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding-bottom: 80px; /* More space at bottom */
}

.page-contact h2 {
     color: var(--primary-color); /* Ensure title matches section text color */
}
.page-contact h3 {
     color: var(--primary-color);
     margin-top: 2.5rem;
     margin-bottom: 1.5rem;
}
.page-contact h3::after { /* Style h3 underline like h2 */
     content: '';
    display: block;
    width: 40px; /* Shorter underline */
    height: 2px;
    background: var(--accent-color);
    margin: 0.4rem auto 0;
}

.page-contact address p {
    margin-bottom: 0.8rem; /* Tighter spacing for address lines */
    text-align: center; /* Center address details */
}
.page-contact address strong {
    margin-right: 5px;
}

.page-contact a {
    color: var(--primary-color); /* Darker links on lighter bg */
}
.page-contact a:hover {
    color: var(--accent-color);
}

.contact-details {
    margin-bottom: 2.5rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 2rem auto 0;
    background-color: rgba(255, 248, 220, 0.6); /* Light bg for form */
    padding: 2rem;
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: var(--white-color);
}
.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    display: block;
    margin: 1rem auto 0; /* Center button */
}

.map-container {
     max-width: 800px; /* Limit map width */
     margin: 2rem auto 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-bg);
    text-align: center;
    padding: 1.5rem 20px;
    margin-top: auto; /* Pushes footer down */
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    nav {
        flex-direction: column;
        padding-bottom: 0.5rem; /* Space below logo when stacked */
    }
    nav ul {
        margin-top: 1rem;
        padding-left: 0; /* Remove default padding */
        width: 100%;
        justify-content: center; /* Center nav items */
    }
    nav ul li {
        margin: 0 0.8rem;
    }
     nav ul li a.active::after { /* Hide underline on mobile nav items when stacked */
        display: none;
    }
    .hero {
        height: 60vh;
    }
     .hero-content {
        padding: 1.5rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
     .gallery-item img {
        height: 200px;
    }
    section {
        padding: 40px 15px; /* Reduce padding slightly */
    }
    .page-banner {
        height: 200px;
    }
}

@media (max-width: 480px) {
    nav ul {
        /* Keep flex-direction row for very small screens for now */
        /* If stacking needed: */
        /* flex-direction: column; */
        /* align-items: center; */
    }
    nav ul li {
       /* If stacking needed: */
       /* margin: 0.5rem 0; */
       font-size: 0.9rem; /* Smaller font size for nav links */
       margin: 0 0.5rem; /* Less space between links */
    }
     .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
     .hero-content {
        padding: 1rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust grid for small screens */
        gap: 1rem;
    }
     .gallery-item img {
        height: 150px;
    }
    .contact-form-container {
        padding: 1.5rem;
    }
}