/* Add here all your CSS customizations */

/* Back to top button
   Works with the Locomotive horizontal scroll: the button sits outside
   [data-scroll-container] so position: fixed is not affected by the scroll
   transforms. Visibility is toggled from js/demos/demo-creative-agency-1.js. */
.custom-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1040;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 2px solid #fff;
	border-radius: 50%;
	background-color: var(--primary);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(19, 27, 57, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;
}

.custom-back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.custom-back-to-top:hover,
.custom-back-to-top:focus-visible {
	background-color: var(--primary-200);
	color: #fff;
}

.custom-back-to-top i {
	font-size: 18px;
	transition: transform 0.3s;
}

/* Horizontal layout (xl and up): the "top" of the page is on the left */
@media (min-width: 1200px) {
	.custom-back-to-top i {
		transform: rotate(-90deg);
	}
}

/* Homepage "Our Work": category tiles (link to work.html#category) */
.custom-cat-tile {
	position: relative;
	display: block;
	height: 280px;
	overflow: hidden;
	border-radius: 12px;
	background-color: var(--secondary);
	box-shadow: 0 10px 30px rgba(19, 27, 57, 0.15);
	text-decoration: none;
}

.custom-cat-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.5s ease;
}

.custom-cat-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(19, 27, 57, 0.9) 0%, rgba(19, 27, 57, 0.2) 55%, rgba(19, 27, 57, 0) 100%);
}

.custom-cat-tile:hover img,
.custom-cat-tile:focus-visible img {
	transform: scale(1.05);
}

.custom-cat-tile-label {
	position: absolute;
	left: 24px;
	right: 76px;
	bottom: 22px;
	z-index: 1;
	display: block;
}

.custom-cat-tile-title {
	display: block;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.custom-cat-tile-count {
	display: block;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.85rem;
}

.custom-cat-tile-arrow {
	position: absolute;
	right: 22px;
	bottom: 22px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: var(--primary);
	color: #fff;
	transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.custom-cat-tile:hover .custom-cat-tile-arrow,
.custom-cat-tile:focus-visible .custom-cat-tile-arrow {
	background-color: #41c0e0;
	color: var(--secondary);
	transform: translateX(4px);
}

/* "All Projects" tile: brand gradient instead of a photo */
.custom-cat-tile-all {
	background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 75%);
}

.custom-cat-tile-all::after {
	background: linear-gradient(225deg, transparent 0 16%, rgba(65, 192, 224, 0.9) 16% 23%, transparent 23%);
	opacity: 0.35;
}

.custom-cat-tile-all-count {
	position: absolute;
	top: 12px;
	left: 20px;
	z-index: 1;
	color: rgba(255, 255, 255, 0.18);
	font-size: 8rem;
	font-weight: 800;
	line-height: 1;
}

@media (min-width: 1200px) {
	.custom-cat-tile-tall {
		height: min(70vh, 560px);
	}

	.custom-cat-tile-short {
		height: calc((min(70vh, 560px) - 1.5rem) / 2);
	}
}

/* Inner pages: footer in brand navy (a shade darker than the CTA band above it) */
#footer {
	background-color: var(--secondary-100);
}

#footer .footer-copyright,
#footer .footer-copyright.footer-copyright-style-2 {
	background-color: transparent;
}

/* Homepage hero: the tagline is the page H1 (SEO) but keeps the paragraph look */
html body h1.custom-hero-h1 {
	font-family: "Poppins", Arial, sans-serif !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #fff !important;
}

/* 404 page: large decorative "404" in the brand gradient (blue -> cyan) */
.custom-404-code {
	font-family: "Poppins", Arial, sans-serif;
	font-size: clamp(5.5rem, 20vw, 10rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--primary);
	background: linear-gradient(120deg, var(--primary) 20%, #41c0e0 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
