:root {
    --prt-orange: #E35619;
    --prt-bg: #FFF8ED;
    --prt-ink: #393636;
    --prt-ink-soft: #4c4949;
    --prt-card: #fffdf8;

    --pill-max: 1280px;
    --dur: 1s;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Fixed header always (no position switching = no jump) */
.prt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* NAV base element: we animate this with FLIP */
.prt-nav {
    width: 100%;
    background: #fff;
    box-shadow: 0 12px 18px -16px rgba(0, 0, 0, .55);
    padding: 20px;
    /* bottom-only vibe */
    border-radius: 0;
    transform-origin: top center;
    will-change: transform;
    font-family: "TT Fors", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    /* IMPORTANT: do NOT transition transform here (FLIP does it) */
}

/* Inner layout */
.prt-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
}

/* Brand */
.prt-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

/* Logo sizing is controlled ONLY here */
.prt-logo {
    height: 75px;
    /* top/full-width bar */
    width: auto;
    display: block;
    flex: 0 0 auto;
}

/* Text visible in top state */
.prt-brand-text {
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
}

/* Pill state: shrink logo + hide text */
.prt-header.is-scrolled .prt-logo {
    height: 50px;
    margin-left: 20px;
}

.prt-header.is-scrolled .prt-brand-text {
    display: none;
}

/* Make the toggler visible (Bootstrap uses a background image) */
.prt-toggler {
    border: none;
    box-shadow: none !important;
    padding: .45rem .6rem;
    border-radius: 16px;
}

/* Ensure the icon is dark (Bootstrap defaults can be faint) */
.prt-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(57,54,54,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {

    /* If mobile menu is open, force nav to be non-pill */
    .prt-header.menu-open .prt-nav {
        border-radius: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: 0 12px 18px -16px rgba(0, 0, 0, .55) !important;
        backdrop-filter: none !important;
    }

}

/* Links */
.prt-links {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.prt-link {
    text-decoration: none;
    color: var(--prt-ink);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
    font-size: .9rem;
    padding: .6rem .9rem;
    border-radius: 999px;
}

.prt-link:hover {
    background: rgba(0, 0, 0, .06);
    color: var(--prt-orange);
}

.navbar .prt-link.active {
    background: rgba(0, 0, 0, .06);
    color: #934521;
}

/* CTA */
.prt-cta {
    text-decoration: none;
    background: var(--prt-orange);
    color: #fff;
    border-radius: 999px;
    padding: .65rem 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid var(--prt-orange);
    text-transform: uppercase;
}

.prt-cta:hover {
    background: #cf4d15;
    border-color: #cf4d15;
    color: #fff;
}

/* SCROLLED STATE (the “pill”) */
.prt-header.is-scrolled .prt-nav {
    width: min(var(--pill-max), calc(100% - 32px));
    margin: 30px auto 0 auto;
    padding: 0;

    /* OPAQUE background — critical */
    background: var(--prt-bg);

    border-radius: 999px;
    border: 1px solid rgba(57, 54, 54, 0.12);

    /* Single, flat, bold shadow */
    box-shadow: 0 12px 24px rgba(57, 54, 54, 0.32);

    /* Remove blur entirely */
    backdrop-filter: none;
}


/* optional: tighter padding in pill */
.prt-header.is-scrolled .prt-inner {
    padding: 12px 16px;
}

/* Toggler layout */
.prt-toggler {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Menu text */
.prt-toggler-text {
    font-family: "TT Fors", system-ui, sans-serif;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--prt-ink);
}

/* Hide text on desktop */
@media (min-width: 992px) {
    .prt-toggler-text {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .prt-cta {
        margin-top: 12px;
    }
}
