/* ==========================================================================
   Trusted Drive — brand tokens
   ========================================================================== */

html:root {
	/* Fallbacks; the Customizer values are printed inline after this file. */
	--ps-green-900: #0e3b2e;
	--ps-green: #155b3f;
	--ps-yellow: #ffce1b;
	--ps-dark: #221f1a;
	--ps-surface: #f4f4f4;
	--ps-ink: #000;
	--ps-text: #1a1a1a;
	--ps-muted: #555;
	--ps-line: #e4e4e4;

	--ps-font: "Metropolis", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ps-container: 1236px;
	--ps-gutter: clamp(16px, 5vw, 32px);
	--ps-radius: 12px;

	/* Blocksy */
	--theme-font-family: var(--ps-font);
	--theme-text-color: var(--ps-text);
	--theme-headings-color: var(--ps-ink);
	--theme-link-initial-color: var(--ps-green);
	--theme-link-hover-color: var(--ps-green-900);
}

html body {
	background-color: #fff;
}

body,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea {
	font-family: var(--ps-font);
}

.ps-container {
	width: 100%;
	max-width: calc(var(--ps-container) + 2 * var(--ps-gutter));
	margin-inline: auto;
	padding-inline: var(--ps-gutter);
	box-sizing: border-box;
}

/* Buttons */
.ps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}

.ps-btn--green {
	background: var(--ps-green);
	color: var(--ps-yellow);
}

.ps-header__actions .ps-btn {
	padding-inline: 28px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
}

.ps-btn--green:hover,
.ps-btn--green:focus-visible {
	background: var(--ps-green-900);
	color: var(--ps-yellow);
}

/* ==========================================================================
   Header
   ========================================================================== */

/* Sticky header (below the WordPress toolbar when logged in). */
#header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.ps-header {
	background: #fff;
	transition: box-shadow .3s ease;
}

.ps-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

@media (max-width: 600px) {
	/* The toolbar scrolls away on phones. */
	#header {
		top: 0;
	}
}

.ps-header__bar {
	display: flex;
	align-items: center;
	gap: clamp(16px, -23.385px + 3.8462vw, 32px);
	min-height: 71px;
	padding-block: 9px;
}

.ps-logo {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--ps-ink);
}

/* Logo: shield mark + wordmark text. */
.ps-logo {
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.ps-logo__mark {
	display: block;
	width: auto;
	height: 46px;
}

.ps-logo__text {
	color: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.01em;
	white-space: nowrap;
}

.ps-logo svg {
	display: block;
	width: auto;
	height: clamp(40px, 25.231px + 1.4423vw, 46px);
}

.ps-header__panel {
	display: flex;
	flex: 1;
	align-items: center;
	gap: clamp(16px, -23.385px + 3.8462vw, 32px);
}

.ps-nav {
	margin-inline: auto;
}

.ps-nav__list {
	display: flex;
	gap: clamp(22px, -27.231px + 4.8077vw, 42px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-nav__list a {
	color: #606060;
	font-size: clamp(14px, 8.182px + 0.5682vw, 15px);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.ps-nav__list a:hover,
.ps-nav__list a:focus-visible {
	color: var(--ps-green);
}

.ps-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ps-burger {
	display: none;
}

/* Language dropdown */
.ps-lang {
	position: relative;
}

.ps-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 4px;
	border: 0;
	background: none;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.ps-lang__toggle svg {
	width: 11px;
	height: auto;
	transition: transform .2s;
}

.ps-lang__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.ps-lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	min-width: 140px;
	margin: 0;
	padding: 10px 0;
	transform: translateX(-50%);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
	list-style: none;
}

.ps-lang__menu[hidden] {
	display: none;
}

.ps-lang__menu a {
	display: block;
	padding: 7px 18px;
	color: var(--ps-ink);
	font-size: 13px;
	text-decoration: none;
}

.ps-lang__menu a:hover,
.ps-lang__menu a.gt-current-lang {
	background: var(--ps-surface);
}

/* Hide Google Translate's injected banner/tooltip. */
body {
	top: 0 !important;
}

.skiptranslate iframe,
#goog-gt-tt,
.goog-te-banner-frame {
	display: none !important;
}

@media (max-width: 1023px) {
	.ps-header__bar {
		justify-content: space-between;
		min-height: 64px;
	}

	.ps-logo {
		color: var(--ps-green);
	}

	.ps-logo svg {
		height: clamp(32px, 26px + 1.6vw, 38px);
	}

	.ps-logo__mark {
		height: clamp(34px, 28px + 1.6vw, 40px);
	}

	.ps-logo__text {
		font-size: clamp(17px, 15px + .5vw, 20px);
	}

	.ps-burger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--ps-green);
		cursor: pointer;
	}

	.ps-burger__lines,
	.ps-burger__lines::before,
	.ps-burger__lines::after {
		display: block;
		width: 18px;
		height: 2px;
		border-radius: 2px;
		background: #fff;
		transition: transform .2s, opacity .2s;
	}

	.ps-burger__lines {
		position: relative;
	}

	.ps-burger__lines::before,
	.ps-burger__lines::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.ps-burger__lines::before { top: -6px; }
	.ps-burger__lines::after { top: 6px; }

	.is-open .ps-burger__lines { background: transparent; }
	.is-open .ps-burger__lines::before { transform: translateY(6px) rotate(45deg); }
	.is-open .ps-burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

	.ps-header__panel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px var(--ps-gutter) 32px;
		background: #fff;
		box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
	}

	.is-open .ps-header__panel {
		display: flex;
	}

	.ps-nav {
		margin: 0;
	}

	.ps-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.ps-nav__list a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid var(--ps-line);
		color: var(--ps-ink);
		font-size: 16px;
	}

	.ps-header__actions {
		justify-content: space-between;
	}

	.ps-lang__menu {
		left: 0;
		transform: none;
	}
}

/* ==========================================================================
   Footer (content comes from the "Site Footer" synced pattern)
   ========================================================================== */

.ps-footer {
	margin-top: clamp(48px, 18.333px + 8.2407vw, 137px);
	padding: clamp(48px, 37.333px + 2.963vw, 80px) 0 28px;
	border-radius: 24px 24px 0 0;
	background: var(--ps-yellow);
	color: var(--ps-ink);
}

.ps-footer a {
	color: inherit;
	text-decoration: none;
}

.ps-footer a:hover {
	text-decoration: underline;
}

.ps-footer :where(h2, h3, p, ul) {
	margin: 0;
}

.ps-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 24px + 1.1111vw, 40px);
	padding-bottom: clamp(32px, 24px + 2.2222vw, 56px);
}

.ps-footer__title {
	max-width: 300px;
	margin-bottom: 18px !important;
	color: #000;
	font-size: clamp(18px, 16px + 0.5556vw, 24px);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.ps-footer__brand p {
	max-width: 280px;
	font-family: "Poppins", var(--ps-font);
	font-size: 15px;
	line-height: 1.6;
}

.ps-footer__heading {
	margin-bottom: 18px !important;
	color: #000;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.ps-footer__links {
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1;
}

.ps-footer__links li + li {
	margin-top: 9px;
}

/* Figma: 1px black at ~22% over the yellow (#c7a115). Blocksy gives separators a 2px
   height and a grey colour, so both are reset here. */
.ps-footer .ps-footer__rule.wp-block-separator {
	width: 100%;
	max-width: none;
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, .22);
	background: none;
	color: transparent;
	opacity: 1;
}

.ps-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 22px 180px 0 8px;
	font-family: "Poppins", var(--ps-font);
	font-size: 13px;
	line-height: 1;
}

.ps-footer__bottom p {
	font-size: 13px;
	line-height: 1;
}

.ps-footer__legal a {
	text-decoration: underline;
}

@media (max-width: 1023px) {
	.ps-footer__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ps-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 599px) {
	.ps-footer {
		padding-top: 48px;
		border-radius: 0;
		color: var(--ps-green);
	}

	.ps-footer__title,
	.ps-footer__heading {
		color: var(--ps-green);
	}

	.ps-footer__title {
		max-width: none;
		margin-bottom: 8px !important;
		font-size: 18px;
	}

	.ps-footer__brand p {
		max-width: none;
		font-size: 13px;
	}

	.ps-footer__main {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-bottom: 32px;
	}

	.ps-footer__heading {
		margin-bottom: 10px !important;
		font-size: 15px;
	}

	.ps-footer__links {
		font-size: 13px;
		line-height: 1.75;
	}

	.ps-footer__links li + li {
		margin-top: 0;
	}

	.ps-footer .ps-footer__rule.wp-block-separator {
		border-top-color: rgba(0, 0, 0, .12);
	}

	.ps-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 24px 0 4px;
		font-size: 12px;
	}
}

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */

.ps-whatsapp {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 62px;
	padding: 0 28px;
	border: 3px solid var(--ps-ink);
	border-radius: 999px;
	background: var(--ps-yellow);
	color: var(--ps-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.ps-whatsapp:hover {
	color: var(--ps-ink);
	transform: translateY(-1px);
}

.ps-whatsapp svg {
	width: 22px;
	height: 22px;
}

@media (max-width: 599px) {
	.ps-whatsapp {
		padding: 12px 18px;
		font-size: 14px;
	}
}
