/* ==========================================================================
   Creative Header & Mega Menu - Design Reference System
   ========================================================================== */

/* Base Header Reset & Styling */
.creative-header {
    font-family: 'Inter', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.header-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* Header Navigation Bar */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-self: stretch;
    margin-top: -14px;
    margin-bottom: -14px;
}

.header-nav .nav-item {
    position: static;
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-nav .nav-item.nav-item-compact {
    position: relative;
}

.header-nav .nav-link {
    position: relative;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

/* Scoped bottom bridge on each nav link down to top: 100% */
.header-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    height: 25px;
    background: transparent;
}

.header-nav .nav-link i {
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.25s ease, color 0.2s ease;
}

/* Active / Hover Pill Effect on Nav Link (As in screenshot) */
.header-nav .nav-link:hover,
.header-nav .nav-item:hover .nav-link,
.header-nav .nav-link.active {
    background: #fff0eb;
    border-color: #ffd5c4;
    color: #fe4a23;
}

.header-nav .nav-link:hover i,
.header-nav .nav-item:hover .nav-link i,
.header-nav .nav-link.active i {
    transform: rotate(180deg);
    color: #fe4a23;
}

/* ==========================================================================
   Mega Menu Box & Layout
   ========================================================================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1240px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #fe4a23;
    padding: 26px 32px 32px 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    height: 25px;
    background: transparent;
}

.header-nav .nav-item:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Top Banner inside Mega Menu */
.mega-top-banner {
    background: linear-gradient(180deg, #fff7f2 0%, #fff0e6 100%);
    border: 1px solid #ffd9c7;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.mega-top-banner-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.3px;
}

.mega-top-banner-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
    font-family: 'Inter', sans-serif;
}

.mega-top-banner-btn {
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.mega-top-banner-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.mega-top-banner-btn:hover {
    background: #fe4a23;
    color: #ffffff;
}

.mega-top-banner-btn:hover i {
    transform: translateX(3px);
}

/* Columns Grid for Categories - No Scroll */
.mega-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.mega-columns-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.mega-columns-grid::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: 9999px !important;
}

.mega-columns-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 9999px !important;
    transition: background 0.2s ease !important;
}

.mega-columns-grid::-webkit-scrollbar-thumb:hover {
    background: #fe4a23 !important;
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mega-group {
    display: flex;
    flex-direction: column;
}

.mega-group-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.bullet-dot {
    color: #fe4a23;
    font-size: 18px;
    line-height: 0.8;
}

.mega-links-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-link {
    color: #4b5563;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-block;
    width: fit-content;
}

.mega-link:hover {
    color: #fe4a23;
    transform: translateX(3px);
}

.mega-subgroup {
    margin-top: 10px;
    margin-bottom: 6px;
    padding-left: 10px;
    border-left: 2px solid #ffd5c4;
}

.mega-subgroup-title {
    font-size: 12px;
    font-weight: 700;
    color: #fe4a23;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.mega-sublink {
    font-size: 12.5px;
    color: #6b7280;
    padding: 3px 0;
}

.mega-sublink:hover {
    color: #fe4a23;
}

/* ==========================================================================
   Header Actions & Book A Call Button
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    background: #000000;
    border-radius: 999px;
    padding: 4px 4px 4px 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 10px;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

.btn-book::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    z-index: 0;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-book .btn-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 13.5px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.btn-book .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.btn-book .btn-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.btn-book:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.btn-book:hover::before {
    transform: scaleX(1);
}

.btn-book:hover .btn-text {
    color: #000000;
}

.btn-book:hover .btn-icon {
    transform: scale(1.06);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #e5e7eb;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Fullscreen Overlay Drawer: Hidden on Desktop */
.fullscreen-overlay {
    display: none;
}

/* ==========================================================================
   Mobile Navigation & Drawer (≤ 1024px)
   ========================================================================== */
@media screen and (max-width: 1267px) {
    .mega-menu.mega-menu-wide,
    .mega-menu.mega-menu-vtabs {
        width: 1000px;
        padding: 24px 28px;
    }

    .header-nav .nav-link {
        padding: 8px 7px;
    }

    .mega-columns-grid {
        gap: 28px;
    }

    .creative-header .header-nav .nav-link{
            padding: 8px 8px;

    }
}

@media screen and (max-width: 1181px) {
        .creative-header .header-nav .nav-link{
    font-size: 12px;
        }

        .header-logo img {
    height: 38px;
        }
}

@media screen and (max-width: 1024px) {
    .header-nav {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    .header-actions .btn-book {
        display: inline-flex !important;
        padding: 4px 4px 4px 16px;
    }

    /* Fullscreen Overlay Drawer */
    .fullscreen-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        padding: 90px 20px 40px 20px;
        overflow-y: auto;
    }

    .fullscreen-overlay.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .fullscreen-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .fullscreen-nav-list .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 10px;
    }

    .fullscreen-nav-list .nav-link {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
        padding: 10px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border: none !important;
        background: transparent !important;
    }

    .fullscreen-nav-list .nav-link i {
        font-size: 14px;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .fullscreen-nav-list .nav-item.open .nav-link {
        color: #fe4a23;
    }

    .fullscreen-nav-list .nav-item.open .nav-link i {
        transform: rotate(180deg);
        color: #fe4a23;
    }

    .fullscreen-nav-list .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none !important;
        border: none !important;
        border-top: none !important;
        padding: 10px 0 16px 0 !important;
        display: none;
    }

    .fullscreen-nav-list .nav-item.open .mega-menu {
        display: block !important;
    }

    .fullscreen-nav-list .mega-top-banner {
        padding: 14px 16px;
        margin-bottom: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fullscreen-nav-list .mega-top-banner-content h3 {
        font-size: 16px;
    }

    .fullscreen-nav-list .mega-top-banner-btn {
        width: 100%;
        justify-content: center;
    }

    /* Nested Mobile Accordions */
    .smm-mobile-accordion {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .smm-acc-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.2s ease;
    }

    .smm-acc-item.open {
        background: #ffffff;
        border-color: rgba(254, 74, 35, 0.35);
        box-shadow: 0 4px 12px rgba(254, 74, 35, 0.06);
    }

    .smm-acc-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        cursor: pointer;
        user-select: none;
    }

    .smm-acc-title {
        font-size: 13.5px;
        font-weight: 700;
        color: #1e293b;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .smm-acc-item.open .smm-acc-title {
        color: #fe4a23;
    }

    .smm-acc-arrow {
        font-size: 12px;
        color: #94a3b8;
        transition: transform 0.3s ease;
    }

    .smm-acc-item.open .smm-acc-arrow {
        transform: rotate(180deg);
        color: #fe4a23;
    }

    .smm-acc-body {
        display: none;
        padding: 0 16px 14px 16px;
    }

    .smm-acc-item.open .smm-acc-body {
        display: block;
        padding: 16px 20px;
    }

    .smm-acc-body .mega-links-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .smm-acc-body .mega-link {
        font-size: 14px;
        padding: 6px 0;
        color: #4b5563;
        width: 100%;
        border-bottom: 1px dashed #f1f5f9;
    }
}

@media screen and (max-width: 667px) {
    .header-container {
        padding: 10px 16px;
    }

    .header-logo img {
        height: 32px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .btn-book {
        padding: 3px 3px 3px 12px;
        gap: 8px;
    }

    .header-actions .btn-book .btn-text {
        font-size: 12px;
    }

    .header-actions .btn-book .btn-icon {
        width: 26px;
        height: 26px;
    }

    .header-actions .btn-book .btn-icon img {
        width: 14px;
        height: 14px;
    }
}

@media screen and (max-width: 480px) {
    .header-container {
        padding: 8px 12px;
    }

    .header-logo img {
        height: 28px;
        max-width: 110px;
        object-fit: contain;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn-book {
        padding: 3px 3px 3px 10px;
        gap: 6px;
    }

    .header-actions .btn-book .btn-text {
        font-size: 11px;
    }

    .header-actions .btn-book .btn-icon {
        width: 24px;
        height: 24px;
    }

    .header-actions .btn-book .btn-icon img {
        width: 13px;
        height: 13px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
    }
}

@media screen and (max-width: 360px) {
    .header-container {
        padding: 8px 10px;
    }

    .header-logo img {
        height: 25px;
        max-width: 95px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-actions .btn-book {
        padding: 2px 2px 2px 8px;
        gap: 5px;
    }

    .header-actions .btn-book .btn-text {
        font-size: 10px;
        letter-spacing: -0.2px;
    }

    .header-actions .btn-book .btn-icon {
        width: 22px;
        height: 22px;
    }

    .header-actions .btn-book .btn-icon img {
        width: 12px;
        height: 12px;
    }

    .menu-toggle {
        width: 32px;
        height: 32px;
    }
}

@media screen and (max-width: 321px) {
    .header-container {
        padding: 6px 6px;
    }

    .header-logo img {
        height: 22px;
        max-width: 82px;
        object-fit: contain;
    }

    .header-actions {
        gap: 4px;
    }

    .header-actions .btn-book {
        padding: 2px 2px 2px 6px;
        gap: 4px;
    }

    .header-actions .btn-book .btn-text {
        font-size: 9px;
        letter-spacing: -0.3px;
    }

    .header-actions .btn-book .btn-icon {
        width: 18px;
        height: 18px;
    }

    .header-actions .btn-book .btn-icon img {
        width: 10px;
        height: 10px;
    }

    .menu-toggle {
        width: 28px;
        height: 28px;
    }

    .menu-toggle span {
        width: 12px;
        height: 1px;
    }
}
/* ==========================================================================
   "You are here" — highlight the sub-menu link/group matching the page
   currently being viewed, in addition to the top-level nav item.
   ========================================================================== */
.mega-link.active,
.mega-link-group.active,
.mega-sublink.active {
    color: #fe4a23;
    font-weight: 700;
}

/* Only links that have no bullet element of their own get the dot — the vtab
   links (.creative-vtab-link-bullet) and group links (.bullet-dot) already
   render one, so adding ::before there would show two dots. */
.mega-link.active:not(.mega-link-group):not(.creative-vtab-link)::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fe4a23;
    margin-right: 6px;
    vertical-align: middle;
}

.mega-group-title.active,
.mega-subgroup-title.active {
    background: #fff6f3;
    border-radius: 6px;
    padding: 3px 8px;
    margin-left: -8px;
    margin-right: -8px;
    width: fit-content;
}
