/* ==========================================================================
   BlackShield header — classic polished-silver bar.
   Same layout and markup as the original; loaded last on every page.
   ========================================================================== */

body nav,
body.p-home nav {
  padding-top: 16px; padding-bottom: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(253,253,254,0.94) 0%, rgba(240,242,244,0.94) 100%);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 0 #fff inset, 0 4px 14px rgba(5,5,5,0.06);
}

/* Logo — a touch larger */
body nav .logo,
body.p-home nav .logo { font-size: 21px; letter-spacing: 0.08em; gap: 11px; }
body nav .logo-mark { height: 36px; }
body nav .logo,
body nav .logo span,
body.p-home nav .logo,
body.p-home nav .logo span { color: #0b0c0d; }

/* Links — larger, classic uppercase */
body nav .nav-links,
body.p-home nav .nav-links { gap: clamp(18px, 2.4vw, 34px); }
body nav .nav-links a,
body.p-home nav .nav-links a {
  padding: 8px 2px;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #000;
}
body nav .nav-links a:hover,
body.p-home nav .nav-links a:hover { color: #050505; }
body nav .nav-links a.active,
body.p-home nav .nav-links a.active { color: #050505; box-shadow: inset 0 -2px 0 var(--gold); }

/* Call button — a little larger to match */
body nav .nav-cta { font-size: 14.5px; padding: 12px 22px; }

body nav .hamburger span,
body.p-home nav .hamburger span { background: #111214; }

@media (max-width: 560px) {
  body nav, body.p-home nav { padding-top: 12px; padding-bottom: 12px; }
  body nav .logo, body.p-home nav .logo { font-size: 18px; }
  body nav .logo-mark { height: 30px; }
}

/* Keep page tops clear of the bar */
@media (max-width: 560px) {
  body.p-home .hero { padding-top: 96px; }
}

/* ---------- Dropdown menu (js/megamenu.js) ---------- */
[id] { scroll-margin-top: 88px; }
body nav .nav-links a { position: relative; }
body nav .nav-links a::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; border-radius: 50%; background: #ff7a1a; transform: translate(-50%, 4px) scale(0); transition: transform .25s ease; }
body nav .nav-links a.is-hot::after { transform: translate(-50%, 4px) scale(1); }
body nav .nav-links a.is-hot { color: #000; }

.mega { position: fixed; left: 0; right: 0; top: 70px; z-index: 89; color: #000;
  background: #fbfbfc; border-bottom: 1px solid rgba(0,0,0,0.1); isolation: isolate; box-shadow: 0 30px 50px rgba(5,5,5,0.18);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear .32s; }
.mega[aria-hidden="false"] { clip-path: inset(0 0 -60px 0); visibility: visible; transition: clip-path .32s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.mega::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #ff7a1a, #ffb347 45%, rgba(255,179,71,0)); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1) .05s; }
.mega[aria-hidden="false"]::before { transform: scaleX(1); }
.mega-inner { width: min(1180px, 100% - 64px); margin: 0 auto; padding: 28px 0 32px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }
.mega-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #000; margin-bottom: 14px; }
.mega-h::before { content: ''; width: 18px; height: 2px; background: #ff7a1a; }
.mega-col ul { display: grid; gap: 2px; }
.mega-col li { opacity: 0; transform: translateX(-10px); transition: opacity .28s ease, transform .28s ease; }
.mega[aria-hidden="false"] .mega-col li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 80ms); }
.mega-main a { display: flex; align-items: baseline; gap: 12px; padding: 4px 0; color: #000; }
.mega-main .mm-n { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: #9a9ea4; width: 20px; transition: color .2s; }
.mega-main .mm-t { font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.15; letter-spacing: 0.01em; transition: transform .25s ease; }
.mega-main .mm-a { color: #ff7a1a; font-size: 18px; opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .25s; }
.mega-main a:hover .mm-t, .mega-main a:focus-visible .mm-t, .mega-main a.is-on .mm-t { transform: translateX(4px); }
.mega-main a:hover .mm-n, .mega-main a.is-on .mm-n { color: #ff7a1a; }
.mega-main a:hover .mm-a, .mega-main a.is-on .mm-a { opacity: 1; transform: none; }
.mega-side a { display: inline-block; padding: 4px 0; font-size: 13.5px; font-weight: 600; color: #000; border-bottom: 1px solid transparent; transition: border-color .2s; }
.mega-side a:hover, .mega-side a:focus-visible { border-color: #000; }
.mega-side .mega-call { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #000; color: #fff; border: 0; font-family: var(--font-head); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.mega-side .mega-call:hover { background: #ff7a1a; color: #160b02; }

/* live preview: photo changes with the hovered link */
.mega-preview { position: relative; display: block; height: 190px; border-radius: 14px; overflow: hidden; background: #111; color: #fff; text-decoration: none; box-shadow: 0 14px 30px rgba(5,5,5,0.22); }
.mega-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform 6s ease; }
.mega-preview img.is-out { opacity: 0; }
.mega[aria-hidden="false"] .mega-preview img { transform: scale(1.06); }
.mega-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,0) 30%, rgba(5,5,5,0.85) 100%); }
.mega-pv-text { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; }
.mega-pv-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #ff7a1a; color: #160b02; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.mega-pv-title { display: block; margin-top: 8px; font-family: var(--font-head); font-size: 17px; line-height: 1.15; text-transform: uppercase; }
.mega-pv-sub { display: block; margin-top: 4px; font-size: 13px; color: rgba(255,255,255,0.8); }
.mega-dim { position: fixed; inset: 0; z-index: 88; background: rgba(5,5,5,0.28); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; pointer-events: none; }
.mega-open .mega-dim { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
@media (max-width: 1040px) { .mega, .mega-dim { display: none; } }
@media (prefers-reduced-motion: reduce) { .mega, .mega::before, .mega-col li, .mega-dim, .mega-preview img { transition: none !important; } }

/* Apple-like sizing: small, clean text; photos kept */
.mega-inner { padding: 22px 0 26px; gap: 36px; }
.mega-h { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: #6e6e73; margin-bottom: 10px; }
.mega-h::before { width: 12px; }
.mega-main a { gap: 10px; padding: 3px 0; }
.mega-main .mm-n { font-family: var(--font-body); font-size: 10.5px; font-weight: 500; width: 16px; letter-spacing: 0; }
.mega-main .mm-t { font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-transform: none; line-height: 1.35; color: #1d1d1f; }
.mega-main .mm-a { font-size: 13px; }
.mega-side a { font-size: 12.5px; font-weight: 500; color: #1d1d1f; padding: 3px 0; }
.mega-side .mega-call { font-size: 11.5px; padding: 7px 14px; margin-top: 10px; }
.mega-preview { height: 170px; }
.mega-pv-title { font-size: 15px; }
.mega-pv-sub { font-size: 12px; }

/* ---------- Desktop "call" popup with QR code ---------- */
.callpop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(5,5,5,0.45); padding: 16px; }
.callpop[hidden] { display: none; }
.callpop-box { position: relative; width: min(360px, 100%); padding: 28px 26px 24px; border-radius: 18px; background: #fff; color: #1d1d1f; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.3); }
.callpop-box h2 { font-family: var(--font-body, 'Inter', sans-serif); text-transform: none; letter-spacing: -0.02em; font-size: 22px; font-weight: 700; color: #1d1d1f; }
.callpop-box p { margin-top: 6px; font-size: 14px; color: #5a5a5f; }
.callpop-qr { display: block; width: 180px; height: 180px; margin: 16px auto 10px; }
.callpop-num { display: block; font-size: 22px; font-weight: 700; letter-spacing: 0.01em; color: #1d1d1f; }
.callpop-acts { margin-top: 16px; display: grid; gap: 8px; }
.callpop-acts a { display: block; min-height: 44px; padding: 11px; border-radius: 999px; font-size: 14.5px; font-weight: 600; }
.callpop-acts .cp-main { background: #1d1d1f; color: #fff; }
.callpop-acts .cp-alt { background: #f1f1f3; color: #1d1d1f; }
.callpop-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: #f1f1f3; color: #1d1d1f; font-size: 20px; line-height: 1; }

/* ---------- Call popup: "wow" entrance ---------- */
.callpop.is-on { animation: cp-fade .25s ease both; }
@keyframes cp-fade { from { background: rgba(5,5,5,0); } }
.callpop.is-on .callpop-box { animation: cp-pop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cp-pop { 0% { opacity: 0; transform: translateY(30px) scale(.7); } 100% { opacity: 1; transform: none; } }

/* ringing phone */
.cp-ring { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; background: #ff7a1a; color: #160b02; }
.cp-ring svg { width: 26px; height: 26px; }
.callpop.is-on .cp-ring svg { animation: cp-shake 1.6s ease-in-out .5s infinite; }
@keyframes cp-shake { 0%, 40%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-16deg); } 10%, 20%, 30% { transform: rotate(16deg); } }
.cp-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ff7a1a; opacity: 0; }
.callpop.is-on .cp-ring i { animation: cp-wave 1.6s ease-out .5s infinite; }
.callpop.is-on .cp-ring i + i { animation-delay: 1.1s; }
@keyframes cp-wave { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }

/* QR prints itself, then a scanner beam sweeps */
.cp-qrwrap { position: relative; width: 196px; height: 196px; margin: 16px auto 10px; display: grid; place-items: center; }
.cp-qrwrap .callpop-qr { margin: 0; }
.callpop.is-on .cp-qrwrap .callpop-qr { animation: cp-print 1.1s steps(18, end) .35s both; }
@keyframes cp-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.cp-c { position: absolute; width: 26px; height: 26px; border: 3px solid #ff7a1a; opacity: 0; }
.cp-c1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.cp-c2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.cp-c3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.cp-c4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.callpop.is-on .cp-c { animation: cp-corner .5s cubic-bezier(.2,1.5,.4,1) 1.4s both, cp-breathe 2.4s ease-in-out 2s infinite; }
@keyframes cp-corner { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes cp-breathe { 0%, 100% { margin: 0; } 50% { margin: -4px; } }
.cp-beam { position: absolute; left: 8px; right: 8px; top: 8px; height: 3px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, #ff7a1a 20%, #ffd84d 50%, #ff7a1a 80%, transparent); box-shadow: 0 0 14px 3px rgba(255,122,26,0.55); }
.callpop.is-on .cp-beam { animation: cp-scan 2.2s ease-in-out 1.6s infinite; }
@keyframes cp-scan { 0% { opacity: 0; top: 8px; } 10% { opacity: 1; } 50% { top: calc(100% - 11px); } 90% { opacity: 1; } 100% { opacity: 0; top: 8px; } }
.callpop.is-on .callpop-num { animation: cp-up .5s ease 1.2s both; }
.callpop.is-on .callpop-acts { animation: cp-up .5s ease 1.4s both; }
@keyframes cp-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .callpop.is-on, .callpop.is-on *, .callpop.is-on .callpop-box { animation: none !important; }
  .cp-c { opacity: 1; } .cp-beam { display: none; }
}
