/* ==========================================================================
   CUSTOM HEADER CSS (Isolated from main theme)
   ========================================================================== */

.custom-new-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.custom-new-header.sticky {
    position: fixed;
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.custom-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.custom-header-logo a {
    display: inline-block;
}

.custom-header-logo img {
    max-width: 160px;
    height: auto;
    transition: all 0.3s ease;
}

/* Navigation */
.custom-header-nav {
    display: block;
}

.custom-header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.custom-header-nav ul li a {
    font-size: 15px; /* Perfectly sized, not too large */
    font-weight: 500;
    color: #ffffff; /* White text for transparent header over hero image */
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.custom-new-header.sticky .custom-header-nav ul li a {
    color: #1a1a1a; /* Dark text when header becomes sticky and white */
}

.custom-header-nav ul li a:hover,
.custom-header-nav ul li a.active {
    color: #57c0ba; /* Theme color on hover */
}

/* Enquire Now Button */
.custom-header-action .enquire-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #57c0ba;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.custom-header-action .enquire-btn:hover {
    background-color: #459a95;
    color: #fff;
}

/* Mobile Toggle Button */
.custom-header-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.custom-header-mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.custom-new-header.sticky .custom-header-mobile-toggle span {
    background-color: #1a1a1a;
}

/* Mobile Menu */
.custom-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1001;
    padding: 40px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    overflow-y: auto;
}

.custom-mobile-menu.active {
    right: 0;
}

.custom-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #1a1a1a;
    line-height: 1;
}

.custom-mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.custom-mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

.custom-mobile-nav ul li a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
}

.custom-mobile-nav ul li a:hover,
.custom-mobile-nav ul li a.active {
    color: #57c0ba;
}

.custom-mobile-action {
    margin-top: 30px;
}

.custom-mobile-action .enquire-btn {
    display: block;
    text-align: center;
    padding: 12px 0;
    background-color: #57c0ba;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
}

/* Mobile Overlay */
.custom-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.custom-mobile-overlay.active {
    display: block;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .custom-header-nav,
    .custom-header-action {
        display: none;
    }
    
    .custom-header-mobile-toggle {
        display: block;
    }
    
    .custom-new-header {
        padding: 15px 0;
    }
}

@media (max-width: 575px) {
    .custom-header-logo img {
        max-width: 120px;
    }
}
