/* * The Minibar House Maldives - Custom Styles
 * Theme: Luxury, Gold, Minimalist
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-gold: #C5A059; /* Inspired by the label flourishes */
    --secondary-gold: #e6c88a;
    --dark-text: #1a1a1a;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.4s ease-in-out;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-text);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
}

/* --- Navigation (Transparent Default) --- */
.navbar {
    padding: 1.5rem 0;
    background: transparent; /* Transparent initially */
    transition: all 0.4s ease-in-out;
    box-shadow: none; /* No shadow initially */
}

    /* Default Link Color (White for Video Background) */
    .navbar .nav-link {
        font-weight: 500;
        color: #ffffff !important; /* White Text */
        margin-left: 20px;
        position: relative;
        font-size: 0.9rem;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

        /* White Underline on Hover (Initial) */
        .navbar .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            background: #ffffff; /* White Underline */
            bottom: -5px;
            left: 0;
            transition: var(--transition);
        }

        .navbar .nav-link:hover::after, .navbar .nav-link.active::after {
            width: 100%;
        }

/* Mobile Menu Toggler (White Initially) */
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    filter: invert(1);
}
/* Inverts icon to white */

/* --- Logo Logic --- */
.navbar-brand img {
    height: 60px; /* Adjust based on your logo size */
    width: auto;
    transition: all 0.3s ease;
}

/* Hide Color logo initially, Show White logo */
.logo-color {
    display: none;
}

.logo-white {
    display: block;
}

/* --- Scrolled State (Solid White) --- */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important; /* Solid White */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 0.8rem 0; /* Shrink padding slightly */
}

    /* Links turn Dark/Gold on scroll */
    .navbar.scrolled .nav-link {
        color: var(--dark-text) !important;
    }

        .navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
            color: var(--primary-gold) !important;
        }

        .navbar.scrolled .nav-link::after {
            background: var(--primary-gold); /* Gold Underline */
        }

    /* Toggle Logo on Scroll */
    .navbar.scrolled .logo-white {
        display: none;
    }

    .navbar.scrolled .logo-color {
        display: block;
    }

    /* Mobile Menu Toggler (Back to Dark) */
    .navbar.scrolled .navbar-toggler {
        border-color: rgba(0,0,0,0.1);
    }

    .navbar.scrolled .navbar-toggler-icon {
        filter: none;
    }

/* --- Always Solid Navbar (For About & Contact pages) --- */
.navbar-always-solid {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 0.8rem 0 !important;
}

    /* Force Dark Text & Gold Hover */
    .navbar-always-solid .nav-link {
        color: #1a1a1a !important; /* Dark Text */
    }

        .navbar-always-solid .nav-link:hover,
        .navbar-always-solid .nav-link.active {
            color: #C5A059 !important; /* Gold Hover */
        }

        /* Force Gold Underline */
        .navbar-always-solid .nav-link::after {
            background: #C5A059 !important;
        }

    /* Force Color Logo Visible, White Hidden */
    .navbar-always-solid .logo-white {
        display: none !important;
    }

    .navbar-always-solid .logo-color {
        display: block !important;
    }

    /* Mobile Menu Toggler (Dark) */
    .navbar-always-solid .navbar-toggler {
        border-color: rgba(0,0,0,0.1) !important;
    }

    .navbar-always-solid .navbar-toggler-icon {
        filter: none !important;
    }

/* --- Mobile Menu Fix --- */
@media (max-width: 991.98px) {
    /* 1. Give the dropdown area a solid background */
    .navbar-collapse {
        background-color: #ffffff;
        padding: 20px;
        margin-top: 15px; /* Spacing from the logo */
        border-radius: 8px; /* Rounded corners */
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Drop shadow for depth */
        max-height: 80vh;
        overflow-y: auto;
    }

    /* 2. Force the links to be Dark (instead of White) inside this white box */
    .navbar .nav-link {
        color: #1a1a1a !important; /* Dark Text */
        margin-left: 0; /* Reset margins */
        padding: 10px 0; /* Add vertical spacing */
        border-bottom: 1px solid #f0f0f0; /* Light separator lines */
    }

    /* Remove the last border */
    .navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* 3. Gold color on Hover/Active */
    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: #C5A059 !important;
    }

    /* 4. Disable the animated underline on mobile (it looks messy on vertical lists) */
    .navbar .nav-link::after {
        display: none;
    }
}
/* --- Hero Section (Video) --- */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: brightness(0.4); /* Darken for readability */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
    color: #fff;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.8s;
    font-weight: 300;
}

.btn-gold {
    background: var(--primary-gold);
    color: #fff;
    padding: 15px 40px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border: 1px solid var(--primary-gold);
    opacity: 0;
    animation: fadeUp 1s forwards 1.1s;
}

    .btn-gold:hover {
        background: transparent;
        color: var(--primary-gold);
        border-color: var(--primary-gold);
    }

/* --- Section Styling --- */
.section-padding {
    padding: 100px 0;
}

.bg-light-gold {
    background-color: #faf8f5;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

    .section-title h2 {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--primary-gold);
        margin: 20px auto 0;
    }

/* --- Feature Cards (Hover Effects) --- */
.feature-card {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    transition: var(--transition);
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border-color: var(--primary-gold);
    }

.feature-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
}

/* --- Product Slider (Fixed Full Coverage) --- */
.product-hero-slider {
    position: relative;
    background: #000; /* Fallback color */
}

    /* 1. Define specific heights for the container AND the items */
    .product-hero-slider,
    .product-hero-slider .carousel-inner,
    .product-hero-slider .carousel-item {
        height: 70vh; /* Desktop Height */
    }

        /* 2. Force the image to fill the container completely */
        .product-hero-slider .carousel-item img {
            width: 100%;
            height: 100% !important; /* Forces image to be tall enough */
            object-fit: cover; /* Ensures it covers the area without distorting */
            object-position: center; /* Centers the image */
            opacity: 0.7; /* slight darken for text readability */
        }

.carousel-caption {
    bottom: 30%;
    z-index: 2;
}

    .carousel-caption h3 {
        font-size: 4rem;
        font-family: 'Playfair Display', serif;
        color: #C5A059; /* Gold */
        text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    }

/* --- Mobile Product Slider Adjustments --- */
@media (max-width: 767.98px) {
    /* Adjust height for mobile */
    .product-hero-slider,
    .product-hero-slider .carousel-inner,
    .product-hero-slider .carousel-item {
        height: 60vh;
    }

        /* Move text down to avoid logo collision */
        .product-hero-slider .carousel-caption {
            bottom: 10% !important;
            padding-left: 15px;
            padding-right: 15px;
        }

            /* Resize text */
            .product-hero-slider .carousel-caption h3 {
                font-size: 2rem;
                margin-bottom: 10px;
            }

            .product-hero-slider .carousel-caption .lead {
                font-size: 1rem;
            }
}

/* --- Product Grid --- */
.product-card {
    background: #fff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: none;
    transition: var(--transition);
}

.product-img-box {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-img-box img {
        max-width: 80%;
        transition: transform 0.6s ease;
    }

.product-card:hover .product-img-box img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px 0;
    text-align: center;
}

.product-cat {
    color: var(--primary-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

/* --- Contact Form --- */
.form-control {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 15px 0;
    background: transparent;
}

    .form-control:focus {
        box-shadow: none;
        border-color: var(--primary-gold);
    }

/* --- Footer --- */
footer {
    background: #111;
    color: #fff;
    padding: 80px 0 30px;
    border-top: 5px solid var(--primary-gold);
}

    footer h4 {
        color: var(--primary-gold);
        margin-bottom: 25px;
    }

    footer a {
        color: #aaa;
    }

        footer a:hover {
            color: var(--primary-gold);
        }

/* --- Animations --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

/* Custom Tab Styling */
.nav-pills .nav-link {
    color: #1a1a1a;
    background-color: transparent;
    border: 1px solid #ddd;
    /* FIXED: Changed from '0 5px' to '5px' to add vertical spacing on mobile */
    margin: 5px;
    border-radius: 30px;
    padding: 10px 25px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    transition: all 0.3s;
}

    .nav-pills .nav-link.active, .nav-pills .nav-link:hover {
        background-color: #C5A059;
        color: #fff;
        border-color: #C5A059;
    }

.tab-content {
    padding-top: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}