/* Preloader Style */
.spinner-section{
    width: 100%;
    max-width: 100%;
    height: 100vh;
    min-height: 100vh;
    background: #000;
    position: fixed;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.loader {
    position: relative;
    width: 100px;
    height: 100px;
    text-align: center;
    border-radius: 50%;
    margin: 75px;
    display: inline-block;
    vertical-align: middle;
}
.preloader {
    border-width: 7px;
    border-style: double;
    -webkit-animation: ball-turn 1s linear infinite;
    animation: ball-turn 1s linear infinite;
}
.preloader::before, 
.preloader::after {
	content: "";
	position: absolute;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	bottom: 0px;
	right: 10px;
	background: #000;
	border-width: 1px;
	border-style: solid;
}
.preloader::after {
	left: 10px;
	top: 0;
}

/* ----------------     KEYFRAMES    ----------------- */
@-webkit-keyframes ball-turn {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes ball-turn {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* button */
.main-btn {
	display: inline-block;
	vertical-align: middle;
	border: 1px solid #ffffff;
	-webkit-transform: perspective(1px) translateZ(0);
	transform: perspective(1px) translateZ(0);
	box-shadow: 0 0 1px transparent;
	position: relative;
	-webkit-transition-property: color;
	transition-property: color;
	-webkit-transition-duration: .3s;
	transition-duration: .3s;
	border-radius: 3px;
	color: #fff;
	font-weight: 600;
	padding: 10px 30px;
	text-transform: uppercase;
	cursor: pointer;
}
.main-btn:hover{
	color: #ffffff;
}
.main-btn:active:before, 
.main-btn:focus:before, 
.main-btn:hover:before {
	-webkit-transform: scale(1);
	transform: scale(1);
}
.main-btn:before {
	content: "";
	position: absolute;
	background-color: #333;
	z-index: -1;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 3px;
	-webkit-transform: scale(0);
	transform: scale(0);
	-webkit-transition-property: transform;
	-webkit-transition-property: -webkit-transform;
	transition-property: -webkit-transform;
	transition-property: transform;
	transition-property: transform, -webkit-transform;
	-webkit-transition-duration: .3s;
	transition-duration: .3s;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}
.white-btn.main-btn {
	background-color: #ffffff !important;
}
.white-btn.main-btn:hover{
	color: #ffffff;
}

/* carousel dots */
.owl-carousel {
	margin-bottom: 50px;
}
.testimonial-section .owl-dots {
	bottom: 0px;
}
.best-client-list.owl-carousel{
	margin-bottom: 0px;
}
.owl-dots {
	bottom: -50px;
	left: 0;
	position: absolute;
	right: 0;
	text-align: center;
}
.owl-dot {
	border-radius: 3px;
	display: inline-block;
	height: 8px;
	margin: 0 5px;
	-webkit-transition: all 0.2s linear 0s;
	transition: all 0.2s linear 0s;
	width: 15px;
}
.owl-dot.active, .owl-dot:hover {
	width: 25px;
}

/* Hero slider */
.hero-slider {
	position: relative;
	overflow: hidden;
}
.hero-slider .hero-slides {
	position: absolute;
	inset: -1px 0;
}
.hero-slider .hero-slide {
	position: absolute;
	inset: -1px 0;
	background-size: cover !important;
	background-position: center center !important;
	opacity: 0;
	transition: opacity 800ms ease-in-out;
	display: flex;
	align-items: center;
}
.hero-slider .hero-slide.is-active {
	opacity: 1;
	z-index: 1;
}
.hero-slider .hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}
.hero-slider .hero-slide > .container {
	width: 100%;
	position: relative;
	z-index: 2;
}

/* Center hero slider titles */
.hero-slider .banner-content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 100vh;
	text-align: center;
}

.hero-slider .banner-text {
	display: block;
	width: 100%;
	text-align: center;
}

.hero-slider .flat-content {
	margin-top: 140px;
	width: 100%;
	text-align: center;
}

.hero-slider .banner-text h3,
.hero-slider .banner-text h1 {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.hero-slider .type-line {
	text-align: center;
}

.hero-slider .type-wrap {
	display: inline-block;
	text-align: center;
}

/* About Page Styles */
.about-banner {
	position: relative;
	height: 600px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	margin-top: -80px;
	padding-top: 80px;
}

.about-banner .overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.banner-content {
	position: relative;
	z-index: 2;
	text-align: center;
}

.banner-title {
	font-size: 4rem;
	font-weight: 700;
	letter-spacing: 3px;
	margin: 0;
	color: white;
	text-transform: uppercase;
}

.title-divider {
	width: 80px;
	height: 4px;
	background: #00a9ce;
	margin: 20px auto;
	border-radius: 2px;
}

.breadcrumb-section {
	background: #f5f5f5;
	padding: 20px 0;
	border-top: 1px solid #ddd;
}

.breadcrumb {
	margin: 0;
	background: transparent;
	padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
	content: "»";
	padding: 0 10px;
}

/* Timeline Styles */
.evolution-section {
	position: relative;
	overflow: hidden;
	background-color: #f8f8fb !important;
	background-image: url('/images/world-map.jpg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 85%;
}

.evolution-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(248, 248, 251, 0.72);
	z-index: 0;
	pointer-events: none;
}

.evolution-section .container {
	position: relative;
	z-index: 1;
}

.evolution-timeline {
	position: relative;
	max-width: 1160px;
	margin: 0 auto;
	padding: 46px 0 10px;
}

.evolution-timeline::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
	bottom: 0;
	width: 2px;
	background: #d7d7d7;
}

.timeline-item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
	align-items: center;
	column-gap: 0;
	min-height: 110px;
	margin-bottom: 14px;
}

.timeline-marker {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	left: auto;
	top: auto;
	transform: none;
	z-index: 2;
}

.timeline-year {
	width: 60px;
	height: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #7e9fb7;
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 16px;
	box-shadow: 0 6px 14px rgba(126, 159, 183, 0.25);
}

.timeline-item {
	align-items: center;
}

.timeline-content {
	display: flex;
	align-items: center;
	align-self: center;
	gap: 12px;
	width: 100%;
}

.timeline-item--right .timeline-content {
	grid-column: 3;
	padding-left: 16px;
}

.timeline-item--left .timeline-content {
	grid-column: 1;
	padding-right: 16px;
	flex-direction: row-reverse;
}

.timeline-arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	align-self: center;
	color: #7e9fb7;
	font-size: 18px;
	line-height: 1;
}

.timeline-card {
	flex: 1;
	min-width: 0;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	padding: 14px 22px 12px;
	min-height: 52px;
	text-align: left;
}

.timeline-content h4 {
	font-size: 17px;
	font-weight: 700;
	color: #2d2d2d;
	margin-bottom: 4px;
}

.timeline-content p {
	color: #777;
	font-size: 12px;
	line-height: 1.5;
	margin-bottom: 0;
}

@media (max-width: 991px) {
	.evolution-timeline {
		padding-top: 24px;
	}

	.evolution-timeline::before {
		left: 27px;
		transform: none;
	}

	.timeline-item {
		grid-template-columns: 54px minmax(0, 1fr);
		align-items: center;
		min-height: 96px;
		margin-bottom: 18px;
	}

	.timeline-marker {
		grid-column: 1;
	}

	.timeline-year {
		width: 54px;
		height: 54px;
		font-size: 14px;
	}

	.timeline-item--right .timeline-content,
	.timeline-item--left .timeline-content {
		grid-column: 2;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 18px;
		padding-right: 0;
		flex-direction: row;
	}
}

@media (max-width: 575px) {
	.timeline-card {
		padding: 12px 16px;
	}

	.timeline-content h4 {
		font-size: 15px;
	}

	.timeline-content p {
		font-size: 11px;
	}
}

/* Values Section */
.values-section {
	position: relative;
	overflow: hidden;
}

.values-section .dot-bg {
	opacity: 0.35;
}

.values-section .container {
	position: relative;
	z-index: 1;
}

.values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.value-card {
	background: rgb(233, 234, 241, 0.3);
	border: 1px solid #d9dbe9;
	padding: 40px 30px;
	text-align: center;
	border-radius: 0;
	transition: all 0.4s ease;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.value-card:hover {
	background: linear-gradient(135deg, #5da5d9, #00a9ce);
	border-color: transparent;
	transform: none;
	box-shadow: none;
}

.value-card:hover h4 {
	color: white;
}

.value-card:hover h4::after {
	background: rgba(255, 255, 255, 0.7);
}

.value-card:hover .value-icon {
	background: rgba(255, 255, 255, 0.25);
	color: white;
}

.value-card:hover .value-icon .icon-image,
.value-card.highlighted .value-icon .icon-image {
	mix-blend-mode: multiply;
}

.value-card.highlighted {
	background: linear-gradient(135deg, #5da5d9, #00a9ce);
	border: none;
	color: white;
}

.value-icon {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	color: #333;
	margin-bottom: 24px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
	flex-shrink: 0;
}
.value-icon .svg-icon,
.value-icon .icon-image {
	width: 52px;
	height: 52px;
	display: block;
	object-fit: contain;
}

.value-card.highlighted .value-icon {
	background: rgba(255, 255, 255, 0.25);
	color: white;
}

.value-card h4 {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #333;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.value-card h4::after {
	content: '';
	display: block;
	width: 36px;
	height: 2px;
	background: #333;
	margin: 8px auto 0;
}

.value-card.highlighted h4 {
	color: white;
}

.value-card.highlighted h4::after {
	background: rgba(255, 255, 255, 0.7);
}

/* Journey Section */
.journey-section {
	position: relative;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	padding: 80px 0;
	color: white;
	min-height: 50vh;
	display: flex;
	align-items: center;
}

.journey-section .overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.journey-section .dark-overlay {
	background: rgba(0, 0, 0, 0.6);
}

.journey-content {
	position: relative;
	z-index: 2;
}

.journey-content h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: white;
}

.journey-content p {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.95);
}


/* Equal Space Section */
.equal-space {
	padding: 100px 0;
}

.bg-light {
	background-color: #f9f9f9;
}

/* Min-height utilities */
.min-vh-50 {
	min-height: 50vh;
}

.min-vh-100 {
	min-height: 100vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.banner-title {
		font-size: 2.5rem;
	}

	.journey-content h2 {
		font-size: 1.8rem;
	}

	.journey-content p {
		font-size: 14px;
	}

	.values-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 20px;
	}

	.value-card {
		padding: 30px 20px;
		min-height: auto;
	}

	.value-icon {
		font-size: 36px;
		margin-bottom: 15px;
	}

	.equal-space {
		padding: 60px 0;
	}
}

/* Home projects grid (Isotope masonry layout) */
.home-portfolio-wrapper {
	padding: 0;
	margin-top: 30px;
}
.home-port-nav {
	text-align: center;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}
.home-port-nav li {
	display: inline-block;
	padding: 8px 18px;
	margin: 4px;
	border-radius: 25px;
	border: 1px solid #d0d7de;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.25s;
}
.home-port-nav li.active,
.home-port-nav li:hover {
	background: #7fb4c4;
	color: #fff;
	border-color: #7fb4c4;
}

/* footer address/contact row alignment */
.footer-address-list li,
.footer-contact-list li {
	min-height: 60px;
}

.footer-address-list li {
	display: flex;
	align-items: flex-start;
}

.footer-address-list li i {
	float: none;
	flex: 0 0 25px;
	margin-right: 12px;
	line-height: 1.4;
}

.footer-address-list li p {
	flex: 1;
}

.footer-contact-list li.contact-stacked,
.footer-contact-list li.contact-stacked-last {
	min-height: 30px;
}

/* Reduce footer vertical padding */
.footer-top.equal-space {
	padding-top: 50px !important;
	padding-bottom: 50px !important;
}


/* service number — bleeds into previous card, fades out there */
/* service section */

/* Home portfolio — same overlay design as projects page */
#home-portfolio-page .port-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}
#home-portfolio-page .port-item h4:first-child {
	position: absolute;
	right: 25%;
	top: 25%;
	transform: rotateZ(-90deg);
	z-index: 2;
	white-space: nowrap;
	font-size: 4rem;
	font-weight: 700;
	color: rgba(255,255,255,0.15);
}
#home-portfolio-page .port-overlay {
	position: absolute;
	left: 0; top: 0; right: 0; bottom: 0;
	border-radius: 0 !important;
	padding: 24px 20px 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	text-align: left;
	background: linear-gradient(
		to top,
		rgba(10, 40, 60, 0.92) 0%,
		rgba(10, 40, 60, 0.55) 55%,
		rgba(10, 40, 60, 0.0) 100%
	);
	transform: translateY(100%);
	opacity: 1 !important;
	visibility: visible !important;
	transition: transform 0.42s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#home-portfolio-page .port-item:hover .port-overlay {
	transform: translateY(0);
}
#home-portfolio-page .port-overlay > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,0.55);
	border-radius: 30px;
	padding: 6px 16px;
	margin-bottom: 10px;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}
#home-portfolio-page .port-overlay > a:hover {
	background: rgba(255,255,255,0.18);
	border-color: #fff;
}
#home-portfolio-page .port-overlay h4 {
	font-size: 15px !important;
	font-weight: 700;
	color: #fff !important;
	margin: 0 0 5px;
	line-height: 1.35;
}
#home-portfolio-page .port-overlay p {
	font-size: 12.5px;
	color: rgba(255,255,255,0.82);
	margin: 0;
	line-height: 1.5;
}

/* banner decorative frame */
.info-banner-box {
	position: relative;
}
.banner-frame {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 6%;
	width: 33%;
	border: 2px solid rgba(0, 169, 206, 0.65);
	pointer-events: none;
	z-index: 2;
}

/* Services page — smaller card titles */
.service-card-text .number {
	font-size: 2.8rem;
}

.service-card-text h2 {
	font-size: 1.3rem;
	text-align: center !important;
	width: 100%;
}

.service-card-text {
	padding: 1.5rem !important;
	min-height: 16rem !important;
	align-items: center !important;
	text-align: center !important;
}

.service-single-content > p,
.service-single-content .service-body,
.service-single-content .service-body p,
.service-single-content .service-body li {
	text-align: justify;
}

/* Two project images shown side by side, equal height */
.project-images-row img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

@media (max-width: 767.98px) {
	.project-images-row img {
		height: 240px;
	}
}

/* Exciting Journey — flush against the footer */
.info-banner-box--footer-flush {
	margin-bottom: 0 !important;
}

/* Allow blue rectangle edges to bleed above the banner */
.info-banner-box {
	overflow: visible !important;
	position: relative;
	z-index: 1;
}

/* Smaller text in the banner section */
.info-banner-box h4 {
	font-size: 1.6rem !important;
	max-width: 18rem !important;
}

.info-banner-box p {
	font-size: 0.9rem !important;
}

/* Wider rectangle box in Exciting Journey */
.info-banner-box--footer-flush .container {
	max-width: 1400px;
}

/* Bigger gap between rectangle and the right-side text */
.info-banner-box .col-md-6:not(.start-box) {
	padding-left: 5rem;
}

/* Push the rectangle column further to the left */
.info-banner-box .start-box {
	margin-left: 0;
}

/* Remove white shadow overlay on the exciting journey banner */
.info-banner-box--footer-flush::after {
	display: none;
}

/* Grey overlay across the exciting journey banner */
.info-banner-box--footer-flush::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 0;
}

/* Keep the banner content above the grey overlay */
.info-banner-box--footer-flush > .container {
	position: relative;
	z-index: 1;
}

/* Exciting Journey title on one line */
.info-banner-box--footer-flush h4 {
	font-size: 1.6rem !important;
	max-width: none !important;
	white-space: nowrap;
	font-family: 'Playfair Display', Georgia, serif !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
}

/* Smaller header search icon */
.menu-search {
	font-size: 16px;
	padding: 4px;
	top: 32px;
}
.menu-search i {
	font-size: 16px;
}
.header-search-area .search-submit {
	font-size: 18px;
	padding: 0 20px;
}

/* Header top: spacing between icons and text/links */
.header-top-list li i {
	margin-right: 8px;
}
.header-top-list li a,
.footer-contact-list li a,
.contact-info .single-contact a {
	color: inherit;
	text-decoration: none;
}
.header-top-list li a {
	color: #1a1a1a;
}
.header-top-list li a:hover,
.footer-contact-list li a:hover,
.contact-info .single-contact a:hover {
	text-decoration: underline;
}
.offset-header .header-top-list li a {
	color: #fff;
}

/* Contact page: soften decorative blue side lines */
#contact-page .contact-info {
	border-left-color: rgba(104, 163, 198, 0.35);
}
#contact-page .contact-info:before,
#contact-page .contact-info:after {
	background: rgba(104, 163, 198, 0.28) !important;
}

/* Keep navbar on top of hero slider */
.main-header,
.offset-header.main-header {
	z-index: 100;
}
.main-header .header-bottom {
	position: relative;
	z-index: 101;
}

/* Global guard: prevent phantom horizontal page overflow */
html {
	overflow-x: clip;
	max-width: 100%;
}

body {
	overflow-x: clip;
	max-width: 100%;
}

/* Home services: narrow banners, 4 per row, right-aligned (original design) */
.services-grid {
	display: flex !important;
	flex-wrap: nowrap !important;
	justify-content: flex-end !important;
	align-items: stretch !important;
	align-content: flex-start !important;
	gap: 0 !important;
	width: 100%;
	overflow: hidden;
	max-width: 100%;
}

#services-page,
#services-page .services-grid {
	max-width: 100%;
	overflow-x: clip;
}

#home-portfolio-page,
#home-portfolio-page .container-fluid,
#portfolio-page,
#portfolio-page .container-fluid {
	max-width: 100%;
	overflow: visible;
}

#home-portfolio-page .port-item,
#portfolio-page .port-item {
	overflow: hidden;
}

/* Projects page: make every photo auto-fit its tile uniformly */
#portfolio-page .single-port {
	padding: 0 10px;
	margin-bottom: 20px;
}
#portfolio-page .single-port .port-item {
	overflow: hidden;
	border-radius: 4px;
	border: 4px solid #fff;
	box-sizing: border-box;
}
#portfolio-page .single-port .port-item img {
	width: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.4s ease;
}
#portfolio-page .single-port .port-item:hover img {
	transform: scale(1.05);
}

/* Per-project image display mode (set in admin: Photo vs Logo).
   ID prefixes needed so these beat the #portfolio-page object-fit rule above. */
#portfolio-page .single-port .port-item img.fit-cover,
#home-portfolio-page .single-port .port-item img.fit-cover {
	object-fit: cover !important;
	background: transparent;
	padding: 0;
}
#portfolio-page .single-port .port-item img.fit-contain,
#home-portfolio-page .single-port .port-item img.fit-contain {
	object-fit: contain !important;
	background: #fff;
	padding: 16px;
}
/* Don't zoom logos on hover (looks odd with whitespace) */
#portfolio-page .single-port .port-item:hover img.fit-contain,
#home-portfolio-page .single-port .port-item:hover img.fit-contain {
	transform: none;
}

#portfolio-page .single-port.port-wide .port-item img   { height: 265px; }
#portfolio-page .single-port.port-tall .port-item img   { height: 550px; }
#portfolio-page .single-port.port-normal .port-item img { height: 265px; }

@media (max-width: 1199px) {
	#portfolio-page .single-port.port-wide .port-item img   { height: 220px; }
	#portfolio-page .single-port.port-tall .port-item img   { height: 460px; }
	#portfolio-page .single-port.port-normal .port-item img { height: 220px; }
}
@media (max-width: 767px) {
	#portfolio-page .single-port.port-wide .port-item img,
	#portfolio-page .single-port.port-tall .port-item img,
	#portfolio-page .single-port.port-normal .port-item img { height: 220px; }
}

/* Fixed-width narrow banners, right-aligned, at EVERY screen size.
   Widths use a fluid clamp() so the strip shrinks proportionally and always
   keeps the empty space on the left (same look as the big screen) without
   ever overflowing horizontally. */
.services-grid .service-item {
	vertical-align: top;
	margin-top: 0 !important;
	padding-top: 0 !important;
	line-height: 0;
	font-size: 0;
	flex: 0 0 auto !important;
	width: clamp(72px, 11vw, 200px) !important;
	max-width: 200px !important;
	min-width: 0 !important;
	height: clamp(240px, 38vw, 700px);
	transition: width 0.35s ease;
}

/* Hover accordion at every size: expand the hovered card, shrink the rest */
.services-grid:hover .service-item:hover {
	width: clamp(150px, 22vw, 360px) !important;
	max-width: 360px !important;
	flex: 0 0 auto !important;
}

.services-grid:hover .service-item:not(:hover) {
	width: clamp(60px, 9.5vw, 170px) !important;
	max-width: 170px !important;
	flex: 0 0 auto !important;
}

/* Fluid number size so it scales down with the cards on smaller screens */
.services-grid .service-number {
	font-size: clamp(2.4rem, 6vw, 8rem);
}

@media (max-width: 1199.98px) {
	.services-grid .service-number {
		font-size: clamp(2.2rem, 5vw, 4rem);
		right: -16px;
	}

	.services-grid .service-text {
		padding: 0.75rem;
	}

	.services-grid .service-hover-info h4 {
		font-size: clamp(0.72rem, 1.1vw, 1rem);
		margin-bottom: 0.35rem;
	}

	.services-grid .service-hover-info p {
		font-size: clamp(0.62rem, 0.95vw, 0.82rem);
		line-height: 1.35;
		margin-bottom: 0.5rem;
		-webkit-line-clamp: 2;
	}

	.services-grid .service-read-more {
		font-size: 0.62rem;
		padding: 4px 10px;
	}
}

/* Enable the hover reveal (dark overlay, hide number, show info) at every screen
   size so smaller screens behave like the big screen */
.services-grid .service-item:hover .service-overlay {
	background: linear-gradient(
		to top,
		rgba(5, 25, 45, 0.92) 0%,
		rgba(5, 25, 45, 0.55) 55%,
		rgba(5, 25, 45, 0) 100%
	);
}

.services-grid .service-item:hover .service-number {
	opacity: 0;
}

.services-grid .service-item:hover .service-hover-info {
	opacity: 1;
	transform: translateY(0);
}

/* Sharper page banners on high-DPI screens */
.page-banner {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.projects-page .page-banner {
		background-size: cover;
	}
}

/* Services page: 4 per row, 2 rows */
@media (min-width: 992px) {
	.services-big-box {
		grid-template-columns: repeat(4, 1fr) !important;
	}

	.services-big-box .service-card-text {
		min-height: 16rem;
		padding: 1.5rem 1rem;
	}

	.services-big-box .service-card-text .number {
		font-size: 4.5rem;
	}

	.services-big-box .service-card-text h2 {
		font-size: 1.25rem;
	}
}

/* Grey overlay on service card image hover */
.services-big-box .service-card-big {
	overflow: hidden;
}

.services-big-box .service-card-big::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	z-index: 1;
}

.services-big-box .service-card-big:hover::after {
	opacity: 1;
}
