:root {
    /* 
     * NEW AESTHETIC DESIGN SYSTEM
     * Theme: Exclusive Boutique Wellness Retreat 
     */
    --primary: #e07a5f; /* Earthy Terracotta */
    --primary-light: #f2a68d;
    --secondary: #1b3a4b; /* Deep Forest Green */
    --secondary-dark: #10242f;
    --bg-color: #f4f1de; /* Muted Sand */
    --bg-alt: #ffffff; /* Contrast blocks */
    --text-color: #2b2b2b;
    --text-muted: #5e6b73;
    --accent: #ffd166; /* Energetic Gold */
    --white: #ffffff;
    
    /* Elegant shadows and glass */
    --glass-bg: rgba(244, 241, 222, 0.85); /* Sand glass */
    --glass-border: rgba(27, 58, 75, 0.1);
    --glass-shadow: 0 15px 40px -5px rgba(27, 58, 75, 0.1);
    --deep-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    animation: fadeInPage 1s ease-out;
}

@keyframes fadeInPage {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

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

/* 
 * Geometric Maslking & Assets 
 */
.arch-mask {
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    box-shadow: var(--deep-shadow);
    transition: var(--transition);
}
.circle-mask {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.arch-mask:hover, .circle-mask:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(224, 122, 95, 0.2); /* Terracotta transparent */
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Glassmorphism utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 3rem;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(244, 241, 222, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    transition: padding 0.3s;
}

header.scrolled nav {
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo img {
    height: 60px; /* Increased size for better focus */
    border-radius: 8px; /* Softened from extreme arch mask to keep logo intact */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background-color: var(--white); /* Ensure contrast against transparent headers */
    padding: 5px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 4px; /* Move from rounded to elegant squared */
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(224, 122, 95, 0.2);
}

.btn-primary:hover {
    color: var(--primary);
    background: transparent;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(224, 122, 95, 0.1);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    color: var(--secondary);
    background: var(--bg-alt);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 7rem 0;
    position: relative;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--accent);
    margin: 25px auto 0;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--secondary-dark);
    color: var(--white);
    padding: 5rem 5% 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--accent); /* Energetic Gold */
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(244, 241, 222, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 3rem 0;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: var(--deep-shadow);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .glass-panel {
        padding: 2rem 1.5rem;
    }
}
