/*
 * GENERAL STYLES & RESET
 * Minimalist style focusing on whitespace, typography, and subtle accents.
 */
:root {
	/* Minimalist Heritage Palette */
	--color-primary: #556B2F; /* Dark Olive Green - Main headings and accents */
	--color-secondary: #AAAAAA; /* Light Gray - Subtle borders and dividers */
	--color-background-light: #FFFFFF; /* Pure White - Main background */
	--color-text-dark: #333333; /* Near-Black - Body text */
	--color-text-light: #FFFFFF; /* White (used sparingly) */
	--color-highlight: #F5F5F5; /* Very light background for contrast */
	--color-shadow: rgba(0, 0, 0, 0.05); /* Very light shadow */

	/* Typography */
	--font-heading: 'Lora', 'Georgia', serif;
	--font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html {
	font-size:16px;
}

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

body {
	font-family: var(--font-body);
	line-height: 1.6;
	color: var(--color-text-dark);
	background-color: var(--color-background-light);
	padding-top: 60px; /* Space for the fixed header/nav */
}

/*
 * HEADER & NAVIGATION
 * Minimalist header with focus on typography and simple lines.
 */
/*
 * HEADER & LOGO FOCUS
 */
header {
	background-color: var(--color-background-light);
	padding: 40px 0 20px; /* Increased top padding for the logo */
	text-align: center;
	border-bottom: 1px solid var(--color-secondary);
}

/* Make the logo the centerpiece */
header .main-logo {
	display: block;
	margin: 0 auto 20px;
	max-width: 400px; /* Increased size */
	height: auto;
	object-fit: contain;
	background-color: transparent;
}

/* Hides the H1 visually but keeps it for SEO/Screen Readers */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

header p {
	max-width: 600px;
	margin: 0 auto 30px;
	font-size: 1.1rem;
	color: var(--color-text-dark); /* Darkened for better readability */
	line-height: 1.4;
}

/* Adjust navigation to sit tightly under the content */
nav {
	border-top: 1px solid var(--color-secondary);
	margin-top: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	header .main-logo {
		max-width: 250px; /* Scales down for smaller screens */
	}
}

nav {
	position: sticky;
	top: 0;
	background-color: var(--color-background-light);
	padding: 15px 0;
	z-index: 1000;
	box-shadow: 0 1px 3px var(--color-shadow);
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	border-top: 1px solid var(--color-secondary);
}

nav a {
	color: var(--color-text-dark);
	text-decoration: none;
	padding: 5px 15px;
	margin: 0 10px;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	transition: border-bottom-color 0.3s, color 0.3s;
}

nav a:hover {
	color: var(--color-primary);
	border-bottom-color: var(--color-primary);
	text-decoration: none;
}

nav a:focus {
	text-decoration: none;
}


/*
 * MAIN LAYOUT & SECTIONS
 */
main {
	max-width: 900px;
	margin: 60px auto;
	padding: 0 20px;
}

section {
	padding: 40px 0;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--color-secondary);
}

section:last-child {
	border-bottom: none;
}

h2 {
	font-family: var(--font-heading);
	font-size: 2.2rem;
	color: var(--color-primary);
	text-align: center;
	margin-bottom: 40px;
	position: relative;
	padding-bottom: 10px;
}

/* Subtle accent line below section headers */
h2::after {
	content: '';
	display: block;
	width: 50px;
	height: 3px;
	background: var(--color-primary);
	margin: 10px auto 0;
}

h3 {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	color: var(--color-text-dark);
	margin-top: 25px;
	margin-bottom: 15px;
	text-align: center;
}

#booking a,#routes a,#contact a,header p a,#misc a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 600;
}

#booking a:hover,#routes a:hover,#contact a:hover,header p a:hover,#misc a:hover {
	text-decoration: underline;
	color: var(--color-text-dark);
}

/*
 * BIKES SECTION (DL Structure)
 */
#bikes dl {
	display: grid;
	width: 70%;
	margin: auto;
	grid-template-columns: 1fr;
	gap: 0;
	margin-top: 30px;
}
#bikes dt {
	background-color: var(--color-highlight); /* Subtle background for title row */
	color: var(--color-text-dark);
	padding: 15px 20px;
	font-size: 1.3rem;
	font-weight: bold;
	border-top: 1px solid var(--color-secondary);
	font-family: var(--font-heading);
}

#bikes dt:first-of-type {
	border-top: none;
}

#bikes dd {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	background-color: var(--color-background-light);
	padding: 20px;
	border-bottom: 1px dashed var(--color-secondary);
}

#bikes dd img {
	width: 120px;               /* Fixed width for alignment */
	aspect-ratio: 4 / 3;        /* Forces a consistent 4:3 shape */
	object-fit: contain;        /* Ensures the whole bike is visible without cropping */
	background-color: #fff;     /* Fills any 'empty' space in the aspect ratio */
	border: 1px solid var(--color-secondary);
	padding: 5px;
	border-radius: 2px;
	flex-shrink: 0;
}
/*
 * BIKE SECTION ACCENTS
 */
#bikes mark {
	background-color: var(--color-highlight); /* Subtle off-white/gray background */
	color: var(--color-primary);             /* Dark Olive Green text */
	font-weight: 700;                        /* Bold for emphasis */
	padding: 2px 6px;                        /* Small internal spacing */
	border-radius: 3px;                      /* Slightly rounded corners */
	font-size: 0.9rem;                        /* Slightly smaller than body text */
	text-transform: uppercase;               /* Optional: Makes 'ADULT BIKE' stand out more */
	letter-spacing: 0.05rem;
}

/*
 * PRICES SECTION (TABLE Structure)
 */
#prices table {
	table-layout:fixed;
	width: 40%;
	margin: 0 auto;
	border-collapse: collapse;
	border: 1px solid var(--color-secondary);
}

#prices th {
	background-color: var(--color-highlight);
	color: var(--color-text-dark);
	padding: 15px;
	font-size: 1rem;
	text-align: left;
	border-bottom: 2px solid var(--color-primary); /* Strong line under header */
}

#prices th:not(:first-child) {
	text-align:center;
}

/* *** FIX FOR VERTICAL HEADERS START *** */
/* Standard table cell display is used, removing previous non-standard overrides. */

/* Explicitly set width for TH elements in the header row */
#price tr th {
	width: 33%;
}

/* *** FIX FOR VERTICAL HEADERS END *** */

#prices tr:nth-child(even) {
	background-color: var(--color-highlight);
}

#prices tr:hover {
	background-color: #EFEFEF;
}

#prices tr td:first-child {
	padding: 12px 15px;
	border-right: 1px solid var(--color-highlight);
}

#prices tr td:not(:first-child){
	text-align: center;
	font-weight: 600;
	color: var(--color-primary); /* Highlight price in green */
	width: 33%;

}



/*
 * ROUTES SECTION 
 */
#routes p {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

/*
 * BOOKING SECTION
 */
#booking p {
	max-width: 600px;
	margin: 0 auto;
}

#booking form {
	display:none; /* HIDE FORM WHILE IN DEVELOPMENT */
	max-width: 600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}

#booking form label {
	display:none;
}

#booking form input {
	display:none;
}

#adult_heights,#child_heights  {
	display:none;
}

#booking label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--color-text-dark);
	font-size: 0.95rem;
}

#booking input[type="text"],
#booking input[type="email"],
#booking input[type="date"],
#booking input[type="number"],
#booking select {
	width: 100%;
	padding: 12px;
	margin-bottom: 25px;
	border: 1px solid var(--color-secondary);
	border-radius: 4px;
	font-family: var(--font-body);
	font-size: 1rem;
	background-color: #fff;
	transition: border-color 0.3s, box-shadow 0.3s;
}

/* Specific styling for the dropdown arrows */
#booking select {
	cursor: pointer;
	appearance: none; /* Removes default styling in some browsers */
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23556B2F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

#booking input:focus, 
#booking select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-shadow);
}

/* Fieldset and Dynamic Heights */
#booking fieldset {
	border: 1px solid var(--color-highlight);
	background-color: var(--color-highlight);
	padding: 20px;
	margin-bottom: 30px;
	border-radius: 8px;
}

#booking fieldset label {
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: 1.1rem;
}

#booking fieldset select {
	margin-bottom: 0; /* Tighten layout inside the fieldset */
	background-color: var(--color-background-light);
}

/* Submit Button Style */
#booking button[type="submit"],
#booking input[type="submit"] {
	background-color: var(--color-primary);
	color: var(--color-text-light);
	border: none;
	padding: 18px;
	font-size: 1.2rem;
	font-family: var(--font-heading);
	font-weight: bold;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.3s, transform 0.1s;
	margin-top: 10px;
}

#booking button[type="submit"]:hover {
	background-color: #3e4e22; /* Slightly darker olive */
}

#booking button[type="submit"]:active {
	transform: translateY(2px);
}
/*
 * Misc Section
 */
#misc p {
	width:50%;
	margin:0 auto;
}

/*
 * CONTACT SECTION
 */
#contact ul {
	list-style: none;
	padding: 0;
	width: 350px;
	margin: 20px auto;
	text-align: center;
}

#contact li {
	padding: 8px 0;
	font-size: 1.1rem;
	border-bottom: 1px dashed var(--color-highlight);
}

#contact a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 600;
}

#contact a:hover {
	text-decoration: underline;
	color: var(--color-text-dark);
}


/*
 * FOOTER
 */
footer {
	background-color: var(--color-text-dark);
	color: var(--color-text-light);
	text-align: center;
	padding: 20px 0;
	margin-top: 60px;
	font-size: 0.9rem;
}

/*
 * RESPONSIVENESS
 */
@media (max-width: 768px) {
	header h1 {
		font-size: 2.2rem;
	}

	nav a {
		padding: 5px 10px;
		margin: 5px;
		font-size: 0.9rem;
	}

	#prices table {
		width: 100%;
	}
}

@media (max-width: 500px) {
	#bikes dd {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 15px;
	}
}

