/* Owlsora Elements — Services Cards widget
 * Colors/sizes come from widget controls as CSS variables on .sps.
 */

.sps {
	--sps-bg-top: #0a3fcf;
	--sps-bg-bottom: #0b1a3d;
	--sps-max: 1200px;
	--sps-pad-y: 104px;
	--sps-pad-x: 16px;
	--sps-gap: 30px;
	--sps-wave-h: 56px;
	--sps-eyebrow: #5CC2FF;
	--sps-title: #f7fafd;
	--sps-pop: #5CC2FF;
	--sps-sub: #d2deee;
	--sps-card-bg: #f7fafd;
	--sps-card-radius: 26px;
	--sps-art-h: 180px;
	--sps-icon-bg: #FFFFFF;
	--sps-icon-border: #0B1A3D;
	--sps-icon-shadow: #0b6bf0;
	--sps-icon-color: #2d8cff;
	--sps-card-title: #0B1A3D;
	--sps-card-text: #56658a;
	--sps-tag-bg: #E1EEF9;
	--sps-tag-color: #2a3a66;
	--sps-link: #0B6BF0;
	--sps-link-hover: #0845B0;
	--sps-pills-title: #5CC2FF;
	--sps-pill: #F7FAFD;
	--sps-pill-border: rgba(255, 255, 255, .22);
	--sps-pill-hover: #5CC2FF;

	position: relative;
	z-index: 1; /* lets the waves sit over the neighbouring sections */
	background: linear-gradient(180deg, var(--sps-bg-top) 0%, var(--sps-bg-bottom) 100%);
	color: var(--sps-title);
	font-family: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
.sps *,
.sps *::before,
.sps *::after { box-sizing: border-box; }

.sps--ripples {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80'%3E%3Cpath d='M0 40 Q30 28 60 40 T120 40 T180 40 T240 40' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2'/%3E%3Cpath d='M-30 70 Q0 58 30 70 T90 70 T150 70 T210 70 T270 70' fill='none' stroke='%23ffffff' stroke-opacity='.04' stroke-width='2'/%3E%3C/svg%3E"),
		radial-gradient(1200px 500px at 85% 0%, rgba(169, 211, 245, .16), transparent 60%),
		linear-gradient(180deg, var(--sps-bg-top) 0%, var(--sps-bg-bottom) 100%);
}

.sps.owe-stretch { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }

/* waves */
.sps__wave {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	height: var(--sps-wave-h);
	display: block;
	pointer-events: none;
}
.sps__wave--top { top: calc(1px - var(--sps-wave-h)); fill: var(--sps-bg-top); }
.sps__wave--bottom { bottom: calc(1px - var(--sps-wave-h)); fill: var(--sps-bg-bottom); transform: scaleY(-1); }

.sps__inner {
	max-width: var(--sps-max);
	margin: 0 auto;
	padding-top: var(--sps-pad-y);
	padding-bottom: var(--sps-pad-y);
	padding-left: max(var(--sps-pad-x), env(safe-area-inset-left, 0px));
	padding-right: max(var(--sps-pad-x), env(safe-area-inset-right, 0px));
}

/* heading */
.sps__head { max-width: 900px; margin: 0 auto; text-align: center; }
.sps__eyebrow { display: block; margin-bottom: 14px; color: var(--sps-eyebrow); font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.sps .sps__title {
	margin: 0;
	padding: 0;
	color: var(--sps-title);
	font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif;
	font-size: clamp(46px, 6.2vw, 88px);
	font-weight: 400;
	line-height: .98;
	letter-spacing: .005em;
	text-transform: uppercase;
	text-wrap: balance;
}
.sps .sps__pop { color: var(--sps-pop); font-style: normal; }
.sps .sps__sub { margin: 24px auto 0; max-width: none; color: var(--sps-sub); font-size: 20px; line-height: 1.6; }

/* cards */
.sps__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sps-gap);
	margin-top: 64px;
}
@media (max-width: 980px) { .sps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sps__grid { grid-template-columns: minmax(0, 1fr); } }

.sps__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--sps-card-bg);
	color: var(--sps-card-text);
	border-radius: var(--sps-card-radius);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sps__card:hover { transform: translateY(-4px); box-shadow: 0 26px 48px rgba(0, 0, 0, .24); }

.sps__art { position: relative; height: var(--sps-art-h); display: grid; place-items: center; overflow: hidden; }
.sps__art--sky { background: linear-gradient(180deg, #CFE5F7, #E8F2F9 55%, #EFE2C8 55.5%, #E6D3AD); }
.sps__art--water { background: linear-gradient(180deg, #2D8CFF, #0A3FCF); }
.sps__art--sun { background: linear-gradient(180deg, #EAF4FF, #B7D9FF); }
.sps__art-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 40px; fill: rgba(255, 255, 255, .18); }

.sps__icon {
	position: relative;
	z-index: 1;
	width: 112px;
	height: 112px;
	display: grid;
	place-items: center;
	background: var(--sps-icon-bg);
	border: 4px solid var(--sps-icon-border);
	border-radius: 28px;
	box-shadow: 6px 6px 0 var(--sps-icon-shadow);
	color: var(--sps-icon-color);
	font-size: 56px;
	transition: transform .2s ease;
}
.sps__card:hover .sps__icon { transform: rotate(-4deg) scale(1.04); }
.sps__icon svg { width: 62px; height: 62px; }
.sps__icon i { line-height: 1; }

.sps__body { display: flex; flex-direction: column; flex: 1; padding: 28px 32px 30px; }
.sps .sps__card-title {
	margin: 0;
	padding: 0;
	color: var(--sps-card-title);
	font-family: "Anton", Impact, "Arial Narrow Bold", sans-serif;
	font-size: 34px;
	font-weight: 400;
	line-height: .98;
	text-transform: uppercase;
}
.sps .sps__card-text { margin: 14px 0 0; flex: 1; color: var(--sps-card-text); font-size: 17px; line-height: 1.7; }

.sps .sps__tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sps .sps__tags li {
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(6, 15, 36, .12);
	background: var(--sps-tag-bg);
	color: var(--sps-tag-color);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.sps .sps__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: 22px;
	color: var(--sps-link);
	font-weight: 800;
	font-size: 17px;
	text-decoration: none;
}
.sps .sps__link:hover,
.sps .sps__link:focus-visible { color: var(--sps-link-hover); }
.sps__link svg { width: 18px; height: 18px; transition: transform .15s ease; }
.sps__link:hover svg { transform: translateX(4px); }
.sps .sps__link:focus-visible { outline: 3px solid var(--sps-pop); outline-offset: 3px; border-radius: 4px; }

/* all-services pills */
.sps__more { margin-top: 56px; text-align: center; }
.sps__more-title { display: block; margin-bottom: 16px; color: var(--sps-pills-title); font-size: 17px; font-weight: 800; }
.sps .sps__pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sps .sps__pills li { margin: 0; }
.sps__pills a,
.sps__pills span {
	display: inline-block;
	padding: 9px 16px;
	border: 2px solid var(--sps-pill-border);
	border-radius: 999px;
	color: var(--sps-pill);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.sps .sps__pills a:hover,
.sps .sps__pills a:focus-visible { color: var(--sps-pill); border-color: var(--sps-pill-hover); background: rgba(255, 255, 255, .06); }

/* whole card clickable: stretch the link over the card */
.sps--whole-link .sps__card { cursor: pointer; }
.sps--whole-link .sps__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }

@media (max-width: 380px) {
	.sps__body { padding: 24px 24px 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.sps * { transition: none !important; }
}

/* Full width: when this widget is alone in an Elementor container/column,
 * drop that container's padding so no gap shows above, below or beside it. */
.e-con:has(> .elementor-widget-ow-services:only-child .owe-stretch),
.e-con:has(> .e-con-inner > .elementor-widget-ow-services:only-child .owe-stretch) {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 0px;
	--margin-bottom: 0px;
	padding: 0;
}
.elementor-widget-wrap:has(> .elementor-widget-ow-services:only-child .owe-stretch) { padding: 0 !important; }
.elementor-section:has(.elementor-widget-wrap > .elementor-widget-ow-services:only-child .owe-stretch) { padding-top: 0; padding-bottom: 0; }
.elementor-widget-ow-services:has(.owe-stretch) { margin-top: 0; margin-bottom: 0; --kit-widget-spacing: 0px; }
/* let the waves reach over the neighbouring sections */
.e-con:has(> .elementor-widget-ow-services .sps--wave-top),
.e-con:has(> .elementor-widget-ow-services .sps--wave-bottom),
.e-con:has(> .e-con-inner > .elementor-widget-ow-services .sps--wave-top),
.e-con:has(> .e-con-inner > .elementor-widget-ow-services .sps--wave-bottom),
.elementor-section:has(.elementor-widget-ow-services .sps--wave-top),
.elementor-section:has(.elementor-widget-ow-services .sps--wave-bottom) { position: relative; z-index: 2; overflow: visible; }
