/*
 * Garage child theme - site chrome (header + footer).
 * Design tokens match the locked homepage package.
 * Every selector is .sgd- prefixed so nothing leaks into page content.
 */

.sgd-header,
.sgd-footer {
	--sgd-yellow: #ffcc00;
	--sgd-yellow-dk: #ffba00;
	--sgd-ink: #111318;
	--sgd-ink-2: #17191e;
	--sgd-red: #e52b2e;
	--sgd-line: #e8e8e5;
	--sgd-muted: #525762;
	--sgd-ease: cubic-bezier(.22, 1, .36, 1);

	font-family: Poppins, Arial, sans-serif;
	box-sizing: border-box;
}

.sgd-header *,
.sgd-footer *,
.sgd-header *::before,
.sgd-footer *::before,
.sgd-header *::after,
.sgd-footer *::after {
	box-sizing: border-box;
}

.sgd-shell {
	width: 100%;
	max-width: 1190px;
	margin-inline: auto;
	padding-inline: 28px;
}

@media (max-width: 600px) {
	.sgd-shell {
		padding-inline: 19px;
	}
}

/* Skip link */

.sgd-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--sgd-yellow, #ffcc00);
	color: #111318;
	font: 800 14px/1 Poppins, Arial, sans-serif;
	padding: 14px 20px;
	border-radius: 0 0 12px 0;
	text-decoration: none;
}

.sgd-skip:focus {
	left: 0;
}

/* ---------- Shared button ---------- */

.sgd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 11px;
	border: 2px solid var(--sgd-ink);
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .25s var(--sgd-ease), box-shadow .25s var(--sgd-ease), background .25s, color .25s;
}

.sgd-btn--yellow {
	background: var(--sgd-yellow);
	color: var(--sgd-ink);
	box-shadow: 0 6px 0 var(--sgd-ink);
}

.sgd-btn--yellow:hover,
.sgd-btn--yellow:focus-visible {
	color: var(--sgd-ink);
	transform: translateY(-3px);
	box-shadow: 0 9px 0 var(--sgd-ink);
}

.sgd-btn--line {
	background: transparent;
	color: var(--sgd-ink);
}

.sgd-btn--line:hover,
.sgd-btn--line:focus-visible {
	background: var(--sgd-ink);
	color: #fff;
	transform: translateY(-3px);
}

.sgd-header a:focus-visible,
.sgd-header button:focus-visible,
.sgd-footer a:focus-visible,
.sgd-footer button:focus-visible {
	outline: 3px solid #e6a800;
	outline-offset: 3px;
}

/* ---------- Top utility bar ---------- */

.sgd-topbar {
	background: var(--sgd-ink);
	color: #fff;
	border-bottom: 3px solid var(--sgd-yellow);
}

.sgd-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 44px;
	padding-block: 7px;
}

.sgd-topbar__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sgd-topbar__list li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12.5px;
	font-weight: 600;
	color: #d7d9df;
	line-height: 1.4;
}

.sgd-topbar__list li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sgd-yellow);
}

.sgd-topbar__cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 900;
	color: var(--sgd-yellow);
	text-decoration: none;
	transition: color .25s;
}

.sgd-topbar__cta:hover,
.sgd-topbar__cta:focus-visible {
	color: #fff;
}

@media (max-width: 1024px) {
	.sgd-topbar__list li:nth-child(n+3) {
		display: none;
	}
}

@media (max-width: 760px) {
	.sgd-topbar__inner {
		justify-content: center;
	}
	.sgd-topbar__list {
		display: none;
	}
}

/* ---------- Main bar ---------- */

.sgd-bar {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #fff;
	border-bottom: 1px solid var(--sgd-line);
	transition: box-shadow .3s var(--sgd-ease);
}

.admin-bar .sgd-bar {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .sgd-bar {
		top: 46px;
	}
}

.sgd-bar.is-stuck {
	box-shadow: 0 10px 30px rgba(17, 19, 24, .10);
}

.sgd-bar__inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 84px;
	padding-block: 12px;
}

.sgd-brand {
	flex: none;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.sgd-brand__img {
	display: block;
	width: auto;
	height: 52px;
	max-width: 240px;
	object-fit: contain;
}

@media (max-width: 600px) {
	.sgd-brand__img {
		height: 42px;
		max-width: 180px;
	}
	.sgd-bar__inner {
		min-height: 68px;
		gap: 14px;
	}
}

.sgd-bar__actions {
	flex: none;
	margin-left: auto;
}

/* ---------- Primary navigation ---------- */

.sgd-bar .sgd-nav {
	margin-left: auto;
}

.sgd-menu,
.sgd-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sgd-bar .sgd-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.sgd-bar .sgd-menu > li {
	position: relative;
}

.sgd-bar .sgd-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--sgd-ink);
	text-decoration: none;
	line-height: 1.2;
	transition: background .25s, color .25s;
}

.sgd-bar .sgd-menu > li > a:hover,
.sgd-bar .sgd-menu > li > a:focus-visible {
	background: #fff6cf;
}

.sgd-bar .sgd-menu > li.current-menu-item > a,
.sgd-bar .sgd-menu > li.current_page_item > a,
.sgd-bar .sgd-menu > li.current-menu-ancestor > a {
	background: var(--sgd-ink);
	color: #fff;
}

/* Parent caret */

.sgd-bar .sgd-menu > li.menu-item-has-children > a::after,
.sgd-bar .sgd-menu > li.page_item_has_children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2.5px solid currentColor;
	border-bottom: 2.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .25s var(--sgd-ease);
}

.sgd-bar .sgd-menu > li.menu-item-has-children:hover > a::after,
.sgd-bar .sgd-menu > li.page_item_has_children:hover > a::after {
	transform: translateY(1px) rotate(225deg);
}

/* Dropdown panel */

.sgd-bar .sgd-menu ul.sub-menu,
.sgd-bar .sgd-menu ul.children {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 248px;
	padding: 9px;
	background: #fff;
	border: 1px solid var(--sgd-line);
	border-radius: 16px;
	box-shadow: 0 22px 45px rgba(17, 19, 24, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s var(--sgd-ease), transform .25s var(--sgd-ease), visibility .25s;
	z-index: 20;
}

.sgd-bar .sgd-menu > li:hover > ul.sub-menu,
.sgd-bar .sgd-menu > li:focus-within > ul.sub-menu,
.sgd-bar .sgd-menu > li:hover > ul.children,
.sgd-bar .sgd-menu > li:focus-within > ul.children {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sgd-bar .sgd-menu ul.sub-menu li,
.sgd-bar .sgd-menu ul.children li {
	position: relative;
}

.sgd-bar .sgd-menu ul.sub-menu a,
.sgd-bar .sgd-menu ul.children a {
	display: block;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #2a2d34;
	text-decoration: none;
	line-height: 1.45;
	transition: background .22s, color .22s;
}

.sgd-bar .sgd-menu ul.sub-menu a:hover,
.sgd-bar .sgd-menu ul.sub-menu a:focus-visible,
.sgd-bar .sgd-menu ul.children a:hover,
.sgd-bar .sgd-menu ul.children a:focus-visible {
	background: #fff6cf;
	color: var(--sgd-ink);
}

/* Third level opens to the side */

.sgd-bar .sgd-menu ul.sub-menu ul.sub-menu {
	top: -9px;
	left: calc(100% + 6px);
}

/* ---------- Burger ---------- */

.sgd-burger {
	display: none;
	flex: none;
	margin-left: auto;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--sgd-ink);
	border-radius: 11px;
	background: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.sgd-burger__box {
	display: grid;
	gap: 5px;
	width: 20px;
}

/* Kadence styles bare <button> elements with its own blue palette, which
   took over the burger on :focus/:active after a tap. Pin every state to
   the site's own scheme so it only ever reads white -> yellow. */
.sgd-header .sgd-burger,
.sgd-header .sgd-burger:link,
.sgd-header .sgd-burger:visited,
.sgd-header .sgd-burger:focus,
.sgd-header .sgd-burger:focus-visible,
.sgd-header .sgd-burger:active {
	background: #fff;
	border-color: var(--sgd-ink);
	color: var(--sgd-ink);
	box-shadow: none;
}

.sgd-header .sgd-burger:hover,
.sgd-header .sgd-burger[aria-expanded="true"] {
	background: var(--sgd-yellow);
	border-color: var(--sgd-ink);
	color: var(--sgd-ink);
}

.sgd-header .sgd-burger:focus-visible {
	outline: 3px solid #e6a800;
	outline-offset: 3px;
}

.sgd-burger__box i {
	display: block;
	height: 2.5px;
	border-radius: 4px;
	background: var(--sgd-ink);
	transition: transform .3s var(--sgd-ease), opacity .2s;
}

.sgd-header .sgd-burger:hover .sgd-burger__box i,
.sgd-header .sgd-burger:focus .sgd-burger__box i,
.sgd-header .sgd-burger:active .sgd-burger__box i,
.sgd-header .sgd-burger[aria-expanded="true"] .sgd-burger__box i {
	background: var(--sgd-ink);
}

.sgd-burger[aria-expanded="true"] .sgd-burger__box i:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
}

.sgd-burger[aria-expanded="true"] .sgd-burger__box i:nth-child(2) {
	opacity: 0;
}

.sgd-burger[aria-expanded="true"] .sgd-burger__box i:nth-child(3) {
	transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Mobile drawer ---------- */

.sgd-drawer {
	display: none;
}

.sgd-drawer__note {
	margin: 18px 0 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: #9ea1aa;
}

@media (max-width: 1024px) {
	.sgd-bar .sgd-nav,
	.sgd-bar__actions {
		display: none;
	}

	.sgd-burger {
		display: inline-flex;
	}

	.sgd-drawer {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9998;
		background: var(--sgd-ink);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		transition: opacity .3s var(--sgd-ease), transform .3s var(--sgd-ease), visibility .3s;
	}

	.sgd-drawer[hidden] {
		display: none;
	}

	.sgd-drawer.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	/* Drawer top bar: stays reachable while a long menu scrolls */
	.sgd-drawer__top {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 14px 24px;
		min-height: 68px;
		background: var(--sgd-ink);
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}

	.sgd-brand--drawer .sgd-brand__img {
		height: 40px;
		max-width: 170px;
		background: #fff;
		padding: 7px 10px;
		border-radius: 10px;
	}

	.sgd-drawer__close {
		flex: none;
		width: 46px;
		height: 46px;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(255, 255, 255, .08);
		border: 2px solid rgba(255, 255, 255, .25);
		border-radius: 11px;
		cursor: pointer;
		transition: background .22s, border-color .22s;
	}

	.sgd-drawer__close:hover,
	.sgd-drawer__close:focus-visible {
		background: var(--sgd-yellow);
		border-color: var(--sgd-yellow);
	}

	.sgd-drawer__close-box {
		position: relative;
		display: block;
		width: 18px;
		height: 18px;
	}

	.sgd-drawer__close-box i {
		position: absolute;
		top: 50%;
		left: 0;
		width: 100%;
		height: 2.5px;
		border-radius: 4px;
		background: #fff;
		transition: background .22s;
	}

	.sgd-drawer__close-box i:nth-child(1) {
		transform: translateY(-50%) rotate(45deg);
	}

	.sgd-drawer__close-box i:nth-child(2) {
		transform: translateY(-50%) rotate(-45deg);
	}

	.sgd-drawer__close:hover .sgd-drawer__close-box i,
	.sgd-drawer__close:focus-visible .sgd-drawer__close-box i {
		background: var(--sgd-ink);
	}

	.sgd-drawer__inner {
		padding: 28px 24px 48px;
		max-width: 560px;
		margin-inline: auto;
	}

	.sgd-drawer .sgd-menu {
		display: grid;
		gap: 4px;
	}

	.sgd-drawer .sgd-menu a {
		display: block;
		padding: 15px 4px;
		font-size: 18px;
		font-weight: 800;
		color: #fff;
		text-decoration: none;
		border-bottom: 1px solid rgba(255, 255, 255, .10);
	}

	.sgd-drawer .sgd-menu ul.sub-menu,
	.sgd-drawer .sgd-menu ul.children {
		margin: 0 0 6px 14px;
		padding-left: 12px;
		border-left: 2px solid rgba(255, 204, 0, .4);
	}

	.sgd-drawer .sgd-menu ul.sub-menu a,
	.sgd-drawer .sgd-menu ul.children a {
		font-size: 15px;
		font-weight: 600;
		color: #d4d6dc;
		padding: 12px 4px;
		border-bottom: 0;
	}

	/* Accordion toggle injected by JS onto parent items */
	.sgd-drawer .sgd-has-sub {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		border-bottom: 1px solid rgba(255, 255, 255, .10);
	}

	.sgd-drawer .sgd-has-sub > a {
		flex: 1;
		border-bottom: 0;
	}

	.sgd-sub-toggle {
		flex: none;
		width: 38px;
		height: 38px;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(255, 255, 255, .08);
		border: 0;
		border-radius: 9px;
		cursor: pointer;
	}

	.sgd-sub-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2.5px solid var(--sgd-yellow);
		border-bottom: 2.5px solid var(--sgd-yellow);
		transform: translateY(-2px) rotate(45deg);
		transition: transform .25s var(--sgd-ease);
	}

	.sgd-sub-toggle[aria-expanded="true"]::before {
		transform: translateY(2px) rotate(225deg);
	}

	.sgd-drawer .sgd-menu [data-sgd-sub]:not(.is-open) {
		display: none;
	}

	.sgd-drawer__actions {
		display: grid;
		gap: 12px;
		margin-top: 26px;
	}

	.sgd-drawer__actions .sgd-btn {
		width: 100%;
	}

	.sgd-drawer__actions .sgd-btn--line {
		color: #fff;
		border-color: rgba(255, 255, 255, .45);
	}

	.sgd-drawer__actions .sgd-btn--line:hover {
		background: #fff;
		color: var(--sgd-ink);
	}

	body.sgd-drawer-open {
		overflow: hidden;
	}
}

/* ---------- Footer ---------- */

.sgd-footer {
	background: var(--sgd-ink);
	color: #c9ccd4;
	font-size: 14px;
	line-height: 1.75;
}

.sgd-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
	gap: 44px 36px;
	padding-block: 72px 56px;
}

@media (max-width: 1024px) {
	.sgd-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px 32px;
	}
	.sgd-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.sgd-footer__grid {
		grid-template-columns: 1fr;
		padding-block: 52px 40px;
	}
}

.sgd-brand--footer .sgd-brand__img {
	height: 56px;
	max-width: 230px;
	/* Logo artwork is dark-on-light; lift it for the dark footer. */
	background: #fff;
	padding: 10px 14px;
	border-radius: 12px;
}

.sgd-footer__blurb {
	margin: 20px 0 0;
	max-width: 44ch;
	color: #c9ccd4;
}

.sgd-footer__trust {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.sgd-footer__trust li {
	position: relative;
	padding-left: 30px;
	font-size: 13.5px;
	color: #e3e5ea;
	font-weight: 600;
}

.sgd-footer__trust li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sgd-yellow);
	color: var(--sgd-ink);
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

.sgd-footer__heading {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sgd-yellow);
}

.sgd-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 11px;
}

.sgd-footer__links a {
	color: #c9ccd4;
	text-decoration: none;
	font-size: 14px;
	transition: color .22s, transform .22s var(--sgd-ease);
	display: inline-block;
}

.sgd-footer__links a:hover,
.sgd-footer__links a:focus-visible {
	color: #fff;
	transform: translateX(4px);
}

.sgd-footer__cta {
	width: 100%;
	max-width: 230px;
}

.sgd-footer__booking {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 16px;
	color: var(--sgd-yellow);
	font-weight: 800;
	font-size: 14px;
	text-decoration: none;
	transition: gap .22s var(--sgd-ease), color .22s;
}

.sgd-footer__booking:hover,
.sgd-footer__booking:focus-visible {
	gap: 12px;
	color: #fff;
}

.sgd-footer__note {
	margin: 16px 0 0;
	font-size: 12.5px;
	line-height: 1.7;
	color: #9ea1aa;
}

/* Footer bottom */

.sgd-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .09);
}

.sgd-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	padding-block: 24px;
}

.sgd-footer__copy {
	margin: 0;
	font-size: 13px;
	color: #9ea1aa;
}

.sgd-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sgd-footer__legal-list a {
	color: #9ea1aa;
	font-size: 13px;
	text-decoration: none;
	transition: color .22s;
}

.sgd-footer__legal-list a:hover,
.sgd-footer__legal-list a:focus-visible {
	color: #fff;
}

/* The homepage carries a fixed mobile call bar; keep it clear of the footer. */
@media (max-width: 650px) {
	.sgd-footer__bottom-inner {
		padding-bottom: 82px;
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sgd-header *,
	.sgd-footer * {
		transition: none !important;
		animation: none !important;
	}
}
