/* ==================================================
   BENGKEL PER MOBIL
   HEADER + FOOTER
   ================================================== */


/* ==================================================
   HEADER
   ================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 999;

	width: 100%;
	height: 76px;

	background: var(--color-white);

	border-bottom:
		1px solid var(--color-border-soft);

	transition:
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-header);
}

.admin-bar .site-header {
	top: 32px;
}

.header-container {
	display: flex;
	align-items: center;

	height: 76px;
}


/* ==================================================
   BRANDING
   ================================================== */

.site-branding {
	display: flex;
	align-items: center;

	flex-shrink: 0;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;

	line-height: 0;
}

.custom-logo {
	display: block;

	width: auto;
	max-width: 210px;
	max-height: 54px;

	object-fit: contain;
}

.site-logo-text {
	display: inline-block;

	color: var(--color-heading);

	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 800;
	line-height: 1;

	text-transform: uppercase;

	transition: color 0.2s ease;
}

.site-logo-text:hover {
	color: var(--color-primary);
}


/* ==================================================
   PRIMARY NAVIGATION
   ================================================== */

.primary-navigation {
	display: flex;
	align-items: center;

	margin-left: auto;
}

.primary-menu {
	display: flex;
	align-items: center;

	gap: 4px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.primary-menu > li {
	position: relative;

	margin: 0;
	padding: 0;
}

.primary-menu > li > a {
	display: flex;
	align-items: center;

	min-height: 76px;

	padding: 0 13px;

	color: var(--color-secondary);

	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;

	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-parent > a,
.primary-menu > li.current-menu-ancestor > a {
	color: var(--color-primary);
}


/* ==================================================
   DROPDOWN
   ================================================== */

.primary-menu .menu-item-has-children > a::after {
	content: "";

	display: block;

	width: 6px;
	height: 6px;

	margin-left: 7px;
	margin-top: -3px;

	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;

	transform: rotate(45deg);
}

.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 30;

	width: 290px;

	margin: 0;
	padding: 8px;

	list-style: none;

	background: var(--color-white);

	border: 1px solid var(--color-border-soft);
	border-top: 3px solid var(--color-primary);

	border-radius:
		0 0 var(--radius-md) var(--radius-md);

	box-shadow:
		0 8px 22px rgba(0, 0, 0, 0.09);

	opacity: 0;
	visibility: hidden;

	transform: translateY(6px);

	transition:
		opacity 0.18s ease,
		visibility 0.18s ease,
		transform 0.18s ease;
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;

	transform: translateY(0);
}

.primary-menu .sub-menu li {
	margin: 0;
	padding: 0;
}

.primary-menu .sub-menu a {
	display: block;

	padding: 11px 12px;

	color: var(--color-secondary);

	border-radius: var(--radius-sm);

	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;

	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a {
	background: var(--color-surface);

	color: var(--color-primary);
}


/* ==================================================
   HEADER BOOKING
   ================================================== */

.header-booking {
	display: flex;
	align-items: center;

	flex-shrink: 0;

	margin-left: 16px;
}

.header-booking .btn {
	white-space: nowrap;
}

.mobile-booking {
	display: none;
}


/* ==================================================
   MOBILE MENU BUTTON
   ================================================== */

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;

	width: 44px;
	height: 44px;

	margin-left: auto;
	padding: 8px;

	background: transparent;

	border: 0;
	border-radius: var(--radius-sm);

	cursor: pointer;
}

.menu-toggle:hover {
	background: var(--color-surface);
}

.menu-toggle-line {
	display: block;

	width: 24px;
	height: 2px;

	margin: 3px auto;

	background: var(--color-secondary);

	border-radius: 2px;

	transition:
		transform 0.2s ease,
		opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"]
.menu-toggle-line:nth-child(1) {
	transform:
		translateY(8px)
		rotate(45deg);
}

.menu-toggle[aria-expanded="true"]
.menu-toggle-line:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"]
.menu-toggle-line:nth-child(3) {
	transform:
		translateY(-8px)
		rotate(-45deg);
}


/* ==================================================
   FOOTER
   ================================================== */

.site-footer {
	position: relative;

	padding: 48px 0 0;

	background: var(--color-secondary);
	color: #d5d5d5;
}

.footer-grid {
	display: grid;

	grid-template-columns:
		1.35fr
		0.75fr
		1fr
		1fr;

	gap: 36px;
}

.footer-column {
	min-width: 0;
}


/* ==================================================
   FOOTER BRAND
   ================================================== */

.footer-brand {
	max-width: 340px;
}

.footer-logo {
	margin-bottom: 16px;
}

.footer-logo .custom-logo {
	width: auto;
	max-width: 200px;
	max-height: 58px;

	object-fit: contain;

	filter:
		brightness(0)
		invert(1);
}

.footer-logo-text {
	display: inline-block;

	color: var(--color-white);

	font-family: var(--font-heading);
	font-size: 21px;
	font-weight: 800;
	line-height: 1;

	text-transform: uppercase;

	transition: color 0.2s ease;
}

.footer-logo-text:hover {
	color: var(--color-primary-hover);
}

.footer-description {
	max-width: 310px;

	margin: 0;

	color: #bfbfbf;

	font-size: 14px;
	line-height: 1.65;
}


/* ==================================================
   FOOTER TITLES
   ================================================== */

.footer-title {
	margin: 0 0 16px;

	color: var(--color-white);

	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
}


/* ==================================================
   FOOTER MENUS
   ================================================== */

.footer-menu {
	margin: 0;
	padding: 0;

	list-style: none;
}

.footer-menu li {
	margin: 0 0 9px;
	padding: 0;
}

.footer-menu li:last-child {
	margin-bottom: 0;
}

.footer-menu a {
	display: inline-block;

	color: #cccccc;

	font-size: 14px;
	line-height: 1.45;

	transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-menu .current-menu-item > a {
	color: var(--color-white);
}


/* ==================================================
   FOOTER CTA
   ================================================== */

.footer-contact p {
	max-width: 280px;

	margin: 0 0 18px;

	color: #bfbfbf;

	font-size: 14px;
	line-height: 1.65;
}

.footer-cta {
	min-height: 36px;

	padding: 7px 12px;
}


/* ==================================================
   SOCIAL MEDIA
   ================================================== */

.footer-social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;

	gap: 9px;

	margin-top: 18px;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 38px;
	height: 38px;

	background:
		rgba(255, 255, 255, 0.07);

	color: var(--color-white);

	border:
		1px solid rgba(255, 255, 255, 0.12);

	border-radius: var(--radius-sm);

	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.social-link:hover {
	background: var(--color-primary);

	border-color: var(--color-primary);

	color: var(--color-white);

	transform: translateY(-2px);
}

.social-link svg {
	display: block;

	width: 19px;
	height: 19px;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* ==================================================
   FOOTER BOTTOM
   ================================================== */

.footer-bottom {
	margin-top: 38px;
	padding: 18px 0;

	border-top:
		1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
	margin: 0;

	color: #9f9f9f;

	font-size: 13px;
	line-height: 1.5;

	text-align: center;
}


/* ==================================================
   FLOATING WHATSAPP
   ================================================== */

.floating-whatsapp {
	position: fixed;

	right: 22px;
	bottom: 22px;
	z-index: 900;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 58px;
	height: 58px;

	padding: 0;

	background: #25d366;
	color: #ffffff;

	border: 0;
	border-radius: 50%;

	box-shadow:
		0 5px 16px rgba(0, 0, 0, 0.18);

	transition:
		background-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
	background: #20bd5a;

	color: #ffffff;

	transform: translateY(-2px);

	box-shadow:
		0 7px 18px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;
}

.floating-whatsapp-icon svg {
	display: block;

	width: 34px;
	height: 34px;

	color: #ffffff;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1023px) {

	.header-booking {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	.primary-navigation {
		position: absolute;
		top: 76px;
		left: 0;

		display: none;

		width: 100%;

		margin: 0;
		padding:
			14px
			20px
			20px;

		background: var(--color-white);

		border-top:
			1px solid var(--color-border-soft);

		box-shadow:
			0 10px 18px rgba(0, 0, 0, 0.08);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-menu {
		display: block;

		width: 100%;
	}

	.primary-menu > li {
		width: 100%;

		border-bottom:
			1px solid var(--color-border-soft);
	}

	.primary-menu > li:last-child {
		border-bottom: 0;
	}

	.primary-menu > li > a {
		min-height: 0;

		width: 100%;

		padding: 13px 4px;
	}

	.primary-menu .menu-item-has-children > a::after {
		margin-left: auto;
		margin-right: 4px;
	}

	.primary-menu .sub-menu {
		position: static;

		width: 100%;

		margin: 0;
		padding:
			0
			0
			9px
			14px;

		background: transparent;

		border: 0;
		border-radius: 0;

		box-shadow: none;

		opacity: 1;
		visibility: visible;

		transform: none;
	}

	.primary-menu .sub-menu a {
		padding: 9px 10px;

		background: var(--color-surface);

		font-size: 13px;
	}

	.primary-menu .sub-menu li + li {
		margin-top: 4px;
	}

	.mobile-booking {
		display: block;

		padding-top: 16px;
	}

	.mobile-booking .btn {
		width: auto;
	}

	.footer-grid {
		grid-template-columns:
			1fr 1fr;

		gap:
			32px
			36px;
	}

	.footer-brand {
		max-width: none;
	}
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 767px) {

	.site-header,
	.header-container {
		height: 68px;
	}

	.primary-navigation {
		top: 68px;

		max-height:
			calc(100vh - 68px);

		overflow-y: auto;

		padding:
			12px
			16px
			18px;
	}

	.custom-logo {
		max-width: 170px;
		max-height: 46px;
	}

	.site-logo-text {
		font-size: 20px;
	}

	.site-footer {
		padding-top: 36px;
	}

	.footer-grid {
		grid-template-columns: 1fr;

		gap: 27px;
	}

	.footer-brand {
		max-width: none;
	}

	.footer-description,
	.footer-contact p {
		max-width: 100%;
	}

	.footer-bottom {
		margin-top: 28px;

		padding: 16px 0;
	}

	.footer-copyright {
		font-size: 12px;
	}

	.floating-whatsapp {
		right: 14px;
		bottom: 14px;

		width: 54px;
		height: 54px;
	}

	.floating-whatsapp-icon {
		width: 31px;
		height: 31px;
	}

	.floating-whatsapp-icon svg {
		width: 31px;
		height: 31px;
	}
}


/* ==================================================
   WORDPRESS ADMIN BAR
   ================================================== */

@media screen and (max-width: 782px) {

	.admin-bar .site-header {
		top: 46px;
	}
}


/* ==================================================
   REDUCED MOTION
   ================================================== */

@media (prefers-reduced-motion: reduce) {

	.site-header,
	.primary-menu a,
	.primary-menu .sub-menu,
	.menu-toggle-line,
	.footer-menu a,
	.social-link,
	.floating-whatsapp {
		transition: none;
	}
}