/* =========================================
   ETERNAL ELEGANCE WEDDINGS
   NAVBAR STYLING
========================================= */


/* =========================================
   1. NAVBAR MAIN CONTAINER
========================================= */

.site-navbar {

    width: 100%;

    position: relative;

    z-index: 1000;

    background-color: #FFF0E8;

    border-bottom: 1px solid var(--border-soft);

    box-shadow: 0 4px 18px rgba(64, 19, 50, 0.05);

}


.navbar-container {

    width: calc(100% - var(--container-padding));

    max-width: var(--container-width);

    height: 88px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}


/* =========================================
   2. BRAND LOGO AND NAME
========================================= */

.navbar-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

}


.navbar-logo {

    width: 150px;

    height: 150px;

    object-fit: contain;

}


.navbar-brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.1;

}


.navbar-brand-text h2 {

    font-family: var(--font-heading);

    font-size: 27px;

    font-weight: 700;

    color: var(--primary);

    white-space: nowrap;

}


.navbar-brand-text span {

    margin-top: 5px;

    color: var(--secondary);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 3px;

}


/* =========================================
   3. NAVIGATION LINKS
========================================= */

.navbar-menu {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 28px;

}


.navbar-link {

    position: relative;

    padding: 9px 0;

    color: var(--text-dark);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.2px;

    transition: color var(--transition);

}


.navbar-link:hover {

    color: var(--secondary);

}


/* =========================================
   4. ACTIVE NAVIGATION LINK
========================================= */

.navbar-link.active {

    color: var(--secondary);

}


.navbar-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 2px;

    width: 0;

    height: 2px;

    border-radius: 5px;

    background-color: var(--secondary);

    transition: width var(--transition);

}


.navbar-link:hover::after,
.navbar-link.active::after {

    width: 100%;

}


/* =========================================
   5. NAVBAR ACTION BUTTON
========================================= */

.navbar-action {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 20px;

    border: 1px solid var(--primary);

    border-radius: var(--radius-pill);

    background-color: var(--primary);

    color: var(--gold);

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color var(--transition),
        color var(--transition),
        transform var(--transition);

}


.navbar-action:hover {

    background-color: var(--secondary);

    border-color: var(--secondary);

    color: #FFFFFF;

    transform: translateY(-2px);

}


/* =========================================
   6. MOBILE MENU BUTTON
========================================= */

.navbar-toggle {

    width: 42px;

    height: 42px;

    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 6px;

    border: 1px solid var(--border-soft);

    border-radius: 10px;

    background-color: #FBE5E2;

    cursor: pointer;

}


.navbar-toggle span {

    width: 20px;

    height: 2px;

    border-radius: 5px;

    background-color: var(--primary);

    transition:
        transform var(--transition),
        opacity var(--transition);

}


/* Hamburger to close icon */

.navbar-toggle.open span:nth-child(1) {

    transform: translateY(8px) rotate(45deg);

}


.navbar-toggle.open span:nth-child(2) {

    opacity: 0;

}


.navbar-toggle.open span:nth-child(3) {

    transform: translateY(-8px) rotate(-45deg);

}


/* =========================================
   7. TABLET RESPONSIVENESS
========================================= */

@media (max-width: 1050px) {

    .navbar-container {

        gap: 15px;

    }


    .navbar-menu {

        gap: 17px;

    }


    .navbar-brand-text h2 {

        font-size: 23px;

    }


    .navbar-link {

        font-size: 12px;

    }


    .navbar-action {

        padding: 10px 15px;

    }

}


/* =========================================
   8. MOBILE NAVIGATION
========================================= */

@media (max-width: 850px) {

    .navbar-container {
        min-height: 76px;

    }


    .navbar-logo {

        width: 150px;
        height: 150px;

    }


    .navbar-brand-text h2 {

        font-size: 23px;

    }


    .navbar-toggle {

        display: flex;
        flex-shrink: 0;

    }


    .navbar-menu {

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 0;

        padding: 12px 25px 22px;

        background-color: #FFF0E8;

        border-top: 1px solid var(--border-soft);

        box-shadow: var(--shadow-medium);

    }


    .navbar-menu.show {

        display: flex;

    }


    .navbar-link {

        width: 100%;

        padding: 13px 5px;

        border-bottom: 1px solid var(--border-soft);

        font-size: 14px;

    }


    .navbar-link::after {

        display: none;

    }


    .navbar-action {

        width: 100%;

        margin-top: 15px;

    }

}


/* =========================================
   9. SMALL MOBILE DEVICES
========================================= */

@media (max-width: 480px) {

    .navbar-container {

        min-height: 70px;

    }


    .navbar-logo {

        width: 120px;
        height: 120px;

    }


    .navbar-brand {

        gap: 8px;

    }


    .navbar-brand-text h2 {

        font-size: 20px;

    }


    .navbar-brand-text span {

        font-size: 8px;

        letter-spacing: 2.3px;

    }


    .navbar-menu {

        padding-left: 20px;

        padding-right: 20px;

    }

}


/* =========================================
   10. REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .navbar-link,
    .navbar-link::after,
    .navbar-action,
    .navbar-toggle span {

        transition: none;

    }

}