/* AP Saleroom — components: header, nav, mobile menu, footer, cards, pills, marquee. */

/* Header */
.ap-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	transition: background .35s var(--ap-ease-out), box-shadow .35s var(--ap-ease-out);
}
.ap-header.is-scrolled {
	background: color-mix(in srgb, var(--ap-navy-990) 88%, transparent);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 var(--ap-navy-700);
}
.ap-header__inner {
	max-width: 1240px;
	margin-inline: auto;
	padding: .75rem var(--ap-gutter);
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.ap-header__brand {
	display: flex;
	align-items: center;
	gap: .75rem;
	text-decoration: none;
	margin-right: auto;
}
.ap-logo { width: 48px; height: 48px; border-radius: 50%; }
.ap-header__name {
	font-family: var(--ap-heading);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: .02em;
}

.ap-nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.ap-nav__list a {
	display: block;
	padding: .5rem .9rem;
	text-decoration: none;
	font-size: .9375rem;
	font-weight: 500;
	border-radius: 999px;
	transition: background .25s var(--ap-ease-out);
}
.ap-nav__list a:hover { background: var(--ap-navy-800); color: var(--ap-cream); }
.ap-nav__list .sub-menu {
	position: absolute;
	min-width: 220px;
	background: var(--ap-navy-800);
	border: 1px solid var(--ap-navy-700);
	border-radius: var(--ap-radius);
	padding: .5rem;
	list-style: none;
	margin-top: .25rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .25s var(--ap-ease-out), transform .25s var(--ap-ease-out), visibility .25s;
	box-shadow: 0 18px 40px rgb(0 0 0 / .45);
}
.ap-nav__list li { position: relative; }
.ap-nav__list li:hover > .sub-menu,
.ap-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ap-nav__list .sub-menu a { border-radius: calc(var(--ap-radius) - 4px); }

@media (max-width: 900px) {
	.ap-nav, .ap-header__cta { display: none; }
}

/* Burger + mobile menu */
.ap-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	padding: .6rem;
	cursor: pointer;
}
.ap-burger span { width: 24px; height: 2px; background: var(--ap-cream); transition: transform .3s var(--ap-ease-out), opacity .3s; }
.ap-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ap-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ap-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) { .ap-burger { display: flex; } }

.ap-mobile {
	position: fixed;
	inset: 0;
	height: 100dvh;
	z-index: 40;
	background: var(--ap-navy-990);
	padding: 5.5rem var(--ap-gutter) max(2.5rem, env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}
.ap-mobile__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.ap-mobile__list > li > a {
	display: block;
	padding: .8rem 0;
	font-family: var(--ap-heading);
	font-size: 1.35rem;
	text-decoration: none;
	border-bottom: 1px solid var(--ap-navy-700);
}
.ap-mobile__list .sub-menu { list-style: none; padding: .25rem 0 .5rem 1rem; }
.ap-mobile__list .sub-menu a {
	display: block;
	padding: .55rem 0;
	color: var(--ap-mist);
	text-decoration: none;
	font-size: 1rem;
}
.ap-mobile__list .sub-menu a:active { color: var(--ap-cream); }
.ap-mobile > nav > .ap-btn { width: 100%; justify-content: center; margin-bottom: 1rem; }

/* Footer */
.ap-footer { background: var(--ap-navy-900); border-top: 1px solid var(--ap-navy-700); margin-top: var(--ap-section); }
.ap-front .ap-footer { margin-top: 0; }
.ap-footer__inner {
	max-width: 1240px;
	margin-inline: auto;
	padding: 4rem var(--ap-gutter);
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
}
@media (max-width: 800px) { .ap-footer__inner { grid-template-columns: 1fr; gap: 2rem; } }
.ap-footer__logo { width: 64px; height: 64px; margin-bottom: 1rem; }
.ap-footer__strap { font-family: var(--ap-heading); font-size: 1.125rem; }
.ap-footer__address, .ap-footer__contact { font-style: normal; color: var(--ap-mist); font-size: .9375rem; line-height: 1.8; }
.ap-footer__contact a { color: var(--ap-cream); text-decoration: none; }
.ap-footer__list { list-style: none; margin: 0; padding: 0; }
.ap-footer__list a { display: block; padding: .35rem 0; color: var(--ap-mist); text-decoration: none; font-size: .9375rem; }
.ap-footer__list a:hover { color: var(--ap-cream); }
.ap-footer__strip { border-top: 1px solid var(--ap-navy-700); }
.ap-footer__strip p {
	max-width: 1240px;
	margin-inline: auto;
	padding: 1.25rem var(--ap-gutter);
	font-size: .8125rem;
	color: var(--ap-mist);
	margin-block: 0;
}

/* Cards */
.ap-card {
	background: var(--ap-navy-800);
	border: 1px solid var(--ap-navy-700);
	border-radius: var(--ap-radius);
	overflow: hidden;
}
.ap-card__media { aspect-ratio: 1; background: var(--ap-paper); overflow: hidden; }
.ap-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ap-ease-out); }
.ap-card:hover .ap-card__media img { transform: scale(1.06); }
.ap-card__body { padding: 1rem 1.25rem 1.25rem; }
.ap-card__title { font-family: var(--ap-heading); font-size: 1.0625rem; margin: 0 0 .25rem; }
.ap-card__price { font-family: var(--ap-display); font-size: 1.375rem; color: var(--ap-brass); }
.ap-card__meta { font-size: .8125rem; color: var(--ap-mist); }

/* Pills */
.ap-pill {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: var(--ap-union-red);
	color: var(--ap-paper);
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .06em;
	padding: .45rem 1.1rem;
	border-radius: 999px;
}
.ap-pill--ghost { background: color-mix(in srgb, var(--ap-paper) 12%, transparent); backdrop-filter: blur(6px); }

/* Marquee */
.ap-marquee { overflow: hidden; padding-block: 1.1rem; border-block: 1px solid var(--ap-navy-700); }
.ap-marquee__track { display: flex; width: max-content; gap: 3rem; animation: ap-marquee 28s linear infinite; }
.ap-marquee--reverse .ap-marquee__track { animation-direction: reverse; }
.ap-marquee:hover .ap-marquee__track { animation-play-state: paused; }
.ap-marquee__track span {
	font-family: var(--ap-heading);
	font-size: 1.25rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ap-mist);
	white-space: nowrap;
}
.ap-marquee__track span b { color: var(--ap-union-red); font-weight: 400; }
@keyframes ap-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ap-marquee__track { animation: none; } }

/* Stat */
.ap-stat { text-align: center; }
.ap-stat__num {
	font-family: var(--ap-display);
	font-size: clamp(2.5rem, 5.5vw, 4.5rem);
	color: var(--ap-brass);
	line-height: 1.05;
}
.ap-stat__label { color: var(--ap-mist); font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; }
