/*
Theme Name: RK Test #2
Theme URI: https://dealeramplify.com
Description: Dealer Amplify Tier 1 theme for RK Test #2.
Version: 1.0.0
Text Domain: theme-rk-test-2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
*/

:root {
	--da-primary: #cc0000;
	--da-secondary: #050505;
	--da-font: Inter, system-ui, sans-serif;
	--da-nav-bg: #1a1a1a;
	--da-nav-text: #ffffff;
	--da-body-bg: #ffffff;
	--da-text: #333333;
	--da-text-light: #666666;
	--da-border: #e5e5e5;
	--da-max-width: 1400px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: var(--da-font);
	color: var(--da-text);
	background: var(--da-body-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--da-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.container {
	max-width: var(--da-max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Header */
.site-header {
	background: var(--da-nav-bg);
	color: var(--da-nav-text);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.5rem;
	max-width: var(--da-max-width);
	margin: 0 auto;
}

.site-header__logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--da-nav-text);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.site-header__logo img {
	max-height: 50px;
	width: auto;
}

.site-nav {
	display: flex;
	list-style: none;
	gap: 2rem;
	align-items: center;
}

.site-nav a {
	color: var(--da-nav-text);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
	color: var(--da-primary);
	text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--da-nav-text);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.5rem;
}

@media (max-width: 768px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--da-nav-bg);
		padding: 1rem 1.5rem;
		gap: 1rem;
	}
	.site-nav.is-open { display: flex; }
}

/* Hero Section */
.hero {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	background-size: cover;
	background-position: center;
	background-color: var(--da-nav-bg);
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
}

.hero__content {
	position: relative;
	z-index: 1;
	max-width: 700px;
	padding: 2rem;
}

.hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero__subtitle {
	font-size: 1.25rem;
	font-weight: 300;
	margin-bottom: 2rem;
	opacity: 0.9;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.2s;
	border: 2px solid transparent;
}

.btn--primary {
	background: var(--da-primary);
	color: #fff;
	border-color: var(--da-primary);
}

.btn--primary:hover {
	background: transparent;
	color: var(--da-primary);
	text-decoration: none;
}

.btn--outline {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.btn--outline:hover {
	background: #fff;
	color: var(--da-nav-bg);
	text-decoration: none;
}

.btn--dark {
	background: var(--da-nav-bg);
	color: #fff;
	border-color: var(--da-nav-bg);
}

.btn--dark:hover {
	background: transparent;
	color: var(--da-nav-bg);
	text-decoration: none;
}

/* Sections */
.section {
	padding: 4rem 0;
}

.section--alt {
	background: #f8f8f8;
}

.section__title {
	text-align: center;
	margin-bottom: 2.5rem;
}

.section__title h2 {
	margin-bottom: 0.5rem;
}

.section__title p {
	color: var(--da-text-light);
	font-size: 1.125rem;
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
	background: var(--da-nav-bg);
	color: #fff;
	padding: 3rem 0;
	text-align: center;
}

.page-hero h1 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* Content */
.page-content {
	padding: 3rem 0;
}

.page-content .container {
	max-width: 900px;
}

/* Inventory Page */
.inventory-section {
	padding: 3rem 0;
}

/* Contact Form */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

@media (max-width: 768px) {
	.contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 {
	margin-bottom: 1rem;
	color: var(--da-primary);
}

.contact-info p {
	margin-bottom: 1rem;
	color: var(--da-text-light);
}

/* Footer */
.site-footer {
	background: var(--da-nav-bg);
	color: rgba(255,255,255,0.7);
	padding: 3rem 0 1.5rem;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	max-width: var(--da-max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.site-footer h4 {
	color: #fff;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.site-footer a {
	color: rgba(255,255,255,0.7);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: none;
}

.site-footer__bottom {
	text-align: center;
	padding-top: 2rem;
	margin-top: 2rem;
	border-top: 1px solid rgba(255,255,255,0.1);
	font-size: 0.8125rem;
	max-width: var(--da-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* About page */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

@media (max-width: 768px) {
	.about-grid { grid-template-columns: 1fr; }
}

/* CTA Section */
.cta-section {
	background: var(--da-primary);
	color: #fff;
	text-align: center;
	padding: 4rem 2rem;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; opacity: 0.9; }

/* 404 */
.error-404 {
	text-align: center;
	padding: 6rem 2rem;
}

.error-404 h1 {
	font-size: 6rem;
	color: var(--da-border);
}

/* Cards grid (generic) */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
