/* ==========================
   HEADER
========================== */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ==========================
   LOGO SECTION
========================== */

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.logo-text {
    margin-left: 18px;
}

.logo-text h2 {
    margin: 0;
    font-size: 32px;
    color: #741b2a;
    font-weight: 700;
    line-height: 1.1;
}

.logo-text span {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 15px;
}


/* ==========================
   NAVIGATION
========================== */

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: #741b2a;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}


/* ==========================
   HEADER ACTIONS
========================== */

.header-actions {
    display: flex;
    align-items: center;
}

.search-btn {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
}


/* ==================================================
   MEGA MENU
================================================== */

.has-mega {
    position: relative;
}


/* --------------------------
   Hidden State
-------------------------- */

.mega-menu {
    position: absolute;

    top: calc(100% + 12px);
    left: 50%;

    width: 1000px;
    max-width: 92vw;

    background: #ffffff;

    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 45px;

    padding: 35px;

    border-radius: 0 0 22px 22px;

    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateX(-50%) translateY(15px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 99999;
}


/* ==================================================
   IMPORTANT:
   OPEN MEGA MENU ON HOVER
================================================== */

.has-mega:hover > .mega-menu,
.has-mega:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}


/* ==================================================
   MORE MENU
================================================== */

.nav-menu > li.mega-right {
    position: relative;
}


/* More menu positioning */

.nav-menu > li.mega-right > .mega-menu {
    left: auto;
    right: 0;

    transform: translateY(15px);
}


/* Open More */

.nav-menu > li.mega-right:hover > .mega-menu,
.nav-menu > li.mega-right:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/* ==================================================
   LEFT COLUMN
================================================== */

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mega-links a {
    text-decoration: none;

    color: #555;

    font-size: 15px;
    font-weight: 600;

    transition:
        color 0.3s ease,
        padding-left 0.3s ease;

    position: relative;

    padding-left: 0;
}


/* Small dot */

.mega-links a::before {
    content: "";

    position: absolute;

    left: -14px;
    top: 50%;

    width: 6px;
    height: 6px;

    background: #741b2a;

    border-radius: 50%;

    transform: translateY(-50%) scale(0);

    transition: transform 0.3s ease;
}


/* Hover link */

.mega-links a:hover {
    color: #741b2a;
    padding-left: 14px;
}

.mega-links a:hover::before {
    transform: translateY(-50%) scale(1);
}


/* ==================================================
   RIGHT CARD
================================================== */

.mega-card {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mega-card img {
    width: 270px;
    height: 270px;

    object-fit: cover;

    border-radius: 18px;
}

.mega-text {
    flex: 1;
}

.mega-text h3 {
    font-family: "Playfair Display", serif;

    color: #741b2a;

    font-size: 2.2rem;

    margin: 0 0 15px;
}

.mega-text p {
    color: #555;

    line-height: 1.8;

    margin: 0 0 25px;
}


/* ==================================================
   MEGA BUTTON
================================================== */

.mega-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 14px 34px;

    background: #741b2a;
    color: #ffffff !important;

    text-decoration: none;

    border: none;
    border-radius: 40px;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0.4px;

    box-shadow: 0 8px 20px rgba(116, 27, 42, 0.25);

    transition:
        background 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.mega-btn:hover {
    background: #5d1622;

    color: #ffffff !important;

    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(116, 27, 42, 0.35);
}

.mega-btn:visited,
.mega-btn:active {
    color: #ffffff !important;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .mega-menu {
        width: 95vw;

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .mega-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .mega-card img {
        width: 100%;
        height: 240px;
    }
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .logo img {
        width: 80px;
        height: 80px;
    }

    .logo-text h2 {
        font-size: 26px;
    }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .mega-menu {
        position: static;

        width: 100%;
        max-width: 100%;

        transform: none !important;

        margin-top: 10px;

        grid-template-columns: 1fr;

        border-radius: 15px;

        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .has-mega:hover > .mega-menu,
    .has-mega:focus-within > .mega-menu {
        transform: none !important;
    }

    .nav-menu > li.mega-right > .mega-menu {
        position: static;

        transform: none !important;
    }

    .mega-card img {
        width: 100%;
        height: 200px;
    }
}
/* ========================================
   MOBILE HEADER
======================================== */

.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #741b2a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
}


/* ========================================
   MOBILE RESPONSIVE
======================================== */

@media (max-width: 768px) {

    .site-header {
        padding: 10px 0;
    }

    .container {
        width: 92%;
    }

    .navbar {
        position: relative;
        min-height: 58px;
    }

    /* Logo */

    .logo img {
        width: 58px;
        height: 58px;
    }

    .logo-text {
        margin-left: 10px;
    }

    .logo-text h2 {
        font-size: 20px;
    }

    .logo-text span {
        font-size: 9px;
        margin-top: 3px;
    }


    /* Hamburger */

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
        position: relative;
        z-index: 10001;
    }


    /* Hide desktop navigation initially */

    .nav-menu {
        display: none;
    }


    /* Mobile navigation when opened */

    .nav-menu.mobile-open {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;

        flex-direction: column;
        gap: 0;

        background: #ffffff;

        padding: 10px 0;

        border-radius: 0 0 18px 18px;

        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);

        z-index: 10000;
    }


    .nav-menu.mobile-open > li {
        width: 100%;
    }


    .nav-menu.mobile-open > li > a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
    }


    /* Hide desktop mega menus on mobile for now */

    .nav-menu.mobile-open .mega-menu {
        display: none !important;
    }


    /* Prevent desktop positioning from affecting mobile */

    .has-mega {
        position: static;
    }

}
