/*
Theme Name: JNB Funky
Author: Developer
Description: A custom funky theme for JNB from scratch.
Version: 1.0.0
Text Domain: jnb-funky
*/

:root {
    --text-color: #fff;
    --border-color: rgba(255, 255, 255, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background: #000;
}

/* Header Styles */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 28px 28px 0 28px;
    background: transparent;
}

.site-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.site-logo a,
.site-logo img {
    max-width: 60px;
    max-height: 60px;
}

.header-right-side {
    height: 45px;
}

.header-box {
    height: 100%;
}

.header-box-2 {
    margin-left: 19px !important;
}

.search-field {
    width: 250px;
    outline: none;
    font-size: 14px;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Hero Section Styles */
.hero-section h1 {
    font-family: inherit;
    line-height: 1;
}

.google-reviews {
    backdrop-filter: blur(10px);
}

.tabs-box-wrapper {
    z-index: 100;
}

.nav-tab {
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.nav-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Fullscreen Menu Overlay */
.fullscreen-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    transition: all 0.4s ease-in-out;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .site-header {
    opacity: 0;
    pointer-events: none;
}

.fullscreen-menu-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.overlay-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.overlay-header {
    padding: 28px 28px 0 28px;
    height: 88px;
    /* Alignment with site-header logo height + padding */
}

.overlay-header .site-logo {
    margin-bottom: 0;
}

.overlay-header-right {
    height: 45px;
}

.overlay-header .btn-book-appointment {
    height: 45px;
}

.overlay-header .menu-close {
    border-left: 0 !important;
}

.fullscreen-navigation {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.overlay-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-menu>li {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.overlay-menu>li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.overlay-menu>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 80px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 64px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.overlay-menu>li.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 44px;
    height: 38px;
    background-image: url('data:image/svg+xml;utf8,<svg width="44" height="38" viewBox="0 0 44 38" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="43" height="37" rx="1.5" stroke="white" stroke-opacity="0.2"/><path d="M18 19H26M26 19L22.5 15.5M26 19L22.5 22.5" stroke="white" stroke-opacity="1"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.overlay-menu>li.current-menu-item>a,
.overlay-menu>li:hover>a {
    color: #fff;
}

.overlay-menu>li.active-parent {
    background-color: #1a0b1f;
    /* Dark purple background */
}

.overlay-menu>li.active-parent>a {
    color: #a855f7;
    /* Purple text */
    padding-bottom: 10px;
}

.overlay-menu>li.active-parent>a::after {
    transform: rotate(90deg);
}

/* Sub-menu */
.overlay-menu .sub-menu {
    display: none;
    list-style: none;
    padding: 0 80px 40px 80px;
    margin: 0;
    flex-wrap: wrap;
    gap: 20px;
}

.overlay-menu .sub-menu li {
    display: inline-block;
    margin-right: 20px;
}

.overlay-menu .sub-menu li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    font-size: 16px;
    transition: color 0.3s;
}

.overlay-menu .sub-menu li a:hover {
    color: #fff;
}

/* Close button hover */
.menu-close:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.tabs-content ul a {
    transition: color 0.2s;
}

.tabs-content ul a:hover {
    color: #666 !important;
}

/* Sticky Header Tabs */
.site-header.is-sticky {
    position: fixed;
    background: #000;
    padding: 15px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInDown 0.4s ease forwards;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.sticky-tabs-header {
    display: none !important;
    /* Hidden by default */
}

.site-header.is-sticky .sticky-tabs-header {
    display: flex !important;
}

.site-header.is-sticky .header-box-1 {
    display: none !important;
    /* Hide search bar when sticky tabs are visible */
}

.sticky-tab {
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sticky-tab.active {
    background-color: #fff !important;
    color: #000 !important;
}

/* Ideal Choice Section */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h3 {
    font-size: 28px;
    color: #333;
}

/* Tab Box Adjustment */
.tabs-box-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tabs-box-wrapper.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
}

#sticky-tabs-container {
    width: 100%;
    max-width: 894px;
    padding: 0 28px;
}

#sticky-tabs-container .nav-tab {
    display: flex;
    padding: 23px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(10px);
}

/* Responsive Styles */
@media (min-width: 992px) {
    .desktop-border {
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
    }

    .desktop-border-start {
        border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    }

    .hero-bg-layer {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10vw), 50% 100%, 0 calc(100% - 10vw));
    }

    .hero-image-wrapper {
        width: 50%;
    }

    .hero-title {
        font-size: 80px;
    }
}

@media (max-width: 991px) {
    .site-header {
        padding: 20px 20px 0 20px;
    }

    .mobile-logo-box {
        background-color: #fff;
        width: 54px !important;
        height: 54px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .mobile-logo-box img,
    .mobile-logo-box svg {
        filter: invert(1);
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }

    .mobile-search-btn,
    .mobile-menu-btn {
        width: 50px !important;
        height: 50px !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        display: flex;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .hero-bg-layer {
        clip-path: none;
    }

    .hero-image-wrapper {
        width: 100%;
    }

    .sevicetb {
        display: flex;
        padding: 23px 16px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex: 1 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.20);
        border-right: 1px solid rgba(255, 255, 255, 0.20);
        border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    }

    .hero-image-wrapper img {
        object-position: center;
        transform: rotate(35.854deg);
        aspect-ratio: 139 / 134;
        width: 829.44px ! IMPORTANT;
        height: 799.629px ! IMPORTANT;
        margin-left: -82%;
        margin-top: -26%;
    }

    .hero-title {
        font-size: 42px;
    }

    .google-reviews {
        margin: 0 auto;
        justify-content: center !important;
    }

    .tabs-box-wrapper {
        width: 100%;
    }

    #sticky-tabs-container {
        padding: 0 16px;
    }

    .tabs-header {
        flex-direction: row;
    }

    .nav-tab {
        padding: 15px 10px !important;
        font-size: 13px;
    }
}