/* Custom Styles for UNIQUE Residences */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* Tailwind config wrapper for vanilla CSS variables where needed */
:root {
    --color-unique-gold: #C5A059;
    --color-unique-dark: #1A1A1A;
    --color-unique-gray: #F5F5F5;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Utilities */
.text-gold {
    color: var(--color-unique-gold);
}

.bg-gold {
    background-color: var(--color-unique-gold);
}

.border-gold {
    border-color: var(--color-unique-gold);
}

.text-unique-dark {
    color: var(--color-unique-dark);
}

.bg-unique-dark {
    background-color: var(--color-unique-dark);
}

.bg-unique-gray {
    background-color: var(--color-unique-gray);
}

/* Navigation */
/* Forced Black Header as requested */
#navbar {
    background-color: #000000 !important;
    /* Force black */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar a {
    color: white !important;
    /* Text white on black header */
}

#navbar a:hover {
    color: var(--color-unique-gold) !important;
}

#mobile-menu {
    background-color: #000000;
}

#mobile-menu a {
    color: white;
}

/* Hero */
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Buttons */
.btn-primary {
    background-color: var(--color-unique-gold);
    color: white;
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-unique-gold);
    display: inline-block;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-unique-gold);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 1rem 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-unique-dark);
}

/* Master Plan Building Styles */
.building-level {
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    border-left-width: 4px;
}

.building-level:hover {
    background-color: var(--color-unique-gold);
    color: white !important;
    transform: scale(1.02);
    padding-left: 1.5rem;
    border-color: var(--color-unique-gold);
}

.building-level:hover h4,
.building-level:hover span,
.building-level:hover i {
    color: white !important;
}

/* Floating WhatsApp */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.float-wa:hover {
    transform: scale(1.1);
}

/* Mobile adjustments for WhatsApp button - ensure it doesn't cover footer */
@media (max-width: 768px) {
    .fixed.bottom-2.right-2 {
        bottom: 120px !important;
        /* Raise WhatsApp button above footer on mobile */
    }
}

@keyframes bubbleEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    70% {
        transform: translateY(-8px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bubbleShake {

    0%,
    100% {
        transform: translateY(0) rotate(0) translateX(0);
    }

    15% {
        transform: translateY(-7px) rotate(-2.5deg) translateX(-2px);
    }

    30% {
        transform: translateY(0) rotate(2.5deg) translateX(2px);
    }

    45% {
        transform: translateY(-5px) rotate(-2deg) translateX(-1px);
    }

    60% {
        transform: translateY(0) rotate(2deg) translateX(1px);
    }

    75% {
        transform: translateY(-2px) rotate(-1deg) translateX(-0.5px);
    }
}



/* Developer Logos */
.trust-logo {
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.5s ease;
    height: 6rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.trust-logo:hover,
.trust-logo-color:hover {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .trust-logo {
        height: 5rem;
        /* Slightly smaller on mobile to fit better if stacked */
    }
}

#wa-popup.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    animation: bubbleEntrance 0.6s ease-out forwards, bubbleShake 3s ease-in-out infinite 2s;
}

#wa-popup {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    z-index: 60;
    margin-bottom: 55px;
    /* High distance for better visibility */
}

.float-wa .online-dot {
    position: absolute;
    bottom: 12%;
    right: 12%;
    width: 14px;
    height: 14px;
    background-color: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 10;
}

/* Hero Carousel Fading */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-item.active {
    opacity: 1;
}

/* Amenities Card Hover */
.amenity-card {
    transition: all 0.3s ease;
}

.amenity-card:hover {
    border-color: var(--color-unique-gold);
    transform: translateY(-5px);
}