/* =====================================================================
   Incarreal — modern layer (loaded after style.css on every page)
   ===================================================================== */
:root {
	--brand: #07536b;
	--brand-2: #1f86ab;
	--ink: #1d2a31;
	--muted: #5b6a72;
	--surface: #ffffff;
	--page: #f4f7f9;
	--radius: 16px;
	--shadow-sm: 0 4px 14px rgba(13, 38, 52, 0.06);
	--shadow-md: 0 14px 40px rgba(13, 38, 52, 0.12);
	--shadow-lg: 0 30px 80px rgba(5, 18, 26, 0.45);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
	background-color: var(--page);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
::selection {
	background: rgba(31, 134, 171, 0.25);
}
a {
	transition: color 0.2s ease;
}

/* ---------- Header: sticky, frosted, animated menu underline ---------- */
header {
	position: sticky;
	top: 0;
	z-index: 1030;
}
header .navbar-default,
header .navbar-default .navbar-nav > .active > a,
header .navbar-default .navbar-nav > .active > a:hover,
header .navbar-default .navbar-nav > .active > a:focus {
	background-color: transparent;
}
header .navbar {
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid rgba(7, 83, 107, 0.06);
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
header.is-scrolled .navbar {
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 6px 24px rgba(13, 38, 52, 0.08);
}
header .navbar-nav > li > a {
	position: relative;
	letter-spacing: 0.04em;
}
@media (min-width: 768px) {
	header .navbar-nav > li > a::after {
		content: '';
		position: absolute;
		left: 15px;
		right: 15px;
		bottom: 2px;
		height: 2px;
		border-radius: 2px;
		background: linear-gradient(90deg, var(--brand), var(--brand-2));
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.35s var(--ease);
	}
	header .navbar-nav > li:last-child > a::after {
		right: 0;
	}
	header .navbar-nav > li > a:hover::after,
	header .navbar-nav > li.active > a::after {
		transform: scaleX(1);
	}
}

/* ---------- Buttons ---------- */
.btn.more,
.btn-color,
.btn-default,
.contact-form .btn {
	border: 0;
	border-radius: 10px;
	padding: 10px 22px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.02em;
	box-shadow: 0 6px 18px rgba(7, 83, 107, 0.25);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s ease;
}
.btn.more:hover,
.btn-color:hover,
.btn-default:hover,
.contact-form .btn:hover,
.btn.more:focus,
.btn-color:focus,
.btn-default:focus {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(7, 83, 107, 0.32);
	filter: brightness(1.06);
}

/* ---------- Scroll-to-top ---------- */
.scrollup {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	box-shadow: var(--shadow-md);
	text-align: center;
	line-height: 44px;
	right: 20px;
	bottom: 88px; /* sits above the footer's phone number */
	transition: transform 0.25s var(--ease);
}
.scrollup:hover {
	transform: translateY(-3px);
}
a.scrollup i {
	display: block;
	margin: 0; /* old 10px top margin pushed the arrow below centre */
	color: #fff;
	font-size: 26px;
	line-height: 44px;
	text-align: center;
	transform: translateY(-1px); /* the angle glyph sits low in its box; this centres it optically */
}

/* ---------- Reveal-on-scroll (only when JS is running) ---------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Home slider caption ---------- */
#main-slider .flex-caption {
	border-radius: 14px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
#main-slider .flex-active-slide .flex-caption {
	animation: capIn 0.9s var(--ease) both 0.15s;
}
@keyframes capIn {
	from { opacity: 0; transform: translate(-50%, 18px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}
#featured {
	margin: 0;
	display: flow-root; /* stop the slider list's bottom margin leaking out as a white strip */
}
#main-slider .slides > li {
	margin-bottom: 0; /* a global li margin left a white strip under the photo */
}

/* ---------- Home: service cards (pyramid) ---------- */
.services {
	position: relative;
	margin: 0;
	padding: 80px 0 30px;
	background:
		radial-gradient(60% 50% at 50% 0%, rgba(31, 134, 171, 0.14), transparent 70%),
		linear-gradient(180deg, #e7eef2 0%, var(--page) 100%);
}
.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	align-items: start;
	max-width: 1170px;
	margin: 0 auto;
}
.service-card {
	position: relative;
	display: block;
	height: 440px;
	border-radius: 20px;
	overflow: hidden;
	color: #fff;
	box-shadow: var(--shadow-md);
	isolation: isolate;
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card-1,
.service-card-3 {
	margin-top: 64px; /* side cards sit lower: the three form a triangle */
}
.service-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
	z-index: -2;
}
.service-card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(5, 25, 35, 0) 18%, rgba(5, 25, 35, 0.62) 44%, rgba(5, 25, 35, 0.9) 62%, rgba(5, 25, 35, 0.96) 100%);
	transition: background 0.45s ease;
}
.service-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 28px 26px;
}
.service-body h2 {
	color: #fff;
	font-size: 26px;
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}
.service-body p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 16px;
}
.service-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.25);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-weight: 600;
	font-size: 14px;
	transition: background 0.3s ease;
}
.service-more svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s var(--ease);
}
.service-card:hover,
.service-card:focus {
	color: #fff;
	text-decoration: none;
	transform: translateY(-6px);
	box-shadow: 0 24px 60px rgba(13, 38, 52, 0.22);
}
.service-card:hover img {
	transform: scale(1.06);
}
.service-card:hover .service-more {
	background: rgba(255, 255, 255, 0.24);
}
.service-card:hover .service-more svg {
	transform: translateX(4px);
}
/* tablet: one card on top, two below — a literal triangle */
@media (min-width: 640px) and (max-width: 991px) {
	.service-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.service-card-2 {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 14px);
		order: -1;
	}
	.service-card-1,
	.service-card-3 {
		margin-top: 0;
	}
	.service-card {
		height: 400px;
	}
}
@media (max-width: 639px) {
	.services {
		padding: 40px 0 10px;
	}
	.service-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.service-card-1,
	.service-card-3 {
		margin-top: 0;
	}
	.service-card {
		height: 380px;
	}
}

/* ---------- Section titles ---------- */
.section-title {
	position: relative;
	color: var(--ink);
	font-size: clamp(26px, 3vw, 36px);
	letter-spacing: -0.01em;
	margin: 0 0 22px;
	padding-top: 18px;
}
.section-title::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 44px;
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

/* ---------- Home: About section blended into the page ---------- */
#content.home-about {
	position: relative;
	background: transparent;
	padding: 60px 0 90px;
	overflow: hidden;
}
#content.home-about::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(40% 60% at 85% 40%, rgba(31, 134, 171, 0.12), transparent 70%),
		radial-gradient(35% 50% at 10% 90%, rgba(7, 83, 107, 0.08), transparent 70%);
	pointer-events: none;
}
.home-about-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
	max-width: 1170px;
	margin: 0 auto;
}
.home-about-main .lead,
.about-intro .lead {
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink);
	font-weight: 400;
}
.home-about-main p {
	font-size: 15.5px;
	line-height: 1.75;
}
.home-about-tech {
	position: relative;
	padding: 30px 32px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.6);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: var(--shadow-sm);
}
.home-about-tech::before {
	content: '';
	position: absolute;
	left: 0;
	top: 24px;
	bottom: 24px;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.home-about-tech p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.8;
	color: var(--ink);
}
@media (max-width: 991px) {
	.home-about-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	#content.home-about {
		padding: 40px 0 60px;
	}
}

/* ---------- Inner pages: panel + title entrance ---------- */
body.inner-page .pageTitle {
	animation: fadeUp 0.8s var(--ease) both;
}
body.inner-page #content > .container {
	animation: fadeUp 0.9s var(--ease) both 0.12s;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 20px;
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: none; }
}

/* ---------- About page ---------- */
.about-page p {
	font-size: 15px;
	line-height: 1.75;
}
.about-intro {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 32px;
	margin-bottom: 40px;
	border-bottom: 1px solid rgba(7, 83, 107, 0.1);
}
.about-intro-text {
	max-width: 820px;
}
.about-intro-text p:last-child {
	margin-bottom: 0;
}
.about-intro .btn {
	flex-shrink: 0;
}
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	grid-template-areas:
		"problems steps"
		"skills   steps";
	gap: 28px;
	align-items: start;
}
.about-card {
	background: var(--surface);
	border: 1px solid rgba(7, 83, 107, 0.08);
	border-radius: var(--radius);
	padding: 28px 30px;
	box-shadow: var(--shadow-sm);
}
.about-grid > .about-card:nth-child(1) { grid-area: problems; }
.about-grid > .about-card-steps      { grid-area: steps; }
.about-grid > .about-expertise       { grid-area: skills; }
.about-card-lead {
	color: var(--ink);
	margin-bottom: 20px;
}
.about-card-lead b {
	font-weight: 600;
}
.check-list,
.step-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}
.check-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
	line-height: 1.65;
}
.check-list .ico {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	padding: 4px;
	margin-top: 1px;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.step-list {
	counter-reset: step;
}
.step-list li {
	position: relative;
	counter-increment: step;
	padding: 0 0 18px 50px;
	line-height: 1.65;
}
.step-list li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -2px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	color: var(--brand);
	background: rgba(31, 134, 171, 0.12);
	border: 1px solid rgba(31, 134, 171, 0.3);
}
.step-list li:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 15.5px;
	top: 34px;
	bottom: 2px;
	width: 1px;
	background: rgba(31, 134, 171, 0.25);
}
.about-callout {
	margin: 4px 0 0;
	padding: 14px 18px;
	border-left: 3px solid var(--brand-2);
	border-radius: 0 12px 12px 0;
	background: rgba(31, 134, 171, 0.08);
	color: var(--ink);
}
.about-highlight {
	margin: 4px 0 0;
	padding: 20px 22px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
}
.about-highlight b {
	font-weight: 600;
}
.about-highlight a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.about-expertise h3 {
	font-size: 20px;
	color: var(--ink);
	margin: 0 0 18px;
}
.about-expertise h6 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin: 0 0 8px;
}
.about-expertise .progress {
	height: 8px;
	border-radius: 999px;
	background: #e4ecf0;
	box-shadow: none;
	margin-bottom: 18px;
	overflow: hidden;
}
.about-expertise .progress .progress-bar {
	border-radius: 999px;
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
	box-shadow: none;
	transform-origin: left;
	transition: transform 1.2s var(--ease) 0.3s;
}
.js .about-expertise:not(.is-visible) .progress .progress-bar {
	transform: scaleX(0);
}
@media (max-width: 991px) {
	.about-grid {
		grid-template-columns: 1fr;
		grid-template-areas: "problems" "steps" "skills";
	}
	.about-intro {
		flex-direction: column;
		align-items: flex-start;
	}
}
@media (max-width: 767px) {
	.about-card {
		padding: 22px 18px;
	}
}

/* ---------- Portfolio: filters ---------- */
ul.portfolio-categ {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	float: none;
	margin: 0 0 30px;
}
ul.portfolio-categ li,
ul.portfolio-categ li.active {
	float: none;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(7, 83, 107, 0.07);
	transition: background 0.25s ease, box-shadow 0.25s ease;
}
ul.portfolio-categ li a {
	padding: 9px 18px;
	color: var(--ink);
	border-radius: 999px;
}
ul.portfolio-categ li:hover {
	background: rgba(7, 83, 107, 0.14);
}
ul.portfolio-categ li.active {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	box-shadow: 0 6px 16px rgba(7, 83, 107, 0.25);
}
ul.portfolio-categ li.active a {
	color: #fff;
}

/* ---------- Portfolio: thumbnails + hover ---------- */
#thumbs {
	list-style: none;
	padding: 0;
	margin: 0;
}
li.item-thumbs {
	display: block;
	margin-bottom: 30px;
	overflow: visible;
}
.item-thumbs .thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
	isolation: isolate;
}
.item-thumbs .thumb img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}
.item-thumbs .hover-wrap {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	display: block;
	opacity: 0;
	transform: none;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(4, 30, 42, 0.15) 0%, rgba(4, 30, 42, 0.45) 50%, rgba(4, 30, 42, 0.9) 100%);
	transition: opacity 0.45s var(--ease);
}
.item-thumbs:hover .hover-wrap,
.item-thumbs.active .hover-wrap,
.item-thumbs .hover-wrap:focus {
	opacity: 1;
	transform: none;
}
/* inner frame that follows the card's rounded corners exactly */
.item-thumbs .hover-wrap .overlay-img {
	position: absolute;
	inset: 12px;
	width: auto;
	height: auto;
	opacity: 1;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: calc(var(--radius) - 8px);
	transform: scale(1.06);
	transition: transform 0.6s var(--ease);
}
.item-thumbs .hover-wrap .overlay-img-thumb {
	position: absolute;
	top: 42%;
	left: 50%;
	margin: 0;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transform: translate(-50%, -50%) scale(0.6);
	transition: transform 0.5s var(--ease);
}
.item-thumbs .hover-wrap .overlay-img-thumb svg {
	width: 24px;
	height: 24px;
	color: #fff;
}
.item-thumbs .hover-wrap .overlay-title {
	position: absolute;
	left: 26px;
	right: 26px;
	bottom: 24px;
	color: #fff;
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.4;
	transform: translateY(12px);
	opacity: 0;
	transition: transform 0.5s var(--ease) 0.05s, opacity 0.5s ease 0.05s;
}
.item-thumbs:hover .thumb {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.item-thumbs:hover .thumb img {
	transform: scale(1.07);
}
.item-thumbs:hover .hover-wrap .overlay-img {
	transform: scale(1);
}
.item-thumbs:hover .hover-wrap .overlay-img-thumb {
	transform: translate(-50%, -50%) scale(1);
}
.item-thumbs:hover .hover-wrap .overlay-title {
	transform: none;
	opacity: 1;
}
/* touch screens: no hover, so keep the title visible */
@media (hover: none) {
	.item-thumbs .hover-wrap {
		opacity: 1;
		background: linear-gradient(180deg, transparent 45%, rgba(4, 30, 42, 0.85) 100%);
	}
	.item-thumbs .hover-wrap .overlay-img,
	.item-thumbs .hover-wrap .overlay-img-thumb {
		display: none;
	}
	.item-thumbs .hover-wrap .overlay-title {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Portfolio: lightbox ---------- */
.fancybox-overlay {
	background: rgba(6, 16, 22, 0.82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.fancybox-skin {
	background: transparent;
	border-radius: 18px;
	box-shadow: var(--shadow-lg) !important;
}
.fancybox-inner {
	border-radius: 18px;
}
.fancybox-opened .fancybox-title.fancybox-title-over-wrap {
	left: 0;
	right: 0;
	bottom: 0;
	padding: 22px 28px 22px;
	background: linear-gradient(180deg, rgba(6, 20, 28, 0.35), rgba(6, 20, 28, 0.7));
	-webkit-backdrop-filter: blur(16px) saturate(1.3);
	backdrop-filter: blur(16px) saturate(1.3);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	animation: titleUp 0.6s var(--ease) both 0.15s;
}
@keyframes titleUp {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}
.fancybox-opened .fancybox-title h4 {
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}
.fancybox-opened .fancybox-title p {
	color: rgba(255, 255, 255, 0.86);
	font-size: 15px;
	line-height: 1.6;
}
.fancybox-title .btn-more {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 3px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	transition: background 0.25s ease;
}
.fancybox-title .btn-more:hover {
	background: rgba(255, 255, 255, 0.32);
	color: #fff;
	text-decoration: none;
}
/* round glass controls */
.fancybox-skin .fancybox-close,
.fancybox-skin .fancybox-nav span,
.fancybox-skin .fancybox-nav:hover span {
	background-image: none !important;
}
.fancybox-skin .fancybox-close,
.fancybox-skin .fancybox-nav span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: #fff;
	background-color: rgba(10, 22, 28, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.28);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 1;
	transition: background-color 0.25s ease, transform 0.3s var(--ease);
}
.fancybox-skin .fancybox-close {
	top: 16px;
	right: 16px;
}
.fancybox-skin .fancybox-close svg,
.fancybox-skin .fancybox-nav span svg {
	width: 22px;
	height: 22px;
}
.fancybox-skin .fancybox-close:hover {
	background-color: rgba(255, 255, 255, 0.24);
	transform: rotate(90deg);
}
.fancybox-skin .fancybox-nav span {
	margin-top: -23px;
	visibility: visible;
}
.fancybox-skin .fancybox-prev span {
	left: 16px;
}
.fancybox-skin .fancybox-next span {
	right: 16px;
}
.fancybox-skin .fancybox-nav:hover span {
	background-color: rgba(255, 255, 255, 0.24);
	opacity: 1;
}
.fancybox-skin .fancybox-prev:hover span {
	transform: translateX(-3px);
}
.fancybox-skin .fancybox-next:hover span {
	transform: translateX(3px);
}
@media (max-width: 480px) {
	.fancybox-skin .fancybox-close,
	.fancybox-skin .fancybox-nav span,
	.fancybox-skin .fancybox-nav:hover span {
		background-color: rgba(10, 22, 28, 0.45);
		width: 40px;
		height: 40px;
	}
	.fancybox-opened .fancybox-title.fancybox-title-over-wrap {
		padding: 14px 16px;
	}
	.fancybox-opened .fancybox-title h4 {
		font-size: 17px;
	}
	.fancybox-opened .fancybox-title p {
		font-size: 13px;
	}
}

/* ---------- Contact form ---------- */
.contact-form .form-control {
	height: auto;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #d5dee3;
	background: #fff;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form .form-control:focus {
	border-color: var(--brand-2);
	box-shadow: 0 0 0 4px rgba(31, 134, 171, 0.15);
}
.contact-form label {
	color: var(--ink);
	font-weight: 600;
}
.alert {
	border-radius: 12px;
}

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}
	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Fixes ---------- */
.pageTitle {
	z-index: auto; /* old z-index: 9999 put the title above the lightbox */
}
#thumbs::after {
	content: '';
	display: table;
	clear: both;
}
body.page-portfolio #content .row {
	margin-bottom: 0;
}
body.page-portfolio #content > .container {
	padding-bottom: 10px; /* last row's 30px card gap + 10px = 40px, same as the top */
}
.fancybox-skin .fancybox-nav {
	width: 35%; /* whole side of the photo is clickable, not just the round button */
}
.fancybox-skin,
.fancybox-skin .fancybox-inner {
	overflow: hidden !important; /* rounded corners on the photo */
}
#main-slider,
#main-slider .slides {
	margin: 0;
}
#main-slider .flex-direction-nav li {
	margin: 0; /* arrow list items carried a 17px margin that showed as a strip under the slider */
}

/* No rubber-band overscroll above the header / below the footer (Chrome, Edge, Firefox, Safari 16+) */
html,
body {
	overscroll-behavior-y: none;
}
