:root {
    --warm-parchment: #F5EFE6;
    --deep-moss: #3B4A3F;
    --terracotta: #C47A5A;
    --blush-sand: #E8D5C0;
    --ivory-cream: #FAF7F2;
    --bark-brown: #5C3D2E;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--warm-parchment); 
    color: var(--deep-moss); 
    line-height: 1.7;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* --- Navigation --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 8%;
    background: var(--deep-moss);
    position: fixed; width: 100%; top: 0; z-index: 1000;
}
.logo { font-family: 'Playfair Display', serif; font-style: italic; color: var(--warm-parchment); font-size: 1.8rem; }
.nav-links { display: flex; list-style: none; }
.nav-links li a { 
    color: var(--blush-sand); text-decoration: none; margin-left: 30px; 
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s;
}
.nav-links li a:hover { color: var(--terracotta); }

/* --- Hero Section --- */
.hero {
    height: 100vh; 
    position: relative; 
    overflow: hidden; 
    text-align: center;
    background-color: var(--deep-moss); /* Safe fall-back color layer */
    
    display: grid;
    place-items: center;
    padding-top: 80px; 
}
.hero-slideshow { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
    z-index: 1; 
}
.slide { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    top: 0;
    left: 0;
    background-size: 100%; 
    background-position: center; 
    background-repeat: no-repeat;
    opacity: 0; 
    z-index: 1;
    animation: fadeEffect 12s infinite ease-in-out; 
}

/* Three distinct Unsplash premium spa textures */
.slide-1 { 
    background-image: url(slideshow_image.jpg); 
    animation-delay: 0s; 
}
.slide-2 { 
    background-image: url('slideshow_image_2.jpg'); 
    animation-delay: 4s; 
}
.slide-3 { 
    background-image: url('slideshow_image_1.jpg'); 
    animation-delay: 8s; 
}

/* Continuous, non-overlapping opacity timeline */
@keyframes fadeEffect {
    0% { opacity: 0; }
    8% { opacity: 1; z-index: 2; }  /* Brought forward when visible */
    33% { opacity: 1; } 
    41% { opacity: 0; z-index: 1; } /* Passed backward when fading */
    100% { opacity: 0; }
}

.hero-overlay {
    position: relative; 
    z-index: 10;
    background: rgba(59, 74, 63, 0.85); 
    padding: 60px 40px; 
    border: 1px solid var(--terracotta);
    max-width: 650px; 
    color: var(--warm-parchment);
    margin: 0 auto; 
}
.hero-overlay h1 { font-size: 3.5rem; margin-bottom: 1rem; color: var(--white); }
.hero-overlay p { margin-bottom: 2rem; }

/* --- Sections --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.about { padding: 100px 10%; background: var(--bark-brown); color: var(--warm-parchment); text-align: center; }
.about h2 { font-size: 2.5rem; margin-bottom: 20px; font-style: italic; color: var(--terracotta); }

/* --- SERVICES SECTION --- */
.services { padding: 100px 0; background: var(--warm-parchment); }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 40px; color: var(--deep-moss); }

.services-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
}

.services-scroll-container::-webkit-scrollbar { height: 6px; }
.services-scroll-container::-webkit-scrollbar-track { background: var(--blush-sand); }
.services-scroll-container::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 3px; }

.services-tabs { display: flex; gap: 15px; white-space: nowrap; padding: 0 10px; }

.tab-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 25px;
    background: var(--white);
    color: var(--deep-moss);
    border: 1px solid var(--blush-sand);
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn:hover, .tab-btn.active {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.services-panels { position: relative; min-height: 400px; }
.service-panel {
    display: none; 
    background: var(--white);
    border-left: 5px solid var(--terracotta);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    animation: fadeIn 0.4s ease-in-out forwards;
}
.service-panel.active { display: flex; }

.panel-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.panel-content h3 { font-size: 2.2rem; color: var(--deep-moss); margin-bottom: 10px; }

.panel-content .price { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: var(--terracotta); 
    margin-bottom: 15px; 
}
.panel-content .desc { font-size: 1.05rem; color: var(--deep-moss); }

.panel-img {
    flex: 1;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-color: var(--blush-sand);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Booking & Footer --- */
.booking { padding: 100px 5%; background: var(--blush-sand); text-align: center; }
.booking-form { max-width: 500px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 15px; }
.booking-form input, .booking-form select { padding: 15px; border: 1px solid var(--bark-brown); background: var(--white); font-family: inherit; }

.btn {
    display: inline-block; padding: 18px 40px; background: var(--terracotta); color: white;
    text-decoration: none; text-transform: uppercase; font-weight: 700; letter-spacing: 2px;
    border: none; cursor: pointer; transition: 0.3s;
}
.btn:hover { background: var(--deep-moss); }

footer {
    background: var(--deep-moss);
    color: var(--blush-sand);
    padding: 60px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--terracotta);
}

.footer-section h3 {
    color: var(--terracotta);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Hamburger Menu Logic --- */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.bar { height: 3px; width: 25px; background: var(--warm-parchment); margin: 2px 0; transition: 0.4s; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; left: -100%; top: 70px; width: 100%; height: 100vh;
        background: var(--deep-moss); flex-direction: column; align-items: center; padding-top: 50px;
        transition: 0.5s;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 20px 0; }
    .hero-overlay h1 { font-size: 2.5rem; }
    
    .service-panel.active { flex-direction: column-reverse; }
    .panel-content { padding: 30px; }
    .panel-img { height: 250px; min-height: 250px; }
}