/*
 * JZ Motors – WoodMart child styles.
 *
 * Values come from the Figma file ("JZ Motors.fig", 1920px frames).
 * Brand colours and fonts are set in WoodMart → Theme Settings; the tokens below read
 * WoodMart's variables first, so changing a colour there updates WoodMart and our components together.
 * The jz-imotor-stock plugin reads the same --jz-* tokens (with its own fallbacks).
 */

:root {
	/* Palette */
	--jz-blue: var(--wd-primary-color, #1456ab);
	--jz-yellow: var(--wd-alternative-color, #fc0);
	--jz-black: #000;
	--jz-ink: #050b20;       /* card titles, headings */
	--jz-text: #404040;      /* body copy */
	--jz-muted: #606060;     /* secondary labels ("Best Selling") */
	--jz-line: #d9d9d9;      /* card borders, dividers */
	--jz-panel: #f5f5f5;     /* filter panel (black @ 4% on white) */
	--jz-white: #fff;

	/* Type */
	--jz-font: var(--wd-text-font, "Questrial", sans-serif);
	--jz-font-ui: "DM Sans", sans-serif;           /* menus, filters, chips, footer links */
	--jz-font-contact: "Inter Tight", sans-serif;  /* top bar, footer contact strip */

	/* Shape & layout */
	--jz-radius: 10px;
	--jz-radius-sm: 5px;
	--jz-footer-radius: 50px;
	--jz-container: 1650px;
	--jz-gutter: 16px;
}

/* ------------------------------------------------------------------ */
/* Header (layout, colours and sizes are set in the Header Builder)    */
/* ------------------------------------------------------------------ */

.whb-top-bar {
	font-family: var(--jz-font-contact);
	font-size: 14px;
	letter-spacing: 0.02em;
}

.whb-top-bar .wd-header-text,
.whb-top-bar .wd-header-text a {
	color: var(--jz-white);
}

.whb-top-bar .wd-header-text a:hover {
	color: var(--jz-yellow);
}

/* Smaller laptops: a slightly smaller logo and tighter menu so all six items fit on one line. */
@media (max-width: 1366px) {
	.whb-general-header .wd-header-nav .wd-nav {
		--nav-gap: 24px;
	}

	.whb-general-header .wd-header-nav .wd-nav > li > a {
		font-size: 15px;
	}

	.whb-general-header .wd-logo img {
		max-width: 240px !important;
	}
}

/* "Search" label next to the yellow icon. */
.whb-general-header .wd-header-search .wd-tools-text {
	font-family: var(--jz-font-ui);
	font-size: 16px;
	font-weight: 400;
	text-transform: none;
}

/* The design's search icon is brand yellow (the Header Builder only colours it for icon design 4). */
.whb-general-header .wd-header-search .wd-tools-icon,
.whb-general-header .wd-header-search .wd-tools-icon::before {
	color: var(--jz-yellow);
}

/* ------------------------------------------------------------------ */
/* Home page (built in Elementor; only what Elementor has no control for) */
/* ------------------------------------------------------------------ */

/*
 * "Elementor Full Width" pages (Home): let sections run edge to edge. WoodMart wraps page content in a
 * 1680px .container; Elementor's own boxed containers set the 1620–1650px content width instead.
 */
.page-template-elementor_header_footer .wd-content-layout.container {
	max-width: none;
	padding-inline: 0;
}

.page-template-elementor_header_footer .wd-page-content {
	padding-top: 0;
}

/* Body type tiles: label turns blue and the car lifts on hover (Figma "Variant2"). */
.jz-tile {
	transition: background-color 0.2s;
}

.jz-tile .elementor-heading-title {
	transition: color 0.2s;
}

.jz-tile img {
	transition: transform 0.3s;
}

.jz-tile:hover .elementor-heading-title,
.jz-tile:focus-visible .elementor-heading-title {
	color: var(--jz-blue);
}

.jz-tile:hover img {
	transform: translateY(-4px);
}

/* Four features: thin lines between columns (Figma: black at 20%). */
.jz-features > .jz-feature:not(.jz-feature--last) {
	border-inline-end: 1px solid rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
	.jz-features > .jz-feature:nth-child(2n) {
		border-inline-end: 0;
	}

	.jz-features > .jz-feature:nth-child(-n + 2) {
		border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	}
}

@media (max-width: 767px) {
	.jz-features > .jz-feature {
		border-inline-end: 0 !important;
		border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	}

	.jz-features > .jz-feature--last {
		border-bottom: 0;
	}
}

/*
 * How it works: numbered blue circles joined by a dashed line. The line is a background image (Elementor
 * uses the containers' ::before for its own overlay): it spans the middle 75% of the content box, i.e.
 * circle centre 1 → circle centre 4, 66px down (36px panel padding + half a 60px circle).
 */
.jz-steps.e-con {
	background-image: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 12px);
	background-position: 50% 66px;
	background-repeat: no-repeat;
	background-size: calc((100% - 60px) * 0.75) 1px;
}

.jz-step__num .elementor-heading-title {
	display: grid;
	width: 60px;
	height: 60px;
	place-items: center;
	border-radius: 50%;
	background: var(--jz-blue);
	letter-spacing: -0.02em;
	line-height: 1;
}

@media (max-width: 767px) {
	.jz-steps.e-con {
		background-image: none;
	}
}

/* ------------------------------------------------------------------ */
/* Footer (content is an HTML Block built in Elementor)                */
/* ------------------------------------------------------------------ */

/* Let the HTML Block run edge to edge; its Elementor containers set the 1650px content width. */
.wd-footer > .main-footer {
	max-width: none;
	padding-inline: 0;
}

.jz-footer {
	border-radius: var(--jz-footer-radius) var(--jz-footer-radius) 0 0;
	overflow: hidden;
}

/* Thin white lines between the four contact items. */
.jz-footer-contact > .e-con-inner > .e-con:not(:last-child),
.jz-footer-contact > .e-con:not(:last-child) {
	border-inline-end: 1px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
	.jz-footer {
		--jz-footer-radius: 28px;
	}

	.jz-footer-contact > .e-con-inner > .e-con:nth-child(2n),
	.jz-footer-contact > .e-con:nth-child(2n) {
		border-inline-end: 0;
	}
}

/* Footer columns on laptops. The Figma widths (logo/text 498px + 4 columns) only fit on one row from
   ~1650px: below that the logo/text column narrows and the gaps tighten (1200–1600px), and on small
   laptops (1025–1199px) it takes its own row above the other four. !important: overrides Elementor's
   per-element width/gap settings. */
@media (min-width: 1200px) and (max-width: 1600px) {
	.jz-footer-main {
		--column-gap: 32px !important;
		--gap: 32px 32px !important;
	}

	.jz-footer-main > .e-con-inner > .e-con:first-child,
	.jz-footer-main > .e-con:first-child {
		--width: auto !important;
		flex: 1 1 0 !important;
		min-width: 0;
		max-width: 498px;
	}
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.jz-footer-main > .e-con-inner > .e-con:first-child,
	.jz-footer-main > .e-con:first-child {
		--width: 100% !important;
	}
}

/* Footer contact strip: phone / email / address links keep the white text, yellow on hover */
.jz-footer-contact .elementor-icon-box-description a {
	color: inherit;
}

.jz-footer-contact .elementor-icon-box-description a:hover,
.jz-footer-contact .elementor-icon-box-description a:focus-visible {
	color: var(--jz-yellow);
}

/* Tablets: 2 × 2. Left-aligned in each cell (not centred) so the icons line up in two columns,
   with a divider between the rows. !important: these override the items' Elementor settings. */
@media (min-width: 768px) and (max-width: 1024px) {
	.jz-footer-contact > .e-con-inner > .e-con,
	.jz-footer-contact > .e-con {
		--justify-content: flex-start !important;
		--padding-top: 30px !important;
		--padding-bottom: 30px !important;
		--padding-left: clamp(24px, 5vw, 48px) !important;
		--padding-right: 16px !important;
	}

	.jz-footer-contact > .e-con-inner > .e-con:nth-child(-n+2),
	.jz-footer-contact > .e-con:nth-child(-n+2) {
		border-block-end: 1px solid rgba(255, 255, 255, 0.25);
	}
}

@media (max-width: 767px) {
	.jz-footer-contact > .e-con-inner > .e-con,
	.jz-footer-contact > .e-con {
		border-inline-end: 0 !important;
		border-block-end: 1px solid rgba(255, 255, 255, 0.25);
	}
}

/* Social icons: white tile, blue glyph, thin white outline around it. */
.jz-footer-social .elementor-social-icon {
	outline: 1px solid var(--jz-white);
	outline-offset: 3px;
}

.jz-footer-social .elementor-social-icon:hover {
	background-color: var(--jz-yellow) !important;
}

/*
 * Yellow copyright bar (41px). The text itself is set in Theme Settings → Footer → Copyrights.
 * .wd-footer prefix: WoodMart prints footer-base.css later in the page, so equal specificity would lose.
 */
.wd-footer .wd-copyrights {
	padding-block: 8px;
	background-color: var(--jz-yellow);
	border-top: 0;
	color: var(--jz-black);
	font-family: var(--jz-font-ui);
	font-size: 16px;
	line-height: 25px;
	letter-spacing: 0.01em;
}

.wd-footer .wd-copyrights a {
	color: inherit;
}

/* Sticky header (jz-setup/11-sticky-header.php): once you scroll, the logo · menu · search row stays at
   the top and shrinks from 121px to 80px, with the logo going from 307px to 200px, smoothly. */
.whb-general-header-inner,
.whb-general-header .wd-logo img {
	transition: height 0.35s ease, max-height 0.35s ease, max-width 0.35s ease;
}

.whb-sticked .whb-general-header .wd-logo img {
	max-width: 200px !important; /* WoodMart puts the normal width inline on the image */
}

/* Home page (transparent header over the hero): solid black once it sticks, so the menu stays readable. */
.whb-header_jzmotors_transparent.whb-sticked .whb-general-header {
	background-color: #000;
}

@media (prefers-reduced-motion: reduce) {
	.whb-general-header-inner,
	.whb-general-header .wd-logo img {
		transition: none;
	}
}

/* Header "Wishlist" ([jz_wishlist], before Search): heart + label + yellow saved-car count badge */
.wd-header-text.jz-hwish-el {
	display: inline-flex;
	align-items: center;
}

.jz-hwish {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 40px; /* same as WoodMart's Search link, so the two line up */
	margin-inline-end: 18px;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	white-space: nowrap;
	transition: color 0.2s;
}

.jz-hwish:hover,
.jz-hwish:focus-visible {
	color: var(--jz-yellow);
}

.jz-hwish__icon {
	position: relative;
	display: inline-flex;
}

.jz-hwish svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jz-hwish__count {
	position: absolute;
	top: -9px;
	right: -11px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--jz-yellow);
	color: #000;
	font-family: var(--jz-font-ui);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.jz-hwish__count[hidden] {
	display: none;
}

.jz-hwish--icon {
	margin-inline-end: 4px;
	padding: 8px 6px;
}

/* Mobile top bar ([jz_contact_links]): "Call Us" left, "Our Location" right */
.whb-top-bar .whb-mobile-center:has(.jz-topbar-links) {
	flex: 1 1 auto;
}

.whb-top-bar .jz-topbar-mobile {
	width: 100%;
}

.jz-topbar-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	font-family: var(--jz-font-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
}

.jz-topbar-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
}

.jz-topbar-links a:hover,
.jz-topbar-links a:focus-visible {
	color: var(--jz-yellow);
}

.jz-topbar-links svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: var(--jz-yellow);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Inner page banner (About Us): breadcrumb under the title */
.jz-breadcrumb {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--jz-font-ui);
	font-weight: 500;
}

.jz-breadcrumb a {
	display: inline-flex;
	color: #fff;
	transition: color 0.15s;
}

.jz-breadcrumb a:hover,
.jz-breadcrumb a:focus-visible {
	color: var(--jz-yellow);
}

.jz-breadcrumb svg {
	display: block;
}

.jz-breadcrumb__sep {
	opacity: 0.7;
}

.jz-breadcrumb [aria-current="page"] {
	color: var(--jz-yellow);
}

/* About Us: "Why Choose Us" cards */
.jz-why-card.e-con {
	transition: box-shadow 0.2s, transform 0.2s;
}

.jz-why-card.e-con:hover {
	box-shadow: 0 18px 40px rgba(5, 11, 32, 0.08);
	transform: translateY(-3px);
}

.jz-why-card .elementor-icon-box-title a {
	color: inherit;
}

/* Ticked lists (After Sales Service): a link inside an item stays in the sentence
   (Elementor lays out links in icon lists as blocks). */
.jz-ticks .elementor-icon-list-text a {
	display: inline;
	color: var(--jz-blue, #1456ab);
	text-decoration: underline;
}

.jz-ticks .elementor-icon-list-text a:hover {
	color: #0f4288;
}

/* Long email addresses in page copy wrap on phones instead of running past the panel's edge. */
.jz-copy a[href^="mailto:"] {
	overflow-wrap: anywhere;
}

/* Comparison table (Used Cars Rowville: Dealer vs Private Seller), an HTML table in a Text Editor widget */
.jz-compare table {
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid #e6e8ec;
	border-spacing: 0;
	border-collapse: separate;
	border-radius: 20px;
	background: var(--jz-white);
	font-size: 17px;
	line-height: 1.5;
}

.jz-compare th,
.jz-compare td {
	padding: 18px 24px;
	border: 0;
	border-bottom: 1px solid #e6e8ec;
	color: var(--jz-text);
	text-align: left;
	vertical-align: top;
}

.jz-compare thead th {
	background: var(--jz-ink);
	color: var(--jz-white);
	font-family: var(--jz-font-ui);
	font-size: 17px;
	font-weight: 600;
	text-transform: none;
}

.jz-compare thead th:nth-child(2) {
	background: var(--jz-blue);
}

.jz-compare tbody th {
	color: var(--jz-black);
	font-family: var(--jz-font-ui);
	font-weight: 600;
}

.jz-compare tbody td:nth-child(2) {
	background: rgba(20, 86, 171, 0.06);
	color: var(--jz-black);
}

.jz-compare tbody tr:last-child > * {
	border-bottom: 0;
}

@media (max-width: 767px) {
	.jz-compare table,
	.jz-compare thead th {
		font-size: 14px;
	}

	.jz-compare th,
	.jz-compare td {
		padding: 12px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jz-why-card.e-con,
	.jz-why-card.e-con:hover {
		transition: none;
		transform: none;
	}
}

/* Contact page: card links (phone, email) + the bigger map */
.jz-contact-card .elementor-icon-box-title a,
.jz-contact-card .elementor-icon-box-description a {
	color: inherit;
}

.jz-contact-card .elementor-icon-box-description a:hover,
.jz-contact-card .elementor-icon-box-description a:focus-visible {
	color: var(--jz-blue);
	text-decoration: underline;
}

.jz-map iframe {
	border-radius: 14px !important;
}

/* Maps (Elementor Google Maps widget; height is set in the widget): footer + Contact page */
.jz-footer-map,
.jz-map {
	width: 100%;
}

.jz-footer-map iframe,
.jz-map iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12); /* while the map loads */
}

/* Legal pages (Privacy Policy, Website Terms of Use): the text sits in a "jz-legal" group block. */
.jz-legal {
	max-width: 900px;
	margin: 60px auto 90px;
	color: #333;
	font-size: 16px;
	line-height: 1.75;
}

.jz-legal h1 {
	margin-bottom: 30px;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.15;
}

.jz-legal :is(h2, h3, h4) {
	margin: 36px 0 12px;
	line-height: 1.3;
}

.jz-legal h2 {
	font-size: 26px;
}

.jz-legal h3 {
	font-size: 21px;
}

.jz-legal :is(p, ul, ol) {
	margin-bottom: 16px;
}

.jz-legal a {
	color: var(--jz-blue);
	text-decoration: underline;
}

/* Policy pages (jz-setup/13-policy-content.php): built from Elementor Heading + Text Editor widgets,
   styled in the widgets themselves. Here: list numbering only — blue numbers, and nested lists shown as
   (a) (b) (c), so editors can use the normal list buttons in the Text Editor. */
.jz-policy ol {
	margin: 0 0 18px;
	padding-left: 1.6em;
}

.jz-policy ol > li {
	margin-bottom: 14px;
	padding-left: 6px;
}

.jz-policy ol > li::marker {
	color: var(--jz-blue);
	font-weight: 700;
}

.jz-policy ol ol {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: jz-alpha;
}

.jz-policy ol ol > li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 2.2em;
	counter-increment: jz-alpha;
}

.jz-policy ol ol > li::before {
	content: "(" counter(jz-alpha, lower-alpha) ")";
	position: absolute;
	left: 0;
	color: var(--jz-blue);
	font-weight: 700;
}

.jz-policy strong {
	color: var(--jz-ink, #050b20);
}

.jz-policy a {
	color: var(--jz-blue);
	text-decoration: underline;
}

@media (max-width: 767px) {
	.jz-legal {
		margin: 32px auto 56px;
		font-size: 15px;
	}
}

@media (max-width: 767px) {
	.wd-footer .wd-copyrights {
		font-size: 13px;
	}
}
