/* ==========================================================================
   8 Door Jeep - Base Styles
   ========================================================================== */

:root {
	--color-bg: #000000;
	--color-bg-alt: #0a0a0a;
	--color-panel: #111111;
	--color-red: #e0212b;
	--color-red-bright: #ff2a35;
	--color-white: #ffffff;
	--color-gray: #a3a3a3;
	--color-gray-dark: #1a1a1a;
	--color-border: #2a2a2a;
	--color-success: #2ecc71;

	--font-heading: "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Helvetica Neue", Arial, sans-serif;

	--container-width: 1200px;
	--header-height: 72px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--color-bg);
	color: var(--color-white);
	font-family: var(--font-body);
	line-height: 1.6;
	overflow-x: hidden;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

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

a {
	color: inherit;
	text-decoration: none;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--color-border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
}

.logo {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	letter-spacing: 0.05em;
	color: var(--color-white);
	text-transform: uppercase;
}

.logo span {
	color: var(--color-red);
}

.main-nav {
	display: flex;
	gap: 32px;
}

.main-nav a {
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-gray);
	transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--color-red-bright);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--color-white);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Page shell — every public page is one of these.
   min-height (not height) means short content fills the viewport with no
   scroll on desktop, while taller content — or a small mobile viewport —
   scrolls naturally without anything breaking.
   ========================================================================== */

.page {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: var(--header-height);
}

/* ==========================================================================
   Hero (home page)
   ========================================================================== */

.page-hero {
	position: relative;
	overflow: hidden;
	padding-bottom: 40px;
}

.hero-glow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 900px;
	height: 900px;
	background: radial-gradient(circle, rgba(224, 33, 43, 0.18) 0%, rgba(224, 33, 43, 0) 70%);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 1;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-image {
	width: 100%;
	max-width: 900px;
	margin: 0 auto 28px;
	filter: drop-shadow(0 30px 60px rgba(224, 33, 43, 0.25));
}

.hero-title {
	font-family: var(--font-heading);
	font-size: clamp(1.8rem, 5vw, 3.6rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.hero-tagline {
	font-size: clamp(0.95rem, 1.8vw, 1.2rem);
	color: var(--color-red-bright);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	margin-bottom: 32px;
}

.hero-actions {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-block;
	padding: 16px 36px;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 4px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.btn-primary {
	background-color: var(--color-red);
	color: var(--color-white);
}

.btn-primary:hover {
	background-color: var(--color-red-bright);
}

.btn-secondary {
	background-color: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn-secondary:hover {
	border-color: var(--color-red-bright);
	color: var(--color-red-bright);
}

.btn-sm {
	padding: 10px 22px;
	font-size: 0.8rem;
}

/* ==========================================================================
   Generic content pages (about / tour / reserve)
   ========================================================================== */

.page-content-inner {
	width: 100%;
	padding: 40px 24px;
}

.page-content-narrow {
	max-width: 640px;
}

.section-title {
	font-family: var(--font-heading);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 18px;
}

.section-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 4px;
	background-color: var(--color-red);
	margin-top: 14px;
}

.section-text {
	color: var(--color-gray);
	max-width: 640px;
	font-size: 1.02rem;
}

.page-content .hero-actions {
	justify-content: flex-start;
	margin-top: 28px;
}

/* ==========================================================================
   Tour list
   ========================================================================== */

.tour-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: calc(100vh - var(--header-height) - 220px);
	overflow-y: auto;
	padding-right: 6px;
}

.tour-item {
	display: flex;
	align-items: center;
	gap: 20px;
	background-color: var(--color-panel);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 16px 20px;
}

.tour-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 60px;
	flex-shrink: 0;
	text-align: center;
}

.tour-date-day {
	font-family: var(--font-heading);
	font-size: 1.6rem;
	line-height: 1;
	color: var(--color-red-bright);
}

.tour-date-month {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-gray);
}

.tour-details {
	flex: 1;
	min-width: 0;
}

.tour-details h2 {
	font-size: 1.05rem;
	margin-bottom: 2px;
}

.tour-venue,
.tour-time {
	color: var(--color-gray);
	font-size: 0.85rem;
}

/* ==========================================================================
   Forms (reserve page)
   ========================================================================== */

.reserve-form {
	width: 100%;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-group {
	margin-bottom: 16px;
}

label {
	display: block;
	font-size: 0.8rem;
	color: var(--color-gray);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
	width: 100%;
	background-color: var(--color-panel);
	border: 1px solid var(--color-border);
	border-radius: 5px;
	padding: 11px 14px;
	color: var(--color-white);
	font-size: 0.95rem;
	font-family: inherit;
}

textarea {
	resize: vertical;
	min-height: 80px;
}

/* The native calendar icon on the date input renders dark by default and
   disappears against this dark background — invert it so it's visible.
   Webkit/Blink (Chrome, Edge, Safari) only; Firefox has no equivalent
   hook yet, so its icon stays as-is there. */
input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	cursor: pointer;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--color-red);
}

/* Honeypot field — hidden from sighted users, present for bots */
.hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-message {
	margin-top: 16px;
	font-size: 0.9rem;
	min-height: 1.2em;
}

.form-message-success {
	color: var(--color-success);
}

.form-message-error {
	color: var(--color-red-bright);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--color-border);
	padding: 24px 0;
	text-align: center;
	flex-shrink: 0;
}

.site-footer p {
	color: var(--color-gray);
	font-size: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 820px) {
	.main-nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		background: rgba(0, 0, 0, 0.97);
		border-bottom: 1px solid var(--color-border);
		flex-direction: column;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.main-nav.open {
		max-height: 300px;
	}

	.main-nav a {
		padding: 16px 24px;
		border-top: 1px solid var(--color-border);
	}

	.nav-toggle {
		display: flex;
	}
}

@media (max-width: 640px) {
	.page {
		/* Allow natural growth/scroll on small screens instead of forcing
		   content to compress into the viewport. */
		min-height: auto;
		padding-bottom: 40px;
	}

	.page-hero {
		padding-top: calc(var(--header-height) + 24px);
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.tour-list {
		max-height: none;
		overflow-y: visible;
	}

	.tour-item {
		flex-wrap: wrap;
	}
}
