/* ============================================================
   RK Motors — Custom CSS
   Handles visual details that theme.json cannot express.
   ============================================================ */

/* ------------------------------------------------------------------
   Hero Slider
   ------------------------------------------------------------------ */
.rkm-hero-slider {
	position: relative;
	overflow: hidden;
	min-height: 85vh;
}

.rkm-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
	z-index: 0;
}

.rkm-hero-slide.rkm-slide-active {
	opacity: 1;
	z-index: 1;
	position: relative;
}

.rkm-hero-slide .wp-block-cover__inner-container {
	display: flex;
	align-items: flex-end;
}

.rkm-hero-dots {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.75rem;
	z-index: 10;
}

.rkm-hero-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.3s;
}

.rkm-hero-dot.active {
	background: #fff;
}

/* ------------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------------ */
.rkm-site-header {
	background: #000;
	position: sticky;
	top: 0;
	z-index: 100;
}

.rkm-site-header a {
	color: #fff;
	text-decoration: none;
}

.rkm-site-header .wp-block-navigation__submenu-container {
	background: #111;
	border: none;
	padding: 0.5rem 0;
	min-width: 220px;
}

.rkm-site-header .wp-block-navigation__submenu-container a {
	padding: 0.5rem 1.25rem;
	font-size: 0.75rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 500;
}

.rkm-site-header .wp-block-navigation__submenu-container a:hover {
	color: #cc0000;
}

/* Mobile menu */
.rkm-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: #000;
}

/* ------------------------------------------------------------------
   Buttons — Outline Variant
   ------------------------------------------------------------------ */
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
}

.is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: #000;
}

/* White outline for dark backgrounds */
.rkm-btn-outline-white {
	display: inline-block;
	padding: 10px 24px;
	border: 1.5px solid #fff;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.rkm-btn-outline-white:hover {
	background: #fff;
	color: #000;
}

.rkm-btn-outline-white a {
	color: inherit;
	text-decoration: none;
}

/* ------------------------------------------------------------------
   Featured Vehicles Section
   ------------------------------------------------------------------ */
.rkm-featured-section {
	overflow: hidden;
}

.rkm-featured-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
}

.rkm-featured-arrow {
	width: 48px;
	height: 48px;
	border: 2px solid #000;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	transition: background 0.2s, color 0.2s;
}

.rkm-featured-arrow:hover {
	background: #000;
	color: #fff;
}

.rkm-featured-view-all {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	color: #000;
	padding: 14px 32px;
	border: 2px solid #000;
	transition: background 0.2s, color 0.2s;
}

.rkm-featured-view-all:hover {
	background: #000;
	color: #fff;
}

/* ------------------------------------------------------------------
   Category Grid
   ------------------------------------------------------------------ */
.rkm-category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

@media (max-width: 900px) {
	.rkm-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.rkm-category-item {
	position: relative;
	aspect-ratio: 3/4;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 2rem;
	text-decoration: none;
	color: #fff;
}

.rkm-category-item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
	z-index: 1;
}

.rkm-category-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.rkm-category-item:hover img {
	transform: scale(1.05);
}

.rkm-category-item span {
	position: relative;
	z-index: 2;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------
   Quality Section
   ------------------------------------------------------------------ */
.rkm-quality-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	min-height: 500px;
}

@media (max-width: 900px) {
	.rkm-quality-section {
		grid-template-columns: 1fr;
	}
}

.rkm-quality-section__image {
	overflow: hidden;
}

.rkm-quality-section__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rkm-quality-placeholder {
	width: 100%;
	height: 100%;
	min-height: 500px;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rkm-quality-section__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4rem;
}

/* ------------------------------------------------------------------
   Sell Your Classic - Placeholder
   ------------------------------------------------------------------ */
.rkm-sell-placeholder {
	width: 100%;
	min-height: 400px;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ------------------------------------------------------------------
   Inventory Page - Tabs
   ------------------------------------------------------------------ */
.rkm-inventory-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e5e5e5;
}

.rkm-inventory-tabs a {
	flex: 1;
	padding: 1.25rem 2rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	color: #666;
	text-align: center;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}

.rkm-inventory-tabs a:hover,
.rkm-inventory-tabs a.active {
	color: #000;
	border-bottom-color: #000;
}

/* ------------------------------------------------------------------
   Inventory Toolbar
   ------------------------------------------------------------------ */
.rkm-inventory-toolbar {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem 0;
	margin-bottom: 1.5rem;
}

.rkm-filter-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid #000;
	background: transparent;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.rkm-filter-btn:hover {
	background: #000;
	color: #fff;
}

.rkm-filter-btn svg {
	flex-shrink: 0;
}

.rkm-search-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
}

.rkm-search-input {
	flex: 1;
	padding: 0.75rem 1rem;
	border: none;
	font-size: 0.875rem;
	outline: none;
}

.rkm-search-btn {
	padding: 0.75rem 1rem;
	border: none;
	background: #000;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.rkm-clear-btn {
	padding: 0.75rem 1.5rem;
	border: 2px solid #000;
	background: transparent;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}

.rkm-clear-btn:hover {
	background: #000;
	color: #fff;
}

/* ------------------------------------------------------------------
   Footer (White Background Redesign)
   ------------------------------------------------------------------ */
.rkm-site-footer {
	background: #fff;
	color: #000;
}

.rkm-site-footer a {
	color: #666;
	text-decoration: none;
	transition: color 0.2s;
}

.rkm-site-footer a:hover {
	color: #000;
}

.rkm-footer-social {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.rkm-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	color: #333;
	transition: border-color 0.2s, color 0.2s;
}

.rkm-social-icon:hover {
	border-color: #000;
	color: #000;
}

.rkm-footer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.rkm-footer-tag {
	display: inline-block;
	padding: 0.375rem 1rem;
	border: 1px solid #ddd;
	color: #666;
	font-size: 0.75rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
	margin: 0;
}

.rkm-footer-tag a {
	color: inherit;
	text-decoration: none;
}

.rkm-footer-tag:hover {
	border-color: #000;
	color: #000;
}

/* ------------------------------------------------------------------
   Page Hero Banner
   ------------------------------------------------------------------ */
.rkm-page-hero {
	position: relative;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #0a0a0a;
	color: #fff;
}

/* ------------------------------------------------------------------
   Sticky Vehicle Detail Bar
   ------------------------------------------------------------------ */
.rkm-vehicle-sticky-bar {
	position: fixed;
	top: -80px;
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
	padding: 0.75rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 99;
	gap: 1rem;
	transition: top 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rkm-vehicle-sticky-bar.is-visible {
	top: 0;
}

.rkm-vehicle-sticky-bar__left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.rkm-vehicle-sticky-bar__thumb {
	width: 60px;
	height: 45px;
	object-fit: cover;
}

.rkm-vehicle-sticky-bar__title {
	font-size: 0.875rem;
	font-weight: 600;
}

.rkm-vehicle-sticky-bar__price {
	font-size: 0.875rem;
	color: #666;
}

.rkm-vehicle-sticky-bar__right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.rkm-vehicle-sticky-bar__phone {
	font-size: 0.875rem;
	font-weight: 600;
	color: #000;
}

.rkm-btn-request {
	display: inline-block;
	padding: 10px 24px;
	background: #000;
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s;
}

.rkm-btn-request:hover {
	background: #333;
}

/* ------------------------------------------------------------------
   Contact Info Grid
   ------------------------------------------------------------------ */
.rkm-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.rkm-contact-card {
	text-align: center;
	padding: 2rem;
	border: 1px solid #e5e5e5;
}

.rkm-contact-card__icon {
	font-size: 2rem;
	margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------------ */
.rkm-text-center {
	text-align: center;
}

.rkm-uppercase {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
}

.rkm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
