/* =========================================================
   PRIME BUS RESPONSIVE HEADER
   File: assets/css/header.css
========================================================= */

:root {
    --pb-primary: #f97316;
    --pb-primary-dark: #ea580c;
    --pb-secondary: #0f172a;
    --pb-text: #334155;
    --pb-light-text: #64748b;
    --pb-white: #ffffff;
    --pb-light-bg: #f8fafc;
    --pb-border: #e2e8f0;
    --pb-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --pb-header-height: 84px;
    --pb-transition: 0.3s ease;
}

/* Header elements only */
.pb-header *,
.pb-header *::before,
.pb-header *::after {
    box-sizing: border-box;
}

/* Prevent body scrolling when mobile menu is open */
body.pb-menu-open {
    overflow: hidden;
}

/* =========================================================
   MAIN HEADER
========================================================= */

.pb-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        background-color var(--pb-transition),
        box-shadow var(--pb-transition),
        transform var(--pb-transition);

    animation: pbHeaderEntry 0.65s ease both;
}

/* Header shadow after scrolling */
.pb-header.pb-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}

.pb-header-container {
    width: min(100% - 40px, 1280px);
    min-height: var(--pb-header-height);
    margin-inline: auto;
    display: flex;
    align-items: center;
}

/* =========================================================
   LOGO
========================================================= */

.pb-logo {
    position: relative;
    z-index: 1003;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.pb-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 120px;
    object-fit: contain;
    transition: transform var(--pb-transition);
}

.pb-logo:hover img {
    transform: scale(1.04);
}

/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.pb-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.pb-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pb-menu > li {
    position: relative;
}

.pb-menu > li > a,
.pb-dropdown-toggle {
    position: relative;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--pb-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    transition:
        color var(--pb-transition),
        background-color var(--pb-transition);
}

/* Animated underline */
.pb-menu > li > a::after,
.pb-dropdown-toggle::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--pb-primary),
        var(--pb-primary-dark)
    );
    border-radius: 20px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--pb-transition);
}

.pb-menu > li > a:hover,
.pb-menu > li > a:focus-visible,
.pb-dropdown-toggle:hover,
.pb-dropdown-toggle:focus-visible {
    color: var(--pb-primary);
    background: rgba(249, 115, 22, 0.07);
}

.pb-menu > li > a:hover::after,
.pb-menu > li > a:focus-visible::after,
.pb-menu > li > a.active::after,
.pb-dropdown-toggle:hover::after,
.pb-dropdown-toggle:focus-visible::after,
.pb-dropdown.active-parent > .pb-dropdown-toggle::after,
.pb-dropdown.is-open > .pb-dropdown-toggle::after {
    transform: scaleX(1);
}

.pb-menu > li > a.active,
.pb-dropdown.active-parent > .pb-dropdown-toggle,
.pb-dropdown.is-open > .pb-dropdown-toggle {
    color: var(--pb-primary);
}

/* =========================================================
   DROPDOWN ARROW
========================================================= */

.pb-arrow {
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--pb-transition);
}

.pb-dropdown.is-open > .pb-dropdown-toggle .pb-arrow {
    margin-top: 4px;
    transform: rotate(-135deg);
}

/* =========================================================
   DESKTOP DROPDOWN MENU
========================================================= */

.pb-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    width: 245px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: var(--pb-white);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: var(--pb-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 14px) scale(0.97);
    transform-origin: top center;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

/* Invisible space prevents dropdown closing between button and menu */
.pb-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -16px;
    right: 0;
    left: 0;
    height: 16px;
}

.pb-dropdown-menu li {
    width: 100%;
}

.pb-dropdown-menu a {
    position: relative;
    width: 100%;
    min-height: 43px;
    padding: 10px 13px 10px 18px;
    color: var(--pb-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 23px;
    text-decoration: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition:
        color var(--pb-transition),
        background-color var(--pb-transition),
        padding-left var(--pb-transition);
}

/* Small animated indicator */
.pb-dropdown-menu a::before {
    content: "";
    position: absolute;
    left: 7px;
    width: 5px;
    height: 5px;
    background: var(--pb-primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition:
        opacity var(--pb-transition),
        transform var(--pb-transition);
}

.pb-dropdown-menu a:hover,
.pb-dropdown-menu a:focus-visible,
.pb-dropdown-menu a.active {
    padding-left: 24px;
    color: var(--pb-primary);
    background: rgba(249, 115, 22, 0.08);
}

.pb-dropdown-menu a:hover::before,
.pb-dropdown-menu a:focus-visible::before,
.pb-dropdown-menu a.active::before {
    opacity: 1;
    transform: scale(1);
}

.pb-dropdown.is-open > .pb-dropdown-menu,
.pb-dropdown:focus-within > .pb-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

/* Open dropdown on hover-capable desktop devices */
@media (hover: hover) and (min-width: 992px) {
    .pb-dropdown:hover > .pb-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0) scale(1);
    }

    .pb-dropdown:hover > .pb-dropdown-toggle .pb-arrow {
        margin-top: 4px;
        transform: rotate(-135deg);
    }
}

/* =========================================================
   BOOK NOW BUTTON
========================================================= */

.pb-header-button,
.pb-mobile-button {
    position: relative;
    overflow: hidden;
    border: 0;
    color: var(--pb-white);
    background: linear-gradient(
        135deg,
        var(--pb-primary),
        var(--pb-primary-dark)
    );
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    transition:
        transform var(--pb-transition),
        box-shadow var(--pb-transition);
}

.pb-header-button {
    min-width: 125px;
    min-height: 46px;
    margin-left: 25px;
    padding: 11px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pb-header-button::before,
.pb-mobile-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.pb-header-button:hover,
.pb-mobile-button:hover {
    color: var(--pb-white);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.pb-header-button:hover::before,
.pb-mobile-button:hover::before {
    left: 150%;
}

.pb-header-button:active,
.pb-mobile-button:active {
    transform: translateY(0);
}

.pb-mobile-button {
    display: none;
}

.elementor-kit-4 a {
     color: black; 
}

/* =========================================================
   MOBILE TOGGLE BUTTON
========================================================= */

.pb-menu-toggle {
    position: relative;
    z-index: 1003;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--pb-border);
    outline: none;
    background: var(--pb-white);
    border-radius: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.06);
    transition:
        border-color var(--pb-transition),
        background-color var(--pb-transition);
}

.pb-menu-toggle span {
    position: absolute;
    left: 12px;
    width: 21px;
    height: 2px;
    background: var(--pb-secondary);
    border-radius: 5px;
    transition:
        top var(--pb-transition),
        transform var(--pb-transition),
        opacity var(--pb-transition),
        background-color var(--pb-transition);
}

.pb-menu-toggle span:nth-child(1) {
    top: 14px;
}

.pb-menu-toggle span:nth-child(2) {
    top: 21px;
}

.pb-menu-toggle span:nth-child(3) {
    top: 28px;
}

.pb-menu-toggle:hover,
.pb-menu-toggle:focus-visible {
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(249, 115, 22, 0.06);
}

.pb-menu-toggle:hover span {
    background: var(--pb-primary);
}

/* Hamburger to close icon */
.pb-menu-toggle.is-active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.pb-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

.pb-menu-toggle.is-active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* =========================================================
   MOBILE OVERLAY
========================================================= */

.pb-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--pb-transition),
        visibility var(--pb-transition);
}

.pb-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   TABLET AND MOBILE
========================================================= */

@media (max-width: 991px) {
    :root {
        --pb-header-height: 74px;
    }

    .pb-header-container {
        width: min(100% - 30px, 100%);
    }

    .pb-logo img {
        max-width: 155px;
        height: 50px;
    }

    .pb-menu-toggle {
        display: inline-flex;
    }

    .pb-header-button {
        display: none;
    }

    .pb-navigation {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1002;
        width: min(88vw, 390px);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 95px 22px 30px;
        background: var(--pb-white);
        border-left: 1px solid var(--pb-border);
        box-shadow: -20px 0 45px rgba(15, 23, 42, 0.16);
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(105%);
        transition:
            transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.3s ease,
            visibility 0.4s ease;
    }

    .pb-navigation.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .pb-menu {
        width: 100%;
        display: block;
    }

    .pb-menu > li {
        width: 100%;
        margin-bottom: 7px;
    }

    .pb-menu > li > a,
    .pb-dropdown-toggle {
        width: 100%;
        min-height: 48px;
        padding: 12px 15px;
        justify-content: flex-start;
        border: 1px solid transparent;
        border-radius: 11px;
        font-size: 15px;
    }

    .pb-dropdown-toggle {
        justify-content: space-between;
    }

    .pb-menu > li > a::after,
    .pb-dropdown-toggle::after {
        display: none;
    }

    .pb-menu > li > a:hover,
    .pb-menu > li > a:focus-visible,
    .pb-menu > li > a.active,
    .pb-dropdown.active-parent > .pb-dropdown-toggle,
    .pb-dropdown.is-open > .pb-dropdown-toggle {
        color: var(--pb-primary);
        background: rgba(249, 115, 22, 0.08);
        border-color: rgba(249, 115, 22, 0.15);
    }

    /* Mobile submenu */
    .pb-dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0 0 0 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        overflow: hidden;
        transform: none;
        transition:
            max-height 0.45s ease,
            padding-top var(--pb-transition),
            padding-bottom var(--pb-transition);
    }

    .pb-dropdown-menu::before {
        display: none;
    }

    .pb-dropdown.is-open > .pb-dropdown-menu {
        max-height: 750px;
        padding-top: 8px;
        padding-bottom: 4px;
        pointer-events: auto;
        transform: none;
    }

    .pb-dropdown-menu li {
        margin-bottom: 5px;
    }

    .pb-dropdown-menu a {
        min-height: 42px;
        padding: 9px 12px 9px 25px;
        color: var(--pb-light-text);
        background: var(--pb-light-bg);
        border: 1px solid rgba(226, 232, 240, 0.8);
    }

    .pb-dropdown-menu a::before {
        left: 11px;
        opacity: 1;
        transform: scale(0.75);
    }

    .pb-dropdown-menu a:hover,
    .pb-dropdown-menu a:focus-visible,
    .pb-dropdown-menu a.active {
        padding-left: 29px;
    }

    .pb-mobile-button {
        width: 100%;
        min-height: 50px;
        margin-top: 22px;
        padding: 13px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .pb-header-container {
        width: calc(100% - 24px);
    }
    
    .elementor-kit-4 button, .elementor-kit-4 input[type="button"], .elementor-kit-4 input[type="submit"], .elementor-kit-4 .elementor-button {
    padding: 0px 0px 0px 0px;
}

    .pb-logo img {
        max-width: 138px;
        height: 90px;
    }

    .pb-menu-toggle {
        width: 43px;
        height: 43px;
    }

    .pb-menu-toggle span {
        left: 11px;
        width: 20px;
    }

    .pb-menu-toggle span:nth-child(1) {
        top: 13px;
    }

    .pb-menu-toggle span:nth-child(2) {
        top: 20px;
    }

    .pb-menu-toggle span:nth-child(3) {
        top: 27px;
    }

    .pb-menu-toggle.is-active span:nth-child(1),
    .pb-menu-toggle.is-active span:nth-child(3) {
        top: 20px;
    }

    .pb-navigation {
        width: 90vw;
        padding: 88px 17px 25px;
    }
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes pbHeaderEntry {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility: reduce animations when requested */
@media (prefers-reduced-motion: reduce) {
    .pb-header,
    .pb-header *,
    .pb-header *::before,
    .pb-header *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}