/* =============================================================================
   SD CHROME — production header/footer/hero (Finalist direction, Phase 3).
   Always-on when SD_NATIVE_CHROME; replaces the JetThemeCore header/footer
   (suppressed at render). Includes drawer, cart count, skip link, a11y states.
   ============================================================================= */
/* =============================================================================
   SKIN: FINALIST — the composed direction (2026-08-10 review outcome candidate):
   DECK's glass chrome, cinematic hero, glass section shells and reserved-gradient
   discipline + SIGNAL's display-type scale, hero copy attitude, diagonal hero cut
   and CTA confidence + SHOWROOM's mobile nav row. Gradients & motion remain
   raffle-exclusive (the RAFFLES pill is the sole chrome gradient — it advertises
   the raffles). Raffle surfaces untouched.
   ============================================================================= */
/* ---------- kill the old chrome + old hero (front page) ---------- */
#jet-theme-core-header,
.jet-theme-core-location--header-location,
.jet-theme-core-location--footer-location { display: none !important; }
body.page-id-39225 .elementor-element-1149f936,
body.page-id-39225 .elementor-element-49e42885 { display: none !important; }

body { background: #05070d !important; }

/* ---------- floating glass header ---------- */
.sdk-bar {
	position: sticky;
	top: 14px;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1240px;
	margin: 14px auto 0;
	padding: 14px 26px;
	border-radius: 16px;
	background: rgba(10, 15, 28, .72);
	border: 1px solid rgba(255, 255, 255, .09);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 14px 44px rgba(0, 0, 0, .5);
	font-family: 'DM Sans', sans-serif;
}
.sdk-logo img { height: 74px; width: auto; display: block; }
.sdk-nav { display: flex; align-items: center; gap: 30px; }
.sdk-nav a {
	color: #dbe3f0;
	text-decoration: none;
	font-size: .92rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: color .2s ease;
}
.sdk-nav a:hover { color: var(--ccr-blue); }
.sdk-pill {
	text-decoration: none;
	font-size: .92rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	transition: filter .2s ease;
}
.sdk-pill,
.sdk-nav a.sdk-nav__pill {
	background: linear-gradient(90deg, var(--ccr-accent), var(--ccr-accent-2));
	color: #fff;
	padding: 9px 22px;
	border-radius: 99px;
	font-weight: 800;
	box-shadow: var(--ccr-glow);
}
.sdk-pill:hover { color: #fff; filter: brightness(1.12); }
.sdk-tools { display: flex; align-items: center; gap: 18px; }
.sdk-ico { color: #dbe3f0; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; transition: color .2s ease; }
.sdk-ico svg { width: 27px; height: 27px; }
.sdk-ico:hover { color: var(--ccr-blue); }
@media (max-width: 900px) {
	/* phone-width budget: logo 113 + pill ~85 + 3 icons + burger must fit 360px — keep paddings/gaps tight */
	.sdk-bar { top: 0; margin: 0; border-radius: 0 0 16px 16px; padding: 10px 14px; gap: 12px; }
	.sdk-logo img { height: 52px; }
	.sdk-tools { gap: 10px; }
	.sdk-ico svg { width: 24px; height: 24px; }
	.sdk-pill { margin-left: auto; padding: 7px 15px; font-size: .82rem; }
	.sdk-nav { display: none; }
	/* .sdk-tools qualifier outranks the base display:none, which sits later in the file */
	.sdk-tools .sdk-burger { display: flex; }
	.sdk-hero { margin-top: -78px; }
	.sdk-hero__inner { padding-top: 150px; }
}

/* ---------- cinematic hero (front page) ---------- */
.sdk-hero {
	position: relative;
	min-height: 86vh;
	margin-top: -82px; /* hero runs behind the floating bar */
	display: flex;
	align-items: center;
	background:
		linear-gradient(180deg, rgba(5, 7, 13, .55) 0%, rgba(5, 7, 13, .35) 45%, #05070d 100%),
		url("/wp-content/uploads/2025/11/weapons-rifle-weapon-custom-ar-15-hd-wallpaper-d9e0a8dd81ba6d5b06f7686fc031e6cd.jpg") center 30%/cover no-repeat;
	font-family: 'DM Sans', sans-serif;
}
.sdk-hero__inner { max-width: 1240px; margin: 0 auto; padding: 140px 24px 90px; }
.sdk-hero__kicker {
	color: var(--ccr-blue);
	font-family: 'DM Mono', monospace;
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	margin: 0 0 18px;
	text-shadow: 0 0 18px rgba(56, 174, 232, .5);
}
.sdk-hero__title {
	font-size: clamp(3.4rem, 10vw, 7rem);
	line-height: .88;
	letter-spacing: -.015em;
	font-weight: 900;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 22px;
}
.sdk-hero__title span {
	color: var(--ccr-accent);
	text-shadow: 0 0 38px rgba(210, 64, 52, .55);
}
.sdk-hero__sub { max-width: 560px; color: rgba(242, 245, 250, .82); font-size: 1.08rem; line-height: 1.65; margin: 0 0 34px; }
.sdk-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.sdk-btn {
	display: inline-block;
	padding: 15px 34px;
	border-radius: 10px;
	font-weight: 800;
	font-size: .92rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all .22s ease;
}
.sdk-btn--primary { background: var(--ccr-accent); color: #fff; box-shadow: 0 10px 34px rgba(210, 64, 52, .4); }
.sdk-btn--primary:hover { background: var(--ccr-blue); color: #fff; box-shadow: 0 16px 44px rgba(56, 174, 232, .5); transform: translateY(-3px); }
.sdk-btn--ghost { border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.sdk-btn--ghost:hover { border-color: var(--ccr-blue); color: var(--ccr-blue); }
.sdk-btn--raffle {
	background: linear-gradient(90deg, var(--ccr-accent), var(--ccr-accent-2));
	color: #fff;
	box-shadow: var(--ccr-glow);
}
.sdk-btn--raffle:hover { color: #fff; filter: brightness(1.14); transform: translateY(-3px); box-shadow: 0 16px 44px rgba(210, 64, 52, .5); }
.sdk-hero__fade { position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, transparent, rgba(5, 7, 13, .8)); }
.sdk-hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); margin-bottom: -8px; }

/* ---------- mock footer ---------- */
.sdk-foot {
	margin-top: 80px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: linear-gradient(180deg, #05070d, #0a1120);
	padding: 56px 24px 28px;
	font-family: 'DM Sans', sans-serif;
}
.sdk-foot__cols { max-width: 1240px; margin: 0 auto 34px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.sdk-foot__brand img { height: 96px; width: auto; margin-bottom: 14px; }
.sdk-foot__brand p { color: var(--ccr-text-dim); font-size: .88rem; line-height: 1.6; max-width: 280px; }
.sdk-foot__nap {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-style: normal;
	font-family: 'DM Mono', monospace;
	font-size: .78rem;
	letter-spacing: .02em;
	color: var(--ccr-text-dim);
}
.sdk-foot__nap a { color: #dbe3f0; text-decoration: none; transition: color .2s ease; }
.sdk-foot__nap a:hover { color: var(--ccr-blue); }
.sdk-foot__nap-note { color: var(--ccr-text-dim); }
.sdk-foot__nav { display: flex; flex-direction: column; gap: 9px; }
.sdk-foot__nav h4 { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 6px; }
.sdk-foot__nav a { color: var(--ccr-text-dim); text-decoration: none; font-size: .88rem; transition: color .2s ease; }
.sdk-foot__nav a:hover { color: var(--ccr-blue); }
.sdk-foot__legal { max-width: 1240px; margin: 0 auto; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); color: rgba(154, 167, 189, .6); font-size: .78rem; }
@media (max-width: 800px) { .sdk-foot__cols { grid-template-columns: 1fr 1fr; } }



/* ---------- skip link ---------- */
.sdk-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--ccr-accent); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 700; }
.sdk-skip:focus { left: 0; }

/* ---------- cart count badge (live via WC fragments) ---------- */
.sdk-ico--cart { position: relative; }
.sdk-count {
	position: absolute;
	top: -7px;
	right: -10px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 99px;
	background: var(--ccr-accent);
	color: #fff;
	font-size: .64rem;
	font-weight: 800;
	line-height: 17px;
	text-align: center;
	font-family: 'DM Mono', monospace;
}

/* ---------- burger + drawer (CSS-first; tiny JS adds aria/scroll-lock) ---------- */
.sdk-drawer-toggle { position: absolute; opacity: 0; pointer-events: none; }
.sdk-burger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 8px; cursor: pointer; border-radius: 8px; }
.sdk-burger span:not(.screen-reader-text) { display: block; height: 2px; width: 100%; background: #e6ebf4; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.sdk-burger .screen-reader-text { position: absolute; left: -9999px; }
.sdk-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(320px, 84vw);
	z-index: 1001;
	background: rgba(10, 15, 28, .97);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-left: 1px solid rgba(255, 255, 255, .09);
	padding: 76px 26px 26px;
	transform: translateX(105%);
	transition: transform .28s ease;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sdk-drawer-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.sdk-drawer-toggle:checked ~ .sdk-drawer { transform: translateX(0); }
.sdk-drawer-toggle:checked ~ .sdk-drawer-scrim { opacity: 1; pointer-events: auto; }
.sdk-drawer-toggle:checked ~ .sdk-bar .sdk-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sdk-drawer-toggle:checked ~ .sdk-bar .sdk-burger span:nth-child(2) { opacity: 0; }
.sdk-drawer-toggle:checked ~ .sdk-bar .sdk-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sdk-drawer__pill { align-self: flex-start; margin-bottom: 14px; }
.sdk-drawer__nav { display: flex; flex-direction: column; }
.sdk-drawer__nav a { color: #e6ebf4; text-decoration: none; font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 13px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sdk-drawer__nav a:hover { color: var(--ccr-blue); }
.sdk-drawer__meta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.sdk-drawer__meta a { color: var(--ccr-text-dim); text-decoration: none; font-size: .85rem; }
.sdk-drawer__meta a:hover { color: var(--ccr-blue); }

/* ---------- focus visibility on chrome controls ---------- */
.sdk-bar a:focus-visible, .sdk-burger:focus-visible, .sdk-drawer a:focus-visible, .sdk-foot a:focus-visible, .sdk-btn:focus-visible {
	outline: 3px solid var(--ccr-blue);
	outline-offset: 2px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.sdk-drawer, .sdk-drawer-scrim, .sdk-burger span, .sdk-btn, .sdk-nav a, .sdk-pill { transition: none !important; }
	.sdk-btn--primary:hover, .sdk-btn--raffle:hover { transform: none; }
}
