/* =====================================================
   GLOBAL HEADER — premium navbar
   Prefix: `nv-`
   Layers: announcement bar → main navbar → mobile drawer
   ===================================================== */

/* Lock body when mobile drawer open */
body.nv-drawer-open { overflow: hidden; }

/* ============== ANNOUNCEMENT BAR ============== */
.nv-anno {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
    padding: 5px 0;
    transition: max-height .25s ease, padding .25s ease, opacity .2s ease;
    overflow: hidden;
    max-height: 48px;
}
.nv-anno__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.nv-anno__left,
.nv-anno__right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nv-anno a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .15s;
}
.nv-anno a:hover { color: #fff; }
.nv-anno i.fab { font-size: 14px; }
.nv-anno__sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, .2);
}
/* Auto-collapse on scroll */
.nv-scrolled .nv-anno {
    max-height: 0;
    padding: 0;
    opacity: 0;
}

/* ============== MAIN NAVBAR ============== */
.nv-bar {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    transition: box-shadow .2s, background .2s, padding .2s;
    position: relative;
    z-index: 50;
}
.nv-scrolled .nv-bar {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px -16px rgba(15, 23, 42, .25);
}
.nv-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 2px 0;
    transition: padding .2s;
}
.nv-scrolled .nv-wrap { padding: 2px 0; }

/* Brand */
.nv-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 18px;
    flex: none;
}
.nv-brand img {
    height: 64px !important;
    width: auto;
    max-height: 64px;
    transition: height .2s;
    display: block;
}
.nv-scrolled .nv-brand img { height: 52px !important; max-height: 52px; }
.nv-brand:hover { color: #0ea5e9; }
.nv-brand__text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    letter-spacing: -.01em;
}

/* Desktop nav links */
.nv-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nv-links a {
    display: inline-block;
    padding: 8px 14px;
    color: #334155;
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    position: relative;
    transition: color .15s, background .15s;
}
.nv-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.nv-links a:hover {
    color: #0f172a;
    background: rgba(14, 165, 233, .06);
}
.nv-links a:hover::after,
.nv-links a.is-active::after {
    transform: scaleX(1);
}
.nv-links a.is-active { color: #0ea5e9; }

/* Right cluster */
.nv-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nv-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, .08);
    border: 1px solid rgba(14, 165, 233, .15);
    transition: background .15s, border-color .15s, color .15s;
}
.nv-phone i { color: #0ea5e9; }
.nv-phone:hover {
    background: rgba(14, 165, 233, .15);
    border-color: rgba(14, 165, 233, .35);
    color: #0f172a;
}
.nv-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 26px -10px rgba(14, 165, 233, .65);
    transition: transform .15s, box-shadow .15s, color .15s;
}
.nv-cta:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(14, 165, 233, .85);
}

/* Hamburger (mobile) — small & elegant */
.nv-burger {
    display: none;
    width: 28px;
    height: 26px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    place-items: center;
    transition: background .15s;
}
.nv-burger:hover { background: rgba(15, 23, 42, .05); }
.nv-burger span {
    display: block;
    width: 22px;
    height: 1px;
    background: #334155;
    margin: 1px auto;
    border-radius: 1px;
    transition: transform .25s, opacity .15s;
}

/* ============== MOBILE DRAWER ============== */
.nv-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 998;
}
.nv-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: #fff;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px -10px rgba(15, 23, 42, .25);
}
.nv-drawer.is-open { transform: translateX(0); }
.nv-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.nv-drawer__head {
    padding: 18px 22px;
    border-bottom: 1px solid #eef1f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nv-drawer__title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
    margin: 0;
}
.nv-drawer__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 0;
    color: #475569;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, transform .15s;
}
.nv-drawer__close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}
.nv-drawer__nav {
    list-style: none;
    padding: 14px 14px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.nv-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.nv-drawer__nav a:hover,
.nv-drawer__nav a.is-active {
    background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(99, 102, 241, .08));
    color: #0ea5e9;
}
.nv-drawer__nav i {
    width: 22px;
    color: #0ea5e9;
    text-align: center;
}
.nv-drawer__foot {
    padding: 18px 22px;
    border-top: 1px solid #eef1f7;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nv-drawer__foot .nv-cta {
    width: 100%;
    justify-content: center;
}
.nv-drawer__social {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.nv-drawer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    color: #475569;
    transition: background .15s, color .15s, transform .15s;
}
.nv-drawer__social a:hover {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    transform: translateY(-2px);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 991px) {
    .nv-links,
    .nv-phone { display: none; }
    .nv-burger { display: grid; }
    .nv-cta { padding: 9px 16px; font-size: 13px; }
    .nv-anno__left a:nth-child(n+2),
    .nv-anno__sep { display: none; } /* keep first contact only */
}
@media (max-width: 600px) {
    .nv-anno { font-size: 11.5px; padding: 4px 0; }
    .nv-cta span { display: none; } /* icon-only CTA on small phones */
    .nv-cta { padding: 7px 10px; font-size: 12.5px; }
    .nv-brand__text { display: none; }
    .nv-wrap { padding: 2px 0; gap: 12px; }
    .nv-brand img { height: 52px !important; max-height: 52px; }
}

/* Push body content below sticky elements (hero/page top spacing) */
.nv-spacer { display: none; } /* navbar isn't fixed in this design, no spacer needed */
