/*
 Theme Name:   Luxury Intelligence Theme
 Theme URI:    https://yourdomain.com/luxury-intelligence
 Author:       Your Name
 Author URI:   https://yourdomain.com
 Description:  Custom theme for Luxury Intelligence based on mockup
 Version:      1.0
 Text Domain:  luxury-intelligence
*/

* {
    box-sizing: border-box; /* Apply border-box globally to prevent overflow */
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; /* Ensure full height for sticky footer */
}

body {
    font-family: "Ancizar Sans", sans-serif;
    background-color: #f5f1e9;
    color: #333;
    position: relative;
    min-height: 100%; /* Minimum height to support sticky footer */
    display: flex;
    flex-direction: column;
	font-weight:300;
}

/* Main Header */
.main-header {
    position: absolute;
    width: 100%;
    z-index: 1000;
    padding: 10px calc(10vw - 10px); /* 10% vw gutter on desktop */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent; /* Original transparent header */
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001; /* Above main header */
    padding: 10px calc(10vw - 10px);
    background-color: #000; /* White background for sticky header */
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.9); /* Subtle shadow */
    transform: translateY(-100%); /* Hidden off-screen initially */
    transition: transform 0s ease; /* Slide-down animation */
}

/* Show sticky header with slide-down effect */
.sticky-header.visible {
    transform: translateY(0); /* Slide to visible position */
    transition: transform 0.7s ease; /* Slide-down animation */
}

/* Header container for both headers */
.header-container {
    max-width: 100%; /* Match padding-based layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Header Logo Styling */
.header-container .logo .header-logo {
    height: 80px; /* Fixed height */
    width: auto; /* Maintain aspect ratio */
    transform: translateX(-32px); /* Offset left */
    display: block;
}

#sticky-header .header-container .logo .header-logo {
    height: 40px; /* Fixed height */
    width: auto; /* Maintain aspect ratio */
    transform: translateX(-10px); /* Offset left */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container .logo .header-logo {
        transform: none; /* No offset on mobile */
    }
}

/* Navigation styles */
.nav-menu-container {
    display: flex;
    align-items: center;
}


nav ul.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul.nav-menu li {
    margin-left: 20px;
    position: relative; /* For positioning the delimiter */
}

/* Add forward slash delimiter */
nav ul.nav-menu li::after {
    content: "/"; /* Forward slash as delimiter */
    position: absolute;
    right: -15px; /* Adjust spacing before the slash */
    color: #ffffff; /* Match navigation text color */
    font-size: 16px; /* Match navigation font size */
}

/* Remove delimiter after the last item */
nav ul.nav-menu li:last-child::after {
    content: ""; /* No delimiter after the last item */
}

nav ul.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

nav ul.nav-menu li a:hover {
    color: #cccccc;
}


/* Hamburger and close button styles */
.main-hamburger, .sticky-hamburger, .main-close-btn, .sticky-close-btn {
    display: none; /* Explicitly hidden on desktop */
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    order: 2; /* Move hamburger to the right end in flex order */
}

.close-btn {
    display: none; /* Hidden by default */
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    position: absolute;
    right: calc(5vw - 5px); /* Align with hamburger position on mobile */
    z-index: 1002; /* Above nav */
}

/* Prevent content jump when header becomes fixed */
body.header-stuck {
    /*padding-top: 100px;*/ /* Matches header height (80px logo + 10px padding-top + 10px padding-bottom) */
}


.hero-overlay {
    z-index: 999; /* Below header but above content - optional, can be removed */
}

.site-content {
    position: relative;
    z-index: 1;
    padding-top: 0; /* Removed 400px padding */
    padding-left: 0;  /* Removed 5vw gutter from site-content */
    padding-right: 0; /* Removed 5vw gutter from site-content */
    flex: 1 0 auto; /* Allow content to grow but not shrink, pushing footer down */
}

/* Target Divi's Fullwidth Header module with .hero-section class */
body.et-db #et-boc .et-l .hero-section.et_pb_fullwidth_header {
    position: relative;
    overflow: visible; /* Ensure gradient renders */
    width: 100%; /* Ensure full width */
    min-height: 70vh; /* Set minimum height to 70% of viewport height */
    display: flex; /* Enable flexbox for vertical centering */
    align-items: center; /* Vertically center content */
}

body.et-db #et-boc .et-l .hero-section.et_pb_fullwidth_header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); /* Match your overlay */
    z-index: 1; /* Below text but above background image */
}

body.et-db #et-boc .et-l .hero-section.et_pb_fullwidth_header .header-content { /* Ensure text is above gradient */
    position: relative;
    z-index: 2;
    max-width: 40vw; /* Constrain text width to 40vw on desktop */
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px; /* Remove padding, rely on max-width */
    padding-right: 0px; /* Remove padding, rely on max-width */
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Add dividing line beneath h1 */
body.et-db #et-boc .et-l .hero-section.et_pb_fullwidth_header .header-content h1::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    background-color: #ffffff;
    margin-left: 0px;
    margin-right: auto;
    margin-top: 16px;
    margin-bottom: 0px;
}

/* Override Divi's fullwidth header container styles */
body.et-db #et-boc .et-l .et_pb_fullwidth_header .et_pb_fullwidth_header_container {
    position: relative;
    z-index: 3; /* Match Divi's z-index */
    width: 80vw; /* Match theme's content width */
    max-width: 80vw; /* Override Divi's 1080px max-width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 0px; /* Remove padding, rely on max-width */
    padding-right: 0px; /* Remove padding, rely on max-width */
    box-sizing: border-box; /* Include padding in width */
}

/* Section with Text Left and Image Right */
body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section {
    width: 100%;
    padding: 0; /* Remove Divi default padding */
}

body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_row {
    display: flex; /* Ensure row uses flex for height consistency */
    align-items: stretch; /* Stretch columns to match height */
    position: relative; /* For absolute positioning context */
    width: 100%; /* Override Divi's 80% */
    max-width: none; /* Unset Divi's 1080px max-width */
}

body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(1) {
    width: 100%;
    max-width: 100%;
    margin: 0px; /* Override Divi margins */
    padding-left: 10vw; /* Left gutter */
    padding-right: 5vw; /* Half gutter between columns */
    padding-top: 3em; /* Add top padding */
    padding-bottom: 3em; /* Add bottom padding */
    flex-basis: 50%; /* Set text column to 50% */
}

body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(2) {
    width: 100%;
    max-width: 100%;
    margin: 0px; /* Override Divi margins */
    padding: 0px; /* Remove padding to fill column */
    min-height: 40vw; /* Set minimum height */
    position: relative; /* For absolute positioning context */
    overflow: visible; /* Allow image to extend */
    flex-basis: 50%; /* Set image column to 50% */
}

body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(2) .et_pb_image {
    width: 100%;
    height: 100%; /* Ensure image container matches column height */
    position: relative; /* Context for absolute img */
}

body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(2) .et_pb_image_wrap {
    width: 100%;
    height: 100%; /* Ensure wrapper matches column height */
    position: relative; /* Context for absolute img */
}

body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(2) .et_pb_image_wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Fill the 50% column width */
    height: 100%; /* Match column height */
    object-fit: cover; /* Crop rather than distort */
    z-index: 1; /* Ensure image is above column background */
}

/* Section with Image Left and Text Right */
body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section {
    width: 100%;
    padding: 0; /* Remove Divi default padding */
}

body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_row {
    display: flex; /* Ensure row uses flex for height consistency */
    align-items: stretch; /* Stretch columns to match height */
    position: relative; /* For absolute positioning context */
    width: 100%; /* Override Divi's 80% */
    max-width: none; /* Unset Divi's 1080px max-width */
}

body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(1) {
    width: 100%;
    max-width: 100%;
    margin: 0px; /* Override Divi margins */
    padding: 0px; /* Remove padding to fill column */
    min-height: 40vw; /* Set minimum height */
    flex-basis: 50%; /* Set image column to 50% */
    position: relative; /* For absolute positioning context */
    overflow: visible; /* Allow image to extend */
}

body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(1) .et_pb_image {
    width: 100%;
    height: 100%; /* Ensure image container matches column height */
    position: relative; /* Context for absolute img */
}

body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(1) .et_pb_image_wrap {
    width: 100%;
    height: 100%; /* Ensure wrapper matches column height */
    position: relative; /* Context for absolute img */
}

body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(1) .et_pb_image_wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Fill the 50% column width */
    height: 100%; /* Match column height */
    object-fit: cover; /* Crop rather than distort */
    z-index: 1; /* Ensure image is above column background */
}

body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(2) {
    width: 100%;
    max-width: 100%;
    margin: 0px; /* Override Divi margins */
    padding-left: 5vw; /* Half gutter between columns */
    padding-right: 10vw; /* Right gutter */
    padding-top: 3em; /* Add top padding */
    padding-bottom: 3em; /* Add bottom padding */
    flex-basis: 50%; /* Set text column to 50% */
}

/* Blurb Modules Styling */
body.et-db #et-boc .et-l .et_pb_blurb {
    text-align: center; /* Center all blurb content */
}

body.et-db #et-boc .et-l .et_pb_blurb .et_pb_module_header {
    text-align: center; /* Center the header text */
}

body.et-db #et-boc .et-l .et_pb_blurb .et_pb_blurb_description {
    text-align: center; /* Center the description text */
}

/* Three-Column Layout with et_pb_column_1_3 */
body.et-db #et-boc .et-l .et_pb_row {
    max-width: 100%; /* Ensure full width */
    display: flex; /* Use flexbox for row */
}

body.et-db #et-boc .et-l .et_pb_column.et_pb_column_1_3 {
    width: 23%; /* Set column width to 23% */
    padding: 0; /* Reset padding */
    margin-right: 5vw; /* Override Divi's margin-right with 5vw spacing */
    flex-grow: 0; /* Prevent growth */
    flex-shrink: 0; /* Prevent shrinkage */
}

body.et-db #et-boc .et-l .et_pb_column.et_pb_column_1_3:first-child {
    margin-left: 10vw; /* Left gutter margin for the first column */
}

body.et-db #et-boc .et-l .et_pb_column.et_pb_column_1_3:last-child {
    margin-right: 10vw !important; /* Right gutter margin for the last column with !important to override Divi */
}

/* Full-width sections with no padding */
body.et-db #et-boc .et-l .et_pb_section {
    width: 100%;
    padding: 0; /* Remove Divi default padding */
}


/* Ticker Section Base */
body.et-db #et-boc .et-l #logoticker.et_pb_text {
    width: 100%;
    padding: 2em 0; /* Vertical spacing */
    background-color: #f5f1e9; /* Match theme background */
    overflow: hidden; /* Prevent scroll bleed */
}

/* Gallery Container as Ticker */
body.et-db #et-boc .et-l #gallery-7 {
    margin: 0 !important; /* Override Divi inline margins */
    display: flex !important; /* Horizontal layout */
    flex-wrap: nowrap !important; /* Prevent wrapping */
    width: max-content; /* Allow content to extend beyond viewport */
    animation: tickerScroll linear infinite; /* Duration set via JS */
}

/* Image Styling */
body.et-db #et-boc .et-l #gallery-7 .gallery-image {
    height: 60px !important; /* Uniform height */
    width: auto !important; /* Preserve aspect ratio */
    margin: 0 25px !important; /* Space between images */
}

/* Animation Keyframes */
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* Moves full width left */
}

/* Desktop: No gutters */
body.et-db #et-boc .et-l #logoticker .et_pb_text_inner {
    margin: 0 !important; /* Override Divi */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.et-db #et-boc .et-l #logoticker .et_pb_text_inner {
        margin: 0 !important; /* No gutters */
    }

    body.et-db #et-boc .et-l #gallery-7 .gallery-image {
        height: 40px !important; /* Smaller images */
        margin: 0 15px !important; /* Tighter spacing */
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header.main-header, .sticky-header {
        padding: 10px calc(5vw - 5px); /* 5% vw gutter on mobile */
    }

    .main-hamburger, .sticky-hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .main-close-btn, .sticky-close-btn {
        display: none; /* Hidden by default, shown when menu is active */
    }

    .main-close-btn.active, .sticky-close-btn.active {
        display: block; /* Show when menu is active */
    }

    .nav-menu-container {
        visibility: hidden; /* Hide initially with visibility */
        position: absolute;
        top: 0; /* Start at the top, over the header */
        left: 0;
        width: 100%;
        height: 100vh; /* Full screen height */
        background: #000000;
        z-index: 1000; /* Above hero-overlay but below close-btn */
        opacity: 0; /* Start fully transparent */
        transform: scaleY(1); /* Items in place, no vertical slide */
        transition: opacity 0.3s ease-in-out; /* Fade reveal */
    }

    .nav-menu-container.active {
        visibility: visible; /* Show when active */
        opacity: 1; /* Fade in to reveal */
    }

    .nav-menu-container.main-nav-menu.active {
        visibility: visible; /* Show when active */
        opacity: 1; /* Fade in to reveal */
    }

    /* Sticky header's menu remains hidden even when active */
    .nav-menu-container.sticky-nav-menu {
        visibility: hidden; /* Never shown, as sticky hamburger triggers main menu */
    }

    nav ul {
        display: flex;
        flex-direction: column;
        padding: 60px calc(5vw - 5px) 10px; /* Top padding for close-btn space */
        height: 100%;
        width: 100%;
    }

    nav ul.nav-menu li {
        margin: 10px 0;
    }

    /* Remove delimiter in mobile menu for better readability */
    nav ul.nav-menu li::after {
        content: ""; /* No delimiter in mobile view */
    }

    .site-content {
        padding-top: 0; /* Removed 60px padding */
        padding-left: 0;  /* Removed 5vw gutter from site-content */
        padding-right: 0; /* Removed 5vw gutter from site-content */
    }

    /* Adjust section with text left and image right for mobile */
    body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_row {
        display: flex;
        flex-wrap: wrap; /* Allow columns to wrap */
        width: 100%;
        max-width: none;
    }

    body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(1) {
        width: 100%;
        max-width: 100%;
        margin: 0px; /* Override Divi margins */
        padding-left: 5vw; /* Left gutter */
        padding-right: 5vw; /* Symmetrical padding */
        padding-top: 3em; /* Add top padding */
        padding-bottom: 3em; /* Add bottom padding */
        flex-basis: 100%; /* Full width on mobile */
        order: 1; /* Text column first */
    }

    body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(2) {
        width: 100%;
        max-width: 100%;
        margin: 0px; /* Override Divi margins */
        padding: 0px; /* Remove padding to fill column */
        min-height: 40vw; /* Set minimum height */
        flex-basis: 100%; /* Full width on mobile */
        order: 2; /* Image column second */
    }

    body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(2) .et_pb_image {
        width: 100%;
        height: 100%;
    }

    body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(2) .et_pb_image_wrap {
        width: 100%;
        height: 100%;
    }

    body.et-db #et-boc .et-l .section-text-left-image-right.et_pb_section .et_pb_column:nth-child(2) .et_pb_image_wrap img {
        width: 100vw; /* Extend to page edge */
        height: 100%; /* Match column height */
        left: 0; /* Reset left shift */
        object-fit: cover;
    }

    /* Adjust section with image left and text right for mobile */
    body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_row {
        display: flex;
        flex-wrap: wrap; /* Allow columns to wrap */
        width: 100%;
        max-width: none;
    }

    body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(1) {
        width: 100%;
        max-width: 100%;
        margin: 0px; /* Override Divi margins */
        padding: 0px; /* Remove padding to fill column */
        min-height: 40vw; /* Set minimum height */
        flex-basis: 100%; /* Full width on mobile */
        order: 2; /* Image column second */
    }

    body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(1) .et_pb_image {
        width: 100%;
        height: 100%;
    }

    body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(1) .et_pb_image_wrap {
        width: 100%;
        height: 100%;
    }

    body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(1) .et_pb_image_wrap img {
        width: 100vw; /* Extend to page edge */
        height: 100%; /* Match column height */
        left: 0; /* Reset left shift */
        object-fit: cover;
    }

    body.et-db #et-boc .et-l .section-image-left-text-right.et_pb_section .et_pb_column:nth-child(2) {
        width: 100%;
        max-width: 100%;
        margin: 0px; /* Override Divi margins */
        padding-left: 5vw; /* Symmetrical padding */
        padding-right: 5vw; /* Right gutter */
        padding-top: 3em; /* Add top padding */
        padding-bottom: 3em; /* Add bottom padding */
        flex-basis: 100%; /* Full width on mobile */
        order: 1; /* Text column first */
    }

    /* Adjust blurb row for mobile */
    body.et-db #et-boc .et-l .et_pb_row {
        max-width: 100%; /* Ensure full width on mobile */
        display: flex; /* Use flexbox for row */
        flex-wrap: wrap; /* Allow columns to wrap on mobile */
    }

    /* Adjust blurb columns for mobile */
    body.et-db #et-boc .et-l .et_pb_column.et_pb_column_1_3 {
        width: 90%; /* Set column width to 90% */
        max-width: 90%; /* Ensure max width is 90% */
        margin-left: 5vw; /* Left gutter margin */
        margin-right: 5vw; /* Right gutter margin */
        margin-bottom: 3em; /* Add vertical spacing between columns */
        padding: 0; /* Remove padding */
    }

    /* Adjust first blurb column for mobile */
    body.et-db #et-boc .et-l .et_pb_column.et_pb_column_1_3:first-child {
        margin-left: 5vw; /* Set to 5vw to match other columns */
    }

    /* Adjust hero text width for mobile */
    body.et-db #et-boc .et-l .hero-section.et_pb_fullwidth_header .header-content {
        max-width: 90vw; /* Match mobile column width */
        padding-left: 0px; /* Remove padding, rely on max-width */
        padding-right: 0px; /* Remove padding, rely on max-width */
    }

    /* Adjust container for mobile */
    body.et-db #et-boc .et-l .et_pb_fullwidth_header .et_pb_fullwidth_header_container {
        width: 90vw; /* Match mobile content width */
        max-width: 90vw; /* Override Divi's max-width */
        padding-left: 0px; /* Remove padding, rely on max-width */
        padding-right: 0px; /* Remove padding, rely on max-width */
    }

    /* Adjust ticker for mobile */
    body.et-db #et-boc .et-l #logoticker .et_pb_text_inner {
        max-width: 90vw;
        padding: 0 5vw; /* Mobile gutters */
    }

    body.et-db #et-boc .et-l #gallery-1 .gallery-item img {
        height: 40px !important; /* Smaller logos */
        margin: 0 15px !important; /* Tighter spacing */
    }

    body.et-db #et-boc .et-l #gallery-1 {
        animation-duration: 45s; /* Slower on mobile */
    }

    footer {
        padding: 20px calc(5vw - 5px); /* 5% vw gutter on mobile */
    }
}

footer {
    background-color: #000000;
    color: #ffffff;
    padding: 20px calc(10vw - 10px); /* 10% vw gutter on desktop */
    text-align: left;
    flex-shrink: 0; /* Prevent footer from shrinking */
}


/* Footer Content Styling */
footer {
    background-color: #101010; /* Dark background */
    color: #ffffff; /* White text */
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on mobile */
    justify-content: space-between; /* Logo left, widgets right */
    align-items: center; /* Vertical alignment */
    max-width: 100%; /* Full width */
    margin: 0; /* No side margins */
    padding: 1em 0; /* 1em top/bottom padding */
}

footer .footer-content .logo {
    flex: 0 0 auto;
}

footer .footer-content .logo img {
    height: 50px; /* Match header logo height */
    width: auto; /* Maintain aspect ratio */
    display: block;
}

footer .footer-content .logo a {
    color: #ffffff; /* White text for logo link */
}

footer .footer-content .footer-social {
    flex: 0 0 auto;
    text-align: right; /* Right-align widgets */
    color: #ffffff; /* White text for widgets */
}

footer .footer-content .footer-social .footer-widget {
    display: inline-block; /* Widgets align horizontally */
}

footer .footer-content .footer-social .footer-widget,
footer .footer-content .footer-social .footer-widget a,
footer .footer-content .footer-social .footer-widget h4 {
    color: #ffffff; /* White text for widget content, links, and titles */
    font-family: "Ancizar Sans", sans-serif; /* Match theme */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column; /* Stack vertically */
        align-items: center; /* Center on mobile */
    }

    footer .footer-content .logo,
    footer .footer-content .footer-social {
        text-align: center; /* Center on mobile */
        margin-bottom: 1em;
    }
}

/* Ensure footer stays at bottom */
body::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
}

.widget-area .social-icons a {
    color: #ffffff;
    margin-right: 10px;
    text-decoration: none;
}

.widget-area .social-icons a:hover {
    color: #cccccc;
}

/* Hide Header Logo on Homepage */
.home header .logo * {
    display: none;
}

/* Hero Section Styling (Updated) */
body.et-db #et-boc .et-l .home-hero-section.et_pb_fullwidth_header {
    position: relative;
    overflow: visible;
    width: 100%;
    min-height: 50vw; /* Desktop min-height */
    display: flex;
    align-items: center;
}

body.et-db #et-boc .et-l .home-hero-section.et_pb_fullwidth_header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Desktop: left half */
    height: 100%;
    background-color: #000000; /* Solid black overlay */
    z-index: 1;
}

body.et-db #et-boc .et-l .home-hero-section.et_pb_fullwidth_header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); /* Match your overlay */
    z-index: 1; /* Above image, below text */
}

body.et-db #et-boc .et-l .home-hero-section .et_pb_fullwidth_header_container {
    position: relative;
    z-index: 3;
    width: 80vw; /* Container width */
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    box-sizing: border-box;
}

body.et-db #et-boc .et-l .home-hero-section .header-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Reinforce Content Width */
body.et-db #et-boc .et-l .home-hero-section .header-content {
    max-width: 35vw; /* Reduced to 35vw on desktop */
    width: 35vw; /* Explicitly enforce width */
    margin: 0 auto; /* Center within container */
    text-align: center; /* Center text */
    padding: 0; /* Remove padding */
}

/* Logo Styling */
body.et-db #et-boc .et-l .home-hero-section #homelogo {
    transform: translateX(-16%); /* Keep existing offset */
    z-index: 2; /* Above overlay */
}

/* Underline Before h1 */
body.et-db #et-boc .et-l .home-hero-section .et_pb_header_content_wrapper h1 {
    position: relative;
    color: #FFFFFF;
    font-family: "Ancizar Sans", sans-serif;
    font-size: 2.5em;
    font-weight: 400;
    margin-top: 10px; /* Space above h1 for underline */
    margin-bottom: 0.5em;
}

body.et-db #et-boc .et-l .home-hero-section .et_pb_header_content_wrapper h1::before {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    background-color: #FFFFFF; /* White underline */
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 8px; /* Space below underline */
}

/* Button Styling */
body.et-db #et-boc .et-l .home-hero-section .et_pb_header_content_wrapper #homeherobutton {
    color: #FFFFFF;
    font-family: "Ancizar Sans", sans-serif;
    font-size: 1.2em;
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 1em;
}

body.et-db #et-boc .et-l .home-hero-section .et_pb_header_content_wrapper #homeherobutton:hover {
    color: #FFFFFF;
    background-color: transparent;
}

/* Paragraph and Div Spacing */
body.et-db #et-boc .et-l .home-hero-section p,
body.et-db #et-boc .et-l .home-hero-section div {
    margin-bottom: 1em; /* Override Divi's 0px margin */
}


/* Mobile Responsive for Hero */
@media (max-width: 768px) {
    body.et-db #et-boc .et-l .home-hero-section.et_pb_fullwidth_header {
        display: block; /* Stack image and content */
        background-size: cover;
        background-position: center;
    }

    body.et-db #et-boc .et-l .home-hero-section.et_pb_fullwidth_header::before,
    body.et-db #et-boc .et-l .home-hero-section.et_pb_fullwidth_header::after {
        content: none; /* Remove overlays */
    }

    body.et-db #et-boc .et-l .home-hero-section .et_pb_fullwidth_header_container {
        position: static; /* No overlay */
        width: 90vw;
        max-width: 90vw;
        background-color: #000000; /* Black content area */
        padding: 1em;
        margin-top: 0;
    }

    body.et-db #et-boc .et-l .home-hero-section .header-content {
        max-width: 60vw;
        width: 60vw;
        color: #ffffff;
    }

    body.et-db #et-boc .et-l .home-hero-section #homelogo {
        transform: translateX(-15%);
        height: 80px;
        width: auto;
    }

    body.et-db #et-boc .et-l .home-hero-section .et_pb_header_content_wrapper h1 {
        font-size: 1.8em; /* Smaller headline */
    }
}
/* Homegrid Section */
body.et-db #et-boc .et-l .homegrid.et_pb_section {
    width: 100%;
    padding: 0; /* Remove Divi default padding */
    background-color: #f5f1e9; /* Match theme background */
}

/* Row Styling */
body.et-db #et-boc .et-l .homegrid .et_pb_row {
    max-width: 100%; /* Full width */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    margin: 0 !important; /* No side margins */
    padding: 0 !important; /* No side padding */
}

/* Column Styling: Two per row on desktop */
body.et-db #et-boc .et-l .homegrid .et_pb_column_4_4 {
    width: 100%;
    margin: 0 !important; /* No margins */
    padding: 0 !important; /* No padding */
    display: flex;
    flex-wrap: wrap; /* Two boxes per row */
}

/* Text Module (Box) Styling */
body.et-db #et-boc .et-l .homegrid .et_pb_text.et_clickable {
    flex: 0 0 50%; /* Two per row, no gap */
    aspect-ratio: 1 / 1; /* Roughly square */
    position: relative;
    overflow: hidden; /* Contain background image */
    margin-bottom: 1px !important; /* Minimal vertical spacing, override Divi */
    cursor: pointer; /* Indicate clickability */
    background-size: cover; /* Set via Divi Builder */
    background-position: center;
}

/* White Line Between Boxes (Desktop) */
body.et-db #et-boc .et-l .homegrid .et_pb_text.et_clickable:not(:nth-child(2n))::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #ffffff;
    z-index: 2; /* Above gradient, below content */
}

/* Gradient Overlay */
body.et-db #et-boc .et-l .homegrid .et_pb_text.et_clickable::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%, /* 80% opacity at top */
        rgba(0, 0, 0, 0.5) 100% /* 50% opacity at bottom */
    );
    z-index: 1; /* Above background, below content */
    transition: background 0.3s ease; /* Smooth hover transition */
}

/* Hover Effect: Lighten gradient */
body.et-db #et-boc .et-l .homegrid .et_pb_text.et_clickable:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%, /* Lighten to 60% */
        rgba(0, 0, 0, 0.3) 100% /* Lighten to 30% */
    );
}

/* Content Container */
body.et-db #et-boc .et-l .homegrid .et_pb_text_inner {
    position: relative;
    z-index: 3; /* Above gradient and white line */
    width: 60%; /* 60% of box width */
    height: 70%; /* 70% of box height */
    margin: auto; /* Center vertically and horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical center */
    align-items: flex-start; /* Left-align content */
    text-align: left; /* Left-align text */
}

/* H2 Styling with Divider */
body.et-db #et-boc .et-l .homegrid .et_pb_text_inner h2, .home-btm h2 {
    color: #ffffff !important; /* Override Divi */
    font-family: "Ancizar Sans", sans-serif;
    font-size: 1.8em;
    font-weight: 400;
    position: relative;
}

body.et-db #et-boc .et-l .homegrid .et_pb_text_inner h2::after, .home-btm h2::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    background-color: #ffffff;
    margin: 0.5em 0 0; /* Left-aligned divider, space above paragraph */
}

/* Paragraph Styling */
body.et-db #et-boc .et-l .homegrid .et_pb_text_inner p {
    color: #ffffff !important; /* Override Divi */
    font-family: "Ancizar Sans", sans-serif;
    font-size: 1em;
    margin-bottom: 1em;
}

/* Button Styling */
body.et-db #et-boc .et-l .homegrid .et_pb_text_inner .gridlinkbutton, .gridlinkbutton {
    color: #ffffff !important; /* Override Divi */
    font-size: 1.0em;
    font-weight: 300;
    text-decoration: none;
		 background: url("/wp-content/uploads/2025/09/luxury-intelligence-arrow.svg") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
	display:block;
	Width:300px;
	height:32px;
	padding-left:40px !important;
	vertical-align: middle;
	line-height:32px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.et-db #et-boc .et-l .homegrid .et_pb_row {
        margin: 0 !important; /* No side margins */
        padding: 0 !important; /* No side padding */
    }

    body.et-db #et-boc .et-l .homegrid .et_pb_text.et_clickable {
        flex: 0 0 100%; /* One per row */
        margin-bottom: 1px !important; /* Minimal vertical spacing */
    }

    /* White Line Between Boxes (Mobile) */
    body.et-db #et-boc .et-l .homegrid .et_pb_text.et_clickable:not(:last-child)::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #ffffff;
        z-index: 2; /* Above gradient, below content */
    }

    body.et-db #et-boc .et-l .homegrid .et_pb_text_inner h2 {
        font-size: 1.5em; /* Smaller heading */
    }

    body.et-db #et-boc .et-l .homegrid .et_pb_text_inner p {
        font-size: 0.9em; /* Smaller paragraph */
    }

    body.et-db #et-boc .et-l .homegrid .et_pb_text_inner .gridlinkbutton {
        font-size: 1em; /* Smaller button */
    }
}

/* Text Slider Section Base */
body.et-db #et-boc .et-l .text-slider-section.et_pb_section {
    width: 100%;
    padding: 2em 0; /* Vertical spacing */
    background-color: #f5f1e9; /* Match theme */
    overflow: hidden; /* Contain slider */
}

/* Slider Row and Container */
body.et-db #et-boc .et-l .text-slider-section .et_pb_row {
    max-width: 100% !important; /* Full width */
    margin: 0 !important; /* No side margins */
    padding: 0 !important; /* No side padding */
}

body.et-db #et-boc .et-l .text-slider-section .et_pb_column {
    margin: 0 !important; /* No margins */
    padding: 0 !important; /* No padding */
}

/* Slider Styling */
body.et-db #et-boc .et-l .text-slider-section .et_pb_slider {
    margin-bottom: 1px !important; /* Minimal vertical spacing, match homegrid */
    background: none !important; /* Remove default background */
}

/* Inner Container (Background) */
body.et-db #et-boc .et-l .text-slider-section .et_pb_slider_container_inner {
    background-color: #B58F2C; /* Colored square */
}

/* Arrows Styling */
body.et-db #et-boc .et-l .text-slider-section .et_pb_slider .et-pb-arrow-prev,
body.et-db #et-boc .et-l .text-slider-section .et_pb_slider .et-pb-arrow-next {
    color: #666666 !important; /* Grey arrow icon */
    background: none !important; /* No background */
    border-radius: 0; /* No border radius */
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 24px !important;
    z-index: 10; /* Above slides */
    transition: color 0.3s ease; /* Smooth color transition */
}

body.et-db #et-boc .et-l .text-slider-section .et_pb_slider .et-pb-arrow-prev:hover,
body.et-db #et-boc .et-l .text-slider-section .et_pb_slider .et-pb-arrow-next:hover {
    color: #888888 !important; /* Lighter grey on hover */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.et-db #et-boc .et-l .text-slider-section .et_pb_slider .et-pb-arrow-prev,
    body.et-db #et-boc .et-l .text-slider-section .et_pb_slider .et-pb-arrow-next {
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 20px !important;
    }
}



body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section {
    width: 100%;
    padding: 0; /* Remove Divi default padding */
}
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_row {
    display: flex; /* Ensure row uses flex for height consistency */
    align-items: stretch; /*Stretch columns to match height */
    position: relative; /*For absolute positioning context */
    width: 100%; /*Override Divi's 80% */
    max-width: none; /*Unset Divi's 1080px max-width */
    margin: 0; /*No margins */
    padding: 0;
}
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(1) {
    width: 100%;
    max-width: 100%;
    margin: 0px; /* Override Divi margins */
    padding-left: 10vw; /*Left gutter */
    padding-right: 5vw; /*Half gutter between columns */
    padding-top: 3em; /*Add top padding */
    padding-bottom: 3em; /*Add bottom padding */
    flex-basis: 50%; /*Set text column to 50% */
    background-color: #000;
    display: flex;
    align-items: center;    
}
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2) {
    width: 100%;
    max-width: 100%;
    margin: 0px; /* Override Divi margins */
    padding: 0px; /*Remove padding to fill column */
    min-height: 50vw; /*Set minimum height*/
    position: relative; /*For absolute positioning context*/
    overflow: visible; /*Allow image to extend*/
    flex-basis: 50%; /*Set image column to 50%*/
    et-last-child: true; /*Matches the HTML class */
}
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2) .et_pb_image {
    width: 100%;
    height: 100%; /* Ensure image container matches column height*/
    position: relative; /*Context for absolute img*/
    margin-bottom: 0; /*No extra margin */
}
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2) .et_pb_image_wrap {
    width: 100%;
    height: 100%; /* Ensure wrapper matches column height*/
    position: relative; /*Context for absolute img */
}
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2) .et_pb_image_wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Fill the 50% column width*/
    height: 100%; /*Match column height*/
    object-fit: cover; /*Crop rather than distort*/
    z-index: 1; /*Ensure image is above column background*/
}

/* Logo Styling */
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section #homelogo {
    transform: translateX(-16%); /* Keep existing offset */
    z-index: 2; /* Above overlay */
}

/* Underline Before h1 */
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section h1 {
    position: relative;
    color: #FFFFFF;
    font-family: "Ancizar Sans", sans-serif;
    font-size: 2.5em;
    font-weight: 400;
    margin-top: 10px; /* Space above h1 for underline */
    margin-bottom: 0.5em;
}

body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section h1::before {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    background-color: #FFFFFF; /* White underline */
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 8px; /* Space below underline */
}

/* Button Styling */
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section a {
    color: #FFFFFF;
    font-family: "Ancizar Sans", sans-serif;
    font-size: 1.2em;
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 1em;
}

body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section a:hover {
    color: #FFFFFF;
}

/* Paragraph and Div Spacing */
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section p,
body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section div {
    margin-bottom: 1em; /* Override Divi's 0px margin */
    color: #FFFFFF;
    padding-bottom: 0px;
}

body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); /* Match your overlay */
    z-index: 1; /* Above image, below text */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_row {
        display: flex;
        flex-direction: column; /*Stack columns vertically*/
        flex-wrap: wrap; /*Allow columns to wrap */
        width: 100%;
        max-width: none;
    }
    body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(1) {
        width: 100%;
        max-width: 100%;
        margin: 0px; /* Override Divi margins */
        padding-left: 5vw; /* Symmetrical left gutter */
        padding-right: 5vw; /* Symmetrical right gutter */
        padding-top: 3em; /* Add top padding */
        padding-bottom: 3em; /* Add bottom padding */
        flex-basis: 100%; /* Full width on mobile */
        order: 2; /* Text column second */
    }

    body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(1) .et_pb_text {
        max-width: 70%;
        margin:auto;
    }

    body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section #homelogo {
        transform: translateX(-15%);
        height: 80px;
        width: auto;
    }    

    body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2) {
        width: 100%;
        max-width: 100%;
        margin: 0px; /* Override Divi margins */
        padding: 0px; /* Remove padding to fill column */
        min-height: 60vw; /* Set minimum height */
        flex-basis: 100%; /* Full width on mobile */
        order: 1; /* Image column first */
    }

    body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2) .et_pb_image {
        width: 100%;
        height: 100%;
    }

    body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2) .et_pb_image_wrap {
        width: 100%;
        height: 100%;
    }

    body.et-db #et-boc .et-l .home-section-text-left-image-right.et_pb_section .et_pb_column_1_2:nth-child(2) .et_pb_image_wrap img {
        width: 100vw; /* Extend to page edge */
        height: 60vw; /* Match column height */
        left: 0px; /* Shift left to account for mobile gutter and full bleed */
        object-fit: cover;
    }
}

.et-db #et-boc .et-l .testimonials-slider .et_pb_row::after, .et-db #et-boc .et-l .testimonials-slider .et_pb_row_inner::after {
    content:none;
}

/* Testimonials Slider Styling */
body.et-db #et-boc .et-l .testimonials-slider.et_pb_section {
    width: 100%;
    padding: 80px 0; /* Vertical padding for spacing */
    background-color: #f5f1e9; /* Match theme background */
    position: relative;
    overflow: hidden;
}

body.et-db #et-boc .et-l .testimonials-slider .et_pb_row {
    max-width: 80%;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
}

body.et-db #et-boc .et-l .testimonials-slider .et_pb_column {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: transform 0.5s ease-in-out;
    gap: 4%; /* Percentage gap for responsiveness */
    justify-content: flex-start; /* Align to start for clean sliding */
    width: max-content; /* Allow the column to expand beyond the row */
    padding: 0 !important;
    margin: 0 !important;
}

body.et-db #et-boc .et-l .testimonials-slider .et_pb_text {
    flex: 0 0 49%; /* Fit two slides in the row with gap */
    aspect-ratio: 1 / 1; /* Make slides square */
    background-color: #B58F2C; /* Gold color for luxury feel, matching theme accents */
    color: #ffffff;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    margin:0px !important;
}

body.et-db #et-boc .et-l .testimonials-slider .et_pb_text h4 {
    color: #ffffff !important;
    font-family: "Ancizar Sans", sans-serif;
    font-size: 1.5em;
    font-weight: 400;
    margin: 0 0 15px 0;
    text-align: left;
}

body.et-db #et-boc .et-l .testimonials-slider .et_pb_text p {
    color: #ffffff !important;
    font-family: "Ancizar Sans", sans-serif;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Navigation Arrows */
body.et-db #et-boc .et-l .testimonials-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: url("/wp-content/uploads/2025/09/luxury-intelligence-arrow.svg");
    color: #ffffff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    background-color: #aaa;
    background-size: 100% 100%;
    border: none;
    user-select: none;
}



body.et-db #et-boc .et-l .testimonials-slider .slider-nav.left {
    left: calc(10% - 60px); /* Position to the left of the 80% centered row */
}

body.et-db #et-boc .et-l .testimonials-slider .slider-nav.right {
    right: calc(10% - 60px); /* Position to the right of the 80% centered row */
}

/* Large Desktop: Cap row width at 700px */
@media (min-width: 875px) {
    body.et-db #et-boc .et-l .testimonials-slider .et_pb_row {
        max-width: 700px;
    }

    body.et-db #et-boc .et-l .testimonials-slider .slider-nav.left {
        left: calc(50% - 350px - 60px);
    }

    body.et-db #et-boc .et-l .testimonials-slider .slider-nav.right {
        right: calc(50% - 350px - 60px);
    }
}

/* Mobile Responsive: Show one slide at a time, 80% width */
@media (max-width: 768px) {
    body.et-db #et-boc .et-l .testimonials-slider .et_pb_row {
        max-width: 400px; /* Full width on mobile but capped at 80% */
        width:80%;
    }

    body.et-db #et-boc .et-l .testimonials-slider .et_pb_column {
        /*gap: 0;*/ /* No gap on mobile */
        width:100% !important;
    }

    body.et-db #et-boc .et-l .testimonials-slider .et_pb_text {
        flex: 0 0 100%; /* Full width on mobile */
        aspect-ratio: 1 / 1; /* Keep square */
        padding: 30px;
    }

    body.et-db #et-boc .et-l .testimonials-slider .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    body.et-db #et-boc .et-l .testimonials-slider .slider-nav.left {
        left: calc(10% - 30px); /* Adjusted for smaller arrow, positioned outside row */
    }

    body.et-db #et-boc .et-l .testimonials-slider .slider-nav.right {
        right: calc(10% - 30px); /* Adjusted for smaller arrow, positioned outside row */
    }

    body.et-db #et-boc .et-l .testimonials-slider .et_pb_text h4 {
        font-size: 1.3em;
    }

    body.et-db #et-boc .et-l .testimonials-slider .et_pb_text p {
        font-size: 0.95em;
    }
}