/* =========================================
   SHORE TO PLEASE - HEADER
========================================= */

/* HEADER */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    color: var(--color-white);
	padding: var(--space-md) 0;
}

body.admin-bar .site-header {
    top: 32px;
}

/* HEADER LAYOUT */

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    min-height: 110px;
}

/* LEFT NAVIGATION */

.header-nav {
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--color-yellow-light);
}

/* DROPDOWN */

.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 12px 0;
    margin: 0;
    list-style: none;
    background: var(--color-primary-dark);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 20;
}

.nav-list .sub-menu a {
    padding: 10px 18px;
    white-space: normal;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* CENTER LOGO - DESKTOP */

.site-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
}

/* RIGHT ACTIONS */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-yellow-light);
    padding-bottom: 3px;
}

.header-phone svg {
    color: var(--color-yellow-light);
    flex-shrink: 0;
}

.header-phone:hover {
    color: var(--color-yellow-light);
}

/* HEADER BUTTON */

.header-book-btn {
    padding: 13px 20px;
    min-height: 44px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* MOBILE MENU TOGGLE */

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

/* =========================================
   TABLET / MOBILE HEADER
========================================= */

@media (max-width: 1199px) {

    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        min-height: 90px;
    }

    /* LOGO LEFT */

    .site-brand {
        width: 140px;
        justify-content: flex-start;
        margin-right: auto;
        flex-shrink: 1;
        min-width: 0;
        order: 1;
    }

    .brand-logo {
        width: 140px;
        max-width: 100%;
        height: auto;
    }

    /* ACTIONS RIGHT */

    .header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        margin-left: auto;
        flex-shrink: 0;
        order: 2;
    }

    .header-phone span {
        display: none;
    }

    .header-book-btn {
        padding: 11px 15px;
        min-height: 40px;
        font-size: 12px;
    }

    /* HAMBURGER FAR RIGHT */

    .menu-toggle {
        display: flex;
        order: 3;
        margin: 0;
    }

    /* FULL SCREEN MOBILE MENU */

    .header-nav {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100dvh - 90px);
        max-height: none;
        background: var(--color-primary-dark);
        padding: 30px max(20px, calc((100vw - 1240px) / 2));
        display: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 999;
        order: 4;
    }

    .header-nav.is-open {
        display: block;
    }

    body.admin-bar .header-nav {
        top: 122px;
        height: calc(100dvh - 122px);
    }

    /* MOBILE NAVIGATION */

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list > li > a {
        padding: 15px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        padding: 0 0 8px 18px;
        min-width: 0;
        transition: none;
    }

    .nav-list .sub-menu a {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .header-inner {
        min-height: 75px;
        gap: 10px;
    }

    /* LOGO LEFT */

    .site-brand {
        width: 115px;
    }

    .brand-logo {
        width: 115px;
    }

    /* RIGHT ACTIONS */

    .header-actions {
        gap: 8px;
    }

    .header-phone {
        display: none;
    }

    .header-book-btn {
        padding: 10px 12px;
        min-height: 36px;
        font-size: 11px;
    }

    /* HAMBURGER */

    .menu-toggle {
        width: 38px;
        height: 38px;
        padding: 9px;
    }

    /* FULL HEIGHT MENU */

    .header-nav {
        top: 75px;
        height: calc(100dvh - 75px);
        padding: 25px 20px 35px;
    }

    /* WORDPRESS ADMIN BAR */

    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .header-nav {
        top: 121px;
        height: calc(100dvh - 121px);
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .header-inner {
        gap: 8px;
    }

    .site-brand {
        width: 100px;
    }

    .brand-logo {
        width: 100px;
    }

    .header-book-btn {
        padding: 9px;
        font-size: 10px;
    }

    .menu-toggle {
        width: 34px;
        height: 36px;
        padding: 7px;
    }
}

/* =========================================
   MENU OPEN ANIMATION
========================================= */

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   FULL SCREEN MOBILE NAVIGATION
========================================= */

@media (max-width: 1199px) {

    .site-header {
        z-index: 1000;
    }

    .header-inner {
        position: relative;
        z-index: 1002;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100dvh;
        max-height: none;
        padding-top: 110px;
        background: var(--color-primary-dark);
        overflow-y: auto;
        z-index: -1;
    }

    body.admin-bar .header-nav {
        top: 0;
        height: 100dvh;
        padding-top: 140px;
    }
}

@media (max-width: 767px) {

    .header-nav {
        padding: 125px 20px 35px;
    }

    body.admin-bar .header-nav {
        padding-top: 140px;
    }
}
