/*
 * Theme frontend styles are intentionally minimal.
 * Smooth scrolling is controlled by Turboiber Core.
 */

body.turboiber-smooth-scroll-enabled {
	overflow-x: hidden;
}

.turboiber-smooth-scroll-ready,
.turboiber-smooth-scroll-ready body {
	overscroll-behavior: none;
}

#smooth-wrapper {
	overflow: hidden;
}

#smooth-content {
	width: 100%;
	overflow: visible;
}

body.single-turboiber_job_offer .tb-job-application-form,
body.single-turboiber_job_offer .tb-job-application-form * {
	box-sizing: border-box;
	border-radius: 0 !important;
}

body.single-turboiber_job_offer .tb-job-side-panel {
	gap: 14px;
	border-top: 5px solid #f7c430;
	background: #fff;
}

body.single-turboiber_job_offer .tb-job-side-panel .elementor-widget-shortcode {
	width: 100%;
}

body.single-turboiber_job_offer .tb-job-application-form {
	width: 100%;
	color: #090909;
	font-family: var(--e-global-typography-text-font-family, "Barlow"), Arial, sans-serif;
}

body.single-turboiber_job_offer .tb-job-application-form .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

body.single-turboiber_job_offer .tb-job-application-form .wp-block-column {
	min-width: 0;
}

body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder-row {
	margin: 0 0 14px;
}

body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder__label,
body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder__label-text {
	margin: 0 0 7px;
	color: #090909;
	font-family: var(--e-global-typography-primary-font-family, "Barlow Condensed"), Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

body.single-turboiber_job_offer .tb-job-application-form input:not([type="checkbox"]):not([type="radio"]),
body.single-turboiber_job_offer .tb-job-application-form textarea,
body.single-turboiber_job_offer .tb-job-application-form select {
	width: 100%;
	min-height: 48px;
	border: 1px solid #d9d9d9 !important;
	background: #f4f4f4 !important;
	color: #090909 !important;
	box-shadow: none !important;
	font-size: 15px;
	line-height: 1.35;
}

body.single-turboiber_job_offer .tb-job-application-form textarea {
	min-height: 118px;
	resize: vertical;
}

body.single-turboiber_job_offer .tb-job-application-form input:focus,
body.single-turboiber_job_offer .tb-job-application-form textarea:focus,
body.single-turboiber_job_offer .tb-job-application-form select:focus {
	border-color: #090909 !important;
	outline: 2px solid #f7c430;
	outline-offset: 0;
}

body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder-file-upload__content {
	border: 1px dashed #b7b7b7;
	background: #f7f7f7;
}

body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder__field-wrap.checkradio-wrap {
	display: grid;
	gap: 8px;
}

body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder__field-wrap.checkradio-wrap label {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 9px;
	align-items: start;
	color: #333;
	font-size: 14px;
	line-height: 1.35;
}

body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder__field-wrap.checkradio-wrap a {
	color: #090909;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder__action-button,
body.single-turboiber_job_offer .tb-job-application-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	border: 1px solid #f7c430 !important;
	background: #f7c430 !important;
	color: #090909 !important;
	cursor: pointer;
	font-family: var(--e-global-typography-primary-font-family, "Barlow Condensed"), Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder__action-button:hover,
body.single-turboiber_job_offer .tb-job-application-form .jet-form-builder__action-button:focus,
body.single-turboiber_job_offer .tb-job-application-form button[type="submit"]:hover,
body.single-turboiber_job_offer .tb-job-application-form button[type="submit"]:focus {
	border-color: #090909 !important;
	background: #090909 !important;
	color: #f7c430 !important;
	box-shadow: none !important;
	outline: 2px solid #f7c430;
	outline-offset: 0;
}

@media (max-width: 767px) {
	body.single-turboiber_job_offer .tb-job-application-form .wp-block-columns {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/*
 * Site entrance motion helpers.
 * The script targets main content headings and selected large visuals.
 */
body .ti-site-motion-word {
	display: inline-block;
	overflow: hidden;
	padding-bottom: .04em;
	vertical-align: top;
}

body .ti-site-motion-word__inner {
	display: inline-block;
	will-change: transform, opacity;
}

body .ti-site-motion-mask {
	overflow: hidden;
	transform: translateZ(0);
}

body .ti-site-motion-mask :where(img, canvas, video) {
	transform-origin: center center;
	will-change: transform;
}

/*
 * Button microinteractions.
 * CSS-only: no DOM changes. The arrow is rendered with a masked SVG.
 */
:root {
	--turboiber-button-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23000' d='M754.8 480H160a32 32 0 1 0 0 64h594.8L521.3 777.3a32 32 0 0 0 45.4 45.4l288-288a32 32 0 0 0 0-45.4l-288-288a32 32 0 1 0-45.4 45.4z'/%3E%3C/svg%3E");
}

body :where(
	.elementor-widget-button .elementor-button,
	.elementor-button,
	.turboiber-job-offers-filter__submit,
	.turboiber-job-offers-filter__cta,
	.turboiber-job-offers-slider__cta,
	.turboiber-locations-summary__cta,
	.turboiber-mega-menu__cta-button,
	.turboiber-download-card__cta,
	.turboiber-login__button,
	.turboiber-login__secondary-button,
	.jet-form-builder__action-button,
	.jet-form-builder__submit,
	.jet-form-builder button[type="submit"],
	.tb-job-application-form .jet-form-builder__action-button,
	.tb-job-application-form button[type="submit"]
) {
	position: relative !important;
	isolation: isolate;
	overflow: hidden;
	border-radius: 0 !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
	transform: translate3d(0, 0, 0);
	transition:
		background-color .22s ease,
		border-color .22s ease,
		box-shadow .22s ease,
		color .22s ease,
		transform .22s cubic-bezier(.2, .9, .2, 1) !important;
	will-change: transform;
}

body :where(
	.elementor-widget-button .elementor-button,
	.elementor-button,
	.turboiber-job-offers-filter__submit,
	.turboiber-job-offers-filter__cta,
	.turboiber-job-offers-slider__cta,
	.turboiber-locations-summary__cta,
	.turboiber-mega-menu__cta-button,
	.turboiber-download-card__cta,
	.turboiber-login__button,
	.turboiber-login__secondary-button,
	.jet-form-builder__action-button,
	.jet-form-builder__submit,
	.jet-form-builder button[type="submit"],
	.tb-job-application-form .jet-form-builder__action-button,
	.tb-job-application-form button[type="submit"]
)::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		repeating-linear-gradient(
			115deg,
			transparent 0 12px,
			rgb(255 255 255 / .34) 12px 18px,
			transparent 18px 30px
		);
	content: "";
	pointer-events: none;
	transform: translateX(-120%);
	transition: transform .48s cubic-bezier(.16, 1, .3, 1);
}

body :where(
	.turboiber-job-offers-filter__submit,
	.turboiber-job-offers-filter__cta,
	.turboiber-locations-summary__cta,
	.turboiber-download-card__cta,
	.turboiber-login__button,
	.turboiber-login__secondary-button,
	.jet-form-builder__action-button,
	.jet-form-builder__submit,
	.jet-form-builder button[type="submit"],
	.tb-job-application-form .jet-form-builder__action-button,
	.tb-job-application-form button[type="submit"]
)::after {
	display: inline-flex;
	width: 1.08em;
	height: 1.08em;
	flex: 0 0 1.08em;
	margin-left: .7em;
	background: currentColor;
	content: "";
	mask: var(--turboiber-button-arrow-icon) center / contain no-repeat;
	-webkit-mask: var(--turboiber-button-arrow-icon) center / contain no-repeat;
	pointer-events: none;
	transform: translateX(0);
	transition: transform .22s cubic-bezier(.2, .9, .2, 1);
}

body :where(.elementor-button:has(.elementor-button-icon))::after {
	content: none;
}

body :where(.elementor-post__read-more) {
	display: inline-flex !important;
	align-items: center;
	width: max-content;
	max-width: 100%;
	padding: .08em .28em .14em;
	background:
		linear-gradient(
			90deg,
			var(--e-global-color-ade527d, #ffc726) 0 100%
		)
		left center / 0 100% no-repeat !important;
	color: var(--e-global-color-primary, #101010) !important;
	font-family: var(--e-global-typography-primary-font-family, "Barlow Condensed"), Arial, sans-serif;
	font-weight: 700 !important;
	line-height: 1.05;
	text-decoration: none !important;
	text-transform: uppercase;
	transition:
		background-size .28s cubic-bezier(.16, 1, .3, 1),
		color .22s ease,
		outline-color .22s ease !important;
}

body :where(.elementor-post__read-more:hover, .elementor-post__read-more:focus-visible) {
	background-size: 100% 100% !important;
	color: var(--e-global-color-primary, #101010) !important;
	outline: 0;
}

body :where(.elementor-post__read-more:focus-visible) {
	outline: 1px solid currentColor;
	outline-offset: 5px;
}

body :where(
	.turboiber-locations-summary__cta > span[aria-hidden="true"],
	.turboiber-download-card__cta > span[aria-hidden="true"]
) {
	width: 0;
	height: 0;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
	opacity: 0;
}

body :where(
	.elementor-widget-button .elementor-button:hover,
	.elementor-widget-button .elementor-button:focus-visible,
	.elementor-button:hover,
	.elementor-button:focus-visible,
	.turboiber-job-offers-filter__submit:hover,
	.turboiber-job-offers-filter__submit:focus-visible,
	.turboiber-job-offers-filter__cta:hover,
	.turboiber-job-offers-filter__cta:focus-visible,
	.turboiber-job-offers-slider__cta:hover,
	.turboiber-job-offers-slider__cta:focus-visible,
	.turboiber-locations-summary__cta:hover,
	.turboiber-locations-summary__cta:focus-visible,
	.turboiber-login__button:hover,
	.turboiber-login__button:focus-visible,
	.turboiber-login__secondary-button:hover,
	.turboiber-login__secondary-button:focus-visible,
	.jet-form-builder__action-button:hover,
	.jet-form-builder__action-button:focus-visible,
	.jet-form-builder__submit:hover,
	.jet-form-builder__submit:focus-visible,
	.jet-form-builder button[type="submit"]:hover,
	.jet-form-builder button[type="submit"]:focus-visible,
	.tb-job-application-form .jet-form-builder__action-button:hover,
	.tb-job-application-form .jet-form-builder__action-button:focus-visible,
	.tb-job-application-form button[type="submit"]:hover,
	.tb-job-application-form button[type="submit"]:focus-visible
)::before,
.turboiber-mega-menu__cta:hover .turboiber-mega-menu__cta-button::before,
.turboiber-mega-menu__cta:focus-visible .turboiber-mega-menu__cta-button::before,
.turboiber-download-card__link:hover .turboiber-download-card__cta::before,
.turboiber-download-card__link:focus-visible .turboiber-download-card__cta::before {
	transform: translateX(115%);
}

body :where(
	.elementor-widget-button .elementor-button:hover,
	.elementor-widget-button .elementor-button:focus-visible,
	.elementor-button:hover,
	.elementor-button:focus-visible,
	.turboiber-job-offers-filter__submit:hover,
	.turboiber-job-offers-filter__submit:focus-visible,
	.turboiber-job-offers-filter__cta:hover,
	.turboiber-job-offers-filter__cta:focus-visible,
	.turboiber-locations-summary__cta:hover,
	.turboiber-locations-summary__cta:focus-visible,
	.turboiber-login__button:hover,
	.turboiber-login__button:focus-visible,
	.turboiber-login__secondary-button:hover,
	.turboiber-login__secondary-button:focus-visible,
	.jet-form-builder__action-button:hover,
	.jet-form-builder__action-button:focus-visible,
	.jet-form-builder__submit:hover,
	.jet-form-builder__submit:focus-visible,
	.jet-form-builder button[type="submit"]:hover,
	.jet-form-builder button[type="submit"]:focus-visible,
	.tb-job-application-form .jet-form-builder__action-button:hover,
	.tb-job-application-form .jet-form-builder__action-button:focus-visible,
	.tb-job-application-form button[type="submit"]:hover,
	.tb-job-application-form button[type="submit"]:focus-visible
)::after,
.turboiber-download-card__link:hover .turboiber-download-card__cta::after,
.turboiber-download-card__link:focus-visible .turboiber-download-card__cta::after {
	transform: translateX(7px);
}

body :where(
	.elementor-button .elementor-button-icon,
	.turboiber-job-offers-slider__cta svg,
	.turboiber-mega-menu__cta-button svg
) {
	transition: transform .22s cubic-bezier(.2, .9, .2, 1);
}

body :where(
	.elementor-button:hover .elementor-button-icon,
	.elementor-button:focus-visible .elementor-button-icon,
	.turboiber-job-offers-slider__cta:hover svg,
	.turboiber-job-offers-slider__cta:focus-visible svg
),
.turboiber-mega-menu__cta:hover .turboiber-mega-menu__cta-button svg,
.turboiber-mega-menu__cta:focus-visible .turboiber-mega-menu__cta-button svg {
	transform: translateX(7px);
}

body :where(
	.turboiber-latest-posts-slider__control,
	.turboiber-job-offers-slider__control,
	.turboiber-locations-summary__country-button,
	.turboiber-locations-summary li button,
	.turboiber-locations-summary li a,
	.turboiber-delegaciones-section__nav button,
	.turboiber-delegaciones-section__delegation-link
) {
	font-weight: 700 !important;
	will-change: transform;
}

/*
 * Menu hover reflections.
 * Theme-level styling only: no menu DOM changes and no plugin behavior changes.
 */
body .turboiber-mega-menu :where(
	.turboiber-mega-menu__nav-link,
	.turboiber-mega-menu__area-link,
	.turboiber-mega-menu__dropdown-link,
	.turboiber-mega-menu__group-link,
	.turboiber-mega-menu__sub-link,
	.turboiber-mega-menu__mobile-row,
	.turboiber-mega-menu__mobile-accordion-trigger,
	.turboiber-mega-menu__mobile-column-all,
	.turboiber-mega-menu__mobile-sub-link,
	.turboiber-mega-menu__mobile-child-list a,
	.turboiber-mega-menu__mobile-cta-button
) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

body .turboiber-mega-menu :where(
	.turboiber-mega-menu__nav-link,
	.turboiber-mega-menu__area-link,
	.turboiber-mega-menu__dropdown-link,
	.turboiber-mega-menu__group-link,
	.turboiber-mega-menu__sub-link,
	.turboiber-mega-menu__mobile-row,
	.turboiber-mega-menu__mobile-accordion-trigger,
	.turboiber-mega-menu__mobile-column-all,
	.turboiber-mega-menu__mobile-sub-link,
	.turboiber-mega-menu__mobile-child-list a,
	.turboiber-mega-menu__mobile-cta-button
)::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		linear-gradient(
			110deg,
			transparent 0 36%,
			rgb(255 255 255 / 0.38) 46%,
			rgb(255 199 38 / 0.18) 52%,
			transparent 64% 100%
		);
	content: "";
	opacity: 0;
	pointer-events: none;
	transform: translateX(-135%) skewX(-14deg);
	transform-origin: center;
	transition:
		opacity .18s ease,
		transform .52s cubic-bezier(.16, 1, .3, 1);
}

body .turboiber-mega-menu :where(
	.turboiber-mega-menu__nav-link:hover,
	.turboiber-mega-menu__nav-link:focus-visible,
	.turboiber-mega-menu__area-link:hover,
	.turboiber-mega-menu__area-link:focus-visible,
	.turboiber-mega-menu__area-link.is-active,
	.turboiber-mega-menu__dropdown-link:hover,
	.turboiber-mega-menu__dropdown-link:focus-visible,
	.turboiber-mega-menu__group-link:hover,
	.turboiber-mega-menu__group-link:focus-visible,
	.turboiber-mega-menu__sub-link:hover,
	.turboiber-mega-menu__sub-link:focus-visible,
	.turboiber-mega-menu__mobile-row:hover,
	.turboiber-mega-menu__mobile-row:focus-visible,
	.turboiber-mega-menu__mobile-row.is-shop,
	.turboiber-mega-menu__mobile-accordion-trigger:hover,
	.turboiber-mega-menu__mobile-accordion-trigger:focus-visible,
	.turboiber-mega-menu__mobile-accordion-trigger[aria-expanded="true"],
	.turboiber-mega-menu__mobile-column-all:hover,
	.turboiber-mega-menu__mobile-column-all:focus-visible,
	.turboiber-mega-menu__mobile-sub-link:hover,
	.turboiber-mega-menu__mobile-sub-link:focus-visible,
	.turboiber-mega-menu__mobile-child-list a:hover,
	.turboiber-mega-menu__mobile-child-list a:focus-visible,
	.turboiber-mega-menu__mobile-cta-button:hover,
	.turboiber-mega-menu__mobile-cta-button:focus-visible
)::before,
body .turboiber-mega-menu__nav-item--mega:hover > .turboiber-mega-menu__mega-trigger::before,
body .turboiber-mega-menu__nav-item--mega.is-open > .turboiber-mega-menu__mega-trigger::before,
body .turboiber-mega-menu__mobile-cta:hover .turboiber-mega-menu__mobile-cta-button::before,
body .turboiber-mega-menu__mobile-cta:focus-visible .turboiber-mega-menu__mobile-cta-button::before {
	opacity: 1;
	transform: translateX(135%) skewX(-14deg);
}

@media (prefers-reduced-motion: reduce) {
	body :where(
		.elementor-widget-button .elementor-button,
		.elementor-button,
		.turboiber-job-offers-filter__submit,
		.turboiber-job-offers-filter__cta,
		.turboiber-job-offers-slider__cta,
		.turboiber-locations-summary__cta,
		.turboiber-mega-menu__cta-button,
		.turboiber-download-card__cta,
		.turboiber-login__button,
		.turboiber-login__secondary-button,
		.jet-form-builder__action-button,
		.jet-form-builder__submit,
		.jet-form-builder button[type="submit"],
		.tb-job-application-form .jet-form-builder__action-button,
		.tb-job-application-form button[type="submit"]
	),
	body :where(
		.elementor-widget-button .elementor-button,
		.elementor-button,
		.turboiber-job-offers-filter__submit,
		.turboiber-job-offers-filter__cta,
		.turboiber-job-offers-slider__cta,
		.turboiber-locations-summary__cta,
		.turboiber-mega-menu__cta-button,
		.turboiber-download-card__cta,
		.turboiber-login__button,
		.turboiber-login__secondary-button,
		.jet-form-builder__action-button,
		.jet-form-builder__submit,
		.jet-form-builder button[type="submit"],
		.tb-job-application-form .jet-form-builder__action-button,
		.tb-job-application-form button[type="submit"]
	)::before,
	body :where(
		.turboiber-job-offers-filter__submit,
		.turboiber-job-offers-filter__cta,
		.turboiber-locations-summary__cta,
		.turboiber-download-card__cta,
		.turboiber-login__button,
		.turboiber-login__secondary-button,
		.jet-form-builder__action-button,
		.jet-form-builder__submit,
		.jet-form-builder button[type="submit"],
		.tb-job-application-form .jet-form-builder__action-button,
		.tb-job-application-form button[type="submit"]
	)::after,
	body :where(
		.elementor-button .elementor-button-icon,
		.turboiber-job-offers-slider__cta svg,
		.turboiber-mega-menu__cta-button svg
	),
	body .turboiber-mega-menu :where(
		.turboiber-mega-menu__nav-link,
		.turboiber-mega-menu__area-link,
		.turboiber-mega-menu__dropdown-link,
		.turboiber-mega-menu__group-link,
		.turboiber-mega-menu__sub-link,
		.turboiber-mega-menu__mobile-row,
		.turboiber-mega-menu__mobile-accordion-trigger,
		.turboiber-mega-menu__mobile-column-all,
		.turboiber-mega-menu__mobile-sub-link,
		.turboiber-mega-menu__mobile-child-list a,
		.turboiber-mega-menu__mobile-cta-button
	)::before
	) {
		transition: none !important;
	}
}
