/*===========================
  AutoMap Website Styles
===========================*/

/*==== Base & Typography ====*/
body.custom-body {
	font-family: "Source Sans Pro", sans-serif;
	background-color: #edeef0;
	font-weight: 100;
	color: #333;
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Bebas Neue", sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 1rem;
}

html {
	scroll-behavior: smooth;
}

/*==== MARK:  Navbar ====*/

.logo-img {
	height: 52px;
	width: auto;
}

.custom-nav .container {
	max-width: 1200px;
	margin: 0 auto;
}

.custom-nav {
	background: linear-gradient(90deg, #1f158e 0%, #005aae 100%);
	box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
	position: sticky;
	top: 0;
	z-index: 999;
}

.navbar-brand {
	margin-right: auto;
}

.navbar-nav {
	margin-left: auto;
}
.navbar a:hover {
	color: #f57c00;
}
.nav-link {
	color: #ffffff;
	margin-right: 1rem;
	font-weight: 400;
	font-size: 1.2rem;
	font-family: "Source Sans Pro", sans-serif;
}

.navbar .navbar-nav .nav-link.active {
	color: #f57c00;
	font-weight: 900;
	font-size: 1.2rem;
	letter-spacing: 0.3px;
	font-family: "Source Sans Pro", sans-serif;
}

/*==== MARK: Buttons ====*/
.call-btn {
	background-color: #f17501;
	border: none;
	color: black;
	padding: 0.2rem 2rem;
	font-family: "Bebas Neue", sans-serif;
	font-size: 1.4rem;
	letter-spacing: 1px;
	border-radius: 20px;
	text-transform: uppercase;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}
.call-btn:hover {
	background-color: #d96600;
	transform: translateY(-2px);
}
.our-service-btn {
	background-color: transparent;
	border: 2px solid #f17501;
	color: black;
	padding: 0.2rem 2rem;
	font-family: "Bebas Neue", sans-serif;
	font-size: 1.4rem;
	letter-spacing: 1px;
	border-radius: 20px;
	text-transform: uppercase;
	transition: all 0.3s ease;
}
.our-service-btn:hover {
	background-color: #f17501;
	color: black;
	transform: translateY(-2px);
}

/*====MARK:  Hero Section ====*/

.hero-title {
	font-size: 3.8rem;
	line-height: 1.2;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.text-expert {
	color: #0254a0;
}

.hero-buttons {
	display: flex;
	justify-content: flex-start;
	flex-wrap: nowrap; /* Prevent stacking */
	gap: 1rem;
	align-items: center;
	flex-direction: row;
	flex-shrink: 1;
}
.call-btn,
.our-service-btn {
	white-space: nowrap; /* Keep text in one line */
	flex: 1 1 auto; /* Allow shrinking */
	max-width: 180px; /* Optional: prevent getting too wide */
	text-align: center;
}

.hero-subtext {
	font-size: 28px;
	font-weight: 400; /* Regular */
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Drop shadow */
}

/*==== Image ====*/
.main-image {
	max-width: 80%;
	height: auto;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.main-image-wrapper {
	position: relative;
	display: inline-block;
}

.vector-dots {
	position: absolute;
	bottom: -85px;
	right: -20px;
	width: 480px; /* adjust size */
	z-index: 5; /* behind main photo */
	opacity: 0.8;
}

@media (max-width: 991px) {
	.vector-dots {
		bottom: -10px;
		right: 0;
		width: 260px;
	}
}

@media (max-width: 576px) {
	.vector-dots {
		position: absolute;
		bottom: -5px;
		right: -5px;
		width: 220px;
	}
}
.main-image {
	position: relative;
	z-index: 1;
}

/*==== Icons ====*/
.icon {
	width: 24px;
	height: 24px;
}
.icon1 {
	width: 24px;
	height: 44px;
}
.icon2 {
	width: 24px;
	height: 30px;
}

/* Contact box centered and icon fix */
.contact-box {
	max-width: 400px;
	margin: 0 auto;
	background-color: #e4e9f2;
	padding: 1rem 1.5rem;
	border-radius: 1rem;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-box .icon {
	width: 20px;
	height: 40px;
}

.contact-box a {
	transition: all 0.3s ease;
	line-height: 0.5;
}

.contact-box a:hover {
	font-weight: 600;
	font-size: 1.05rem;
	transform: scale(1.05);
	color: #0254a0;
}

/*==== Brand Logos ====*/
.brands-slider {
	background: linear-gradient(
		90deg,
		rgba(184, 209, 232, 0.88) 47.12%,
		rgba(244, 244, 244, 0.88) 99.04%
	);
	overflow: hidden;
	padding: 1rem 0;
	height: 100px;
	display: flex;
	align-items: center;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	position: relative;
}

.slider-track {
	display: flex;
	gap: 40px;
	animation: slideLeft 120s linear infinite;
	width: max-content;
}

.brand-logo {
	height: 40px;
	animation: floatY 3s ease-in-out infinite alternate;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Tighten space below Hero */
#Home.container {
	padding-bottom: 0.75rem !important; /* was py-5 (~3rem) */
}
@media (min-width: 768px) {
	#Home.container {
		padding-bottom: 0.5rem !important;
	}
}

/* Reduce the image wrapper's mb-5 without editing HTML */
.main-image-wrapper.mb-5 {
	margin-bottom: 0.75rem !important; /* mobile */
}
@media (min-width: 768px) {
	.main-image-wrapper.mb-5 {
		margin-bottom: 0 !important; /* desktop: no extra gap */
	}
}

/* Optional: bring the contact box slightly closer */
.text-center.mb-4 > .contact-box {
	margin-top: -0.25rem; /* subtle pull-up; adjust to taste */
}

/* Ensure the dotted vector never forces layout */
.vector-dots {
	pointer-events: none;
	z-index: 1; /* hero art stays behind */
}
/* ==== Hero: Social (Facebook) ==== */
.hero-social {
	display: flex;
	justify-content: center; /* center on mobile */
}
@media (min-width: 768px) {
	.hero-social {
		justify-content: flex-start;
	} /* align with text on desktop */
}

.hero-social a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	outline: none;
}

.hero-social .social-icon {
	width: 28px;
	height: 28px;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-social .social-icon:hover {
	transform: scale(1.15);
	filter: brightness(1.2);
}

.hero-social .hero-social-text {
	font-size: 1rem;
	font-weight: 600;
	color: #005aae; /* brand blue */
	transition: color 0.3s ease;
}

/* Hover/Focus states for accessibility & feedback */
.hero-social a:hover .hero-social-text,
.hero-social a:focus .hero-social-text,
.hero-social a:focus-visible .hero-social-text {
	color: #f17501; /* orange accent */
}

.hero-social a:focus-visible {
	outline: 2px solid #f17501;
	outline-offset: 3px;
}

/* (Optional) Make hero title responsive so it never overflows on small phones */
.hero-title {
	font-size: clamp(2rem, 5vw + 1rem, 3.8rem);
}
/* Extra margin for Facebook link on mobile */
@media (max-width: 767.98px) {
	.hero-social {
		margin-bottom: 1.5rem; /* push it down a bit */
	}
}

/*==== Animations ====*/
@keyframes floatY {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(0px);
	}
}

@keyframes slideLeft {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/*==== MARK: AboutUs Section ====*/

.section-title {
	font-family: "Bebas Neue", sans-serif;
	font-size: 2.5rem;
	color: #0254a0;
	margin-bottom: 2rem;
	text-transform: uppercase;
}

.team-card {
	padding: 1rem;
}

.team-photo {
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	max-height: 320px;
	object-fit: cover;
	width: 100%;
}

.team-name {
	font-weight: 700;
	color: #283756;
	font-size: 1.6rem;
	margin-bottom: 0.2rem;
}

.team-title {
	color: #f17501;
	font-weight: 600;
	margin-bottom: 1rem;
}

.team-text {
	font-size: 0.95rem;
	color: #444;
}

/* Vector background behind third person */
.about-vector {
	position: absolute;
	bottom: -20px;
	right: -10px;
	width: 300%;
	opacity: 0.2;
	z-index: 0;
	pointer-events: none;
}
/*==== MARK: Services Section ====*/

.services-section {
	background-color: #f9f9f9;
}

.service-card {
	border-radius: 1rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease-in-out;
	border: 2px solid transparent;
	opacity: 0;
	transform: translateY(30px);
}

.service-card.show {
	opacity: 1;
	transform: translateY(0);
	transition: all 0.6s ease-out;
}

.service-card:hover {
	transform: translateY(-5px) scale(1.02);
	border-color: #f17501;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Ensure all service cards are equal height */
.services-section .row {
	display: flex;
	flex-wrap: wrap;
}

.services-section .col-md-4 {
	display: flex;
}

.services-section .service-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.bg-100 {
	background-color: #cfd5de;
}

.bg-50 {
	background-color: rgba(207, 213, 222, 0.5);
}

.service-icon {
	height: 48px;
	width: auto;
	max-width: 64px;
	object-fit: contain;
	margin: 0 auto;
}

.service-title {
	font-family: "Bebas Neue", sans-serif;
	font-size: 1.25rem;
}

.service-desc {
	font-size: 0.95rem;
	color: #444;
	margin-top: 0.5rem;
}

.text-orange {
	color: #f17501;
}

.text-blue {
	color: #0254a0;
}

/* === MARK: Testimonials Section === */
.reviews-marquee {
	overflow: hidden;
	position: relative;
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 40px,
		#000 calc(100% - 40px),
		transparent 100%
	);
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 40px,
		#000 calc(100% - 40px),
		transparent 100%
	);
}

.reviews-track {
	display: flex;
	gap: 16px;
	width: max-content;
	animation: reviewsScroll 45s linear infinite;
}
.reviews-marquee:hover .reviews-track {
	animation-play-state: paused;
}

@keyframes reviewsScroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.review-card {
	flex: 0 0 clamp(260px, 40vw, 420px);
	background: #fff;
	border: 2px solid #f17501;
	border-radius: 12px;
	padding: 18px 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.review-card:nth-child(2n) {
	border-color: #0254a0;
}

.review-stars {
	font-size: 14px;
	color: #f59e0b;
	margin-bottom: 8px;
}
.review-text {
	font-size: 0.95rem;
	color: #333;
	line-height: 1.6;
	margin-bottom: 10px;
	font-style: italic;
}
.review-name {
	font-weight: 700;
	color: #283756;
	font-size: 0.9rem;
}
/* 1) Center the big heading in testimonials */
.testimonials-section .section-title {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* 2) Slow down the auto-scroll (desktop slower than mobile) */
.reviews-track {
	/* default speed (mobile/tablet) */
	animation-duration: 65s !important;
}

@media (min-width: 992px) {
	/* desktop: even slower */
	.reviews-track {
		animation-duration: 90s !important;
	}
}

/* Optional: if users prefer reduced motion, stop it */
@media (prefers-reduced-motion: reduce) {
	.reviews-track {
		animation: none !important;
	}
}

/* (optional) soften edge fade so text isn't too hidden at sides */
.reviews-marquee {
	mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 24px,
		#000 calc(100% - 24px),
		transparent 100%
	);
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0,
		#000 24px,
		#000 calc(100% - 24px),
		transparent 100%
	);
}

/* ==== MARK: Video Blog ==== */
.video-intro {
	max-width: 640px;
	margin: 0 auto 1rem;
	display: block;
	font: 700 1.5rem "Bebas Neue", sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #f17501;
	text-align: center;
}
#blog h2 {
	font-weight: 700;
	color: #005aae;
	text-align: center;
	margin: 0 auto;
}

/* Thumbnail card (no black background, true 16:9) */
.video-thumb {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-width: 900px;
	margin: 0 auto;
}
.video-thumb a {
	display: block;
	line-height: 0;
} /* remove gaps */
.video-thumb img {
	width: 100%;
	aspect-ratio: 16/9; /* keep 16:9 */
	object-fit: cover;
	display: block;
	border: 0;
}

/* Play badge */
.play-badge {
	position: absolute;
	inset: auto 16px 16px auto; /* bottom-right */
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	padding: 0.35rem 0.55rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.2s ease, background 0.2s ease;
}
.video-thumb:hover .play-badge {
	transform: scale(1.05);
	background: rgba(0, 0, 0, 0.7);
}

/*==== MARK: Contact Us Section ====*/
.text-orange {
	color: #f05a00;
}

.btn-warning {
	background-color: #f17501;
	border: none;
	color: black;
	padding: 0.4rem 6rem;
	font-family: "Bebas Neue", sans-serif;
	font-size: 1.4rem;
	letter-spacing: 1px;
	border-radius: 20px;
	text-transform: uppercase;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.btn-warning:hover {
	background-color: #d87e10;
}

a.text-decoration-none:hover {
	opacity: 0.8;
	transition: opacity 0.3s ease;
}
.custom-call-btn {
	width: 379px;
	height: 63px;
	background-color: #005aae;
	border: none;
	font-family: "Bebas Neue", sans-serif;
	font-size: 32px;
	font-style: normal;
	font-weight: 400;
	line-height: 63px;
	letter-spacing: 0.5px;
	color: #fff;
	border-radius: 20px;
	text-transform: uppercase;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	display: block;
	margin: 0 auto;
	text-align: center;
	padding: 0;
}
.custom-call-btn:hover {
	background-color: #004080;
	transform: translateY(-2px);
	color: #fff;
}
/* Contact Info color override */
#contact a.text-decoration-none.text-dark {
	color: #005aae !important;
}

#contact a.text-decoration-none.text-dark:hover {
	opacity: 0.8;
	color: #004080 !important;
}

.text-custom-blue {
	color: #005aae;
}

/*==== MARK: Footer ====*/
.footer-custom {
	background: linear-gradient(
		90deg,
		rgba(31, 21, 142, 1) 0%,
		rgba(0, 90, 174, 1) 100%
	);
	color: rgba(245, 245, 245, 1);
}

.footer-link {
	color: rgba(245, 245, 245, 1);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.footer-link:hover {
	color: #f7941d; /* Оранжевый акцент при наведении */
}

.footer-divider {
	border-top: 1px solid rgba(245, 245, 245, 0.5);
	margin: 1rem auto;
	width: 90%;
}

.footer-copy {
	font-size: 0.9rem;
}
/* DashDev logo inside footer */
.footer-custom .dashdev-logo {
	height: 18px;
	margin-bottom: 6px;
	vertical-align: middle;
	transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect: brighten + slight zoom */
.footer-custom .footer-link:hover .dashdev-logo {
	transform: scale(1.1);
	filter: brightness(1.3);
}
.social-icons {
	margin-top: 1rem;
}

.social-icons .social-icon {
	width: 28px;
	height: 28px;
	margin: 0 6px;
	transition: transform 0.3s ease, filter 0.3s ease;
	filter: brightness(0) invert(1); /* makes it white for dark footer */
}

.social-icons .social-icon:hover {
	transform: scale(1.15);
	filter: brightness(1.5);
}

@media (max-width: 576px) {
	.footer-custom .list-inline {
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding: 0;
	}

	.footer-custom .list-inline-item {
		display: block;
		margin: 0;
		text-align: center;
	}
}

/*==== MARK: Responsive HERO ====*/

@media (max-width: 991px) {
	.hero-buttons {
		justify-content: center;
		padding-bottom: 20px;
	}
}

@media (max-width: 767px) {
	.hero-buttons {
		flex-direction: column;
		align-items: center;
		padding-bottom: 20px;
	}
}
/* MARK: Stack phones on mobile, row with space on desktop */
.contact-phones {
	gap: 0.25rem;
}
@media (max-width: 767.98px) {
	.contact-phones {
		flex-direction: column;
		align-items: center;
	}
}
@media (min-width: 768px) {
	.contact-phones {
		flex-direction: row;
		gap: 1.5rem;
	}
}
/* Keep section titles from hiding under the sticky nav */
section[id] {
	scroll-margin-top: 100px;
} /* match NAV_OFFSET */
