/* ==========================================================================
   SAMRIDHI BUSTANI OASIS - GLOBAL BRAND CSS
   ========================================================================== */

/* 1. BRAND TOKENS & VARIABLES */
:root {
    --primary-accent: #2F4F3A; /* Olive Green */
    --secondary-accent: #7C8F6A; /* Sage Green */
    --bg-sand: #DCC8A3; /* Sand Beige */
    --bg-cream: #FAF8F5; /* Luxury Warm Cream */
    --accent-gold: #C6A96B; /* Warm Gold */
    --water-blue: #4E7D8C; /* Ocean Blue */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* 2. TYPOGRAPHY - LOCAL FONT FACES */
@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 3. GLOBAL RESETS & BASE STYLES */
body {
    background-color: var(--bg-cream);
    font-family: var(--font-body);
    color: #333333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .nav-link, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: var(--primary-accent);
}

/* Overriding Bootstrap Defaults for Premium Look */
.btn, .card, .form-control, .modal-content, .nav-tabs .nav-link {
    border-radius: 0 !important;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Custom Buttons */
.btn-primary-luxury {
    background-color: var(--primary-accent);
    color: var(--bg-cream);
    border: 1px solid var(--primary-accent);
    padding: 12px 30px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary-luxury:hover {
    background-color: var(--bg-cream);
    color: var(--primary-accent);
}

.btn-outline-luxury {
    background-color: transparent;
    color: var(--primary-accent);
    border: 1px solid var(--primary-accent);
    padding: 12px 30px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-luxury:hover {
    background-color: var(--primary-accent);
    color: var(--bg-cream);
}

/* 4. NAVBAR COMPONENTS */
.navbar {
    transition: all 0.4s ease;
    padding: 20px 0;
    background-color: transparent;
}

.navbar .nav-link {
    color: var(--bg-cream) !important;
    font-size: 1.1rem;
    margin: 0 15px;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.navbar .navbar-brand img {
    height: 60px;
    transition: all 0.4s ease;
}

/* Navbar Scrolled State */
.navbar.scrolled {
    background-color: rgba(47, 79, 58, 0.85); /* Olive Green with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 5. HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: url('../images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-cream);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--bg-cream);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--bg-cream);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Floating Check Availability Widget */
.hero-widget {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(250, 248, 245, 0.95); /* Luxury Warm Cream */
    padding: 30px;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top: 4px solid var(--accent-gold);
}

.hero-widget .form-control {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--secondary-accent);
    padding-left: 0;
    font-family: var(--font-body);
}

.hero-widget .form-control:focus {
    box-shadow: none;
    border-bottom-color: var(--primary-accent);
}

.hero-widget label {
    font-family: var(--font-heading);
    color: var(--primary-accent);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 6. ABOUT US - ASYMMETRICAL GRID */
.about-section {
    padding: 150px 0 100px;
    background-color: var(--bg-cream);
}

.about-image-wrapper {
    position: relative;
}

.about-img-main {
    width: 80%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-img-offset {
    position: absolute;
    bottom: -10%;
    right: 0;
    width: 60%;
    height: auto;
    border: 15px solid var(--bg-cream);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* 7. ROOM CATEGORIES */
.rooms-section {
    background-color: var(--bg-sand);
    padding: 100px 0;
}

.room-card {
    background-color: var(--bg-cream);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.room-card img {
    height: 250px;
    object-fit: cover;
}

.room-card .card-body {
    padding: 2rem;
    flex-grow: 1;
}

.room-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--secondary-accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(124, 143, 106, 0.2);
    padding-bottom: 10px;
}

.room-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.room-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.room-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23C6A96B"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-repeat: no-repeat;
}

/* 8. DINING SHOWCASE */
.dining-section {
    padding: 100px 0;
    background-color: var(--bg-cream);
}

.dining-badge {
    display: inline-block;
    padding: 5px 15px;
    margin: 5px;
    border: 1px solid var(--secondary-accent);
    font-family: var(--font-heading);
    color: var(--primary-accent);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: transparent;
    transition: all 0.3s ease;
}

.dining-badge:hover {
    background-color: var(--secondary-accent);
    color: var(--bg-cream);
}

.menu-style-text {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary-accent);
    font-size: 1.2rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 20px;
    margin: 30px 0;
}

/* 9. ENTERTAINMENT & AMENITIES */
.amenities-section {
    background-color: var(--primary-accent);
    color: var(--bg-cream);
    padding: 100px 0;
}

.amenities-section h2, .amenities-section h3 {
    color: var(--accent-gold);
}

.nav-tabs.luxury-tabs {
    border-bottom: 1px solid rgba(198, 169, 107, 0.3);
    margin-bottom: 40px;
}

.nav-tabs.luxury-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--bg-cream);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 15px 30px;
    transition: all 0.3s ease;
}

.nav-tabs.luxury-tabs .nav-link:hover {
    color: var(--accent-gold);
    border: none;
}

.nav-tabs.luxury-tabs .nav-link.active {
    color: var(--accent-gold);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-gold);
}

.amenity-card {
    background-color: rgba(250, 248, 245, 0.05);
    border: 1px solid rgba(198, 169, 107, 0.2);
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.amenity-card:hover {
    background-color: rgba(250, 248, 245, 0.1);
    border-color: var(--accent-gold);
}

/* Water Accent for Pool/Marine features */
.water-accent {
    color: var(--water-blue) !important;
}
.bg-water-accent {
    background-color: var(--water-blue) !important;
}

/* 10. CONTACT & GALLERY */
.contact-section {
    padding: 100px 0 0; /* Gallery sits directly at bottom */
    background-color: var(--bg-cream);
}

.contact-matrix {
    padding: 40px;
    background-color: var(--bg-sand);
    border-top: 4px solid var(--primary-accent);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 100px;
}

.gallery-item {
    width: 33.333%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 991px) {
    .gallery-item {
        width: 50%;
    }
}

@media (max-width: 575px) {
    .gallery-item {
        width: 100%;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

/* Utilities */
.text-primary-accent { color: var(--primary-accent); }
.text-secondary-accent { color: var(--secondary-accent); }
.text-gold { color: var(--accent-gold); }

/* Custom Spacing Overrides */
.py-luxury { padding-top: 100px; padding-bottom: 100px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-section {
        padding-top: 200px; /* More room for the stacked widget */
    }
    .about-img-offset {
        position: relative;
        width: 100%;
        bottom: 0;
        margin-top: 20px;
        border-width: 5px;
    }
    .hero-widget {
        padding: 20px;
        bottom: -150px;
    }
}

/* Subpage Hero */
.subpage-hero {
    min-height: 50vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
