/*==========================================================
    REVLO — HEADER / NAVIGATION / MOBILE MENU
    Theme: Instrument Panel — pump-amber primary, red alert accent

    NOTE: The :root block below is the single source of truth for
    color/type tokens across the whole site. Load this file before
    any other stylesheet (hero.css, etc.) so those tokens are
    available everywhere.
==========================================================*/

:root{
    --ink:          #2b211b;
    --ink-soft:      rgba(26,21,18,.62);
    --ink-faint:     rgba(26,21,18,.08);
    --paper:        #FFFFFF;
    --paper-solid:  #FFFFFF;

    --primary:      #E87C12;
    --primary-dark: #C4650A;
    --primary-wash: rgba(232,124,18,.10);

    --secondary:    #F2A94E;

    --alert:        #FD2D2D;
    --alert-soft:   #ff5a5a;
    --alert-dark:   #D91C1C;
    --alert-wash:   rgba(253,45,45,.10);

    --success:      #1F9D6D;
    --success-wash: rgba(31,157,109,.12);

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'Space Grotesk', 'DM Sans', sans-serif;
    --font-mono:    'JetBrains Mono', 'DM Mono', monospace;

    --header-h: 76px;
    --ease: cubic-bezier(.4,0,.2,1);
}

/*=========================================
    ANNOUNCEMENT BAR
=========================================*/

.announcement-bar{
    background: linear-gradient(90deg, var(--alert) 0%, var(--alert-soft) 100%);
    color: var(--paper);
    font-family: var(--font-mono);
    position: relative;
    z-index: 1001;
}

.announcement-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .55rem 1.25rem;
    text-align: center;
}

.announcement-content{
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement-badge{
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .2rem .55rem;
    border-radius: 3px;
    line-height: 1;
    flex-shrink: 0;
}

.announcement-content p{
    margin: 0;
    font-size: .8rem;
    letter-spacing: .01em;
    color: var(--paper);
    font-weight: 600;
}

/*=========================================
    SITE HEADER
=========================================*/

.site-header{
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ink-faint);
    transition: background .35s var(--ease), box-shadow .35s var(--ease);
}

.site-header .container{
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/*=========================================
    BRAND
=========================================*/

.brand{
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo{
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--alert-soft) 0%, var(--alert) 50%, var(--alert-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transform: rotate(-6deg);
    box-shadow:
        inset 0 1.5px 1px rgba(255,255,255,.6),
        inset 0 -4px 6px rgba(0,0,0,.25),
        0 8px 16px rgba(253,45,45,.35),
        0 3px 6px rgba(0,0,0,.15);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.brand:hover .brand-logo{
    transform: rotate(0deg) scale(1.04);
    box-shadow:
        inset 0 1.5px 1px rgba(255,255,255,.6),
        inset 0 -4px 6px rgba(0,0,0,.25),
        0 10px 20px rgba(253,45,45,.42),
        0 4px 8px rgba(0,0,0,.18);
}

.brand-logo::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 48%);
}

.brand-logo span{
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--paper);
    line-height: 1;
    text-shadow:
        0 1px 0 rgba(255,255,255,.35),
        0 2px 4px rgba(0,0,0,.35);
}

.brand-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-content h2{
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: .01em;
}

/* subtitle removed from under the logo — kept in markup for reuse elsewhere,
   hidden here so the wordmark stays clean */
.brand-content span{
    display: none;
}

/*=========================================
    DESKTOP NAV LINKS
=========================================*/

.nav-links{
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li{
    position: relative;
}

.nav-links > li > a{
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem .9rem;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: 7px;
    transition: color .2s var(--ease), background .2s var(--ease);
    white-space: nowrap;
}

.nav-links > li > a i{
    font-size: .62rem;
    color: var(--ink-soft);
    transition: transform .25s var(--ease);
}

.nav-links > li:hover > a{
    color: var(--primary-dark);
    background: var(--primary-wash);
}

.nav-links > li.has-dropdown:hover > a i{
    transform: rotate(180deg);
}

/*=========================================
    DROPDOWN MENU
=========================================*/

.dropdown-menu{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: var(--paper-solid);
    border: 1px solid var(--ink-faint);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(26,21,18,.12);
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index: 10;
}

.has-dropdown:hover .dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a{
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .6rem .7rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    transition: background .18s var(--ease);
}

.dropdown-menu a:hover{
    background: var(--primary-wash);
}

.dropdown-menu a i{
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--secondary);
    border-radius: 8px;
    font-size: .85rem;
}

.dropdown-menu a div{
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.dropdown-menu a strong{
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
}

.dropdown-menu a small{
    font-family: var(--font-body);
    font-size: .74rem;
    color: var(--ink-soft);
}

/* simple links inside "Solutions" dropdown without icon wrapper */
.dropdown-menu a:not(:has(i)){
    padding: .6rem .7rem;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 500;
}

/*=========================================
    NAV ACTIONS (BUTTONS)
=========================================*/

.nav-actions{
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    padding: .68rem 1.35rem;
    border-radius: 9px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: .01em;
    transition: transform .2s var(--ease), background .2s var(--ease),
                box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.btn i{
    font-size: .75rem;
    transition: transform .2s var(--ease);
}

.btn-outline{
    background: var(--paper-solid);
    border-color: var(--ink-faint);
    color: var(--ink);
}

.btn-outline:hover{
    border-color: var(--ink);
    background: rgba(26,21,18,.03);
    transform: translateY(-1px);
}

.btn-primary{
    background: linear-gradient(135deg, var(--alert-soft) 0%, var(--alert) 100%);
    color: var(--paper);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 8px 20px rgba(253,45,45,.32),
        0 2px 6px rgba(217,28,28,.22);
}

.btn-primary:hover{
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        0 12px 28px rgba(253,45,45,.42),
        0 4px 10px rgba(217,28,28,.28);
    transform: translateY(-2px);
}

.btn-primary:hover i{
    transform: translateX(3px);
}

.btn:focus-visible{
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.btn:active{
    transform: translateY(0);
}

/*=========================================
    MOBILE TOGGLE
=========================================*/

.menu-toggle{
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

/*=========================================
    MOBILE OVERLAY
=========================================*/

.mobile-overlay{
    position: fixed;
    inset: 0;
    background: rgba(26,21,18,.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
    z-index: 1100;
}

.mobile-overlay.active{
    opacity: 1;
    visibility: visible;
}

/*=========================================
    MOBILE MENU (SLIDE-IN PANEL)
=========================================*/

.mobile-menu{
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(86vw, 360px);
    background: var(--paper-solid);
    box-shadow: -20px 0 50px rgba(26,21,18,.18);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    z-index: 1101;
    overflow-y: auto;
}

.mobile-menu.active{
    transform: translateX(0);
}

.close-menu{
    align-self: flex-end;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-faint);
    border: none;
    border-radius: 8px;
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
}

.mobile-brand{
    display: flex;
    align-items: center;
    gap: .7rem;
}

.mobile-brand h2{
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ink);
}

.mobile-brand span{
    display: none;
}

.mobile-links{
    display: flex;
    flex-direction: column;
    gap: .25rem;
    border-top: 1px solid var(--ink-faint);
    padding-top: 1.25rem;
}

.mobile-links a{
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: .85rem .25rem;
    border-bottom: 1px solid var(--ink-faint);
    transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.mobile-links a:hover{
    color: var(--primary-dark);
    padding-left: .5rem;
}

.mobile-actions{
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.mobile-actions .btn{
    width: 100%;
}

/*=========================================
    RESPONSIVE
=========================================*/

@media (max-width: 968px){

    .nav-links,
    .nav-actions{
        display: none;
    }

    .menu-toggle{
        display: flex;
    }

    .site-header .container{
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px){

    .announcement-content p{
        font-size: .72rem;
    }
}

/*=========================================
    REDUCED MOTION
=========================================*/

@media (prefers-reduced-motion: reduce){

    .site-header,
    .dropdown-menu,
    .mobile-menu,
    .mobile-overlay,
    .nav-links > li > a i,
    .btn,
    .mobile-links a,
    .brand-logo{
        transition: none !important;
    }
}

