/*
Theme Name: Mussons Garage
Theme URI: https://mussonsgarage.com.au
Author: Mussons Garage
Description: Custom black-and-white theme for Mussons Garage. Includes Cars (Stock & Sold), Team profiles, Sell Your Car and Finance enquiry forms that email the Studio directly.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: mussons
*/

:root {
	--black: #000;
	--ink: #0a0a0a;
	--panel: #111;
	--line: #262626;
	--muted: #9a9a9a;
	--white: #fff;
	--off: #f4f4f2;
	--display: "Michroma", "Eurostile", "Arial Black", sans-serif;
	--body: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, .display {
	font-family: var(--display);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .06em;
	line-height: 1.2;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(1.7rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.25rem, 2.8vw, 2rem); }
h3 { font-size: 1rem; letter-spacing: .1em; }

.eyebrow {
	display: inline-block;
	font-size: .72rem;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 1.2em;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(0,0,0,.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 34px; width: auto; max-width: none; }
.brand { flex-shrink: 0; }
.nav-toggle {
	display: none; background: none; border: 1px solid var(--line); color: var(--white);
	padding: 8px 12px; font: inherit; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.main-nav a {
	white-space: nowrap;
	text-decoration: none; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #cfcfcf;
	padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--white); border-color: var(--white); }

@media (max-width: 1260px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: fixed; inset: 76px 0 0 0; background: var(--black); display: none;
		padding: 24px var(--gutter); overflow-y: auto;
	}
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav li { border-bottom: 1px solid var(--line); }
	.main-nav a { display: block; padding: 18px 0; font-size: .85rem; border: 0; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 28px; border: 1px solid var(--white);
	background: var(--white); color: var(--black);
	font-family: var(--body); font-weight: 700; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end;
	background: #000 center/cover no-repeat; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 55%, #000 100%); }
.hero video, .hero .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .hero-yt { position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; transform: translate(-50%,-50%); pointer-events: none; border: 0; }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 110px); }
.hero-logo { width: min(560px, 82vw); margin-bottom: 26px; }
.hero p.lead { font-size: 1.1rem; color: #ddd; max-width: 560px; margin-bottom: 28px; }

.page-hero { padding: clamp(64px, 11vh, 120px) 0 clamp(36px, 6vh, 64px); border-bottom: 1px solid var(--line); }
.page-hero p { color: #c8c8c8; max-width: 680px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-light { background: var(--off); color: var(--ink); }
.section-light .eyebrow { color: #666; }
.section-light .btn { background: var(--black); color: var(--white); border-color: var(--black); }
.section-light .btn:hover { background: transparent; color: var(--black); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--black); padding: 36px 30px; }
.feature .num { font-family: var(--display); font-size: .8rem; color: var(--muted); margin-bottom: 18px; display: block; }
.feature p { color: #bdbdbd; margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.car-card { background: var(--panel); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.car-card:hover { border-color: #555; transform: translateY(-2px); }
.car-card .thumb { position: relative; aspect-ratio: 3/2; background: #1a1a1a; overflow: hidden; }
.car-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-card .thumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #444; font-family: var(--display); font-size: .7rem; letter-spacing: .2em; }
.badge {
	position: absolute; top: 14px; left: 14px; background: var(--white); color: var(--black);
	font-size: .65rem; font-weight: 800; letter-spacing: .25em; padding: 6px 10px; text-transform: uppercase;
}
.badge-sold { background: var(--black); color: var(--white); border: 1px solid var(--white); }
.car-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.car-card h3 { font-size: .92rem; margin-bottom: 10px; }
.car-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.car-price { margin-top: auto; font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em; }
.empty-state { border: 1px dashed #333; padding: 48px; text-align: center; color: var(--muted); }

/* ---------- Single car ---------- */
.car-single { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .car-single { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 3/2; background: #111; overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; aspect-ratio: 3/2; overflow: hidden; }
.gallery-thumbs button.active { border-color: var(--white); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; }
.sticky-box { position: sticky; top: 100px; background: var(--panel); border: 1px solid var(--line); padding: 30px; }
.entry-content { color: #d0d0d0; }
.entry-content h2, .entry-content h3 { color: var(--white); margin-top: 1.4em; }
.entry-content > h2:first-child { margin-top: 0; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .7em; }
.entry-content strong { color: var(--white); }
.entry-content a { color: var(--white); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: .92rem; }
.entry-content th, .entry-content td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.entry-content th { color: var(--muted); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.entry-content tbody tr { background: var(--panel); }
@media (max-width: 600px) {
	.entry-content table, .entry-content tbody, .entry-content tr, .entry-content td { display: block; width: 100%; }
	.entry-content thead { display: none; }
	.entry-content tr { border: 1px solid var(--line); margin-bottom: 12px; }
	.entry-content td { border: 0; padding: 8px 14px; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; background: var(--panel); border: 1px solid var(--line); padding: 26px; }
@media (max-width: 520px) { .team-card { grid-template-columns: 1fr; } }
.team-photo { aspect-ratio: 4/5; background: #1a1a1a; overflow: hidden; display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.team-photo .initials { font-family: var(--display); font-size: 2rem; color: #3a3a3a; }
.team-role { color: var(--muted); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.team-card h2 { font-size: 1.1rem; margin-bottom: 6px; }
.team-bio { color: #c4c4c4; font-size: .95rem; }
.team-phone { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #555; }

/* ---------- Contact blocks ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); padding: 30px; background: var(--panel); }
.contact-card .label { color: var(--muted); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.contact-card a.big { font-family: var(--display); font-size: clamp(.95rem, 2vw, 1.15rem); letter-spacing: .04em; text-decoration: none; word-break: break-word; }
.appt-banner { border: 1px solid var(--white); padding: 22px 26px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.appt-banner strong { font-family: var(--display); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }

/* ---------- Forms ---------- */
.form-panel { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.mg-form fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.mg-form legend { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; padding: 0; margin-bottom: 18px; width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.mg-form label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #bdbdbd; margin-bottom: 8px; }
.mg-form .req { color: var(--white); }
.mg-form input[type=text], .mg-form input[type=email], .mg-form input[type=tel], .mg-form input[type=number], .mg-form select, .mg-form textarea {
	width: 100%; background: #000; border: 1px solid #333; color: var(--white); font: inherit; font-size: 1rem;
	padding: 13px 14px; border-radius: 0; transition: border-color .2s;
}
.mg-form textarea { min-height: 110px; resize: vertical; }
.mg-form input:focus, .mg-form select:focus, .mg-form textarea:focus { outline: none; border-color: var(--white); }
.mg-form .radio-row { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 4px; }
.mg-form .radio-row label { display: inline-flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--white); margin: 0; }
.mg-form .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.dropzone { border: 1px dashed #555; padding: 30px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--white); background: #0d0d0d; }
.dropzone input { display: none; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 14px; }
.preview-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.notice { padding: 18px 22px; margin-bottom: 28px; border: 1px solid; }
.notice-ok { border-color: #e6e6e6; background: #f4f4f2; color: #000; }
.notice-err { border-color: #ff6b6b; color: #ffb3b3; }
.consent { font-size: .85rem; color: var(--muted); }

/* ---------- Partner logo ---------- */
.partner-logo { display: flex; align-items: center; justify-content: center; width: 128px; height: 128px; border-radius: 50%; background: #fff; padding: 22px; margin-bottom: 22px; box-sizing: border-box; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.section-light .partner-logo { box-shadow: 0 0 0 1px #dcdcdc; }

/* ---------- Embeds ---------- */
.video-frame { position: relative; aspect-ratio: 16/9; background: #111; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.social-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 30px; color: #bdbdbd; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: .72rem; color: var(--white); letter-spacing: .26em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-logo { width: 200px; margin-bottom: 18px; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: #777; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
