/* TopAutomotive – refreshed design (test). Same colours, images and layout as style.css, modernised. */
:root {
	--red: #d85743;
	--red-dark: #b9432f;
	--dark: #2a2a2a;
	--darker: #1d1d1d;
	--white: #fff;
	--text: #e6e6e6;
	--radius: 12px;
	--wrap: 1040px;
	--head: 'Oswald', Impact, 'Arial Narrow', sans-serif;
	--body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	background: var(--dark);
	color: var(--text);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 90%; max-width: var(--wrap); margin: 0 auto; }

/* ---------- HERO ---------- */
#header {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 0 140px;
	text-align: center;
	background: url('images/background_ford.png') center / cover no-repeat fixed, #000;
}
#header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.75) 100%);
}
#header > * { position: relative; }
#logo { width: 90%; max-width: 760px; }
#logo a { display: block; position: relative; }
#logo a::after { content: ""; position: absolute; inset: 0; }
#logo object { width: 100%; height: auto; display: block; }
.main-motto {
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp(26px, 4.2vw, 52px);
	line-height: 1.2;
	letter-spacing: .5px;
	color: var(--white);
	text-shadow: 0 2px 18px rgba(0,0,0,.6);
	margin: 30px auto 0;
	max-width: 960px;
	padding: 0 5%;
}
.main-motto .accent { color: var(--red); }
.main-motto .tagline { display: block; margin-top: 10px; font-weight: 400; font-size: .7em; color: #f3d2cc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--head);
	font-size: 19px;
	letter-spacing: .5px;
	text-decoration: none;
	padding: 12px 28px;
	border-radius: 999px;
	border: 2px solid var(--white);
	color: var(--white);
	transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--white); color: var(--dark); }
.btn-primary { background: var(--red); border-color: var(--red); box-shadow: 0 8px 24px rgba(216,87,67,.4); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

/* ---------- MENU ---------- */
#menu_line {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: var(--red);
	box-shadow: 0 -4px 20px rgba(0,0,0,.35);
	z-index: 100;
	transition: box-shadow .3s;
}
#menu_line.is-fixed { position: fixed; top: 0; bottom: auto; box-shadow: 0 4px 20px rgba(0,0,0,.4); animation: slideDown .3s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
#menu_center { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.menu-brand { font-family: var(--head); font-size: 24px; color: var(--white); text-decoration: none; letter-spacing: 1px; opacity: 0; transition: opacity .3s; }
#menu_line.is-fixed .menu-brand { opacity: 1; }
#pull { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
#pull img { width: 40px; display: block; }
#menu-mainmenu { display: flex; gap: 6px; list-style: none; }
#menu-mainmenu a {
	position: relative;
	display: block;
	font-family: var(--head);
	font-size: 21px;
	letter-spacing: .5px;
	color: var(--white);
	text-decoration: none;
	padding: 8px 16px;
}
#menu-mainmenu a::after {
	content: "";
	position: absolute;
	left: 16px; right: 16px; bottom: 4px;
	height: 2px;
	background: var(--white);
	transform: scaleX(0);
	transition: transform .25s;
}
#menu-mainmenu a:hover::after { transform: scaleX(1); }

/* ---------- CONTENT ---------- */
#content { background: url('images/bigbg.png') no-repeat top center; overflow: hidden; }
section { padding: 90px 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow { display: block; font-family: var(--head); font-size: 17px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
h2.title {
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.1;
	color: var(--white);
	margin-bottom: 24px;
}
.lead { font-size: 18px; color: var(--text); max-width: 520px; }
.about-img { text-align: right; }
.about-img img { filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }

#icons { padding: 40px 0 70px; }
#icons ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#icons li {
	text-align: center;
	font-family: var(--head);
	font-size: 24px;
	color: var(--white);
	padding: 26px 10px;
	border-radius: var(--radius);
	transition: transform .3s, background .3s;
}
#icons li:hover { transform: translateY(-6px); background: rgba(0,0,0,.12); }
#icons img { width: 110px; display: block; margin: 0 auto 12px; }

.services-list { list-style: none; display: grid; gap: 10px; }
.services-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--head);
	font-size: 21px;
	letter-spacing: .3px;
	text-decoration: none;
	color: var(--white);
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.08);
	border-left: 4px solid var(--red);
	border-radius: 8px;
	padding: 11px 18px;
	transition: background .25s, transform .25s;
}
.services-list a::after { content: "→"; color: var(--red); transition: transform .25s; }
.services-list a:hover { background: rgba(216,87,67,.15); transform: translateX(4px); }
.services-list a:hover::after { transform: translateX(4px); }

#suburbs { padding: 30px 0 40px; }
.area-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 24px;
	background: var(--darker);
	border-radius: var(--radius);
	padding: 26px 32px;
	border: 1px solid rgba(255,255,255,.06);
}
.area-card h3 { font-family: var(--head); font-weight: 500; font-size: 26px; color: var(--red); }
.area-card p { font-size: 19px; color: var(--white); }

#biglogo { text-align: center; padding: 60px 0; }
#biglogo img { width: 420px; opacity: .9; }

#brands h3 { font-family: var(--head); font-weight: 500; font-size: 30px; color: var(--red); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
	font-size: 15px;
	color: var(--white);
	padding: 7px 16px;
	border-radius: 999px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	transition: background .2s, border-color .2s;
}
.chips li:hover { background: var(--red); border-color: var(--red); }

/* ---------- FOOTER ---------- */
#footer { background: var(--red); color: var(--dark); padding: 60px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; }
#footer h4 { font-family: var(--head); font-weight: 500; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
#footer ul { list-style: none; }
#footer li { line-height: 2; }
#footer a { color: var(--dark); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
#footer a:hover { border-color: var(--dark); }
.footer-phone { font-family: var(--head); font-size: 30px; color: var(--white) !important; }
.footer-phone:hover { border-color: var(--white) !important; }
.map-link { display: inline-block; margin-top: 10px; font-weight: 600; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.15); font-size: 14px; }
#signature { background: #000; color: #aaa; text-align: center; font-size: 14px; padding: 14px 0; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1280px) { #content { background-image: url('images/bigbg_small.png'); } }
@media (max-width: 860px) {
	#header { background-attachment: scroll; }
	.split { grid-template-columns: 1fr; gap: 30px; }
	.about-img { text-align: center; }
	.about-img img { max-width: 320px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	#pull { display: block; }
	.menu-brand { opacity: 1; }
	#menu-mainmenu {
		display: none;
		position: absolute;
		top: 76px; left: 0; right: 0;
		flex-direction: column;
		background: var(--red);
		padding: 10px 5% 20px;
		box-shadow: 0 10px 20px rgba(0,0,0,.3);
	}
	#menu-mainmenu.open { display: flex; }
	#menu_line:not(.is-fixed) #menu-mainmenu { top: auto; bottom: 76px; box-shadow: 0 -10px 20px rgba(0,0,0,.3); }
}
@media (max-width: 650px) {
	#content { background: var(--dark); }
	section { padding: 60px 0; }
	#icons { background: var(--red); padding: 30px 0; }
	#icons ul { grid-template-columns: 1fr; gap: 6px; }
	#biglogo img { width: 260px; }
	.footer-grid { grid-template-columns: 1fr; }
}

/* ---------- tweaks ---------- */
.main-motto { font-size: clamp(24px, 3.3vw, 42px); }
.main-motto .accent { color: #ff7a63; white-space: nowrap; }
#logo object { max-width: 560px; margin: 0 auto; }
#about_section { padding: 50px 0 0; }
#icons { padding: 10px 0 60px; }
@media (max-width: 650px) {
	#about_section { padding-bottom: 50px; }
	#icons { padding: 30px 0; }
}
.main-motto { max-width: 1120px; }
#logo object { max-width: 680px; }

/* ---------- SUBPAGES ---------- */
#header.page-hero { min-height: 0; height: auto; padding: 50px 0 150px; }
#header.page-hero #logo object { max-width: 420px; }
.page-hero .eyebrow { margin: 18px 0 0; }
.page-title {
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp(36px, 5vw, 60px);
	line-height: 1.1;
	color: var(--white);
	text-shadow: 0 2px 18px rgba(0,0,0,.6);
	padding: 0 5%;
}
#menu-mainmenu a.active::after { transform: scaleX(1); }
#page { padding: 70px 0 90px; }
#page .split { align-items: stretch; margin-bottom: 30px; }
.card {
	background: var(--darker);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: var(--radius);
	padding: 32px 36px;
}
.card h3 { font-family: var(--head); font-weight: 500; font-size: 26px; color: var(--red); margin-bottom: 14px; }
.card .lead { margin-bottom: 16px; }
.section-title { margin: 40px 0 24px; }
.tick-list { list-style: none; display: grid; gap: 6px; }
.tick-list li { position: relative; padding-left: 28px; color: var(--white); }
.tick-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.call-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	margin-top: 30px; padding: 26px 32px;
	background: linear-gradient(135deg, rgba(216,87,67,.22), rgba(216,87,67,.06));
	border: 1px solid rgba(216,87,67,.45);
	border-radius: var(--radius);
}
.call-box p { color: var(--white); font-size: 18px; }

/* service pages */
.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.service-body p { font-size: 18px; margin-bottom: 16px; color: var(--text); }
.service-body strong { color: var(--white); }
.aside-title { font-family: var(--head); font-weight: 500; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.services-list a.current { background: var(--red); border-left-color: var(--white); }
.services-list a.current::after { color: var(--white); }
aside .services-list a { font-size: 18px; padding: 9px 16px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 4 / 3; border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item span {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 30px 18px 14px;
	font-family: var(--head); font-size: 20px; color: var(--white);
	background: linear-gradient(transparent, rgba(0,0,0,.8));
	transform: translateY(100%); transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover span, .gallery-item:focus span { transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; cursor: default; }
.lightbox figcaption { font-family: var(--head); font-size: 22px; color: var(--white); margin-top: 12px; }
.lightbox-close { position: absolute; top: 16px; right: 24px; font-size: 44px; line-height: 1; color: var(--white); background: none; border: 0; cursor: pointer; }

@media (max-width: 860px) {
	.service-layout { grid-template-columns: 1fr; }
	#header.page-hero #logo object { max-width: 300px; }
}
@media (max-width: 650px) {
	.card { padding: 24px 22px; }
	.call-box { padding: 22px; }
	.gallery-item span { transform: none; }
}
#page > section { padding: 0; }
.btn { white-space: nowrap; }
.page-hero .eyebrow { color: #ffb3a6; text-shadow: 0 1px 8px rgba(0,0,0,.7); }

/* logo pinned to the top of the header, motto stays centred below it */
#header { justify-content: flex-start; padding-top: 30px; }
#header > #logo { margin-bottom: auto; }
#header > .hero-actions { margin-bottom: auto; }
#header.page-hero > #logo { margin-bottom: 0; }
#logo { max-width: 900px; }
#logo object { max-width: 860px; }
#header.page-hero #logo object { max-width: 560px; }
@media (max-width: 860px) { #header.page-hero #logo object { max-width: 400px; } }
