/* Oopsy Ai — pixel-game pastel theme on top of the Highlights template
   White background, gray text, pale pink accents, pixel font for headings */

/* Vanta.js animated background (replaces template photo backgrounds) */
html {
	background-color: #f4f4f5 !important;
	background-image: none !important;
}

#vanta-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
}

	#vanta-bg canvas {
		display: block;
	}

/* Old per-section photo backgrounds are replaced by Vanta */
.main-bg,
.main .image.primary {
	display: none !important;
}

/* --- Pixel video-game font for headings, buttons and labels --- */

h1, h2, h3, h4, h5, h6,
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button,
.paw-tag {
	font-family: 'Press Start 2P', 'Source Sans Pro', Helvetica, sans-serif;
	font-weight: 400;
	letter-spacing: 0.02em;
}

h2 {
	font-size: 1.05em;
	line-height: 1.6;
}

h3 {
	font-size: 0.72em;
	line-height: 1.8;
}

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	font-size: 0.62em;
}

	@media screen and (max-width: 736px) {
		h2 {
			font-size: 0.85em;
		}

		h3 {
			font-size: 0.62em;
		}
	}

/* --- Pink accents instead of the template green --- */

a {
	color: #d95f85;
}

	a:hover {
		color: #d95f85 !important;
	}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
	box-shadow: inset 0 0 0 2px #f2a7bd;
}

input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before {
	box-shadow: inset 0 0 0 2px #f2a7bd;
}

/* Primary button: pale pink fill, dark gray pixel text */
input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
	background-color: #f2a7bd;
	color: #313a3d !important;
}

	input[type="submit"].primary:hover,
	input[type="reset"].primary:hover,
	input[type="button"].primary:hover,
	button.primary:hover,
	.button.primary:hover {
		background-color: #f7bfd0;
	}

	input[type="submit"].primary:active,
	input[type="reset"].primary:active,
	input[type="button"].primary:active,
	button.primary:active,
	.button.primary:active {
		background-color: #e598b4;
	}

	input[type="submit"].primary.icon:before,
	input[type="reset"].primary.icon:before,
	input[type="button"].primary.icon:before,
	button.primary.icon:before,
	.button.primary.icon:before {
		color: #313a3d;
	}

/* Pale pink divider under section headings */
header.major h1:after,
header.major h2:after,
header.major h3:after,
header.major h4:after,
header.major h5:after,
header.major h6:after {
	background: #f2a7bd;
}

/* Pale pink icons in the services / examples grids */
ul.icons-grid .icon.major {
	color: #e598b4;
}

/* --- Hero on the white background --- */

#header header {
	color: rgba(49, 58, 61, 0.7);
}

	#header header h1,
	#header header h2,
	#header header h3,
	#header header h4,
	#header header h5,
	#header header h6,
	#header header strong,
	#header header b {
		color: #313a3d;
	}

	#header header h1 {
		font-size: 1.7em;
		line-height: 1.5;
	}

	#header header p {
		font-family: 'Press Start 2P', 'Source Sans Pro', Helvetica, sans-serif;
		font-weight: 400;
		letter-spacing: 0.02em;
		font-size: 0.62em;
		line-height: 2.1;
		color: #a6acb1;
	}

	#header header a:hover {
		color: #d95f85 !important;
	}

	@media screen and (max-width: 736px) {
		#header header h1 {
			font-size: 1.1em;
		}

		#header header p {
			font-size: 0.5em;
		}
	}

/* --- Footer strip on the white background --- */

#footer footer {
	color: rgba(97, 104, 107, 0.8);
}

	#footer footer h1,
	#footer footer h2,
	#footer footer h3,
	#footer footer h4,
	#footer footer h5,
	#footer footer h6,
	#footer footer strong,
	#footer footer b {
		color: #61686b;
	}

	#footer footer a:hover {
		color: #d95f85 !important;
	}

	#footer footer .social-note {
		margin: 0 0 1em 0;
		font-size: 0.9em;
	}

	#footer footer .copyright li {
		border-left: solid 1px rgba(97, 104, 107, 0.3);
	}

/* --- Language switcher: the original pixel-art paw --- */

.lang-switch {
	position: fixed;
	top: 1em;
	right: 1.25em;
	z-index: 100;
	display: flex;
	gap: 0.9em;
}

	.lang-switch a {
		display: block;
		position: relative;
		width: 58px;
		min-width: 44px;
		min-height: 44px;
		cursor: pointer;
		text-decoration: none;
		border-bottom: none;
		-moz-transition: transform 0.2s ease-out;
		-webkit-transition: transform 0.2s ease-out;
		-ms-transition: transform 0.2s ease-out;
		transition: transform 0.2s ease-out;
	}

		.lang-switch a img {
			display: block;
			width: 100%;
			height: auto;
			image-rendering: pixelated;
			filter: drop-shadow(0 2px 3px rgba(213, 95, 133, 0.35));
		}

		/* Language label on the big jelly pad */
		.lang-switch a .paw-tag {
			position: absolute;
			left: 50%;
			top: 53%;
			-moz-transform: translate(-50%, -50%);
			-webkit-transform: translate(-50%, -50%);
			-ms-transform: translate(-50%, -50%);
			transform: translate(-50%, -50%);
			color: #a6acb1;
			font-size: 9px;
			line-height: 1;
		}

		.lang-switch a:hover {
			-moz-transform: translateY(-3px) rotate(-6deg);
			-webkit-transform: translateY(-3px) rotate(-6deg);
			-ms-transform: translateY(-3px) rotate(-6deg);
			transform: translateY(-3px) rotate(-6deg);
		}

		.lang-switch a:active {
			-moz-transform: translateY(0) scale(0.94);
			-webkit-transform: translateY(0) scale(0.94);
			-ms-transform: translateY(0) scale(0.94);
			transform: translateY(0) scale(0.94);
		}

		/* Active language: slightly bigger with a soft pink glow */
		.lang-switch a.active {
			-moz-transform: scale(1.12);
			-webkit-transform: scale(1.12);
			-ms-transform: scale(1.12);
			transform: scale(1.12);
		}

			.lang-switch a.active img {
				filter: drop-shadow(0 0 6px rgba(242, 167, 189, 0.95)) drop-shadow(0 2px 3px rgba(213, 95, 133, 0.4));
			}

		.lang-switch a.active:hover {
			-moz-transform: translateY(-3px) rotate(-6deg) scale(1.12);
			-webkit-transform: translateY(-3px) rotate(-6deg) scale(1.12);
			-ms-transform: translateY(-3px) rotate(-6deg) scale(1.12);
			transform: translateY(-3px) rotate(-6deg) scale(1.12);
		}

	@media screen and (max-width: 736px) {
		.lang-switch a {
			width: 48px;
		}

			.lang-switch a .paw-tag {
				font-size: 8px;
			}
	}

/* Icons grid: breathing room so text never touches the dividers */
ul.icons-grid li {
	padding: 3em 1.75em;
}

	@media screen and (max-width: 736px) {
		ul.icons-grid li {
			padding: 2em 1em;
		}
	}

/* Real client cases: stacked video list */
ul.cases-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5em;
	text-align: center;
}

	ul.cases-grid li {
		width: 100%;
		max-width: 20em;
	}

		ul.cases-grid li video {
			display: block;
			width: 100%;
			height: auto;
			aspect-ratio: 9 / 16;
			object-fit: cover;
			background: #313a3d;
			border: 2px solid #f2a7bd;
			border-radius: 6px;
		}

		ul.cases-grid li .case-video {
			position: relative;
			margin-bottom: 1.25em;
		}

		ul.cases-grid li .case-play {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			background: rgba(49, 58, 61, 0.25);
			border-radius: 6px;
			box-shadow: none;
			padding: 0;
			font-size: 1em;
			line-height: normal;
			letter-spacing: normal;
			text-transform: none;
			white-space: normal;
			cursor: pointer;
			-moz-transition: background-color 0.2s ease-in-out;
			-webkit-transition: background-color 0.2s ease-in-out;
			-ms-transition: background-color 0.2s ease-in-out;
			transition: background-color 0.2s ease-in-out;
		}

			ul.cases-grid li .case-play:hover {
				background: rgba(49, 58, 61, 0.4);
			}

			ul.cases-grid li .case-play .icon:before {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 3rem;
				height: 3rem;
				border-radius: 50%;
				background: #f2a7bd;
				color: #313a3d;
				font-size: 1.1rem;
				padding-left: 0.2rem;
				box-shadow: 0 2px 10px rgba(194, 77, 114, 0.55);
				-moz-transition: transform 0.2s ease-out, background-color 0.2s ease-in-out;
				-webkit-transition: transform 0.2s ease-out, background-color 0.2s ease-in-out;
				-ms-transition: transform 0.2s ease-out, background-color 0.2s ease-in-out;
				transition: transform 0.2s ease-out, background-color 0.2s ease-in-out;
			}

			ul.cases-grid li .case-play:hover .icon:before {
				background: #f7bfd0;
				-moz-transform: scale(1.1);
				-webkit-transform: scale(1.1);
				-ms-transform: scale(1.1);
				transform: scale(1.1);
			}

		ul.cases-grid li .case-video.started .case-play {
			display: none;
		}

		ul.cases-grid li h3 {
			margin: 0 0 0.75em 0;
			font-size: 0.6em;
		}

	/* Loading state: pink spinner instead of the play icon */
	ul.cases-grid li .case-video.loading .case-play .icon:before {
		content: '';
		padding-left: 0;
		background: transparent;
		box-shadow: none;
		border: 4px solid rgba(255, 255, 255, 0.45);
		border-top-color: #f2a7bd;
		-moz-animation: oopsy-spin 0.8s linear infinite;
		-webkit-animation: oopsy-spin 0.8s linear infinite;
		-ms-animation: oopsy-spin 0.8s linear infinite;
		animation: oopsy-spin 0.8s linear infinite;
	}

	@-moz-keyframes oopsy-spin {
		to { -moz-transform: rotate(360deg); }
	}

	@-webkit-keyframes oopsy-spin {
		to { -webkit-transform: rotate(360deg); }
	}

	@-ms-keyframes oopsy-spin {
		to { -ms-transform: rotate(360deg); }
	}

	@keyframes oopsy-spin {
		to { transform: rotate(360deg); }
	}

/* Contact form notes */
.form-note {
	font-size: 0.8em;
	opacity: 0.7;
	margin-top: 1.5em;
	margin-bottom: 0;
	text-align: center;
}

.form-success {
	margin-top: 1.5em;
	margin-bottom: 0;
	text-align: center;
	font-weight: 700;
	color: #3d8b5f;
}

.form-error {
	margin-top: 1.5em;
	margin-bottom: 0;
	text-align: center;
	font-weight: 700;
	color: #c24d72;
}

/* Footer header link contrast */
#footer header a {
	color: inherit;
	text-decoration: underline;
}

	#footer header a:hover {
		text-decoration: none;
	}

/* Buttons: pointer cursor everywhere */
.button, input[type="submit"], input[type="reset"] {
	cursor: pointer;
}
