/* ============================================
   BEX - Property Management Bootstrap Theme
   Light Cream & Gold Color Scheme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bex-bg:          #FAF9F6;
    --bex-bg-card:     #F3F1EC;
    --bex-navy:        #1a2332;
    --bex-navy-dark:   #141c28;
    --bex-navy-light:  #243044;
    --bex-gold:        #D4972E;
    --bex-gold-light:  #E0A83E;
    --bex-gold-dark:   #B8821F;
    --bex-foreground:  #1a1a2e;
    --bex-muted:       #7a7a8a;
    --bex-border:      #e2e0db;
    --bex-border-light:#eae8e3;
    --bex-white:       #ffffff;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bex-bg);
    color: var(--bex-foreground);
    overflow-x: hidden;
}

.font-heading {
    font-family: 'Playfair Display', serif;
}

::selection {
    background: var(--bex-gold);
    color: var(--bex-white);
}

/* ---------- Utility Classes ---------- */
.text-gold {
    color: var(--bex-gold) !important;
}

.text-dark-heading {
    color: var(--bex-foreground) !important;
}

.text-body-muted {
    color: var(--bex-muted) !important;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--bex-gold-light), var(--bex-gold), var(--bex-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ls-widest {
    letter-spacing: 0.12em;
}

.bg-main {
    background-color: var(--bex-bg);
}

.bg-card-light {
    background-color: var(--bex-bg-card);
}

.bg-navy-section {
    background-color: var(--bex-navy);
}

.section-padding {
    padding: 6rem 0;
}

@media (min-width: 992px) {
    .section-padding {
        padding: 8rem 0;
    }
}

/* ---------- Gold Button ---------- */
.btn-gold {
    background: linear-gradient(135deg, var(--bex-gold-light), var(--bex-gold));
    color: var(--bex-white) !important;
    border: none;
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 151, 46, 0.25);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--bex-gold), var(--bex-gold-dark));
    color: var(--bex-white) !important;
    box-shadow: 0 6px 20px rgba(212, 151, 46, 0.35);
    transform: translateY(-1px);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-gold.btn-lg {
    padding: 0.875rem 2.25rem;
}

.btn-dark-navy {
    background-color: var(--bex-navy);
    color: var(--bex-white) !important;
    border: none;
    font-weight: 500;
    padding: 0.875rem 2.25rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-dark-navy:hover {
    background-color: var(--bex-navy-light);
    color: var(--bex-white) !important;
}

/* ---------- Navbar ---------- */
.bex-navbar {
    padding: 0.75rem 0;
    transition: all 0.35s ease;
    background-color: transparent !important;
}

.bex-navbar.navbar-scrolled {
    background-color: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: height 0.35s ease;
}

.navbar-scrolled .navbar-logo {
    height: 40px;
}

.bex-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.bex-navbar.navbar-scrolled .nav-link {
    color: var(--bex-foreground) !important;
}

.bex-navbar .nav-link:hover,
.bex-navbar .nav-link.active {
    color: var(--bex-gold) !important;
}

.bex-navbar .btn-gold {
    color: var(--bex-white) !important;
}

.navbar-toggler {
    border: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.bex-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.bex-navbar.navbar-scrolled .navbar-toggler-icon {
    filter: none;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(250, 249, 246, 0.98);
        border-radius: 0.75rem;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .navbar-collapse .nav-link {
        color: var(--bex-foreground) !important;
    }

    .navbar-collapse .btn-gold {
        display: inline-block;
        margin-top: 0.5rem;
    }
}

/* ---------- Hero Section ---------- */
.hero-section {
    min-height: 100vh;
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(250, 249, 246, 0.70) 0%,
        rgba(250, 249, 246, 0.50) 40%,
        rgba(250, 249, 246, 0.95) 100%
    );
}

.z-1 {
    z-index: 1;
}

/* Scroll Indicator */
.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(26, 26, 46, 0.25);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background-color: var(--bex-gold);
    border-radius: 4px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(8px); opacity: 0.3; }
}

/* ---------- About Section ---------- */
.stat-card {
    background-color: var(--bex-bg);
    border: 1px solid var(--bex-border-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.about-images {
    min-height: 350px;
}

.about-main-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-inset-img {
    position: absolute;
    bottom: -48px;
    left: -32px;
    width: 260px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--bex-bg-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 991.98px) {
    .about-inset-img {
        position: relative;
        bottom: -20px;
        left: 0;
        width: 200px;
        height: 150px;
    }
}

/* ---------- Services Section ---------- */
.service-card {
    background-color: var(--bex-bg-card);
    border: 1px solid var(--bex-border-light) !important;
    border-radius: 0.75rem;
    transition: all 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    border-color: rgba(212, 151, 46, 0.3) !important;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bex-gold-light), var(--bex-gold));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--bex-white);
}

/* ---------- Projects Section ---------- */
.project-card {
    aspect-ratio: 4/5;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 35, 50, 0.9) 0%,
        rgba(26, 35, 50, 0.2) 40%,
        transparent 100%
    );
}

/* ---------- Gallery Section ---------- */
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

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

.gallery-hover {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 35, 50, 0);
    transition: background-color 0.3s ease;
}

.gallery-item:hover .gallery-hover {
    background-color: rgba(26, 35, 50, 0.2);
}

/* ---------- Partners Section ---------- */
.partner-logo-card {
    background-color: var(--bex-bg-card);
    border: 1px solid var(--bex-border-light);
    transition: all 0.3s ease;
}

.partner-logo-card:hover {
    border-color: var(--bex-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.partner-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo-card:hover .partner-logo {
    opacity: 1;
}

@media (min-width: 768px) {
    .partner-logo {
        height: 72px;
    }
}

/* ---------- Contact Section (DARK NAVY) ---------- */
.contact-section {
    background-color: var(--bex-navy);
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--bex-gold-light), var(--bex-gold));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-box i {
    font-size: 1.15rem;
    color: var(--bex-white);
}

.contact-form {
    background-color: var(--bex-bg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.bex-input {
    background-color: var(--bex-bg-card) !important;
    border: 1px solid var(--bex-border) !important;
    color: var(--bex-foreground) !important;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.bex-input::placeholder {
    color: var(--bex-muted) !important;
    opacity: 0.7;
}

.bex-input:focus {
    background-color: var(--bex-white) !important;
    border-color: rgba(212, 151, 46, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 151, 46, 0.15) !important;
    color: var(--bex-foreground) !important;
}

/* Contact section text colors */
.contact-section .text-contact-muted {
    color: rgba(255,255,255,0.55) !important;
}

.contact-section .text-contact-body {
    color: rgba(255,255,255,0.70) !important;
}

/* ---------- Footer ---------- */
.bex-footer {
    background-color: var(--bex-bg);
    border-top: 1px solid var(--bex-border-light);
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-link {
    color: var(--bex-muted) !important;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--bex-gold) !important;
}

/* ---------- WhatsApp Button ---------- */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1050;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transform: scale(1.05);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bex-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bex-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bex-gold-light);
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .about-inset-img {
        width: 180px;
        height: 130px;
    }

    .navbar-logo {
        height: 50px;
    }

    .navbar-scrolled .navbar-logo {
        height: 40px;
    }

    .footer-logo {
        height: 50px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3.25rem;
    }
}
