/* Northvale static site — shared behaviour styles (navigation, mobile menu, reveal). */

/* Desktop navigation dropdown */
.nv-navhost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.nv-desk-nav .nv-drop { display: none; }
.nv-desk-nav .nav__div:hover > .nv-drop,
.nv-desk-nav .nav__div:focus-within > .nv-drop { display: block; }
.nv-desk-nav .nav__div:hover > .nav__a .nav__span { transform: rotate(180deg); }
.nv-desk-nav .nav__a:hover { opacity: 1 !important; color: #D4A24C !important; }
.nv-desk-nav .nav__a-2:hover { background: #F3F4F6 !important; }
@media (max-width: 1199px) { .nv-desk-nav { display: none !important; } }

/* Burger visible below desktop nav breakpoint */
@media (max-width: 1199px) { header button[aria-label="Menu"] { display: flex !important; } }
@media (min-width: 1200px) { header button[aria-label="Menu"] { display: none !important; } }

/* Mobile menu */
.nv-mnav { position: fixed; inset: 0; z-index: 9999; background: rgba(11, 19, 32, .97); color: #FFFFFF; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; overflow-y: auto; }
.nv-menu-open .nv-mnav { opacity: 1; visibility: visible; }
.nv-mnav__inner { max-width: 560px; margin: 0 auto; padding: 88px 28px 48px; display: flex; flex-direction: column; gap: 28px; }
.nv-mnav__close { position: absolute; right: 22px; top: 22px; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #FFFFFF; font-size: 20px; cursor: pointer; }
.nv-mnav__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #D4A24C; }
.nv-mnav__vers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: -14px; }
.nv-mnav__vers a { padding: 12px 8px; border: 1px solid rgba(255, 255, 255, .2); color: #FFFFFF; text-align: center; font-weight: 600; font-size: 14px; }
.nv-mnav__vers a.on { background: #D4A24C; border-color: #D4A24C; color: #0B1320; }
.nv-mnav__links { display: flex; flex-direction: column; }
.nv-mnav__links a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #FFFFFF; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.nv-mnav__links a.sub { padding-left: 18px; font-size: 17px; font-weight: 500; }
.nv-mnav__links a.on { color: #D4A24C; }
body.nv-menu-open { overflow: hidden; }

/* Scroll reveal */
.nv-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--nv-d, 0s), transform 1.1s cubic-bezier(.2, .8, .2, 1) var(--nv-d, 0s); }
.nv-reveal.nv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .nv-reveal { opacity: 1; transform: none; transition: none; } }

/* Layout safety */
html, body { overflow-x: clip; }
img { max-width: 100%; }

/* Generated burger (pages whose desktop header had none) */
.nv-burger { width: 44px; height: 44px; flex: none; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; }
.nv-burger span { display: block; width: 20px; height: 2px; background: currentColor; }
@media (max-width: 1199px) { .nv-burger { display: flex; } }
@media (min-width: 1200px) { .nv-burger { display: none !important; } }

/* Preloader: covers the page until all images and fonts have loaded */
.nv-preloader { position: fixed; inset: 0; z-index: 2147483600; background: #0B1320; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; transition: opacity .6s ease, visibility .6s ease; }
.nv-preloader__logo { width: 72px; height: 72px; animation: nvPulse 1.4s ease-in-out infinite; }
.nv-preloader__bar { width: 160px; height: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.nv-preloader__bar span { display: block; width: 40%; height: 100%; background: #D4A24C; animation: nvLoad 1.1s ease-in-out infinite; }
@keyframes nvPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.92); } }
@keyframes nvLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.nv-loaded .nv-preloader { opacity: 0; visibility: hidden; pointer-events: none; }

/* Selected Work progress bar: smooth fill */
#work-bar { transition: transform .15s linear; }

/* Home 03 hero: mouse-follow depth layers */
[data-depth] { transition: translate .6s cubic-bezier(.2,.8,.2,1); will-change: translate; }
img[data-depth] { scale: 1.06; }
@media (hover: none), (prefers-reduced-motion: reduce) { [data-depth] { translate: none !important; } }

/* Dark mode: header keeps its light-mode look */
html.nv-dark header { --paper:#FFFFFF; --card:#F6F7F9; --mist:#DEE3EA; --soft:#F3F5F8; --field:#F6F5F1; --ink:#0B1320; --inkrgb:11,19,32; --muted:#4D5866; --muted2:#3C4757; --body:#2C3746; --muted3:#687384; --line:#C6CDD6; --line2:#E8ECF1; color-scheme: light; }

/* Dark-mode toggle button */
header button[aria-label="Toggle dark mode"] { transition: background .3s, border-color .3s, color .3s !important; }
header button[aria-label="Toggle dark mode"] > span { background: currentColor !important; transition: transform .5s cubic-bezier(.2,.8,.2,1) !important; }
header button[aria-label="Toggle dark mode"]:hover { background: #1B3150 !important; border-color: #1B3150 !important; color: #FFFFFF !important; }
html.nv-dark header button[aria-label="Toggle dark mode"] { background: #0B1320 !important; border-color: #0B1320 !important; color: #D4A24C !important; }
html.nv-dark header button[aria-label="Toggle dark mode"]:hover { background: #1B3150 !important; border-color: #1B3150 !important; color: #F2CF7A !important; }
html.nv-dark header button[aria-label="Toggle dark mode"] > span { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") center/contain no-repeat !important; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E") center/contain no-repeat !important; transform: rotate(180deg) !important; }
