@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* =========================================================================
   1. VARIABLES & THEME SETTINGS
   ========================================================================= */
:root {
    /* Coastal Luxury Color Palette */
    --primary-blue: hsl(210, 50%, 15%); /* Deep ocean blue */
    --accent-gold: hsl(45, 60%, 65%);   /* Soft, warm gold */
    --bg-sand: hsl(35, 40%, 96%);       /* Warm sand background */
    --text-dark: hsl(210, 30%, 10%);    /* Dark ocean text for readability */
    --text-light: #ffffff;
    
    /* UI Elements */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    
    /* Animation Timings */
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s ease;
}

/* =========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Primary body text */
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-sand);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from reveals */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* All Headings */
h1, h2, h3, h4, h5, h6, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 400; /* Luxury aesthetic prefers lighter weights for headings */
    color: var(--primary-blue);
}

/* Specific heading overrides if needed */
h1 {
    color: var(--text-light); /* Hero text needs to be light */
}

/* --- Layout Utils --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

/* =========================================================================
   3. NAVIGATION
   ========================================================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav.scrolled {
    background: var(--primary-blue); /* Solid on scroll */
    padding: 1rem 0;
    border-bottom: none; /* Cleaner look when solid */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: color 0.3s;
}

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

/* =========================================================================
   4. HERO SECTION & PARALLAX
   ========================================================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Reset to 100% for fixed attachment */
    /* Premium Coastal Gradient overlay + Image */
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.4), rgba(4, 12, 24, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* CSS-only smooth parallax */
    z-index: -1;
    /* Optional edge styling */
    box-shadow: inset 0 -100px 100px -50px var(--bg-sand);
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content.visible {
    animation: fadeInUp var(--transition-slow) forwards;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    color: var(--accent-gold);
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--text-light);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* =========================================================================
   5. ANIMATIONS & REVEALS
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform; /* Performance optimization */
}

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

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

/* =========================================================================
   6. ROOMS SECTION
   ========================================================================= */
.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.room-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: box-shadow var(--transition-slow), transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.room-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.room-img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.room-card:hover .room-img {
    transform: scale(1.08);
}

.room-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.room-price span {
    font-family: inherit;
    font-size: 0.8rem;
    opacity: 0.8;
}

.room-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-info h3 {
    color: var(--primary-blue);
}

.room-amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.room-amenities span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.room-amenities svg {
    color: var(--accent-gold);
}

.room-info .btn-primary:hover {
    background: var(--primary-blue);
    color: var(--text-light);
}

/* Staggered Reveals */
.reveal.stagger-1 { transition-delay: 0.1s; }
.reveal.stagger-2 { transition-delay: 0.3s; }
.reveal.stagger-3 { transition-delay: 0.5s; }

/* --- Amenities Section --- */
.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.amenity-item {
    transition: var(--transition-fast);
}

.amenity-item:hover {
    transform: translateY(-5px);
}

.amenity-item h3 {
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* =========================================================================
   8. GALLERY & LIGHTBOX
   ========================================================================= */
.gallery-masonry {
    columns: 1; /* Default for mobile */
    column-gap: 1.5rem;
}

@media (min-width: 768px) {
    .gallery-masonry {
        columns: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        columns: 3;
    }
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-masonry-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-overlay svg {
    color: var(--text-light);
    transform: scale(0.5);
    transition: transform var(--transition-slow);
}

.gallery-masonry-item:hover img {
    transform: scale(1.05);
}

.gallery-masonry-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-masonry-item:hover .gallery-overlay svg {
    transform: scale(1.5);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 12, 24, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform var(--transition-fast);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-light);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

/* --- Contact Section & Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.inquiry-form {
    background: white;
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-gold);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
}

/* =========================================================================
   9. FOOTER & WHATSAPP
   ========================================================================= */
.footer {
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 100px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-bottom {
    background: rgba(4, 12, 24, 0.9);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Official WhatsApp Color */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* =========================================================================
   10. RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================= */
@media (max-width: 992px) {
    .contact-grid, .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .happiness-container {
        padding: 3rem 1.5rem !important;
    }

    div[style*="minmax(280px"] {
        grid-template-columns: 1fr !important;
    }

    section {
        padding: 60px 0;
    }

    .nav-links {
        display: none; /* Could be replaced with a hamburger menu */
    }
    
    .room-grid, .amenity-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-grid {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
    
    /* Keep scrolling smooth */
    html {
        scroll-behavior: smooth;
    }
}
    @media (hover: none) {
        .hero-bg {
            background-attachment: scroll;
        }
    }
    
    @media (max-width: 768px) {
        .hero-bg {
            background-attachment: scroll;
        }
    }
