/**
 * Unta Widgets — shared frontend styles.
 *
 * Design tokens up top, then one block per widget. Selectors are scoped to
 * `.unta-*` classes; Elementor scopes them further per-instance via {{WRAPPER}}
 * for any control-driven overrides.
 */

/* ---------------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------------- */
.unta-section {
	--unta-accent: #12b6cf;
	--unta-dark: #2d3748;
	--unta-darker: #333333;
	--unta-ink: #1a1f26;
	--unta-muted: #6b7280;
	--unta-line: #ececec;
	--unta-white: #ffffff;
	box-sizing: border-box;
	font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.unta-section *,
.unta-section *::before,
.unta-section *::after {
	box-sizing: border-box;
}

/* Boxed vs. full-width inner wrapper.
 * Boxed centers within max-width (set per-instance). Full spans the section. */
.unta-inner {
	width: 100%;
	margin-inline: auto;
}

.unta-inner--boxed {
	max-width: 1200px;
}

.unta-inner--full {
	max-width: 100%;
}

/* ---------------------------------------------------------------------------
 * Promo Bar — hover expands the hovered panel BOTH up and down (center-anchored)
 * ------------------------------------------------------------------------- */
.unta-promo {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2px;
	/* The row is as tall as an EXPANDED panel and items are centered in it, so a
	 * panel growing to full height extends equally above and below the collapsed
	 * baseline without nudging its neighbours. */
	min-height: var(--unta-promo-h-expanded, 240px);
	align-items: center;
}

.unta-promo__item {
	--unta-promo-h: 90px;
	--unta-promo-h-expanded: 240px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: var(--unta-promo-h);
	padding: 0 22px;
	background-color: var(--unta-dark);
	color: var(--unta-white);
	text-decoration: none;
	overflow: hidden;
	cursor: pointer;
	transition: height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
		background-color 0.35s ease;
	will-change: height;
}

.unta-promo__item:focus-visible {
	outline: 2px solid var(--unta-white);
	outline-offset: -4px;
}

/* Collapsed row: icon — title — arrow on one line */
.unta-promo__row {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
}

.unta-promo__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	flex: 0 0 auto;
	transition: transform 0.35s ease;
}

.unta-promo__icon svg,
.unta-promo__icon i {
	width: 1em;
	height: 1em;
	font-size: inherit;
}

.unta-promo__title {
	flex: 1 1 auto;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.2px;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	line-height: 1.3;
}

.unta-promo__arrow {
	display: inline-flex;
	flex: 0 0 auto;
	opacity: 0.85;
	transition: transform 0.35s ease;
}

/* Reveal block (description) — hidden until expanded */
.unta-promo__reveal {
	max-height: 0;
	opacity: 0;
	margin-top: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.unta-promo__desc {
	display: block;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

/* Expanded state — center-anchored growth thanks to align-items:center above */
.unta-promo__item:hover,
.unta-promo__item:focus-within {
	height: var(--unta-promo-h-expanded);
	background-color: var(--unta-accent);
}

.unta-promo__item:hover .unta-promo__row,
.unta-promo__item:focus-within .unta-promo__row {
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.unta-promo__item:hover .unta-promo__icon,
.unta-promo__item:focus-within .unta-promo__icon {
	font-size: 30px;
}

.unta-promo__item:hover .unta-promo__title,
.unta-promo__item:focus-within .unta-promo__title {
	white-space: normal;
	font-size: 20px;
	font-weight: 600;
}

.unta-promo__item:hover .unta-promo__arrow,
.unta-promo__item:focus-within .unta-promo__arrow {
	position: absolute;
	left: 22px;
	bottom: 22px;
}

.unta-promo__item:hover .unta-promo__reveal,
.unta-promo__item:focus-within .unta-promo__reveal {
	max-height: 120px;
	opacity: 1;
	margin-top: 12px;
}

/* ---------------------------------------------------------------------------
 * Hero Slider
 * ------------------------------------------------------------------------- */
.unta-hero {
	position: relative;
	overflow: hidden;
}

.unta-hero__track {
	position: relative;
}

.unta-hero__slide {
	position: absolute;
	inset: 0;
	height: 640px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease;
}

/* First slide holds layout height until JS boots */
.unta-hero__track > .unta-hero__slide:first-child {
	position: relative;
}

.unta-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	position: relative;
	z-index: 1;
}

.unta-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(34, 34, 34, 0.55);
}

.unta-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding: 0 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: var(--unta-white);
}

.unta-hero--full .unta-hero__content {
	max-width: 1200px;
}

.unta-hero__kicker {
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #c7ccd1;
	margin: 0 0 14px;
}

.unta-hero__title {
	font-size: 52px;
	font-weight: 700;
	line-height: 1.12;
	margin: 0;
}

.unta-hero__title-accent {
	color: var(--unta-accent);
}

.unta-hero__btn {
	display: inline-block;
	margin-top: 28px;
	padding: 15px 34px;
	border: 2px solid var(--unta-white);
	color: var(--unta-white);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	background: transparent;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.unta-hero__btn:hover {
	background-color: var(--unta-accent);
	border-color: var(--unta-accent);
	color: var(--unta-white);
}

.unta-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	color: var(--unta-white);
	border: none;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.unta-hero__nav:hover {
	background: var(--unta-accent);
}

.unta-hero__nav--prev { left: 18px; }
.unta-hero__nav--next { right: 18px; }

.unta-hero__dots {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}

.unta-hero__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid var(--unta-white);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.unta-hero__dot.is-active {
	background: var(--unta-white);
}

/* ---------------------------------------------------------------------------
 * Service Grid
 * ------------------------------------------------------------------------- */
.unta-services-section {
	background: var(--unta-white);
}

.unta-services {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 34px 60px;
	padding: 24px 0;
}

.unta-service {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.unta-service__icon {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(18, 182, 207, 0.12);
	color: var(--unta-accent);
	font-size: 20px;
}

.unta-service__icon svg,
.unta-service__icon i {
	width: 1em;
	height: 1em;
	font-size: inherit;
}

.unta-service__title {
	margin: 2px 0 8px;
	font-size: 19px;
	font-weight: 600;
	color: var(--unta-ink);
}

.unta-service__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--unta-muted);
}

/* ---------------------------------------------------------------------------
 * Video Promo — stylized "U": two image legs + a rounded accent basin
 * ------------------------------------------------------------------------- */
.unta-video-section {
	background: var(--unta-white);
}

.unta-video {
	--unta-basin: #12b6cf;
	position: relative;
	height: 440px;
	/* The container itself is the cyan of the U: it shows through the centre gap
	 * between the legs and forms the rounded bowl along the bottom. */
	background: var(--unta-basin);
	border-radius: 220px 220px 180px 180px;
	overflow: hidden;
}

/* Each leg is one vertical stroke of the U — an image anchored to a side,
 * stopping short of the bottom so the cyan bowl connects them. */
.unta-video__leg {
	position: absolute;
	top: 0;
	width: 34%;
	height: 72%;
	background-size: cover;
	background-position: center;
	background-color: #d7dde3;
}

.unta-video__leg--left {
	left: 0;
	border-top-left-radius: 220px;
}

.unta-video__leg--right {
	right: 0;
	border-top-right-radius: 220px;
}

/* Basin retained for markup parity; the container background already paints the
 * bowl, so this stays transparent and non-interactive. */
.unta-video__basin {
	display: none;
}

.unta-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 84px;
	height: 84px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none;
	background: var(--unta-white);
	color: var(--unta-basin);
	cursor: pointer;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	transition: transform 0.25s ease;
}

.unta-video__play:hover {
	transform: translate(-50%, -50%) scale(1.08);
}

/* When a video is playing, the basin becomes the video stage covering the U */
.unta-video.is-playing .unta-video__basin {
	inset: 0;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
}

.unta-video__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------------------------------------------------------------------------
 * Cases Grid — dark filterable portfolio
 * ------------------------------------------------------------------------- */
.unta-cases-section {
	background: var(--unta-darker);
	padding: 70px 0;
}

.unta-cases {
	--unta-accent: #12b6cf;
}

.unta-cases__title {
	margin: 0 0 26px;
	text-align: center;
	color: var(--unta-white);
	font-size: 40px;
	font-weight: 700;
}

.unta-cases__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 34px;
}

.unta-cases__filter {
	padding: 8px 18px;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	letter-spacing: 0.5px;
	cursor: pointer;
	border-radius: 2px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.unta-cases__filter:hover {
	color: var(--unta-white);
}

.unta-cases__filter.is-active {
	color: var(--unta-white);
	background: var(--unta-accent);
}

.unta-cases {
	--unta-cases-spv: 4;
	--unta-cases-gap: 4px;
	position: relative;
}

/* Carousel: a clipping viewport with a flex track that translates. */
.unta-cases__viewport {
	overflow: hidden;
}

.unta-cases__track {
	display: flex;
	gap: var(--unta-cases-gap);
	transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

/* Each item takes an equal share of the visible slides, accounting for gaps. */
.unta-cases--carousel .unta-cases__item {
	flex: 0 0 calc((100% - (var(--unta-cases-spv) - 1) * var(--unta-cases-gap)) / var(--unta-cases-spv));
	max-width: calc((100% - (var(--unta-cases-spv) - 1) * var(--unta-cases-gap)) / var(--unta-cases-spv));
}

/* Grid variant: track becomes a wrapping grid, no translate. */
.unta-cases--grid .unta-cases__track {
	display: grid;
	grid-template-columns: repeat(var(--unta-cases-spv), 1fr);
	transform: none !important;
}

.unta-cases__item {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

/* Filtered-out tiles: hidden in grid mode; in carousel mode the JS also
 * pulls them out of the flow so the track measures correctly. */
.unta-cases__item.is-hidden {
	display: none;
}

/* Carousel navigation arrows */
.unta-cases__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	background: rgba(0, 0, 0, 0.45);
	color: var(--unta-white);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.unta-cases__nav:hover {
	background: var(--unta-accent, #12b6cf);
}

.unta-cases__nav--prev {
	left: 0;
}

.unta-cases__nav--next {
	right: 0;
}

.unta-cases__nav[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* Carousel dots */
.unta-cases__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.unta-cases__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.unta-cases__dot.is-active {
	background: var(--unta-accent, #12b6cf);
	transform: scale(1.2);
}

.unta-cases__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s ease;
}

.unta-cases__item:hover .unta-cases__media {
	transform: scale(1.08);
}

.unta-cases__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	text-align: left;
	padding: 26px;
	/* 0.5-opacity dark overlay */
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	/* Content + overlay slide in from the right */
	transform: translateX(40px);
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.unta-cases__item:hover .unta-cases__overlay,
.unta-cases__item:focus-within .unta-cases__overlay {
	opacity: 1;
	transform: translateX(0);
}

.unta-cases__item-cat {
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--unta-accent, #12b6cf);
}

.unta-cases__item-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--unta-white);
}

.unta-cases__link {
	position: absolute;
	inset: 0;
	z-index: 3;
}

/* ---------------------------------------------------------------------------
 * Info Tabs — Mission / Vision
 * ------------------------------------------------------------------------- */
.unta-info-section {
	background: var(--unta-white);
	padding: 20px 0;
}

.unta-info {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 60px;
	align-items: center;
}

.unta-info__col--media {
	display: flex;
	justify-content: center;
}

.unta-info__image {
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: #eef4f7;
}

.unta-info__heading {
	margin: 0 0 22px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--unta-ink);
}

.unta-info__hl {
	color: var(--unta-accent);
}

.unta-info__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--unta-line);
	padding-bottom: 12px;
}

.unta-info__tab {
	background: none;
	border: none;
	padding: 0 0 4px;
	font-size: 14px;
	letter-spacing: 0.5px;
	color: #9199a1;
	cursor: pointer;
	position: relative;
	transition: color 0.2s ease;
}

.unta-info__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -13px;
	height: 2px;
	background: var(--unta-accent);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.unta-info__tab:hover {
	color: var(--unta-ink);
}

.unta-info__tab.is-active {
	color: var(--unta-accent);
	font-weight: 600;
}

.unta-info__tab.is-active::after {
	transform: scaleX(1);
}

.unta-info__panel {
	display: none;
	font-size: 14px;
	line-height: 1.8;
	color: #566;
}

.unta-info__panel.is-active {
	display: block;
	animation: unta-fade-in 0.35s ease;
}

@keyframes unta-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------------
 * CTA Bar
 * ------------------------------------------------------------------------- */
.unta-cta-section {
	background: var(--unta-accent);
}

.unta-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 44px 0;
}

.unta-cta__heading {
	margin: 0;
	max-width: 720px;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--unta-white);
}

.unta-cta__button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 32px;
	border: 2px solid var(--unta-white);
	color: var(--unta-white);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.unta-cta__button:hover {
	background: var(--unta-white);
	color: var(--unta-accent);
}

.unta-cta__button svg {
	width: 18px;
	height: 18px;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.unta-hero__title { font-size: 42px; }
	.unta-info { grid-template-columns: 240px 1fr; gap: 40px; }
}

@media (max-width: 767px) {
	.unta-promo {
		grid-template-columns: 1fr;
		min-height: 0;
		align-items: stretch;
	}
	.unta-services { grid-template-columns: 1fr; gap: 26px; }
	.unta-cases__grid { grid-template-columns: repeat(2, 1fr); }
	.unta-hero__content { padding: 0 22px; }
	.unta-hero__title { font-size: 32px; }
	.unta-info {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.unta-info__col--media { order: -1; }
	.unta-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.unta-cta__heading { font-size: 22px; }
	.unta-video { height: 300px; }
	.unta-video__play { width: 64px; height: 64px; }
}
