/********** Template CSS **********/
:root {
    --esth-primary: #3B2A82;   /* Royal Purple */
    --esth-secondary: #F28C28; /* Luxury Orange */
    --esth-dark: #16132A;
    --esth-light: #F7F6FB;
}


.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
.nav-bar {
    position: relative;
    margin-top: 45px;
    padding: 0 3rem;
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .nav-bar {
        margin: 0;
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 0;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (min-width: 992px) {
    .header {
        margin-top: -120px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

@media (max-width: 768px) {
    .header-carousel .owl-nav {
        left: 25px;
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #DDDDDD;
}


/*** Icon ***/
.icon {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-radius: 50px;
    border: 1px dashed var(--primary) !important;
}


/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: skew(20deg);
    z-index: 1;
}


/*** Category ***/
.cat-item div {
    
    background: #FFFFFF;
    border: 1px dashed rgba(0, 185, 142, .3);
    transition: .5s;
}

.cat-item:hover div {
    background: var(--primary);
    border-color: transparent;
}

.cat-item div * {
    transition: .5s;
}

.cat-item:hover div * {
    color: #FFFFFF !important;
}


/*** Property List ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.property-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.property-item img {
    transition: .5s;
}

.property-item:hover img {
    transform: scale(1.1);
}

.property-item .border-top {
    border-top: 1px dashed rgba(0, 185, 142, .3) !important;
}

.property-item .border-end {
    border-right: 1px dashed rgba(0, 185, 142, .3) !important;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
    transition: .5s;
}

.team-item .btn {
    color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
}

.team-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
/* ===== Luxury Buttons ===== */
.btn {
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 12px 26px;
    transition: all 0.35s ease;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.btn-outline-primary {
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline-primary:hover {
    background-color: #fff;
    color: var(--dark);
}
/* ===== Property Cards ===== */
.property-item {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
}

.property-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.property-item img {
    transition: transform 0.6s ease;
}

.property-item:hover img {
    transform: scale(1.05);
}
/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.3px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

.section-title h2::after {
    background-color: var(--secondary);
}
/* ===== Hero Overlay ===== */
.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(22,19,42,0.65),
        rgba(22,19,42,0.35)
    );
    z-index: 1;
}

.hero-header > * {
    position: relative;
    z-index: 2;
}
/* ===== Section Spacing ===== */
.container-xxl {
    padding-top: 90px;
    padding-bottom: 90px;
}
/* ===== Full Width Hero ===== */
.hero-header {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-header .container {
    max-width: 1100px;
    text-align: center;
}
/* ===== Hero Slider ===== */
.hero-header {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-header img,
.hero-header video {
    height: 100vh;
    object-fit: cover;
}

/* Overlay Gradient */
.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(22,19,42,0.65),
        rgba(22,19,42,0.35)
    );
    z-index: 1;
}

/* Centered Content */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    max-width: 1100px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons spacing */
.hero-buttons .btn {
    margin: 0 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}
/* ===== Hero Text Color Override ===== */
.hero-header,
.hero-header h1,
.hero-header h2,
.hero-header p {
    color: #ffffff;
}

.hero-header p {
    opacity: 0.9;
}
/* ===== Lower Hero Buttons ===== */
.hero-buttons {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3;
}

/* Keep text centered but higher */
.hero-content {
    padding-bottom: 120px; /* creates visual separation */
}
/* ===== ESTHINGTON BRAND OVERRIDES ===== */

/* Primary backgrounds */
.bg-primary,
.btn-primary,
.navbar,
.page-header {
    background-color: var(--primary) !important;
    body {
    background-image: url('paper-1.png');
    background-repeat: repeat; /* or no-repeat if full coverage */
    background-size: cover;    /* ensures it fills the screen */
    background-position: center;
    background-color: #f5f5f5; /* fallback if image doesn’t load */
}

}

/* Secondary accents */
.text-primary,
.section-title h2::after {
    color: var(--secondary) !important;
    background-color: var(--secondary) !important;
}

/* Buttons */
.btn-primary {
    border-color: var(--secondary) !important;
}

/* Links */
a:hover {
    color: var(--secondary);
}

/* Footer */
.footer {
    background-color: var(--dark);
}
/* ===== REMOVE MAKAAN GREEN ===== */
[class*="primary"],
.text-primary,
.bg-primary,
.btn-primary,
i,
.badge {
    color: var(--esth-primary) !important;
}

.bg-primary,
.btn-primary {
    background-color: var(--esth-primary) !important;
    border-color: var(--esth-primary) !important;
}
/* ===== ACTION / CTA COLOR ===== */
.btn-secondary,
.btn-primary:hover,
a:hover,
.section-title h2::after {
    background-color: var(--esth-secondary) !important;
    color: #fff !important;
}
/* ===== HEADER & NAV ===== */
.navbar,
.page-header,
.hero-header {
    background-color: var(--esth-primary) !important;
}
.footer {
    background-color: var(--esth-dark) !important;
}
/* ===== TEXT CONTRAST ON DARK / PURPLE BACKGROUNDS ===== */
.navbar,
.navbar a,
.navbar-brand,
.page-header,
.page-header h1,
.page-header p,
.hero-header,
.hero-header h1,
.hero-header p,
.footer,
.footer a,
.cta-section,
.cta-section h1,
.cta-section h2,
.cta-section p {
    color: #ffffff !important;
}
/* ===== NAVBAR ACTIVE & HOVER LINKS ===== */
.navbar-nav .nav-link {
    font-weight: 600;
    color: rgba(255,255,255,0.85) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #FF9F43 !important; /* Brighter luxury orange */
}
/* ===== UI-FRIENDLY PURPLE ===== */
.navbar,
.page-header {
    background-color: #4533A3 !important; /* slightly lighter than main purple */
}
/* ===== UI-FRIENDLY PURPLE ===== */
.navbar,
.page-header {
    background-color: #4533A3 !important; /* slightly lighter than main purple */
}
/* ===== CTA BUTTON TEXT VISIBILITY ===== */
.btn-primary,
.btn-primary span,
.btn-primary i {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 600;
}
.btn-primary:hover,
.btn-primary:hover span,
.btn-primary:hover i {
    color: #ffffff !important;
}
/* ===== REMOVE FADED TEXT ON DARK BACKGROUNDS ===== */
.navbar *,
.hero-header *,
.page-header *,
.cta-section * {
    opacity: 1 !important;
}
/* ===== ICON VISIBILITY ===== */
.navbar i,
.btn-primary i,
.cta-section i {
    color: #ffffff !important;
}
/* ===== NAVBAR BRAND TEXT (BASE FIX) ===== */
.navbar .navbar-brand,
.navbar .navbar-brand span,
.navbar .navbar-brand h1,
.navbar .navbar-brand small {
    color: #FFF7F0 !important; /* warm white */
    font-weight: 700 !important;
    opacity: 1 !important;
}
/* ===== ENHANCED ORANGE HUE FOR BRAND TEXT ===== */
.navbar .navbar-brand {
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(242, 140, 40, 0.55),
        0 0 16px rgba(242, 140, 40, 0.35);
}
/* ===== LUXURY SOFT BACKGROUND ===== */
body {
    background-color: #a687e4;
}

/* ===== SECTION BACKGROUND RHYTHM ===== */
.container-xxl,
.section-light {
    background-color: #eee9de;
}

.bg-white,
.property-item,
.card {
    background-color: #ffffff;
}
:root {
    --lux-bg-main: #F6F2EB;        /* warm luxury canvas */
    --lux-bg-panel: #FBF9F6;       /* premium off-white */
    --lux-bg-card: #FFFFFF;       /* true white (sparingly) */
}
/* ===== PAGE CANVAS ===== */
body {
    background-color: var(--lux-bg-main) !important;
}

body {
    background-image: url('paper-1.png');
    background-repeat: repeat; /* or no-repeat if full coverage */
    background-size: cover;    /* ensures it fills the screen */
    background-position: center;
    background-color: #f5f5f5; /* fallback if image doesn’t load */
}
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url('paper-1.png');
    background-repeat: repeat; /* or no-repeat */
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5; /* fallback if image doesn't load */
}
.bg-texture {
    background-image: url('paper-1.png') !important;
    background-repeat: repeat !important;
    background-size: cover !important;
}
.card,  .modal-content, .jumbotron {
    background-color: transparent !important;
}
body::before {
    content: '';
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: url('paper-1.png') center/cover no-repeat;
    opacity: 0.25; /* subtle effect */
    z-index: -1;
}
/* 1️⃣ Full-site textured background ONLY for main content */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5; /* fallback base color */
}

/* Apply textured background to main content wrapper only */
.main-content {
    background-image: url('paper-1.png'); /* replace with your file */
    background-repeat: repeat; /* or 'no-repeat' if your texture covers full screen */
    background-size: cover;
    background-position: center;
}

/* 2️⃣ Make most Bootstrap whites semi-transparent in main content */
.main-content .card, 
.main-content .card-body, 
.main-content .modal-content, 
.main-content .jumbotron, 
.main-content .dropdown-menu, 
.main-content .bg-light {
    background-color: rgba(255, 255, 255, 0.85) !important; /* adjust opacity */
}

/* 3️⃣ Navbar: solid purple, full width */
.navbar, 
.navbar-expand-lg {
    background-color: #5b2a86 !important; /* Esthington purple */
    width: 100%;
}

/* 4️⃣ Footer: solid purple, full width */
footer {
    background-color: #5b2a86 !important; /* Esthington purple */
    width: 100%;
    color: #fff; /* optional: make text white */
}

/* 5️⃣ Hero section: optional full-width media with texture or custom overlay */
.hero-section {
    width: 100%;
    min-height: 70vh; /* adjust as needed */
    background-image: url('paper-1.png'); /* optional hero image/video */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 6️⃣ Ensure text readability in main content */
.main-content, 
.main-content .card, 
.main-content .jumbotron {
    color: #222; /* dark text on light/semi-transparent background */
}

/* 7️⃣ Keep brand accent colors strong */
.btn-primary, 
.btn-warning, 
.text-primary, 
.text-warning {
    z-index: 1;
}
/* HERO SECTION */
.hero-section {
    width: 100%;
    min-height: 70vh; /* adjust height as needed */
    background-image: url('your-hero-media.jpg'); /* replace with hero image/video */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional: Keep brand accent elements above background */
.btn-primary, 
.btn-warning, 
.text-primary, 
.text-warning {
    z-index: 1;
}
/* FEATURED ESTATES SECTION */
.featured-estates-section {
    background: transparent;
}

/* Card container */
.estate-video-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.85);
    transition: transform 0.3s ease;
}

.estate-video-card:hover {
    transform: translateY(-6px);
}

/* Responsive video */
.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.video-wrapper iframe {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

/* Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(91,42,134,0.85),
        rgba(0,0,0,0.15)
    );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.video-overlay h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.video-overlay span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Description strip */
.estate-description {
    padding: 16px 18px;
    font-size: 0.95rem;
    color: #333;
    background: rgba(255,255,255,0.9);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .estate-video-card {
        border-radius: 18px;
    }

    .video-overlay h4 {
        font-size: 1.1rem;
        color: white;
    }
}


/* ============================= */
/* NAVBAR MOBILE OPTIMIZATION */
/* ============================= */

.navbar-brand h1 {
    font-size: 1.4rem;
    line-height: 1.2;
    white-space: normal;
}

/* Mobile-specific */
@media (max-width: 576px) {
    .navbar-brand h1 {
        font-size: 1.1rem;
        max-width: 180px;
    }

    .navbar-brand {
        align-items: center;
    }

    .navbar-brand .icon img {
        width: 26px;
        height: 26px;
    }
}
/* ============================= */
/* HERO SECTION BASE */
/* ============================= */

.hero-header {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.hero-video,
.hero-header img {
    object-fit: cover;
    height: 100%;
}

/* ============================= */
/* MOBILE HERO OPTIMIZATION */
/* ============================= */

@media (max-width: 576px) {
    .hero-header {
        height: 60vh; /* KEY FIX */
    }
}
/* MOBILE HERO H2 ADJUSTMENT */
@media (max-width: 768px) {
    /* Target the Hero section H2 specifically */
    .hero-section .hero-overlay h2 {
        font-size: 18px;       /* smaller font size for mobile */
        line-height: 1.2;      /* keeps spacing tight but readable */
        margin-bottom: 12px;   /* optional: adjust spacing below headline */
    }
}
/* Mobile image fix for Esthington humanitarian section */
@media (max-width: 576px) {
  .about-img {
    padding: 1rem !important;   /* reduce heavy desktop padding */
  }

  .about-img img {
    width: 100% !important;
    height: auto;
    min-height: 220px;          /* gives images presence on mobile */
    object-fit: cover;
  }
}

