/* ==========================================================================
   Armed Athletic — Theme Stylesheet
   Raw brutalist aesthetic. Stark geometric blocks. Heavy typography.
   Aggressive angles. High contrast. Dramatic negative space.
   ========================================================================== */


/* --------------------------------------------------------------------------
   0. RESET & BASE
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	overflow-x: hidden;
	background-color: #0A0A0A;
	color: #F5F5F0;
}

::selection {
	background-color: #C8102E;
	color: #FFFFFF;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}


/* --------------------------------------------------------------------------
   1. TYPOGRAPHY — Brutalist hierarchy
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
	text-transform: uppercase;
	line-height: 0.9;
	margin-top: 0;
}

p {
	font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


/* --------------------------------------------------------------------------
   2. HEADER
   -------------------------------------------------------------------------- */

header.wp-block-group {
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background-color: rgba(10, 10, 10, 0.92) !important;
	transition: background-color 0.3s ease;
}

.aa-logo img {
	transition: opacity 0.3s ease;
}

.aa-logo img:hover {
	opacity: 0.8;
}

/* Navigation links */
.wp-block-navigation a {
	position: relative;
	transition: color 0.3s ease;
}

.wp-block-navigation a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #C8102E;
	transition: width 0.3s ease;
}

.wp-block-navigation a:hover::after,
.wp-block-navigation a:focus::after {
	width: 100%;
}

.wp-block-navigation a:hover {
	color: #C8102E !important;
}


/* --------------------------------------------------------------------------
   3. HERO SECTION — Dramatic, full-viewport
   -------------------------------------------------------------------------- */

.aa-hero {
	position: relative;
	display: flex;
	align-items: center;
}

/* Hero background image with overlay */
.aa-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('https://armedathletic.com/wp-content/uploads/2026/03/hero-runners.jpg');
	background-size: cover;
	background-position: center;
	opacity: 0.45;
	z-index: 0;
}

.aa-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.4) 50%, rgba(200,16,46,0.12) 100%);
	z-index: 0;
}

.aa-hero-inner {
	position: relative;
	z-index: 2;
	padding-top: 2rem !important;
}

/* Animated accent line */
.aa-hero-inner::before {
	content: '';
	position: absolute;
	top: 20%;
	right: 5%;
	width: 3px;
	height: 40%;
	background: linear-gradient(180deg, transparent, #C8102E, transparent);
	animation: aa-pulse 3s ease-in-out infinite;
}

@keyframes aa-pulse {
	0%, 100% { opacity: 0.3; }
	50% { opacity: 1; }
}


/* --------------------------------------------------------------------------
   4. DISCIPLINE BAR — Sector identification strip
   -------------------------------------------------------------------------- */

.aa-discipline-bar {
	overflow: hidden;
}

.aa-discipline-bar .wp-block-heading {
	transition: color 0.3s ease;
	cursor: default;
}

.aa-discipline-bar .wp-block-heading:hover {
	color: #C8102E !important;
}


/* --------------------------------------------------------------------------
   5. COLLECTION CARDS — Brutalist angled cards
   -------------------------------------------------------------------------- */

.aa-collection-card > .wp-block-group {
	position: relative;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            border-color 0.3s ease;
	overflow: hidden;
}

.aa-collection-card > .wp-block-group::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #C8102E;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.aa-collection-card > .wp-block-group:hover {
	transform: translateY(-8px);
}

.aa-collection-card > .wp-block-group:hover::after {
	transform: scaleX(1);
}

/* Number styling */
.aa-collection-card > .wp-block-group > p:first-child {
	transition: color 0.3s ease;
}

.aa-collection-card > .wp-block-group:hover > p:first-child {
	color: #C8102E !important;
}


/* --------------------------------------------------------------------------
   6. VALUES SECTION — Three-column with accent borders
   -------------------------------------------------------------------------- */

.aa-values {
	position: relative;
	overflow: hidden;
}

.aa-values .wp-block-column {
	transition: transform 0.3s ease;
}

.aa-values .wp-block-column:hover {
	transform: translateY(-4px);
}


/* --------------------------------------------------------------------------
   7. COLLECTION CARD IMAGES — Grayscale brutalist treatment
   -------------------------------------------------------------------------- */

.aa-collection-img {
	width: 100%;
	height: 220px;
	overflow: hidden;
	filter: grayscale(60%) contrast(1.2);
	transition: filter 0.4s ease, transform 0.4s ease;
	display: block;
}

.aa-collection-img img {
	width: 100% !important;
	height: 220px !important;
	object-fit: cover !important;
	aspect-ratio: unset !important;
	display: block;
}

/* Handle WP cover block fallback inside collection cards */
.aa-collection-card .wp-block-cover {
	min-height: 220px !important;
	height: 220px;
	overflow: hidden;
	filter: grayscale(60%) contrast(1.2);
	transition: filter 0.4s ease, transform 0.4s ease;
}

.aa-collection-card .wp-block-cover img {
	width: 100% !important;
	height: 220px !important;
	object-fit: cover !important;
	aspect-ratio: unset !important;
}

.aa-collection-card:hover .aa-collection-img,
.aa-collection-card:hover .wp-block-cover {
	filter: grayscale(0%) contrast(1.1);
	transform: scale(1.03);
}

.aa-img-overflow {
	overflow: hidden;
}

/* Lifestyle / editorial images */
.aa-lifestyle-img {
	width: 100%;
	height: 400px;
	overflow: hidden;
	filter: grayscale(40%) contrast(1.1);
	display: block;
}

.aa-lifestyle-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Lifestyle banner — full-bleed image break */
.aa-lifestyle-banner {
	position: relative;
	height: 50vh;
	min-height: 400px;
	overflow: hidden;
}

.aa-lifestyle-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(50%) contrast(1.2);
}

.aa-lifestyle-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, #0A0A0A 0%, transparent 40%, transparent 60%, #0A0A0A 100%);
	z-index: 1;
}

.aa-lifestyle-banner-text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

/* Values section background texture */
.aa-values-bg {
	position: absolute;
	inset: 0;
	background-image: url('https://armedathletic.com/wp-content/uploads/2026/03/values-texture.jpg');
	background-size: cover;
	background-position: center;
	opacity: 0.06;
	z-index: 0;
}


/* --------------------------------------------------------------------------
   8. CTA BANNER — Aggressive footer CTA
   -------------------------------------------------------------------------- */

.aa-cta-banner {
	position: relative;
	overflow: hidden;
}

/* Diagonal slash overlay */
.aa-cta-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 200px;
	height: 200%;
	background: rgba(255, 255, 255, 0.03);
	transform: rotate(15deg);
	pointer-events: none;
}

.aa-cta-banner::after {
	content: '';
	position: absolute;
	top: -50%;
	right: 5%;
	width: 80px;
	height: 200%;
	background: rgba(255, 255, 255, 0.02);
	transform: rotate(15deg);
	pointer-events: none;
}

.aa-cta-button .wp-block-button__link {
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	position: relative;
	overflow: hidden;
}

.aa-cta-button .wp-block-button__link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: left 0.5s ease;
}

.aa-cta-button .wp-block-button__link:hover::before {
	left: 100%;
}

.aa-cta-button .wp-block-button__link:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 30px rgba(200, 16, 46, 0.3);
}


/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */

.aa-footer-links {
	list-style: none;
	padding-left: 0;
}

.aa-footer-links li {
	list-style: none;
}

.aa-footer-links a {
	color: #F5F5F0 !important;
	text-decoration: none;
	transition: color 0.3s ease;
	position: relative;
}

.aa-footer-links a:hover {
	color: #C8102E !important;
}

.aa-footer-logo img {
	opacity: 0.7;
	transition: opacity 0.3s ease;
}

.aa-footer-logo img:hover {
	opacity: 1;
}


/* --------------------------------------------------------------------------
   10. BUTTONS — Global button styles
   -------------------------------------------------------------------------- */

.wp-element-button,
.wp-block-button__link {
	border-radius: 0 !important;
	text-transform: uppercase;
	font-family: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
	letter-spacing: 0.15em;
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	cursor: pointer;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(200, 16, 46, 0.2);
}


/* --------------------------------------------------------------------------
   11. SCROLLBAR — Custom brutalist scrollbar
   -------------------------------------------------------------------------- */

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
	background: #333333;
	border: 1px solid #0A0A0A;
}

::-webkit-scrollbar-thumb:hover {
	background: #C8102E;
}


/* --------------------------------------------------------------------------
   12. RESPONSIVE — Mobile-first adjustments
   -------------------------------------------------------------------------- */

/* Tablets and below */
@media (max-width: 1024px) {
	.aa-discipline-bar .wp-block-group {
		justify-content: center !important;
		gap: 1rem;
	}
}

/* Mobile */
@media (max-width: 768px) {

	/* Stack columns vertically */
	.wp-block-columns {
		flex-direction: column !important;
	}

	.wp-block-column {
		flex-basis: 100% !important;
	}

	/* Reduce hero spacing */
	.aa-hero-inner {
		padding-top: 1.5rem !important;
		padding-bottom: 3rem !important;
	}

	/* Discipline bar: stack vertically */
	.aa-discipline-bar .wp-block-group {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.5rem !important;
	}

	/* Hide divider slashes on mobile */
	.aa-discipline-bar > .wp-block-group > p {
		display: none;
	}

	/* Collection cards: full width + tighter spacing */
	.aa-collection-card > .wp-block-group {
		margin-bottom: 1rem;
	}

	/* Collection & lifestyle image sizing on mobile */
	.aa-collection-img,
	.aa-collection-img img,
	.aa-collection-card .wp-block-cover,
	.aa-collection-card .wp-block-cover img {
		height: 180px !important;
	}
	.aa-collection-card .wp-block-cover {
		min-height: 180px !important;
	}

	.aa-lifestyle-img {
		height: 260px;
	}

	.aa-lifestyle-banner {
		height: 35vh;
		min-height: 280px;
	}

	/* CTA banner adjustments */
	.aa-cta-banner {
		padding-top: 4rem !important;
		padding-bottom: 4rem !important;
	}

	/* Footer: single column */
	footer .wp-block-columns {
		gap: 2rem !important;
	}

	/* Copyright bar stacking */
	footer .wp-block-group:last-child {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.5rem !important;
	}
}

/* Small mobile */
@media (max-width: 480px) {

	.aa-hero-inner {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	/* Even tighter hero text */
	.aa-hero h1 {
		font-size: clamp(3rem, 16vw, 6rem) !important;
	}
}


/* --------------------------------------------------------------------------
   13. ACCESSIBILITY — Focus states & reduced motion
   -------------------------------------------------------------------------- */

*:focus-visible {
	outline: 2px solid #C8102E;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	body {
		background-color: #000000;
		color: #FFFFFF;
	}

	.wp-element-button,
	.wp-block-button__link {
		border: 2px solid currentColor;
	}
}


/* --------------------------------------------------------------------------
   14. 404 PAGE — Matrix-themed error page
   -------------------------------------------------------------------------- */

.aa-404-wrapper {
	display: flex;
	min-height: 100vh;
	position: relative;
	background-color: #0A0A0A;
	font-family: 'Share Tech Mono', 'Courier New', monospace;
}

/* Scanline overlay */
.aa-404-wrapper::after {
	content: '';
	position: fixed;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.08) 0px,
		rgba(0, 0, 0, 0.08) 1px,
		transparent 1px,
		transparent 3px
	);
	pointer-events: none;
	z-index: 10;
}

/* Rain panel */
.aa-404-rain {
	position: relative;
	width: 55%;
	min-height: 100vh;
	overflow: hidden;
}

.aa-404-rain canvas {
	display: block;
	width: 100%;
	height: 100%;
}

/* Hero text overlay on rain */
.aa-404-hero-text {
	position: absolute;
	top: 5%;
	left: 5%;
	z-index: 2;
	pointer-events: none;
}

.aa-404-subtitle {
	font-family: 'Share Tech Mono', monospace;
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #00FF41;
	margin-bottom: 1rem;
	opacity: 0.9;
}

.aa-404-title {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: clamp(3.5rem, 8vw, 7rem);
	line-height: 0.95;
	color: #00FF41;
	text-shadow: 0 0 20px rgba(0, 255, 65, 0.4), 0 0 60px rgba(0, 255, 65, 0.15);
	text-transform: none;
}

/* Content panel */
.aa-404-content {
	width: 45%;
	padding: 6rem 4rem 4rem 4rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.aa-404-content h2 {
	font-family: 'Bebas Neue', Impact, sans-serif;
	font-size: 1.6rem;
	letter-spacing: 0.05em;
	color: #00FF41;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.aa-404-content p {
	font-family: 'Share Tech Mono', monospace;
	font-size: 0.9rem;
	line-height: 1.8;
	color: #7dcea0;
	margin-bottom: 1.2rem;
}

.aa-404-content p.aa-404-highlight {
	color: #00FF41;
}

.aa-404-content a {
	color: #00FF41;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 700;
	transition: color 0.3s ease, text-shadow 0.3s ease;
}

.aa-404-content a:hover {
	color: #FFFFFF;
	text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

/* 404 Responsive — tablet */
@media (max-width: 900px) {
	.aa-404-wrapper {
		flex-direction: column;
	}

	.aa-404-rain {
		width: 100%;
		min-height: 45vh;
		height: 45vh;
	}

	.aa-404-content {
		width: 100%;
		padding: 2.5rem 2rem 3rem;
	}

	.aa-404-title {
		font-size: clamp(2.8rem, 12vw, 5rem);
	}

	.aa-404-hero-text {
		top: 8%;
		left: 6%;
	}
}

/* 404 Responsive — small mobile */
@media (max-width: 480px) {
	.aa-404-rain {
		min-height: 38vh;
		height: 38vh;
	}

	.aa-404-content {
		padding: 2rem 1.5rem;
	}

	.aa-404-content h2 {
		font-size: 1.3rem;
	}

	.aa-404-content p {
		font-size: 0.82rem;
	}

	.aa-404-title {
		font-size: clamp(2.2rem, 14vw, 3.5rem);
	}
}
