/*
Theme Name: NWM 4x4 Centre
Author: Neil Woolridge Motors
Description: A simple, low-maintenance brochure theme for Neil Woolridge Motors 4x4 Centre. Provides the header and footer. Page content is built with Elementor.
Version: 2.1.0
Requires at least: 5.8
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nwm-4x4
*/

:root {
	--ink: #111214;
	--black: #0b0c0e;
	--charcoal: #16181b;
	--panel: #1a1c20;
	--gold: #c9a45c;
	--gold-dark: #6b5a2c;
	--grey: #f1f1f2;
	--line: #d9dadc;
	--text: #3a3d42;
	--text-on-dark: #d5d7db;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	color: var(--ink);
	background: #fff;
	line-height: 1.5;
	font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1344px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header: one white bar so the whole logo, including "4x4 Centre", is visible.
   Logo left, navigation centred, call button right. */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.site-logo img { height: 76px; width: auto; }
.site-nav { flex: 1 1 auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.site-nav a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 15px 28px; border-radius: 3px; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8b571; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2d32; color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }

/* Sections */
.section { padding: 80px 0; }
.section-grey { background: var(--grey); }
.section-dark { background: var(--black); color: #fff; }
.section-charcoal { background: var(--charcoal); color: #fff; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-dark); }
.section-dark .eyebrow, .section-charcoal .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.section-head h2, .split h2 { font-size: 36px; font-weight: 800; line-height: 1.15; }
.section-foot { margin-top: 40px; }
.lead { color: var(--text); }
.section-dark .lead, .section-charcoal .lead { color: var(--text-on-dark); }

/* Home hero */
.hero { background: var(--charcoal); color: #fff; background-size: cover; background-position: center; }
.hero .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: 1px; text-transform: uppercase; max-width: 760px; }
.hero .tagline { font-size: 20px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.hero .lead { color: var(--text-on-dark); max-width: 540px; }

/* Inner page hero */
.page-hero { background: var(--charcoal); color: #fff; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 12px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.1; max-width: 860px; }

/* Trust strip */
.trust { background: var(--grey); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 24px 32px; padding-top: 28px; padding-bottom: 28px; }
.trust div { flex: 1 1 200px; border-top: 3px solid var(--gold); padding-top: 12px; }
.trust strong { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.trust span { font-size: 14px; color: var(--text); }

/* Two-column split */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split .copy { display: flex; flex-direction: column; gap: 18px; }
.split .copy p { color: var(--text); }
.section-charcoal .split .copy p, .section-dark .split .copy p { color: var(--text-on-dark); }

/* Card grids */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); color: #fff; border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card .num { font-size: 14px; font-weight: 700; color: var(--gold); }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.card p { font-size: 15px; color: #c9ccd1; }
.banner { margin-top: 24px; background: var(--gold); color: var(--ink); border-radius: 4px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.banner h3 { font-size: 18px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.banner p { font-size: 15px; margin-top: 6px; }

/* Fitments */
.fitment { display: flex; flex-direction: column; gap: 14px; }
.fitment h3 { font-size: 18px; font-weight: 700; }
.fitment p { font-size: 15px; color: var(--text); }
.photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 4px; background: var(--grey); }
.photo-wide { aspect-ratio: 16 / 10; }
.photo-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; border: 2px dashed #8a8d93; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* Suppliers */
.supplier { min-height: 110px; background: #fff; border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font-size: 17px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.supplier img { max-height: 64px; width: auto; }

/* Contact */
.contact-cols { display: flex; flex-wrap: wrap; gap: 32px; }
.contact-cols > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.contact-cols h3 { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); }
.section-charcoal .contact-cols h3 { color: var(--gold); }
.section-charcoal .contact-cols a { color: #fff; }
.contact-cols a { padding: 6px 0; }
.hours { border-collapse: collapse; }
.hours td { padding: 2px 16px 2px 0; }

/* Call to action band */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta h2 { font-size: 32px; font-weight: 800; line-height: 1.15; }
.cta p { color: var(--text-on-dark); margin-top: 8px; max-width: 620px; }

/* Ordinary WordPress pages and posts */
.entry { max-width: 800px; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 28px; font-weight: 800; }
.entry h3 { font-size: 21px; font-weight: 700; }
.extra-content { padding-top: 0; }

/* Footer */
.site-footer { background: var(--black); color: #c9ccd1; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; }
.site-footer strong { color: #fff; letter-spacing: 1px; }
.site-footer a { color: #fff; }

@media (max-width: 960px) {
	.grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section { padding: 56px 0; }
	.hero .wrap { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 600px) {
	.grid, .grid-4 { grid-template-columns: minmax(0, 1fr); }
	.site-logo img { height: 60px; }
	.site-nav { order: 3; flex-basis: 100%; }
	.site-nav ul { gap: 0 20px; }
	.site-nav a { padding: 10px 0; }
	.section-head h2, .split h2 { font-size: 28px; }
}
