/* -------------------------------------- */
/* --- Header--- */
/* -------------------------------------- */

/* Transparent floating header */
.custom-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0px 40px;
    background: transparent;
    z-index: 99999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark header when scrolled on light background */
.custom-header.header-dark {
    background:rgb(0 0 0 / 26%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Container */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styling */
.logo img {
    height: 150px;
    width: auto;
}

/* Hamburger Menu Icon */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 45px;
    height: 28px;
    padding: 0;
    position: relative;
    z-index: 100001;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 4px;
    background: #ffffff;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.hamburger-btn span:last-child {
    margin-bottom: 0;
}

/* Transform hamburger to X when menu is open - DESKTOP */
@media (min-width: 769px) {
    body.menu-open .hamburger-btn span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
        background: #ffffff;
    }

    body.menu-open .hamburger-btn span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .hamburger-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background: #ffffff;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .custom-header {
        padding: 0px 20px;
    }
    .logo img {
        height: 110px;
    }
}

/************************************************************************/
/* Overlay Menu Styles Only */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #821d1a;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-close-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    width: 50px;
    height: 50px;
    padding: 0;
    transition: transform 0.3s ease;
}

.menu-close-btn:hover {
    transform: rotate(90deg);
    color: #ffd700;
}

.menu-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0px 30px;
}

.menu-category {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.overlay-menu.active .menu-category:nth-child(1) { animation-delay: 0.1s; }
.overlay-menu.active .menu-category:nth-child(2) { animation-delay: 0.15s; }
.overlay-menu.active .menu-category:nth-child(3) { animation-delay: 0.2s; }
.overlay-menu.active .menu-category:nth-child(4) { animation-delay: 0.25s; }
.overlay-menu.active .menu-category:nth-child(5) { animation-delay: 0.3s; }
.overlay-menu.active .menu-category:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-category h3 a {
    padding-bottom: 4px;
    width: fit-content;
    font-family: sans-serif;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom:2px solid #fff;
}

.menu-category h3 a:hover {
    color: #fecb3d !important;
    padding-left: 5px;
}

.menu-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-category ul li {
    margin-bottom: 1px;
}

.menu-category ul li a {
    font-family: cursive;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.menu-category ul li a:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #f2f2f2;
    transition: width 0.3s ease;
}

.menu-category ul li a:hover {
    color: #fecb3d !important;
    padding-left: 10px;
}

.menu-category ul li a:hover:before {
    width: 30px;
}

body.menu-open {
    overflow: hidden;
}

/* Hide header elements when menu is open - DESKTOP ONLY */
@media (min-width: 769px) {
    body.menu-open .custom-header {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 1200px) {
    .menu-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* Keep header visible on mobile */
    body.menu-open .custom-header {
        opacity: 1;
        pointer-events: all;
        background: #821d1a;
    }
    
    /* MOBILE: Slide down from HEADER BOTTOM (not screen top) */
    .overlay-menu {
        top: 110px;
        opacity: 1;
        visibility: visible;
        background: #821d1a;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        height: auto;
        max-height: 0;
        overflow: hidden;
    }
    
    .overlay-menu.active {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    /* Hamburger button - Black color on mobile */
    .hamburger-btn span {
        background: #000000;
    }
    
    /* Transform hamburger to X when menu is open - MOBILE */
    body.menu-open .hamburger-btn span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
        background: #fff;
    }

    body.menu-open .hamburger-btn span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .hamburger-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
        background: #fff;
    }
    
    /* CLOSE BUTTON - HIDDEN ON MOBILE */
    .menu-close-btn {
        display: none;
    }
    
    /* FULL WIDTH NO PADDING */
    .menu-content {
        border-top:1px solid #eaeaea;
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
        gap: 0;
        max-width: 100%;
    }

    /* TABLE STYLE LAYOUT WITH BORDERS */
    .menu-category h3 a {
        font-family: system-ui;
        width: 100%;
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        border-bottom: 1px solid #eaeaea;
        padding: 15px 20px 15px 30px;
        margin: 0;
        text-transform: none;
    }
    
    /* SUBMENU LINKS - BLACK TEXT */
    .menu-category ul li a {
        font-family: cursive;
        margin-left: 25px;
        font-size: 16px;
        color: #fff;
        padding: 10px 20px;
    }
    
    /* HOVER EFFECTS - BLACK/GOLD */
    .menu-category h3 a:hover {
        color: #000;
        padding-left: 20px;
    }
    
    .menu-category ul li a:hover {
        color: #000;
    }
    
    .menu-category ul li a:before {
        display: none;
    }
}

@media (max-width: 480px) {
    .menu-content {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Wrapper */
.header-icons-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Hamburger button */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
}

/* Hamburger lines */
.hamburger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Mobile Accordion Styles */
@media (max-width: 768px) {
    
    h3, .h3 {
        margin: 0 !important;
    }
    
    .menu-category.accordion-item {
        border-bottom: 1px solid #eaeaea;
    }
    
    .menu-category.accordion-item h3 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
    }

    .menu-category.accordion-item h3 a {
        flex: 1;
        padding: 15px 20px 15px 30px;
        cursor: pointer;
        width: auto;
        border: none;
    }

    /* CHEVRON DOWN ICON - BLACK COLOR WITH LEFT BORDER */
    .accordion-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 55px;
        height: 50px;
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.3s ease;
        user-select: none;
        padding-right: 1px;
        border-left: 1px solid #e0e0e0;
    }
    
    /* SVG ICON STYLING */
    .accordion-icon .si-icon {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }
    
    .accordion-icon .si-icon path {
        fill: #fff;
    }
    
    /* CHEVRON DOWN SYMBOL - FALLBACK */
    .accordion-icon::before {
        display: none;
    }
    
    /* ROTATE WHEN ACTIVE */
    .menu-category.accordion-item.active .accordion-icon .si-icon {
        transform: rotate(180deg);
    }

    /* Submenu hidden by default on mobile */
    .menu-category.accordion-item ul {
        background:#b84a46;
        padding: 0;
        margin: 0;
    }
    
    /* SUBMENU ITEMS WITH BORDER */
    .menu-category.accordion-item ul li {
        margin: 0;
        border-bottom: 1px solid #eaeaea;
    }
    
    .menu-category.accordion-item ul li:last-child {
        border-bottom: none;
    }
    
    /* Active state - GOLD COLOR */
    .menu-category.accordion-item.active h3 a {
        font-size: 16px;
        color: #fecb3d !important;
    }

    .menu-category.accordion-item:last-child {
        border-bottom: 1px solid #eaeaea;
    }
}

/* Desktop - ensure normal behavior */
@media (min-width: 769px) {
    .menu-category h3 a::after {
        display: none;
    }
}