/* =========================================
   RYTEHAND HEADER
========================================= */

.rh-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--rh-border-light);

    backdrop-filter: blur(15px);

    transition: var(--rh-transition);
}

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

.rh-header-inner {
    width: min(
        calc(100% - 64px),
        var(--rh-container-wide)
    );

    min-height: var(--rh-header-height);

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;
}

/* LOGO */

.rh-logo {
    flex-shrink: 0;
}

.rh-logo img {
    width: 170px;
    height: auto;
    max-height: 76px;
    object-fit: contain;
}

/* NAVIGATION */

.rh-navigation {
    margin-left: auto;
}

.rh-nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.rh-nav-list > li {
    position: relative;
}

.rh-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 30px 0;

    color: var(--rh-heading);

    font-size: 13px;
    font-weight: 700;

    transition: var(--rh-transition);
}

.rh-nav-list > li > a:hover,
.rh-nav-list > li.current-menu-item > a,
.rh-nav-list > li.current-menu-ancestor > a {
    color: var(--rh-primary-dark);
}

/* DROPDOWN ARROW */

.rh-nav-list .menu-item-has-children > a::after {
    content: "";

    width: 7px;
    height: 7px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg) translateY(-2px);

    transition: var(--rh-transition);
}

.rh-nav-list .menu-item-has-children:hover > a::after {
    transform: rotate(225deg);
}

/* SERVICES DROPDOWN */

.rh-nav-list .sub-menu {
    position: absolute;

    top: 100%;
    left: -22px;

    width: 290px;

    padding: 15px;

    background: var(--rh-white);

    border: 1px solid var(--rh-border);
    border-radius: 12px;

    box-shadow: var(--rh-shadow-lg);

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px);

    transition: var(--rh-transition);

    z-index: 1001;
}

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

.rh-nav-list .sub-menu li {
    position: relative;
}

.rh-nav-list .sub-menu li a {
    display: block;

    padding: 12px 14px;

    border-radius: 6px;

    color: var(--rh-text);

    font-size: 13px;
    font-weight: 600;

    transition: var(--rh-transition);
}

.rh-nav-list .sub-menu li a:hover {
    color: var(--rh-blue);
    background: var(--rh-accent-soft);
    padding-left: 20px;
}

/* TWO COLUMN SERVICES MEGA MENU
   Add class "rh-mega-menu" to the Services
   menu item in Appearance > Menus.
*/

.rh-nav-list > li.rh-mega-menu > .sub-menu {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 530px;

    left: 50%;
    transform: translate(-50%, 12px);

    gap: 5px;
}

.rh-nav-list > li.rh-mega-menu:hover > .sub-menu,
.rh-nav-list > li.rh-mega-menu:focus-within > .sub-menu {
    transform: translate(-50%, 0);
}

/* HEADER ACTIONS */

.rh-header-actions {
    display: flex;
    align-items: center;
    gap: 23px;

    flex-shrink: 0;
}

.rh-login-link {
    color: var(--rh-heading);

    font-size: 13px;
    font-weight: 700;

    transition: var(--rh-transition);
}

.rh-login-link:hover {
    color: var(--rh-primary-dark);
}

.rh-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 45px;

    padding: 0 21px;

    border-radius: 6px;

    background: var(--rh-blue);
    color: var(--rh-white);

    font-size: 12px;
    font-weight: 700;

    transition: var(--rh-transition);
}

.rh-header-cta:hover {
    background: var(--rh-primary-dark);
    color: var(--rh-white);

    transform: translateY(-2px);
}

.rh-header-cta span {
    font-size: 17px;
}

/* MOBILE TOGGLE */

.rh-menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 1px solid var(--rh-border);
    border-radius: 7px;

    background: var(--rh-white);

    cursor: pointer;
}

.rh-menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--rh-blue);

    transition: var(--rh-transition);
}

.rh-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.rh-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.rh-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}