/*!
Theme Name: RDO Shared
Theme URI: https://www.rdoequipment.com.au/
Author: RDO Equipment
Description: Shared presentation for the RDO Equipment Australia and Vermeer Australia Theme Family.
Version: 0.5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rdo-shared
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--rdo-color-brand-primary: #2f6035;
	--rdo-color-brand-primary-hover: #244a29;
	--rdo-color-brand-accent: #f4c542;
	--rdo-color-brand-accent-hover: #d9aa25;
	--rdo-color-brand-on-primary: #fff;
	--rdo-color-brand-on-accent: #17231a;
	--rdo-color-text: #1f2421;
	--rdo-color-surface: #fff;
	--rdo-color-surface-muted: #f3f5f3;
	--rdo-color-border: #d7ddd8;
	--rdo-font-body: system-ui, sans-serif;
	--rdo-font-heading: var(--rdo-font-body);
	--rdo-content-width: 75rem;
	--rdo-space-xs: 0.5rem;
	--rdo-space-sm: 0.75rem;
	--rdo-space-md: 1rem;
	--rdo-space-lg: 1.5rem;
	--rdo-space-xl: 2rem;
	--rdo-space-2xl: 4rem;
	--rdo-control-min-height: 2.75rem;
}

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

body {
	margin: 0;
	color: var(--rdo-color-text, #1f2421);
	background: var(--rdo-color-surface, #fff);
	font-family: var(--rdo-font-body, system-ui, sans-serif);
	line-height: 1.6;
}

a {
	color: var(--rdo-color-brand-primary, #2f6035);
}

a:focus-visible,
button:focus-visible {
	outline: 0.2rem solid var(--rdo-color-brand-accent, #f4c542);
	outline-offset: 0.2rem;
}

.rdo-shared-container {
	width: min(calc(100% - 2rem), var(--rdo-content-width, 75rem));
	margin-inline: auto;
}

.btn-link-primary,
.btn-link-yellow,
.btn-link-green {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--rdo-control-min-height);
	padding: 0.875rem 3.3125rem;
	border: 0.125rem solid var(--rdo-color-brand-accent);
	color: var(--rdo-color-brand-on-accent);
	background: var(--rdo-color-brand-accent);
	font-family: var(--rdo-font-heading);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.btn-link-primary:hover,
.btn-link-primary:focus-visible,
.btn-link-yellow:hover,
.btn-link-yellow:focus-visible,
.btn-link-green:hover,
.btn-link-green:focus-visible {
	border-color: var(--rdo-color-brand-accent-hover);
	color: var(--rdo-color-brand-on-accent);
	background: var(--rdo-color-brand-accent-hover);
	text-decoration: none;
}

.rdo-shared-skip-link {
	position: absolute;
	left: -10000px;
	top: auto;
}

.rdo-shared-skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100000;
	padding: 0.75rem 1rem;
	background: var(--rdo-color-surface, #fff);
}

.rdo-shared-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rdo-shared-header {
	color: var(--rdo-color-brand-on-primary, #fff);
	background: var(--rdo-color-brand-primary, #2f6035);
}

.rdo-shared-header__utility {
	font-size: 0.875rem;
	background: var(--rdo-color-brand-primary-hover, #244a29);
}

.rdo-shared-header__utility-inner,
.rdo-shared-contact-links,
.rdo-shared-dealer-portal {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.rdo-shared-header__utility-inner {
	justify-content: space-between;
	min-height: 2.5rem;
}

.rdo-shared-header__utility a,
.rdo-shared-dealer-portal a {
	color: inherit;
}

.rdo-shared-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 5rem;
}

.rdo-shared-brand {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	color: inherit;
	font-family: var(--rdo-font-heading, system-ui, sans-serif);
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.rdo-shared-brand img {
	display: block;
	width: auto;
	max-width: min(16rem, 55vw);
	height: 2.5rem;
}

.rdo-shared-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rdo-shared-header__navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
}

.rdo-shared-navigation a {
	display: inline-block;
	padding-block: 0.75rem;
	font-family: var(--rdo-font-heading, system-ui, sans-serif);
	font-weight: 700;
	text-decoration: none;
}

.rdo-shared-navigation a {
	color: inherit;
}

.rdo-shared-main {
	min-height: 50vh;
	padding-block: clamp(2rem, 5vw, 5rem);
}

.rdo-shared-entry__title {
	margin-top: 0;
	font-family: var(--rdo-font-heading, system-ui, sans-serif);
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.05;
}

.rdo-shared-footer {
	padding-block: 2rem;
	color: var(--rdo-color-brand-on-primary, #fff);
	background: var(--rdo-color-brand-primary, #2f6035);
}

.rdo-shared-footer a {
	color: inherit;
}

.rdo-shared-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: clamp(1.5rem, 4vw, 4rem);
}

.rdo-shared-footer__meta {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	font-size: 0.875rem;
}

.rdo-shared-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.rdo-shared-page-header {
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.rdo-shared-page-header h1,
.rdo-shared-empty-state h1,
.rdo-shared-not-found h1 {
	font-family: var(--rdo-font-heading, system-ui, sans-serif);
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
}

.rdo-shared-results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.rdo-shared-results .rdo-shared-entry {
	overflow: hidden;
	background: var(--rdo-color-surface-muted, #f3f5f3);
}

.rdo-shared-entry__image,
.rdo-shared-entry__image img {
	display: block;
	width: 100%;
}

.rdo-shared-entry__image img {
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.rdo-shared-entry__summary {
	padding: 1.25rem;
}

.rdo-shared-entry__summary-title {
	margin: 0;
	font-family: var(--rdo-font-heading, system-ui, sans-serif);
	font-size: 1.5rem;
	line-height: 1.2;
}

.rdo-shared-entry__summary-title a {
	color: inherit;
	text-decoration: none;
}

.rdo-shared-entry__meta {
	font-size: 0.875rem;
	opacity: 0.75;
}

.rdo-location__hero img {
	display: block;
	width: 100%;
	max-height: 32rem;
	object-fit: cover;
}

.rdo-location__details,
.rdo-location__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
}

.rdo-location > section,
.rdo-location > header {
	margin-block: clamp(2rem, 5vw, 4rem);
}

.rdo-location-card {
	overflow: hidden;
	background: var(--rdo-color-surface-muted, #f3f5f3);
}

.rdo-location-card > a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.rdo-location-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.rdo-location-card p,
.rdo-location-card h3 {
	margin-inline: 1rem;
}

.rdo-shared-search-form {
	display: flex;
	align-items: stretch;
	gap: var(--rdo-space-xs);
}

.rdo-shared-search-form__field,
.rdo-shared-search-form__submit {
	min-height: var(--rdo-control-min-height);
	border: 1px solid currentColor;
	font: inherit;
}

.rdo-case-study-archive {
	max-width: 88.75rem;
}

.rdo-case-study-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
}

.rdo-case-study-pagination a:hover {
	color: inherit;
	text-decoration: none;
}

.section-contact-locations {
	padding-top: 3rem;
}

.rdo-contact-locations__phone {
	font-size: 1.5rem;
}

.rdo-contact-locations__phone a {
	display: inline-flex;
	align-items: center;
	gap: var(--rdo-space-xs);
}

.rdo-contact-locations__phone svg {
	width: 1.5rem;
	height: 1.5rem;
}

.rdo-contact-locations__support-title {
	margin-block: 1.25rem 0.625rem;
	line-height: 1;
}

.rdo-contact-locations__support {
	margin-block: 0 0.625rem;
	line-height: 1;
}

article.type-case-study {
	margin-block: 6.25rem;
}

.rdo-case-study__intro {
	display: flex;
	flex-direction: column;
	gap: var(--rdo-space-xl);
}

.rdo-case-study__image img {
	display: block;
	width: 100%;
}

@media (min-width: 64rem) {
	.rdo-case-study__intro {
		flex-direction: row;
	}

	.rdo-case-study__info,
	.rdo-case-study__image {
		width: 50%;
	}

	.rdo-case-study__info {
		order: 2;
	}

	.rdo-case-study__image {
		order: 1;
	}
}

.rdo-shared-search-form__field {
	width: min(18rem, 100%);
	padding-inline: 0.75rem;
	color: var(--rdo-color-text, #1f2421);
	background: var(--rdo-color-surface, #fff);
}

.rdo-shared-search-form__submit {
	padding-inline: 1rem;
	color: var(--rdo-color-brand-on-accent, #132516);
	background: var(--rdo-color-brand-accent, #f4c542);
	cursor: pointer;
}

@media (max-width: 48rem) {
	.rdo-shared-header__inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: 1rem;
	}

	.rdo-shared-header__utility-inner,
	.rdo-shared-header__navigation,
	.rdo-shared-footer__meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.rdo-shared-header__utility-inner {
		padding-block: 0.75rem;
	}

	.rdo-shared-contact-links,
	.rdo-shared-dealer-portal,
	.rdo-shared-navigation ul {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.5rem;
	}
}
