/*
Theme Name: YouGo Cars
Theme URI: https://yougocars.com/
Author: Igor Korol
Author URI: https://yougocars.com/
Description: Description: Custom WordPress theme created for YouGo Cars. Supports integration with the "YouGo Cars Rental Booking" and "YouGo Cars Transfer Booking" plugins.
Version: 1.2.4
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: yougocars-theme
*/

:root {
	--ygc-theme-color-primary: var(--wp--preset--color--primary, #2abe39);
	--ygc-theme-color-primary-hover: #25a933;
	--ygc-theme-color-secondary: var(--wp--preset--color--secondary, #046bd2);
	--ygc-theme-color-secondary-hover: #035bb3;
	--ygc-theme-color-accent: var(--wp--preset--color--accent, #046bd2);
	--ygc-theme-bg-site: var(--wp--preset--color--background, #ffffff);
	--ygc-theme-bg-content: var(--wp--preset--color--surface, #ffffff);
	--ygc-theme-bg-section: var(--wp--preset--color--surface-muted, #eaedf0);
	--ygc-theme-bg-dark: var(--wp--preset--color--surface-dark, #232628);
	--ygc-theme-text-heading: var(--wp--preset--color--heading, #232628);
	--ygc-theme-text-body: var(--wp--preset--color--foreground, #444444);
	--ygc-theme-text-light: var(--wp--preset--color--foreground-light, #ffffff);
	--ygc-theme-text-muted: var(--wp--preset--color--muted, #6b7280);
	--ygc-theme-link: var(--wp--preset--color--secondary, #046bd2);
	--ygc-theme-link-hover: #035bb3;
	--ygc-theme-border: var(--wp--preset--color--border, #e5e7eb);
	--ygc-theme-border-dark: #d1d5db;
	--ygc-theme-success: var(--wp--preset--color--success, #2abe39);
	--ygc-theme-error: var(--wp--preset--color--error, #ef4444);
	--ygc-theme-warning: var(--wp--preset--color--warning, #f59e0b);

	/* Layout */
	--ygc-theme-container-width: 1280px;
	--ygc-theme-content-width: var(--wp--style--global--content-size, var(--ygc-theme-container-width));
	--ygc-theme-wide-width: var(--wp--style--global--wide-size, var(--ygc-theme-container-width));
	--ygc-theme-container-padding: 16px;
	--ygc-theme-section-padding-y: 32px;
	--ygc-theme-section-padding-y-mobile: 30px;

	/* Typography */
	--ygc-theme-font-family-base: var(--wp--preset--font-family--system, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--ygc-theme-line-height-base: var(--wp--custom--line-height--base, 1.6);

	/* Radius */
	--ygc-theme-radius: 8px;
}

html {
	box-sizing: border-box;
}

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

body {
	--ygc-rental-container-width: var(--ygc-theme-container-width);
	--ygc-rental-archive-padding-block: 0;
	--ygc-rental-archive-padding-inline: 0;

	margin: 0;
	color: var(--ygc-theme-text-body);
	background: var(--ygc-theme-bg-site);
	font-family: var(--ygc-theme-font-family-base);
	line-height: var(--ygc-theme-line-height-base);
}

a {
	color: var(--ygc-theme-link);
}

.ygc-theme-site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ygc-theme-container {
	width: min(100% - (var(--ygc-theme-container-padding) * 2), var(--ygc-theme-container-width));
	margin-inline: auto;
}

.ygc-theme-site-header,
.ygc-theme-site-footer {
	background: var(--ygc-theme-bg-content);
	border-color: var(--ygc-theme-border);
}

.ygc-theme-header-top {
	width: 100%;
	background: var(--ygc-theme-bg-dark);
}

.ygc-theme-header-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 110px;
}

.ygc-theme-header-logo-link {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	color: var(--ygc-theme-text-light);
	font-weight: 700;
	text-decoration: none;
}

.ygc-theme-header-logo {
	display: block;
	width: auto;
	max-width: 240px;
	height: 62px;
	object-fit: contain;
}

.ygc-theme-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 32px;
	min-width: 0;
}

.ygc-theme-header-mobile-controls {
	display: none;
}

.ygc-theme-header-contacts {
	display: flex;
	align-items: center;
	line-height: 22px;
	color: var(--ygc-theme-color-primary);
	letter-spacing: 1px;
}

.ygc-theme-header-contacts a {
	color: inherit;
	text-decoration: none;
}

.ygc-theme-header-contacts .ygc-theme-header-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 15px 0 33px;
	padding: 0;
	border: 2px solid var(--ygc-theme-color-secondary);
	border-radius: 50%;
	color: var(--ygc-theme-color-secondary);
	font-size: 24px;
}

.ygc-theme-header-contact-text {
	white-space: nowrap;
}

.ygc-theme-header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 164px;
	white-space: nowrap;
	height: 46px;
	padding: 0 22px;
	border-radius: 30px;
	color: var(--ygc-theme-text-light);
	background: var(--ygc-theme-color-secondary);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.ygc-theme-header-button:hover,
.ygc-theme-header-button:focus {
	color: var(--ygc-theme-text-light);
	background: var(--ygc-theme-color-secondary-hover);
}

.ygc-theme-header-bottom {
	width: 100%;
	background: var(--ygc-theme-bg-section);
}

.ygc-theme-site-footer {
	margin-top: auto;
	background: var(--ygc-theme-bg-dark);
}

.ygc-theme-header-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 54px;
}

.ygc-theme-primary-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.ygc-theme-site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.ygc-theme-site-title a {
	color: inherit;
	text-decoration: none;
}

.ygc-theme-primary-menu {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}

.ygc-theme-primary-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	color: #334155;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.ygc-theme-primary-menu a:hover,
.ygc-theme-primary-menu a:focus,
.ygc-theme-primary-menu .current-menu-item > a,
.ygc-theme-primary-menu .current-menu-ancestor > a,
.ygc-theme-primary-menu .current_page_item > a,
.ygc-theme-primary-menu .current-page-ancestor > a {
	color: var(--ygc-theme-color-secondary);
}

.ygc-theme-language-switcher {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
}

.ygc-theme-header-language-desktop {
	display: inline-flex;
	flex: 0 0 auto;
}

.ygc-theme-language-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 60px;
	min-height: 36px;
	padding: 8px 10px;
	border: 0;
	border-radius: 999px;
	background: var(--ygc-theme-bg-section);
	color: #334155;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.ygc-theme-language-toggle:hover,
.ygc-theme-language-toggle:focus {
	color: var(--ygc-theme-color-secondary);
}

.ygc-theme-language-arrow {
	font-size: 12px;
}

.ygc-theme-language-menu {
	position: absolute;
	top: calc( 100% + 6px );
	left: 0;
	z-index: 9999;
	display: none;
	min-width: 100%;
	overflow: hidden;
	border: 0;
	border-radius: var(--ygc-theme-radius);
	background: var(--ygc-theme-bg-content);
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.08 );
}

.ygc-theme-language-switcher.is-open .ygc-theme-language-menu {
	display: block;
}

.ygc-theme-language-item {
	display: block;
	padding: 10px 12px;
	color: #334155;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.ygc-theme-language-item:hover,
.ygc-theme-language-item.is-active {
	background: rgba( 4, 107, 210, 0.08 );
	color: var(--ygc-theme-color-secondary);
}

.ygc-theme-main {
	padding-block: var(--ygc-theme-section-padding-y);
}

.ygc-theme-main.has-no-top-spacing {
	padding-top: 0;
}

.ygc-theme-main.has-no-bottom-spacing {
	padding-bottom: 0;
}

.ygc-theme-entry {
	background: var(--ygc-theme-bg-content);
}

.ygc-theme-entry-content {
	width: min(100% - (var(--ygc-theme-container-padding) * 2), var(--ygc-theme-content-width));
	margin-inline: auto;
}

.ygc-theme-entry-content > * {
	max-width: 100%;
}

.ygc-theme-main .ygc-theme-entry .ygc-theme-entry-content > .alignwide {
	width: min(calc(100vw - (var(--ygc-theme-container-padding) * 2)), var(--ygc-theme-wide-width));
	max-width: none;
	margin-left: calc((100% - min(calc(100vw - (var(--ygc-theme-container-padding) * 2)), var(--ygc-theme-wide-width))) / 2);
	margin-right: calc((100% - min(calc(100vw - (var(--ygc-theme-container-padding) * 2)), var(--ygc-theme-wide-width))) / 2);
}

.ygc-theme-main .ygc-theme-entry .ygc-theme-entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
}

.ygc-theme-entry-header {
	margin-bottom: 32px;
}

.ygc-theme-entry-title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
}

.ygc-theme-footer-main,
.ygc-theme-footer-bottom {
	background: var(--ygc-theme-bg-dark);
}

.ygc-theme-footer-main {
	min-height: 183px;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.08 );
}

.ygc-theme-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr) minmax(0, 0.6fr);
	align-items: start;
	gap: clamp(24px, 5vw, 80px);
	min-height: 183px;
	padding: 34px 0 24px;
}

.ygc-theme-footer-column {
	color: rgba( 255, 255, 255, 0.72 );
	font-size: 1rem;
	line-height: 1.8;
}

.ygc-theme-footer-about {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 18px;
}

.ygc-theme-footer-image-wrap {
	display: flex;
	align-items: stretch;
	min-height: 100px;
}

.ygc-theme-footer-image {
	width: auto;
	max-width: 200px;
	height: 100px;
	object-fit: contain;
	margin-top: 6px;
}

.ygc-theme-footer-title {
	margin: 0 0 10px;
	color: var(--ygc-theme-text-light);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.25;
	opacity: .8;
}

.ygc-theme-footer-text,
.ygc-theme-footer-text p {
	margin: 0;
}

.ygc-theme-footer-menu,
.ygc-theme-footer-contact {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ygc-theme-footer-menu a,
.ygc-theme-footer-contact a {
	color: rgba( 255, 255, 255, 0.72 );
	text-decoration: none;
}

.ygc-theme-footer-menu a:hover,
.ygc-theme-footer-menu a:focus,
.ygc-theme-footer-contact a:hover,
.ygc-theme-footer-contact a:focus {
	color: var(--ygc-theme-color-primary);
}

.ygc-theme-social-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0;
}

.ygc-theme-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba( 255, 255, 255, 0.16 );
	border-radius: 50%;
	color: var(--ygc-theme-text-light);
	background: transparent;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.ygc-theme-social-link:hover,
.ygc-theme-social-link:focus {
	border-color: var(--ygc-theme-color-secondary);
	color: var(--ygc-theme-text-light);
	background: var(--ygc-theme-color-secondary);
}

.ygc-theme-footer-bottom {
	min-height: 71px;
}

.ygc-theme-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 71px;
}

.ygc-theme-footer-copyright {
	color: rgba( 255, 255, 255, 0.62 );
	font-size: 0.875rem;
	text-align: left;
}

.ygc-theme-social-icon {
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ygc-theme-social-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}


@media (max-width: 860px) {
	.ygc-theme-main {
		padding-block: var(--ygc-theme-section-padding-y-mobile);
	}

	.ygc-theme-main.has-no-top-spacing {
		padding-top: 0;
	}

	.ygc-theme-main.has-no-bottom-spacing {
		padding-bottom: 0;
	}

	.ygc-theme-site-header {
		position: relative;
		z-index: 1000;
	}

	.ygc-theme-header-top-inner {
		min-height: 70px;
		height: 70px;
		gap: 16px;
	}

	.ygc-theme-header-logo {
		max-width: 180px;
		height: 44px;
	}

	.ygc-theme-header-actions,
	.ygc-theme-header-language-desktop {
		display: none;
	}

	.ygc-theme-header-mobile-controls {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 12px;
		margin-left: auto;
	}

	.ygc-theme-header-language-mobile {
		display: inline-flex;
		flex: 0 0 auto;
	}

	.ygc-theme-header-language-mobile .ygc-theme-language-toggle {
		min-width: 54px;
		min-height: 34px;
		padding: 7px 9px;
		background: var(--ygc-theme-bg-dark);
		color: var(--ygc-theme-text-light);
	}

	.ygc-theme-header-language-mobile .ygc-theme-language-toggle:hover,
	.ygc-theme-header-language-mobile .ygc-theme-language-toggle:focus {
		color: var(--ygc-theme-color-primary);
	}

	.ygc-theme-header-language-mobile .ygc-theme-language-menu {
		right: 0;
		left: auto;
	}

	.ygc-theme-mobile-menu-toggle {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--ygc-theme-text-light);
		cursor: pointer;
	}

	.ygc-theme-mobile-menu-line {
		position: absolute;
		left: 8px;
		display: block;
		width: 26px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
	}

	.ygc-theme-mobile-menu-line:nth-child(1) {
		top: 13px;
	}

	.ygc-theme-mobile-menu-line:nth-child(2) {
		top: 20px;
	}

	.ygc-theme-mobile-menu-line:nth-child(3) {
		top: 27px;
	}

	.ygc-theme-site-header.is-menu-open .ygc-theme-mobile-menu-line:nth-child(1) {
		top: 20px;
		transform: rotate(45deg);
	}

	.ygc-theme-site-header.is-menu-open .ygc-theme-mobile-menu-line:nth-child(2) {
		opacity: 0;
	}

	.ygc-theme-site-header.is-menu-open .ygc-theme-mobile-menu-line:nth-child(3) {
		top: 20px;
		transform: rotate(-45deg);
	}

	.ygc-theme-header-bottom {
		position: absolute;
		top: 70px;
		left: 0;
		display: none;
		width: 100%;
		border-top: 1px solid rgba( 35, 38, 40, 0.08 );
		box-shadow: 0 12px 24px rgba( 0, 0, 0, 0.12 );
	}

	.ygc-theme-site-header.is-menu-open .ygc-theme-header-bottom {
		display: block;
	}

	.ygc-theme-header-bottom-inner {
		display: block;
		min-height: 0;
		padding: 6px 0 10px;
	}

	.ygc-theme-primary-nav {
		width: 100%;
	}

	.ygc-theme-primary-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		white-space: normal;
	}

	.ygc-theme-primary-menu li {
		width: 100%;
	}

	.ygc-theme-primary-menu a {
		width: 100%;
		min-height: 48px;
		padding: 0;
		border-bottom: 1px solid rgba( 51, 65, 85, 0.1 );
	}

	.ygc-theme-footer-grid {
		grid-template-columns: 1fr;
		align-items: center;
		justify-items: center;
		gap: 28px;
		min-height: 0;
		padding: 32px 0;
		text-align: center;
	}

	.ygc-theme-footer-bottom-inner {
		align-items: center;
		flex-direction: column;
		justify-content: center;
		gap: 14px;
		padding: 16px 0;
		text-align: center;
	}

	.ygc-theme-footer-about {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.ygc-theme-footer-image-wrap {
		justify-content: center;
	}

	.ygc-theme-footer-menu,
	.ygc-theme-footer-contact {
		justify-items: center;
	}

	.ygc-theme-social-links {
		justify-content: center;
	}

	.ygc-theme-footer-copyright {
		text-align: center;
	}
}

.ygc-rental-archive-title {
	margin: 0 0 25px;
	font-size: 34px;
}

.ygc-rental-archive-desc {
	margin: 0 0 20px;
	font-size: 18px;
}

.ygc-rental-terms h2 {
	margin: 0 !important;
}

.ygc-rental-terms ul {
	margin-left: 0 !important;
}
.ygc-rental-terms ul li::before {
	top: -8px !important;
}
