/* Global Styles */
:root {
    --primary-color: #1f2935;
    --secondary-color: #f8f1e3;
    --accent-color: #f1a32e;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #2c3639;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
}

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

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

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

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

section {
    padding: 60px 0;
}

/* Header Styles */
header {
    background-color: var(--light-text);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Hide navbar on home page */
.home-page header {
    display: none;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem; /* larger vertical padding */
    position: relative;
}

/* Gap between logo and nav */
header nav {
    flex: 0 1 auto;
}

.logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo img {
    height: 3rem;
    width: auto;
}

nav .nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav .nav-links li {
    margin: 0 15px;
}

nav .nav-links a {
    color: var(--text-color);
    font-weight: 500;
}

nav .nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

nav .menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

#check {
    display: none;
}

/* Navigation Section Styles for Homepage */
.nav-section {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, transform 0.8s ease;
}

/* For alternating sections on homepage */
.about-section, .gallery-section, .contact-section {
    flex-direction: row-reverse;
}

/* Home Hero Section - Full Width with Text Overlay */
.home-hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero/hero.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    z-index: 1;
    padding: 0;
    margin-bottom: 0; /* Ensure no extra space after hero */
}

.home-hero .hero-content {
    max-width: 800px;
    padding: 20px;
}

.home-hero .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--light-text);
}

.home-hero .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* Section animation on scroll */
.nav-section:not(.home-intro) {
    opacity: 0.7;
    transform: translateY(30px);
}

.nav-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-image, 
.section-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-image {
    background-color: var(--secondary-color);
    overflow: hidden;
}

/* Make the contact image cover the container */
.contact-section .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Make the gallery image cover the container */
.gallery-section .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Make the reservations image cover the container */
.reservations-section .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    transition: transform 0.5s ease;
    min-height: 300px; /* Ensure a minimum height so images are visible */
}

.nav-section:hover .image-placeholder {
    transform: scale(1.05);
}

.section-content {
    background-color: var(--light-text);
    padding: 40px;
}

.inner-content {
    max-width: 500px;
    padding: 20px;
}

.inner-content h1, 
.inner-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.inner-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Style specific sections */
.home-intro {
    background-color: var(--primary-color);
}

.home-intro .section-content {
    background-color: transparent;
}

.home-intro .inner-content h1,
.home-intro .inner-content p {
    color: var(--light-text);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 25px 0;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 60px;
}

.lang-btn:hover {
    background: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--light-text);
    color: var(--primary-color);
}


/* Navbar flex layout for icon, nav, and language switcher */
.navbar-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-flex .logo {
    flex: 0 0 150px;
    position: static;
    transform: none;
}

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

.navbar-right {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.language-switcher.navbar-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-switcher.navbar-switcher .lang-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-switcher.navbar-switcher .lang-btn.active,
.language-switcher.navbar-switcher .lang-btn:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

.scroll-indicator {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    margin-bottom: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.menu-section .section-content,
.about-section .section-content,
.gallery-section .section-content,
.contact-section .section-content {
    background-color: var(--light-text);
}

/* Add background images for each section */
.home-intro .section-image .image-placeholder {
    background: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cmVzdGF1cmFudHxlbnwwfHwwfHx8MA%3D%3D&w=1000&q=80') no-repeat center center/cover;
}

.menu-section .section-image .image-placeholder {
    background: url('images/wrap2.jpg') no-repeat center center/cover;
}

.about-section .section-image .image-placeholder {
    background: url('images/branding/logo.jpg') no-repeat center center/cover;
    background-size: contain;
}

.reservations-section .section-image .image-placeholder {
    background: url('https://images.unsplash.com/photo-1599458252573-56ae36120de1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8cmVzdGF1cmFudCUyMHRhYmxlfGVufDB8fDB8fHww&auto=format&fit=crop&w=1000&q=80') no-repeat center center/cover;
}

.gallery-section .section-image .image-placeholder {
    background: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80') no-repeat center center/cover;
}

.events-section .section-image .image-placeholder {
    background: url('https://images.unsplash.com/photo-1533174072545-7a4b6ad7a6c3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTB8fHJlc3RhdXJhbnQlMjBldmVudHxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&w=1000&q=80') no-repeat center center/cover;
}

.contact-section .section-image .image-placeholder {
    background: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8cmVzdGF1cmFudHxlbnwwfHwwfHx8MA%3D%3D&w=1000&q=80') no-repeat center center/cover;
}

/* Glamping Section */
.glamping-section .section-image .image-placeholder {
    background: url('images/glamping/glamping1.jpg') no-repeat center center/cover;
}

/* Hero Section (for other pages) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cmVzdGF1cmFudHxlbnwwfHwwfHx8MA%3D%3D&w=1000&q=80') no-repeat center center/cover;
    height: 100vh;
    color: var(--light-text);
    display: flex;
    align-items: center;
    text-align: center;
}

.not-home .hero {
    margin-top: 5rem; /* match larger header height */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Overview Section */
.overview {
    background-color: var(--light-text);
    text-align: center;
}

.features {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    margin: 10px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.highlights {
    display: flex;
    align-items: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.highlight-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    text-align: left;
}

.highlight-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.placeholder-img {
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 8px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.testimonial {
    flex: 0 1 45%;
    margin: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1 1 200px;
    margin: 15px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--light-text);
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    /* --- Responsive Navbar (mobile-first) --- */
    header .container {
        justify-content: space-between; /* logo left, menu right */
    }

    .logo {
        position: static; /* reset absolute positioning */
        transform: none;
        left: auto;
        top: auto;
    }

    /* Revert nav back to static so hamburger aligns naturally */
    header nav {
        position: static;
        right: auto;
        top: auto;
        transform: none;
    }

    /* Reset the alternating layout on mobile */
    .nav-section,
    .about-section, 
    .gallery-section, 
    .contact-section {
        flex-direction: column;
        min-height: auto; /* Remove the 100vh min-height on mobile */
        margin: 0; /* Remove all margins */
        padding: 0; /* Remove all padding */
        border-bottom: none; /* Remove any border */
    }
    
    /* Ensure consistent vertical stacking order for all sections */
    .section-content {
        order: 2;
    }
    
    .section-image {
        order: 1;
    }
    
    /* Add consistent spacing between sections */
    main .nav-section + .nav-section {
        margin-top: 0;
    }

    /* Ensure no gaps within a section's components */
    .section-image + .section-content,
    .section-content + .section-image {
        margin-top: 0;
    }
    
    /* Keep thin separator between sections */
    main .nav-section {
        border-bottom: 0.15rem solid var(--primary-color);
    }
    
    /* Menu section layout fixes */
    .menu-section,
    .reservations-section,
    .events-section,
    .gallery-section,
    .about-section,
    .contact-section {
        flex-direction: column;
    }
    
    /* Fix section content/image containers */
    .section-image,
    .section-content {
        width: 100%;
        min-height: auto; /* Don't force a height */
        padding: 0; /* Remove padding */
    }
    
    /* Ensure image placeholders are visible */
    .section-image {
        height: 250px; /* Fixed height for image sections */
        overflow: hidden;
    }
    
    .image-placeholder {
        min-height: 250px; /* Match the container height */
    }
    
    /* Adjust content spacing */
    .inner-content {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix spacing between sections */
    section {
        padding: 0; /* Remove default padding */
        margin: 0; /* Remove default margin */
    }

    /* Header and Navigation */
    nav .nav-links {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: var(--light-text);
        top: 5rem;
        left: -100%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: all 0.5s ease;
    }

    nav .nav-links li {
        margin: 15px 0;
    }

    nav .menu-btn {
        display: block;
    }

    #check:checked ~ .nav-links {
        left: 0;
    }

    /* Hero section adjustments */
    .home-hero {
        height: 100vh;
    }
    
    .home-hero .hero-content {
        padding: 20px;
        width: 90%;
    }
    
    .home-hero .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    /* Mobile scroll indicator positioning */
    .scroll-indicator {
        bottom: 40px;
    }

    /* Features and Highlights */
    .feature, .highlight-text, .highlight-image {
        min-width: 100%;
    }

    /* Footer */
    .footer-section {
        flex: 1 1 100%;
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 480px) {
    /* Further adjustments for small screens */
    
    /* Make image sections more compact */
    .section-image {
        height: 200px;
    }
    
    .image-placeholder {
        min-height: 200px;
    }
    
    /* Compact content padding */
    .inner-content {
        padding: 25px 15px;
    }
    
    /* Make sure all elements fit properly */
    .inner-content h1,
    .inner-content h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .inner-content p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
    }

    /* Smaller hero section text */
    .home-hero .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

/* Improve section spacing */
main .nav-section {
    border-bottom: none;
}

/* Border under text column only */
main .nav-section .section-content {
    border-bottom: 0.15rem solid var(--primary-color);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 900;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* ---------------------------------- */
/* Popup (Modal) Component Styles */
/* ---------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    animation: fadeIn 0.3s forwards ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.popup {
    background: #ffffff; /* Match logo background white for seamless blend */
    width: 90%;
    max-width: 600px;
    padding: 40px 30px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(40px);
    opacity: 0;
    animation: slideUp 0.4s forwards ease 0.2s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup img {
    max-width: 70%; /* shrink the logo slightly within the popup */
    height: auto;
    margin-bottom: 20px;
    border-radius: 6px;
}

.popup h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.popup p {
    font-size: 1rem;
    color: var(--text-color);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

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

.popup-actions {
    margin-top: 25px;
}

.popup-actions .btn {
    margin: 0 8px;
}

/* --- Custom tweak: About section image size & background --- */
.about-section .section-image {
    background-color: #ffffff; /* Override secondary colour so surrounding area is white */
}

.about-section .section-image .image-placeholder {
    /* Shrink the logo slightly so it isn't flush to the edges */
    transform: scale(0.9);
    transform-origin: center;
}

