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

:root {
	--color-navy: #012c6d;
	--color-gold: #bf9f00;
	--color-red: #D51A1A;
	--color-green: #23A455;
	--color-green-hover: #4ADE5F;
	--color-text: #333;
	--color-text-light: #7A7A7A;
	--color-bg: #E9E5E5;
	--color-white: #fff;
	--color-black: #000;
	--max-width: 1140px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
}

a {
	color: var(--color-green);
	text-decoration: none;
}

a:hover {
	color: var(--color-green-hover);
}

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

h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
	margin-bottom: 1em;
}

ul, ol {
	margin-bottom: 1em;
	padding-left: 1.5em;
}

li {
	margin-bottom: 0.5em;
}

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

/* ===== SITE HEADER ===== */

.site-header {
	background: linear-gradient(210deg, rgba(194,203,210,0.94) 49%, #ffffff 100%);
	position: relative;
}

.site-header::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url("/img/DSC_1906.jpg") center top / cover no-repeat fixed;
	opacity: 0.13;
	z-index: 0;
}

.header-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px 20px 10px;
	max-width: var(--max-width);
	margin: 0 auto;
}

.site-logo img {
	max-height: 80px;
	width: auto;
}

.logo-ticker-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	overflow: hidden;
	padding: 60px 0 30px;
	mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.logo-ticker-track {
	display: flex;
	align-items: center;
	gap: 50px;
	width: max-content;
	animation: ticker-scroll 60s linear infinite;
}

.logo-ticker-track img {
	height: 44px;
	width: auto;
	opacity: 0.9;
	filter: grayscale(15%);
	transition: opacity 0.2s, filter 0.2s;
	flex-shrink: 0;
}

.logo-ticker-track img:hover {
	opacity: 1;
	filter: grayscale(0%);
}

@keyframes ticker-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ===== NAVIGATION ===== */

.site-nav {
	background-color: var(--color-navy);
	border-top: 3px solid var(--color-gold);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-nav .container {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--color-white);
	font-size: 24px;
	cursor: pointer;
	padding: 12px;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu li a {
	display: block;
	color: var(--color-white);
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	padding: 18px 31px;
	transition: background-color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
	background-color: var(--color-gold);
	color: var(--color-white);
}

/* ===== MAIN LAYOUT ===== */

.page-layout {
	display: flex;
	gap: 0;
	max-width: 100%;
	background-color: var(--color-bg);
}

.page-content {
	flex: 1;
	min-width: 0;
	padding: 30px 40px;
}

.page-sidebar {
	width: 380px;
	flex-shrink: 0;
	border-left: 2px solid var(--color-text-light);
	padding: 30px 25px;
}

/* ===== HERO SLIDER (HOME) ===== */

.hero-slider {
	border: 4px solid #7E929B;
	border-radius: 7px;
	box-shadow: 12px 11px 10px 0px rgba(0,0,0,0.5);
	overflow: hidden;
	margin-bottom: 30px;
	position: relative;
	height: 400px;
}

.slide {
	display: none;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.slide.active {
	display: block;
}

.slide-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.46);
	display: flex;
	align-items: center;
	justify-content: center;
}

.slide-content {
	text-align: center;
	color: var(--color-white);
	max-width: 66%;
}

.slide-content h3 {
	font-size: 1.75rem;
	margin-bottom: 10px;
	color: var(--color-white);
}

.slide-content p {
	font-size: 1rem;
	margin-bottom: 15px;
}

.slide-content .btn {
	display: inline-block;
	background-color: var(--color-green);
	color: var(--color-white);
	padding: 8px 20px;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.3s;
}

.slide-content .btn:hover {
	background-color: var(--color-green-hover);
	color: var(--color-white);
}

.slide-1 { background-color: #85A6CB; background-image: url("/img/cylinder-head.png"); }
.slide-2 { background-color: #4054B2; background-image: url("/img/turbo-charger.png"); }
.slide-3 { background-color: #6EC1E4; background-image: url("/img/home-engine.png"); }
.slide-4 { background-color: #49626C; background-image: url("/img/Gearbox.png"); }

/* ===== HIGHLIGHT BANNER ===== */

.highlight-banner {
	background-color: var(--color-red);
	color: var(--color-white);
	padding: 25px 30px;
	margin: 20px 0;
}

.highlight-banner h4 {
	color: var(--color-white);
	margin: 0;
	font-weight: 600;
}

/* ===== CONTENT SECTIONS ===== */

.content-section {
	padding: 20px 0;
}

.content-section p {
	font-weight: 300;
	line-height: 2em;
}

.content-section h3 {
	margin-bottom: 15px;
}

.page-image {
	margin: 20px 0;
}

.page-image img {
	max-width: 100%;
	height: auto;
}

/* ===== IMAGE GALLERY (cylinder head detail pages) ===== */

.image-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin: 20px 0;
}

.image-gallery img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

/* ===== SIDEBAR ===== */

.sidebar-hours {
	text-align: center;
	margin-bottom: 20px;
}

.sidebar-hours h4 {
	color: var(--color-text);
}

.sidebar-divider {
	border: none;
	border-top: 1px solid var(--color-black);
	margin: 20px 0;
}

.sidebar-enquiry h3 {
	text-align: center;
	margin-bottom: 10px;
}

.sidebar-enquiry p {
	text-align: center;
	margin-bottom: 20px;
}

/* ===== FORM ===== */

.enquiry-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.enquiry-form .field-full { width: 100%; }
.enquiry-form .field-60 { width: calc(60% - 5px); }
.enquiry-form .field-40 { width: calc(40% - 5px); }
.enquiry-form .field-50 { width: calc(50% - 5px); }

.enquiry-form label {
	display: block;
	font-size: 12px;
	margin-bottom: 4px;
	color: var(--color-text-light);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-family: inherit;
	font-size: 14px;
	background: var(--color-white);
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
	outline: none;
	border-color: var(--color-navy);
}

.enquiry-form textarea {
	resize: vertical;
}

.enquiry-form .checkbox-field {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.enquiry-form .checkbox-field input[type="checkbox"] {
	width: auto;
	margin-top: 3px;
	flex-shrink: 0;
}

.enquiry-form .submit-btn {
	display: block;
	width: 100%;
	padding: 12px;
	background-color: var(--color-navy);
	color: var(--color-white);
	border: none;
	border-radius: 3px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s;
}

.enquiry-form .submit-btn:hover {
	background-color: #013d96;
}

/* ===== TABLES ===== */

table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

th, td {
	padding: 10px 15px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

tr:nth-child(odd) {
	background-color: #f5f5f5;
}

/* ===== SERVICES LIST (HOME) ===== */

.services-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 20px 0;
}

.services-list div {
	font-size: 14px;
	line-height: 1.8;
}

/* ===== DIVIDER ===== */

.divider {
	border: none;
	border-top: 1px solid #ccc;
	margin: 30px 0;
}

/* ===== FOOTER ===== */

.site-footer {
	background-color: var(--color-black);
	color: var(--color-white);
	padding: 30px 0;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
	gap: 30px;
}

.footer-col {
	flex: 1;
}

.footer-col h5 {
	color: #6EC1E4;
	margin-bottom: 10px;
}

.footer-col p {
	font-size: 14px;
	margin-bottom: 5px;
}

.footer-col a {
	color: var(--color-white);
}

.footer-col a:hover {
	color: #6EC1E4;
}

/* ===== COOKIE BAR ===== */

.cookie-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #aaa;
	color: var(--color-black);
	padding: 15px 20px;
	z-index: 1000;
	display: none;
	font-size: 14px;
	text-align: center;
}

.cookie-bar.show {
	display: block;
}

.cookie-bar .accept-btn {
	display: inline-block;
	background: var(--color-black);
	color: var(--color-white);
	padding: 6px 16px;
	border: none;
	cursor: pointer;
	margin-left: 10px;
	font-size: 13px;
}

.cookie-bar a {
	color: var(--color-black);
	text-decoration: underline;
	margin-left: 10px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
	.page-layout {
		flex-direction: column;
	}

	.page-sidebar {
		width: 100%;
		border-left: none;
		border-top: 2px solid var(--color-text-light);
	}

	.services-list {
		grid-template-columns: 1fr;
	}

	.header-inner {
		flex-direction: column;
		text-align: center;
		gap: 10px;
		min-height: auto;
		padding: 15px;
	}

	.header-info {
		justify-content: center;
	}

	.header-tagline {
		text-align: center;
	}
}

@media (max-width: 768px) {
	.nav-toggle {
		display: block;
	}

	.nav-menu {
		display: none;
		flex-direction: column;
		width: 100%;
	}

	.nav-menu.open {
		display: flex;
	}

	.nav-menu li a {
		padding: 14px 20px;
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}

	.site-nav .container {
		flex-wrap: wrap;
	}

	.hero-slider {
		height: 250px;
	}

	.slide-content h3 {
		font-size: 1.25rem;
	}

	.page-content {
		padding: 20px;
	}

	.page-sidebar {
		padding: 20px;
	}

	.image-gallery {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		flex-direction: column;
	}

	h1 { font-size: 1.5rem; }
	h2 { font-size: 1.35rem; }
}
