@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/montserrat-600.woff2") format("woff2");
}

.rti-site-header {
    --rti-orange: #f36f21;
    --rti-purple: #2e1b52;
    position: relative;
    z-index: 999;
    width: 100%;
    border-bottom: 1px solid #ececf1;
    background: #fff;
    box-shadow: 0 4px 18px rgba(28, 25, 45, 0.045);
    font-family: "Montserrat", "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
}

.rti-site-header.rti-is-sticky {
    position: sticky;
    top: 0;
}

.admin-bar .rti-site-header.rti-is-sticky {
    top: 32px;
}

.rti-header-inner {
    display: flex;
    align-items: center;
    width: calc(100% - 64px);
    min-height: 80px;
    margin: 0 auto;
    gap: 24px;
}

.rti-header-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--rti-purple);
    text-decoration: none;
}

.rti-header-logo img {
    display: block;
    width: 158px;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
}

.rti-brand-mark {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rti-orange), #ff9b42);
    color: #fff;
    transform: rotate(45deg);
}

.rti-brand-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rti-header-drawer {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: stretch;
    min-width: 0;
    gap: clamp(22px, 2.2vw, 38px);
}

.rti-main-nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.rti-nav-list {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: clamp(12px, 1.2vw, 24px);
    list-style: none;
}

.rti-nav-item {
    margin: 0;
    padding: 0;
}

.rti-nav-link,
.rti-phone-link {
    position: relative;
    color: #24183b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.rti-nav-link::after {
    position: absolute;
    right: 50%;
    bottom: -9px;
    left: 50%;
    height: 2px;
    border-radius: 10px;
    background: var(--rti-orange);
    content: '';
    transition: right 180ms ease, left 180ms ease;
}

.rti-nav-chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.rti-nav-link:hover::after,
.rti-nav-link:focus::after,
.rti-nav-link.is-active::after {
    right: 0;
    left: 0;
}

.rti-nav-link:hover,
.rti-nav-link:focus,
.rti-nav-link.is-active,
.rti-phone-link:hover {
    color: var(--rti-orange);
}

.rti-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 20px;
}

.rti-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rti-phone-icon {
    width: 17px;
    height: 17px;
    color: #666a73;
    flex: 0 0 auto;
}

.rti-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    gap: 10px;
    border-radius: 7px;
    background: var(--rti-orange);
    box-shadow: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* Exact visual preset used by the approved original homepage draft. */
.rti-site-header.rti-original-draft .rti-header-inner {
    min-height: 80px !important;
    max-width: 1440px !important;
}

.rti-site-header.rti-original-draft .rti-header-logo img {
    width: 158px !important;
    max-height: 42px !important;
}

.rti-header-cta:hover,
.rti-header-cta:focus {
    background: var(--rti-purple);
    box-shadow: 0 12px 28px rgba(46, 27, 82, 0.22);
    color: #fff;
    transform: translateY(-1px);
}

.rti-menu-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--rti-purple);
    cursor: pointer;
}

.rti-menu-toggle-label {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
}

.rti-menu-toggle-icon {
    display: flex;
    width: 28px;
    flex-direction: column;
    gap: 5px;
}

.rti-menu-toggle-icon i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 4px;
    background: currentColor;
    transition: opacity 180ms ease, transform 180ms ease;
}

.rti-site-header.rti-menu-open .rti-menu-toggle-icon i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.rti-site-header.rti-menu-open .rti-menu-toggle-icon i:nth-child(2) {
    opacity: 0;
}

.rti-site-header.rti-menu-open .rti-menu-toggle-icon i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1180px) {
    .rti-header-inner {
        width: calc(100% - 34px);
    }

    .rti-phone-link {
        display: none;
    }
}

@media (max-width: 1280px) {
    .rti-site-header.rti-original-draft .rti-header-inner {
        width: calc(100% - 44px);
    }

    .rti-nav-list {
        justify-content: space-between;
        gap: 18px;
    }

    .rti-header-drawer {
        gap: 20px;
    }
}

@media (max-width: 980px) {
    .rti-header-inner {
        min-height: 76px;
        flex-wrap: wrap;
    }

    .rti-menu-toggle {
        display: inline-flex;
    }

    .rti-header-drawer {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: grid;
        overflow: hidden;
        max-height: 0;
        padding: 0 24px;
        gap: 24px;
        border-bottom: 1px solid #eeeaf5;
        background: #fff;
        box-shadow: 0 20px 32px rgba(36, 24, 59, 0.12);
        opacity: 0;
        visibility: hidden;
        transition: max-height 280ms ease, opacity 180ms ease, padding 280ms ease, visibility 280ms ease;
    }

    .rti-site-header.rti-menu-open .rti-header-drawer {
        max-height: calc(100vh - 76px);
        padding-top: 22px;
        padding-bottom: 26px;
        opacity: 1;
        visibility: visible;
    }

    .rti-nav-list {
        display: grid;
        width: auto;
        gap: 0;
    }

    .rti-nav-link {
        display: block;
        padding: 13px 0;
        border-bottom: 1px solid #f0edf4;
        font-size: 16px;
    }

    .rti-nav-link::after {
        display: none;
    }

    .rti-header-actions {
        display: grid;
    }

    .rti-phone-link {
        display: inline-flex;
        justify-content: center;
    }

    .rti-header-cta {
        width: 100%;
    }
}

@media (max-width: 782px) {
    .admin-bar .rti-site-header.rti-is-sticky {
        top: 46px;
    }
}

@media (max-width: 480px) {
    .rti-header-inner {
        width: calc(100% - 28px);
    }

    .rti-header-logo img {
        max-width: 138px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rti-site-header *,
    .rti-site-header *::before,
    .rti-site-header *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
