/* --- style.css --- */

/* --- Global Resets & Base Styles --- */
:root {
    --primary-color: #2c5e3A; /* Deep Forest Green */
    --secondary-color: #6a994e; /* Lighter, earthy green */
    --accent-color: #fca311;   /* Warm accent - like a sunset or flower */
    --text-color: #333333;
    --light-text-color: #f8f9fa;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40; /* For dark sections */
    --bg-accent-section: #e9f5db; /* Light green tint for some sections */


    --font-primary: 'Montserrat', sans-serif;
    --font-headings: 'Playfair Display', serif;

    --border-radius: 5px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--primary-color);
    margin-bottom: 0.8em;
    line-height: 1.3;
}
h1 { font-size: 2.8rem; }
h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}
h2.section-title::after { /* Simple underline accent */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
h2 .highlight { color: var(--secondary-color); }
h2 .highlight-dark { color: var(--accent-color); }


.section-padding {
    padding: 80px 0;
}
.section-accent {
    background-color: var(--bg-accent-section);
}
.section-dark {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--light-text-color);
}
.section-dark a {
    color: var(--accent-color);
}
.section-dark a:hover {
    color: #fff;
}


/* --- Header & Navigation --- */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    position: fixed; /* Sticky header */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
}
.main-header.scrolled { /* Add this class with JS on scroll */
    background-color: rgba(255,255,255,0.95);
    padding: 10px 0;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}
.logo img { height: 40px; }

.main-nav ul {
    list-style: none;
    display: flex;
}
.main-nav ul li {
    margin-left: 25px;
}
.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}
.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { /* Add 'active' class to current page link */
    width: 100%;
}

.mobile-nav-toggle {
    display: none; /* Shown on smaller screens */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text-color);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding-top: 80px; /* Account for fixed header */
}
.video-hero .hero-video { /* For video background */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity */
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    color: #fff;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.scroll-down-link {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5rem;
    z-index: 3;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- Buttons --- */
.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    font-size: 1rem;
    margin: 5px;
}
.cta-button {
    background-color: var(--accent-color);
    color: var(--text-color); /* Or #fff if accent is light */
    border: 2px solid var(--accent-color);
}
.cta-button:hover {
    background-color: darken(var(--accent-color), 10%);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.cta-button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.section-dark .cta-button-secondary {
    color: var(--light-text-color);
    border-color: var(--light-text-color);
}
.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}
.section-dark .cta-button-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--bg-dark);
}


/* --- Story Section --- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}
.story-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.story-image .caption {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.feature-card-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-top: 15px;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease-in-out;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item::before { /* Overlay for text or icon on hover */
    content: '\f00e'; /* Font Awesome search-plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 94, 58, 0.7); /* primary-color with opacity */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}
.gallery-item:hover::before {
    opacity: 1;
}

/* --- Visit Section --- */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column */
    gap: 40px;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .visit-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on larger screens */
    }
}
.visit-info ul {
    list-style: none;
    padding-left: 0;
}
.visit-info ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.visit-info ul li i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px; /* Align icons */
    text-align: center;
}
.visit-map-embed iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.visit-map-embed .caption {
    font-size: 0.9rem;
    color: #ccc; /* Lighter for dark background */
    text-align: center;
    margin-top: 10px;
}
.section-dark .visit-map-embed .caption {
    color: #aaa;
}


/* --- Final CTA Section --- */
.cta-final-section {
    background-color: var(--bg-light); /* Or a subtle image */
}
.cta-final-section h2 { font-size: 2.2rem; }
.cta-final-section p { max-width: 600px; margin: 0 auto 30px auto; font-size: 1.1rem; }


/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}
.main-footer h4 {
    color: #fff;
    font-family: var(--font-primary); /* Use primary for footer headings for less formality */
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    display: inline-block;
}
.footer-links ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-social a {
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    margin-right: 15px;
}
.footer-social a:hover {
    color: var(--accent-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background-color: darken(var(--accent-color), 10%);
    color: #fff;
    transform: translateY(-3px);
}


/* --- Animation Utilities (requires JS for adding 'in-view' class) --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.fade-in { transform: translateY(30px); }
.animate-on-scroll.fade-in-up { transform: translateY(50px); }
.animate-on-scroll.slide-in-left { transform: translateX(-50px); }
.animate-on-scroll.slide-in-right { transform: translateX(50px); }

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.2s; }
.animate-on-scroll.delay-2 { transition-delay: 0.4s; }
.animate-on-scroll.delay-3 { transition-delay: 0.6s; }


/* --- Mobile Navigation --- */
@media (max-width: 992px) { /* Adjust breakpoint as needed */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; /* Below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    .main-nav.active { /* Add this class with JS */
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul li {
        margin: 10px 0;
        margin-left: 0; /* Reset margin for vertical layout */
    }
    .mobile-nav-toggle {
        display: block;
    }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    h2.section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .story-grid, .features-grid, .gallery-grid, .visit-grid, .footer-content {
        grid-template-columns: 1fr; /* Stack elements */
    }
    .hero-section { background-attachment: scroll; } /* Disable parallax on mobile for performance */
}

/* Optional: Preloader styles */
/*
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.spinner {
    border: 8px solid var(--bg-light);
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
*/