/* =========================================================
   HEADER BASE
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 1000;

    background: transparent;

    transition:
        background-color 0.35s ease,
        backdrop-filter 0.35s ease,
        box-shadow 0.35s ease;
}


/* =========================================================
   TRANSPARENT HEADER
========================================================= */

.site-header.transparent-header {
    background: transparent;
    box-shadow: none;
}

.site-header.transparent-header .header-menu li a {
    color: #fff;
    font-weight: bold;
}

.site-header.transparent-header .brand-name {
    color: #fff;
}


/* =========================================================
   SITE BRANDING
========================================================= */

.site-branding {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;

    /* Allow branding to shrink instead of forcing
       the whole header wider than the viewport */
    flex-shrink: 1;
}

.site-title-text {
    font-family: 'Rustic Roadway', sans-serif;

    font-size: 40px;
    font-weight: bold;

    line-height: 1.35;

    color: #c7b06a;

    white-space: nowrap;

    /* Truncate horizontally when space is tight, without
       clipping the script font's descenders vertically */
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    padding-bottom: 4px;
}

.brand-name {
    color: #8E4162;
    text-decoration: none;
}


/* =========================================================
   HEADER CONTAINER
========================================================= */

.header-container {
    width: 100%;

    min-height: 80px;

    padding: 0 40px;

    display: flex;
    align-items: center;

    box-sizing: border-box;
}


/* =========================================================
   NAVIGATION
========================================================= */

.bridal-navigation {
    position: relative;

    flex: 1;

    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;
}


/* =========================================================
   MENU CONTAINER
========================================================= */

.bridal-navigation .menu-container {
    display: flex;
    align-items: center;

    /* Let the menu shrink within the nav instead of
       overflowing past the edge of the viewport */
    min-width: 0;
}


/* =========================================================
   DESKTOP MENU
========================================================= */

.bridal-navigation .header-menu {
    display: flex;

    flex-direction: row;
    align-items: center;

    gap: 35px;

    margin: 0;
    padding: 0;

    list-style: none;

    min-width: 0;
}

.bridal-navigation .header-menu li {
    display: block;
}

.bridal-navigation .header-menu li a {
    display: block;

    color: #a04a8b;

    text-decoration: none;

    white-space: nowrap;

    font-weight: bold;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.bridal-navigation .header-menu li a:hover {
    opacity: 0.75;
}


/* =========================================================
   SCROLLED HEADER
========================================================= */

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .header-menu li a {
    color: #a04a8b;
}

.site-header.scrolled .brand-name {
    color: #8E4162;
}


/* =========================================================
   HAMBURGER BUTTON
========================================================= */

.menu-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: none;

    background: transparent;

    color: #a04a8b;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    flex-shrink: 0;
}

.site-header.transparent-header .menu-toggle {
    color: #a04a8b;
}

.site-header.scrolled .menu-toggle {
    color: #a04a8b;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1350px) {

    .header-container {
        min-height: 75px;

        padding-left: 25px;
        padding-right: 25px;
    }

    .site-title-text {
        font-size: 34px;
    }

    .bridal-navigation {
        flex: 0 0 auto;

        margin-left: auto;

        justify-content: flex-end;
    }

    /* Hide desktop menu */

    .bridal-navigation .menu-container {
        display: none;
    }

    /* Show hamburger */

    .menu-toggle {
        display: flex;
    }


    /* =====================================================
       OPEN MOBILE MENU
       (matches classes toggled by navigation.js:
        #site-navigation.toggled + body.menu-opened)
    ===================================================== */

    #site-navigation.toggled .menu-container {
        display: block;

        position: absolute;

        top: calc(100% + 10px);
        right: 0;

        width: 260px;

        background: rgba(255, 255, 255, 0.98);

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        border-radius: 10px;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.15);

        overflow: hidden;
    }

    #site-navigation.toggled .header-menu {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        width: 100%;
    }

    #site-navigation.toggled .header-menu li {
        width: 100%;
    }

    #site-navigation.toggled .header-menu li a {
        width: 100%;

        padding: 15px 20px;

        color: #8E4162;

        text-align: center;

        white-space: normal;
    }

    #site-navigation.toggled .header-menu li a:hover {
        background: #f8f5f0;

        color: #a04a8b;
    }

    body.menu-opened {
        overflow: hidden;
    }
}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 767px) {

    .header-container {
        min-height: 70px;

        padding-left: 18px;
        padding-right: 18px;

        gap: 10px;
    }

    .site-branding {
        flex: 1;

        max-width: calc(100% - 50px);

        min-width: 0;
    }

    .site-title-text {
        display: none;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;

        font-size: 25px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .header-container {
        min-height: 65px;

        padding-left: 12px;
        padding-right: 12px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;

        font-size: 22px;
    }

    #site-navigation.toggled .menu-container {
        position: fixed;

        top: 65px;

        left: 12px;
        right: 12px;

        width: auto;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .header-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;

        font-size: 20px;
    }

    #site-navigation.toggled .menu-container {
        left: 10px;
        right: 10px;
    }
}