/* --------------------------------------------------
   GLOBAL RESETS
-------------------------------------------------- */

body{
    font-family:Arial,sans-serif;
    background-color:#ffffff;
    margin:0;
    padding:0;
    color:var(--color-text);
}

/* --------------------------------------------------
   PRELOADER
-------------------------------------------------- */

#preloader{
    position:fixed;
    inset:0;
    background:#ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    transition:opacity .4s ease;
}

#preloader.hidden{
    opacity:0;
    pointer-events:none;
}

.loader-content{
    text-align:center;
}

.loader-logo{
    width:120px;
    height:auto;
    opacity:.9;
}

.loader-text{
    margin-top:12px;
    font-size:18px;
    color:#666;
}

/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */

.navbar-brand{
    font-weight:bold;
    font-size:1.25rem;
}

.nav-link{
    font-size:1rem;
    font-weight:500;
    color:var(--color-text)!important;
}

.nav-link:hover{
    color:var(--color-primary)!important;
}

/* --------------------------------------------------
   HERO / SLIDER
-------------------------------------------------- */

.carousel-item img{
    width:100%;
    height:480px;
    object-fit:cover;
}

.fixed-slider-btn{
    position:absolute;
    bottom:40px;
    left:50%;
    transform:translateX(-50%);
    padding:14px 32px;
    font-size:1.2rem;
    font-weight:bold;
    border-radius:6px;
    z-index:10;
    border:none;
    background-color:var(--slider-btn,var(--color-primary));
    color:#fff;
    transition:background-color .2s ease;
}

.fixed-slider-btn:hover,
.fixed-slider-btn:focus{
    background-color:var(--slider-btn-dark,var(--color-primary-dark));
}

/* --------------------------------------------------
   HEADINGS
-------------------------------------------------- */

h1{
    font-weight:700;
    color:var(--color-heading-main);
}

h2,h3,h4,h5{
    font-weight:700;
    color:var(--color-heading-alt);
}

/* --------------------------------------------------
   GALLERY GRID
-------------------------------------------------- */

.gallery-grid img{
    width:100%;
    border-radius:8px;
    transition:transform .25s ease, box-shadow .25s ease;
}

.gallery-grid img:hover{
    transform:scale(1.03);
    box-shadow:0 8px 22px rgba(0,0,0,.18);
}

.gallery-thumb{
    transition:transform .2s ease;
    border-radius:8px;
    cursor:pointer;
}

.gallery-thumb:hover{
    transform:scale(1.05);
}

/* --------------------------------------------------
   SERVICES CARDS
-------------------------------------------------- */

.service-card{
    border-radius:8px;
    transition:transform .25s ease, box-shadow .25s ease;
    border-left:4px solid #e9ecef;
}

.service-card:hover{
    transform:translateY(-4px);
    border-left-color:var(--color-primary);
}

.service-icon{
    width:60px;
    height:60px;
    object-fit:contain;
}

/* --------------------------------------------------
   REVIEWS
-------------------------------------------------- */

.review-card{
    border-top:3px solid #e9ecef;
}

.review-card:hover{
    border-top-color:var(--color-primary);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

footer{
    font-size:.95rem;
    background:var(--color-footer-bg);
}

footer p{
    margin-bottom:6px;
}

footer a{
    color:var(--color-footer-link);
}

footer a:hover{
    color:#ffffff;
    text-decoration:underline;
}

footer .small{
    color:var(--color-footer-text);
}

/* --------------------------------------------------
   TOP BAR ANIMATION
-------------------------------------------------- */

.top-red-bar{
    width:100%;
    overflow:hidden;
    background:var(--topbar-bg,var(--color-primary));
    padding:10px 0;
}

.logo-strip{
    display:flex;
    width:max-content;
    animation:marquee var(--topbar-speed,18s) linear infinite;
}

.logo-strip img{
    height:60px;
    margin-right:40px;
}

@keyframes marquee{
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
}

/* --------------------------------------------------
   MOBILE TOP BAR
-------------------------------------------------- */

@media (max-width:768px){

    .top-red-bar{
        padding:4px 0;
    }

    .logo-strip img{
        height:32px;
        margin-right:24px;
    }

}

/* --------------------------------------------------
   HERO SLIDER MOBILE
-------------------------------------------------- */

@media (max-width:768px){

    .carousel-inner{
        height:240px;
    }

    .carousel-item img,
    .carousel-item video{
        height:240px;
    }

    .fixed-slider-btn{
        bottom:16px;
        font-size:1rem;
        padding:10px 22px;
    }

}

/* --------------------------------------------------
   HERO SLIDER MODES
-------------------------------------------------- */

.carousel-inner{
    overflow:hidden;
}

.carousel-item img,
.carousel-item video{
    width:100%;
    height:100%;
}

.hero-slide-cover img,
.hero-slide-cover video{
    object-fit:cover;
}

.hero-slide-contain{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
}

.hero-slide-contain img,
.hero-slide-contain video{
    object-fit:contain;
    max-width:100%;
    max-height:100%;
}

/* --------------------------------------------------
   GALLERY MEDIA
-------------------------------------------------- */

.gallery-media-wrapper{
    position:relative;
    height:260px;
    overflow:hidden;
    border-radius:12px;
    background:#f2f2f2;
}

.gallery-media-wrapper img,
.gallery-media-wrapper video{
    width:100%;
    height:100%;
    object-fit:cover;
}

.gallery-play-btn{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gallery-play-btn::before{
    content:'';
    width:54px;
    height:54px;
    background:var(--color-primary);
    border-radius:50%;
}

.gallery-play-btn::after{
    content:'';
    position:absolute;
    border-style:solid;
    border-width:10px 0 10px 16px;
    border-color:transparent transparent transparent #fff;
    margin-left:4px;
}

/* --------------------------------------------------
   REAL ESTATE SECTIONS
-------------------------------------------------- */

.hero-section{
    min-height:520px;
    display:flex;
    align-items:center;
}

.cta-section{
    background:#000;
    color:#fff;
    padding:80px 0;
}

.btn-gold{
    background:var(--color-primary);
    border:none;
    color:#fff;
    font-weight:600;
    padding:12px 28px;
}

.btn-gold:hover{
    background:var(--color-primary-dark);
    color:#fff;
}

.property-card img{
    height:220px;
    object-fit:cover;
}

.property-card{
    transition:transform .25s ease, box-shadow .25s ease;
}

.property-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 28px rgba(0,0,0,.18);
}

/* --------------------------------------------------
   HEADER MOBILE
-------------------------------------------------- */

@media (max-width:768px){

    header{
        padding-top:12px;
        padding-bottom:12px;
    }

    header .container{
        flex-direction:column;
        align-items:center;
        gap:14px;
    }

    header img{
        width:80vw;
        max-width:320px;
        height:auto;
    }

    header nav ul.nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:10px 16px;
    }

    header nav ul.nav .nav-link{
        font-size:1.1rem;
        padding:10px 14px;
    }

}