/* =============================================================
   Aqualife – Elementor Widgets
   Brand: primary #0096c7 | secondary #023E8A | dark #072440
   Font: Outfit
   ============================================================= */

/* ----------------------------------------------------------
   Shared: section heading
---------------------------------------------------------- */
.aq-section-pre {
	display: block;
	font-family: 'Outfit', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #0096c7;
	margin-bottom: 10px;
}

.aq-section-heading {
	font-family: 'Outfit', sans-serif;
	font-size: clamp(1.7rem, 2.8vw, 2.4rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
}

.aq-section-line {
	display: block;
	width: 52px;
	height: 4px;
	background: linear-gradient(90deg, #0096c7 0%, #023E8A 100%);
	border-radius: 2px;
}

/* =============================================================
   Widget 1 – Prečo nám ľudia dôverujú
   ============================================================= */

.aq-dovera-wrap {
	font-family: 'Outfit', sans-serif;
	width: 100%;
}

.aq-dovera-header {
	text-align: center;
	margin-bottom: 52px;
}

.aq-dovera-header .aq-section-line {
	margin: 0 auto;
}

/* Grid */
.aq-dovera-grid {
	display: grid;
	gap: 26px;
}

.aq-dovera-cols-1 { grid-template-columns: 1fr; }
.aq-dovera-cols-2 { grid-template-columns: repeat(2, 1fr); }
.aq-dovera-cols-3 { grid-template-columns: repeat(3, 1fr); }
.aq-dovera-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.aq-dovera-card {
	position: relative;
	background: var(--card-bg, #ffffff);
	border-radius: 18px;
	padding: 36px 30px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
	            box-shadow 0.28s ease;
}

.aq-card--shadow {
	box-shadow: 0 2px 16px rgba(2, 62, 138, 0.07), 0 6px 28px rgba(2, 62, 138, 0.04);
}

.aq-dovera-card:hover {
	transform: translateY(-6px);
}

.aq-card--shadow:hover {
	box-shadow: 0 14px 44px rgba(2, 62, 138, 0.15), 0 4px 14px rgba(0, 150, 199, 0.10);
}

/* Number badge */
.aq-dovera-card__num {
	position: absolute;
	top: 18px;
	right: 22px;
	font-size: 3.6rem;
	font-weight: 800;
	line-height: 1;
	color: var(--accent, #0096c7);
	opacity: 0.07;
	letter-spacing: -0.04em;
	pointer-events: none;
	user-select: none;
}

/* Icon */
.aq-dovera-card__icon-wrap {
	width: 58px;
	height: 58px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.aq-dovera-card:hover .aq-dovera-card__icon-wrap {
	transform: scale(1.1) rotate(-4deg);
}

.aq-dovera-card__icon-wrap svg,
.aq-dovera-card__icon-wrap i {
	font-size: 1.4rem;
	width: 26px;
	height: 26px;
}

/* Body */
.aq-dovera-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aq-dovera-card__title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	letter-spacing: -0.01em;
}

.aq-dovera-card__desc {
	font-size: 0.9rem;
	color: #64748b;
	line-height: 1.75;
	margin: 0;
}

/* Bottom accent line */
.aq-dovera-card__line {
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 0 0 18px 18px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.aq-dovera-card:hover .aq-dovera-card__line {
	opacity: 1;
}

/* =============================================================
   Widget 2 – Najnovšie projekty
   ============================================================= */

.aq-projekty-wrap {
	font-family: 'Outfit', sans-serif;
	width: 100%;
	overflow: hidden;
}

.aq-projekty-header {
	text-align: center;
	margin-bottom: 40px;
}

.aq-projekty-header .aq-section-line {
	margin: 0 auto;
}

/* Slider outer: flex row with arrow buttons */
.aq-projekty-slider-outer {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
}

/* Arrow buttons */
.aq-slider-btn {
	flex-shrink: 0;
	z-index: 5;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid #e2e8f0;
	background: #ffffff;
	color: #023E8A;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease,
	            transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
	padding: 0;
}

.aq-slider-btn svg {
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.aq-slider-btn:hover {
	background: #0096c7;
	border-color: #0096c7;
	color: #ffffff;
	transform: scale(1.08);
}

.aq-slider-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.aq-slider-btn--prev { margin-right: 14px; }
.aq-slider-btn--next { margin-left: 14px; }

/* Track */
.aq-projekty-track-wrap {
	flex: 1;
	overflow: hidden;
}

.aq-projekty-track {
	display: flex;
	gap: 22px;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

/* Slide */
.aq-projekty-slide {
	flex: 0 0 calc(33.333% - 15px);
	min-width: 0;
}

/* Card */
.aq-projekty-card {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 12px rgba(2, 62, 138, 0.07);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
	            box-shadow 0.28s ease;
}

.aq-projekty-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 36px rgba(2, 62, 138, 0.15);
}

/* Card image */
.aq-projekty-card__img-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #dbeeff;
}

.aq-projekty-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.42s ease;
}

.aq-projekty-card:hover .aq-projekty-card__img {
	transform: scale(1.07);
}

.aq-projekty-card__no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #dbeeff 0%, #bcd9f0 100%);
	color: #0096c7;
}

.aq-projekty-card__no-img svg {
	width: 44px;
	height: 44px;
	opacity: 0.45;
}

.aq-projekty-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(7,36,64,0.72) 100%);
	pointer-events: none;
}

/* Card body */
.aq-projekty-card__body {
	padding: 18px 20px 22px;
	border-top: 3px solid #0096c7;
}

.aq-projekty-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: #072440;
	margin: 0 0 6px;
	line-height: 1.3;
}

.aq-projekty-card__desc {
	font-size: 0.85rem;
	color: #64748b;
	margin: 0;
	line-height: 1.6;
}

/* Dots */
.aq-slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}

.aq-slider-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cbd5e1;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, width 0.25s ease;
}

.aq-slider-dot.is-active {
	background: #0096c7;
	width: 24px;
	border-radius: 4px;
	transform: none;
}

/* Footer button */
.aq-projekty-footer {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.aq-projekty-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 50px;
	background: #0096c7;
	color: #ffffff;
	font-family: 'Outfit', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: background 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
	            box-shadow 0.22s ease;
	border: 2px solid transparent;
}

.aq-projekty-btn:hover {
	background: #023E8A;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 150, 199, 0.35);
}

.aq-projekty-btn svg {
	transition: transform 0.22s ease;
	flex-shrink: 0;
}

.aq-projekty-btn:hover svg {
	transform: translateX(4px);
}

/* Empty state */
.aq-projekty-empty {
	text-align: center;
	background: #f0f9ff;
	border: 2px dashed #bae6fd;
	border-radius: 12px;
	padding: 32px 24px;
	color: #0c4a6e;
	font-family: 'Outfit', sans-serif;
	font-size: 0.95rem;
	line-height: 1.6;
}

.aq-projekty-empty strong {
	color: #023E8A;
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 1024px) {
	.aq-dovera-cols-3,
	.aq-dovera-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.aq-projekty-slide {
		flex: 0 0 calc(50% - 11px);
	}
}

@media (max-width: 700px) {
	.aq-dovera-cols-2,
	.aq-dovera-cols-3,
	.aq-dovera-cols-4 {
		grid-template-columns: 1fr;
	}

	.aq-dovera-grid {
		gap: 18px;
	}

	.aq-dovera-card {
		padding: 28px 24px 26px;
	}

	.aq-projekty-slide {
		flex: 0 0 calc(85% - 11px);
	}

	.aq-slider-btn {
		display: none;
	}

	.aq-projekty-track-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.aq-projekty-track-wrap::-webkit-scrollbar {
		display: none;
	}

	.aq-projekty-track {
		transition: none;
	}
}
