/* ============================================
   ULEMJ CATERING - Custom Styles
   ulemj_custom.css
   ============================================ */

/* ----- Base ----- */
body {
    font-family: 'Lato', sans-serif;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* ----- Hero Slider ----- */
.hero-slider {
    cursor: grab;
    user-select: none;
}

.hero-slider.dragging {
    cursor: grabbing;
}

.hero-content-wrapper {
    width: 300%; /* 3 slides */
}

.hero-slide {
    width: 33.333%; /* 100% / 3 slides */
}

/* ----- Brand / Service Card Hover Effects ----- */
.brand-card img {
    transition: transform 0.5s ease;
}

.brand-card:hover img {
    transform: scale(1.1);
}

.brand-logo {
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-logo {
    transform: translateY(-20px);
}

.brand-description {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-description {
    opacity: 1;
    transform: translateY(0);
}

.brand-subtitle {
    transition: opacity 0.3s ease;
}

.brand-card:hover .brand-subtitle {
    opacity: 1;
}

/* ----- Testimonial Slider ----- */
.testimonial-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
}

/* ----- Section Title Decorative Lines ----- */
.section-title {
    letter-spacing: 0.15em;
    font-family: 'Times New Roman', Times, serif;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 150px;
    height: 1px;
    background: #999;
}

.section-title::before {
    right: 110%;
}

.section-title::after {
    left: 110%;
}

@media (max-width: 768px) {
    .section-title::before,
    .section-title::after {
        display: none;
    }
}

/* ----- Mobile Menu ----- */
#mobileMenu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255);
    color: black;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

#mobileMenu.open {
    left: 0;
}

#mobileMenu .close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

#mobileMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobileMenu li {
    margin-bottom: 1rem;
}

#mobileMenu a {
    color: black;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 0.5rem 0;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#mobileMenu a:hover {
    opacity: 1;
}

#mobileMenu .menu-tite {
    padding-bottom: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#mobileMenu .menu-section {
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#mobileMenu .menu-section h3 {
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s;
}

#mobileMenu .menu-section h3:hover {
    color: #ccc;
}

#mobileMenu .menu-section .chevron {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

#mobileMenu .menu-section.open .chevron {
    transform: rotate(180deg);
}

#mobileMenu .menu-section ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobileMenu .menu-section.open ul {
    max-height: 500px;
}

#mobileMenu .user-actions {
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    right: 1rem;
}

#mobileMenu .user-actions a {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ----- Mega Menu ----- */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 200px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 1px solid #e5e7eb;
}

.nav-item:hover .mega-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.mega-menu li {
    margin-bottom: 0.5rem;
    position: relative;
}

.mega-menu a {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.mega-menu a:hover {
    color: #111827;
}

/* Nested Submenu */
.mega-menu ul ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 101;
    border: 1px solid #e5e7eb;
}

.mega-menu li.has-submenu:hover > ul {
    display: block;
}

.mega-menu ul ul ul {
    left: 100%;
    top: 0;
    width: 180px;
}

.mega-menu ul ul li {
    margin-bottom: 0.25rem;
}

.mega-menu ul ul a {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    color: #6b7280;
}

.mega-menu ul ul a:hover {
    color: #111827;
}

.mega-menu-content {
    display: grid;
    gap: 2rem;
    align-items: start;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .mega-menu ul ul {
        position: static;
        display: block;
        width: auto;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
}