@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ==========================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================== */
:root {
	--font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-logo: 'Avenir Next', 'Avenir', 'Outfit', sans-serif;

	/* Colors from Figma */
	--bg-white: #FFFFFF;
	--bg-light: #F5F5F5;
	--text-dark: #2D2D2D;
	--text-muted: #5F5F5F;
	--border-light: #D8D8D8;
	--black: #000000;

	/* Shadow & Glass */
	--shadow-card: 0px 0px 16px 0px rgba(229, 229, 229, 1);
	--glass-bg: rgba(255, 255, 255, 0.64);
	--backdrop-blur: blur(32px);

	/* Transitions */
	--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-padding-top: 100px; /* Header height (80px) + 20px breathing room */
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	background-color: var(--bg-white);
	color: var(--text-dark);
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Container */
.container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 150px; /* Margins according to Figma (x: 150) */
}

@media (max-width: 1200px) {
	.container {
		padding: 0 60px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 24px;
	}
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	color: var(--text-dark);
	font-weight: 700;
}

/* ==========================================
   BUTTONS & INPUTS
   ========================================== */
.btn-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 32px;
	font-size: 16px;
	font-weight: 500;
	border-radius: 48px;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.btn-pill-black {
	background-color: var(--black);
	color: var(--bg-white);
	border: none;
}

.btn-pill-black:hover {
	background-color: var(--text-dark);
	transform: translateY(-2px);
}

.btn-pill-outline-black {
	background: transparent;
	color: var(--text-dark);
	border: 2px solid var(--black);
}

.btn-pill-outline-black:hover {
	background-color: var(--black);
	color: var(--bg-white);
	transform: translateY(-2px);
}

.btn-pill-outline-white {
	background: transparent;
	color: var(--bg-white);
	border: 2px solid var(--bg-white);
}

.btn-pill-outline-white:hover {
	background-color: var(--bg-white);
	color: var(--black);
	transform: translateY(-2px);
}

.btn-pill:active {
	transform: scale(0.97) translateY(0);
	transition-duration: 80ms;
}

/* Inputs */
.input-field-pill {
	width: 100%;
	height: 48px;
	border-radius: 48px;
	border: 1px solid var(--border-light);
	padding: 0 24px;
	font-size: 16px;
	color: var(--text-dark);
	background-color: var(--bg-white);
	transition: var(--transition-smooth);
	outline: none;
}

.input-field-pill::placeholder {
	color: var(--text-muted);
}

.input-field-pill:focus {
	border-color: var(--black);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
	width: 100%;
	background-color: transparent;
	border-bottom: 1px solid transparent;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	height: 80px;
	display: flex;
	align-items: center;
	transition: var(--transition-smooth);
}

.site-header.scrolled {
	background-color: var(--glass-bg);
	backdrop-filter: var(--backdrop-blur);
	-webkit-backdrop-filter: var(--backdrop-blur);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 0 64px;
}

.logo-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.logo-icon {
	width: 32px;
	height: 32px;
}

.logo-footer-img {
	width: auto;
	height: 32px;
	display: block;
}

.logo-text {
	font-family: var(--font-logo);
	font-weight: 500;
	font-size: 32px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--black);
	letter-spacing: 1%;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 32px;
	align-items: center;
}

.nav-item a {
	font-size: 16px;
	font-weight: 400;
	color: var(--text-dark);
}

.nav-item a:hover,
.nav-item.active a {
	color: var(--black);
	font-weight: 500;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 32px;
}

.site-header .btn-pill {
	height: 48px;
	padding: 0 24px;
	font-size: 16px;
}

.lang-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 400;
	color: var(--text-dark);
	position: relative;
	padding: 8px 0;
}

.lang-selector .arrow {
	width: 8px;
	height: 4px;
	transition: var(--transition-smooth);
}

.lang-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background-color: var(--bg-white);
	border: 1px solid var(--border-light);
	border-radius: 8px;
	box-shadow: var(--shadow-card);
	list-style: none;
	padding: 8px 0;
	min-width: 80px;
	z-index: 10;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px) scaleY(0.92);
	transform-origin: top center;
	transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.18s;
}

.lang-dropdown li {
	padding: 8px 16px;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.lang-dropdown li:hover {
	background-color: var(--bg-light);
}

.lang-selector:hover .lang-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scaleY(1);
	transition-delay: 0s;
}

.lang-selector:hover .arrow {
	transform: rotate(180deg);
}

/* ==========================================
   BURGER BUTTON
   ========================================== */

/* Hidden on desktop, shown on mobile via media query below */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	transition: var(--transition-smooth);
	flex-shrink: 0;
}

.menu-toggle:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.burger-line {
	display: block;
	width: 22px;
	height: 2px;
	background-color: var(--black);
	border-radius: 2px;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.2s ease,
	            width 0.3s ease;
	transform-origin: center;
}

/* Burger → X animation when body has .menu-open */
.menu-open .burger-line--top {
	transform: translateY(7px) rotate(45deg);
}

.menu-open .burger-line--middle {
	opacity: 0;
	width: 0;
}

.menu-open .burger-line--bottom {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   MOBILE MENU DRAWER
   ========================================== */

.mobile-menu-drawer {
	display: none; /* shown via media query */
	position: fixed;
	top: 80px; /* exact header height */
	left: 0;
	right: 0;
	z-index: 999;
	background-color: var(--glass-bg);
	backdrop-filter: var(--backdrop-blur);
	-webkit-backdrop-filter: var(--backdrop-blur);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

	/* Slide-in from top */
	transform: translateY(-8px);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.3s ease;
}

/* Visible state — toggled when body has .menu-open */
.menu-open .mobile-menu-drawer {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.mobile-nav {
	padding: 24px;
}

.mobile-nav-menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mobile-nav-item,
.mobile-nav-menu > li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	text-align: center;
}

.mobile-nav-item:first-child,
.mobile-nav-menu > li:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav-item a,
.mobile-nav-menu > li > a {
	display: block;
	padding: 28px 24px;
	font-size: 18px;
	font-weight: 400;
	color: var(--text-dark);
	text-align: center;
	transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item a:hover,
.mobile-nav-menu > li > a:hover {
	color: var(--black);
}

.mobile-header-actions {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px 24px 28px;
	justify-content: center;
}

.mobile-header-actions .btn-pill {
	padding: 8px 24px;
	font-size: 14px;
}

/* Mobile lang selector — toggle on click (not hover) */
.mobile-lang-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 400;
	color: var(--text-dark);
	position: relative;
	padding: 8px 0;
	user-select: none;
}

.mobile-lang-selector .arrow {
	width: 8px;
	height: 4px;
	transition: var(--transition-smooth);
}

.mobile-lang-selector.open .arrow {
	transform: rotate(180deg);
}

.mobile-lang-selector .lang-dropdown {
	/* Open upward so it doesn't go off-screen on small viewports */
	top: auto;
	bottom: calc(100% + 4px);
	right: auto;
	left: 0;
	min-width: 80px;
	transform-origin: bottom center;
}

.mobile-lang-selector.open .lang-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scaleY(1);
	transition-delay: 0s;
}

/* ==========================================
   RESPONSIVE: hide desktop nav, show burger
   ========================================== */

@media (max-width: 992px) {
	/* Hide desktop navigation and header-right */
	.main-navigation,
	.header-right {
		display: none;
	}

	/* Show burger button */
	.menu-toggle {
		display: flex;
	}

	/* Show mobile drawer as block (visibility controlled by transform/opacity) */
	.mobile-menu-drawer {
		display: block;
	}

	/* Adjust header container padding on mobile */
	.header-container {
		padding: 0 24px;
	}

	/* Prevent body scroll when menu is open */
	.menu-open {
		overflow: hidden;
	}
}

@media (min-width: 993px) {
	/* Ensure drawer is never visible on desktop */
	.mobile-menu-drawer {
		display: none !important;
	}

	.menu-toggle {
		display: none !important;
	}
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
	position: relative;
	background-color: var(--bg-white);
	padding: 0;
	margin-top: 80px;
	height: 652px;
	overflow: hidden;
}

.hero-main-container {
	position: relative;
	max-width: 1440px;
	margin: 0 auto;
	height: 652px;
}

/*
 * The hero is laid out at the Figma-native 1440px width with absolute pixel
 * positions. On tablet and desktop (≥769px) we proportionally scale the whole
 * block to the viewport width (--hero-scale = clientWidth / 1440, set in
 * main.js) so it always keeps the design's proportions. Mobile (<769px) keeps
 * its own reflowed layout below.
 */
@media (min-width: 769px) {
	.hero-section {
		height: calc(652px * var(--hero-scale, 1));
	}

	.hero-main-container {
		width: 1440px;
		max-width: none;
		margin: 0;
		transform: scale(var(--hero-scale, 1));
		transform-origin: top left;
	}
}

.hero-bg-frame {
	position: absolute;
	left: 32px;
	top: 49px;
	width: 865px;
	height: 691px;
	z-index: 1;
	pointer-events: none;
}

.hero-mockup-img {
	position: absolute;
	left: 214px;
	top: 135px;
	width: 410px;
	height: 517px;
	z-index: 2;
	object-fit: contain;
	pointer-events: none;
}

.hero-text-col {
	position: absolute;
	left: 812px;
	top: 193px;
	width: 418px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	z-index: 2;
}

.hero-heading {
	font-size: 48px;
	font-weight: 700;
	line-height: 48px;
	letter-spacing: 0.01em;
	color: var(--text-dark);
	margin-bottom: 8px;
	width: 100%;
}

.hero-subheading {
	font-size: 32px;
	font-weight: 300;
	line-height: 48px;
	color: var(--text-dark);
	margin-bottom: 32px;
	letter-spacing: 0.01em;
	width: 100%;
}

.hero-banner-overlay {
	position: absolute;
	left: 0;
	top: 476px;
	width: 100%;
	min-height: 176px;
	background-color: var(--glass-bg);
	backdrop-filter: var(--backdrop-blur);
	-webkit-backdrop-filter: var(--backdrop-blur);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	padding: 24px 0;
	/* Above the phone mockup: in Figma the glass banner overlays the phone,
	   blurring its bottom edge behind the translucent strip. */
	z-index: 3;
}

.hero-banner-text {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 150px;
	width: 100%;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: var(--text-dark);
	text-align: left;
	letter-spacing: 0.01em;
}

.hero-subfooter {
	width: 100%;
	height: 88px;
	background-color: var(--bg-light);
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
}

.hero-subfooter-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.hero-subfooter-copy {
	font-size: 16px;
	line-height: 24px;
	color: var(--text-muted);
	letter-spacing: 0.01em;
}

.hero-subfooter-right {
	display: flex;
	align-items: center;
	gap: 32px;
}

.hero-subfooter-link {
	font-size: 16px;
	line-height: 24px;
	color: var(--text-dark);
	text-decoration: underline;
}

.hero-subfooter-link:hover {
	color: var(--black);
}

.hero-subfooter-socials {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hero-subfooter-socials img {
	width: 24px;
	height: 24px;
	transition: var(--transition-smooth);
}

.hero-subfooter-socials a:hover img {
	transform: translateY(-2px);
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.section-how {
	padding: 64px 0 100px;
}

.section-title-centered {
	font-size: 32px;
	font-weight: 700;
	line-height: 48px;
	letter-spacing: 1%;
	color: var(--text-dark);
	text-align: center;
	margin-bottom: 64px;
}

.section-title {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--text-dark);
	text-align: left;
	margin-bottom: 0;
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 64px;
}

.step-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.step-header {
	display: flex;
	align-items: center;
	position: relative;
	margin-bottom: 24px;
}

.step-badge {
	width: 96px;
	height: 96px;
	background-color: var(--black);
	border-radius: 50%;
	color: var(--bg-white);
	font-size: 16px;
	font-weight: 700;
	position: relative;
}

.step-badge-inner {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 32px;
	height: 32px;
	border: 2px solid var(--bg-white);
	border-radius: 50%;
	background-color: var(--black);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.step-icon {
	position: absolute;
	left: 24px;
	top: 24px;
	width: 48px;
	height: 48px;
	pointer-events: none;
	filter: brightness(0) invert(1);
	z-index: 1;
}

.step-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-dark);
	margin-top: 0;
	margin-bottom: 12px;
}

.step-desc {
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	color: var(--text-muted);
	letter-spacing: 1%;
}

/* ==========================================
   MIDDLE IMAGE BANNER
   ========================================== */
.middle-banner {
	width: 100%;
	height: 532px;
	position: relative;
	border-radius: 32px;
	overflow: hidden;
	margin-bottom: 100px;
}

.middle-banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.middle-banner-overlay {
	position: absolute;
	left: 32px;
	bottom: 32px;
}

.middle-banner-text {
	font-size: 20px;
	font-weight: 300;
	color: var(--text-dark);
	line-height: 1.4;
	max-width: calc(100% - 64px);
	overflow-wrap: break-word;
}

/* ==========================================
   SECURITY LEVEL
   ========================================== */
.section-security {
	padding: 0 0 100px 0;
}

.security-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px 80px;
}

.security-item {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.security-icon-container {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.security-item-content {
	display: flex;
	flex-direction: column;
}

.security-item-title {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--text-dark);
	margin-bottom: 8px;
}

.security-item-desc {
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	color: var(--text-dark);
}

/* ==========================================
   ADVANTAGES
   ========================================== */
.section-advantages {
	padding: 100px 0;
	background-color: var(--bg-light);
	position: relative;
}

.carousel-outer {
	position: relative;
	margin-top: 48px;
	width: 100vw;
	left: 50%;
	transform: translateX(-50%);
	overflow: hidden;
}

.carousel-track {
	display: flex;
	gap: 32px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	padding: 32px 24px;
	scrollbar-width: none; /* Hide scrollbars in Firefox */
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.carousel-track:active {
	cursor: grabbing;
}

.carousel-track::-webkit-scrollbar {
	display: none; /* Hide scrollbars in Chrome/Safari */
}

.advantage-card {
	flex: 0 0 396px;
	width: 396px;
	min-height: 176px;
	background-color: var(--bg-white);
	border-radius: 16px;
	padding: 32px;
	box-shadow: var(--shadow-card);
	scroll-snap-align: center;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	transition: var(--transition-smooth);
}

@media (max-width: 480px) {
	.advantage-card {
		flex: 0 0 calc(100vw - 48px);
		width: calc(100vw - 48px);
	}
}

.advantage-card:hover {
	transform: translateY(-4px);
}

.advantage-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.advantage-card-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--text-dark);
	max-width: 280px;
}

.advantage-card-icon {
	width: 24px;
	height: 24px;
}

.advantage-card-desc {
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	color: var(--text-dark);
}

.carousel-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 48px;
}

.carousel-btn {
	background-color: var(--bg-white);
	border: none;
	border-radius: 20px;
	cursor: pointer;
	width: 56px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.03);
	transition: all 0.3s ease;
	padding: 0;
}

.carousel-btn:hover {
	transform: translateY(-2px);
	background-color: #FAFAFA;
	box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.06);
}

.carousel-btn:active {
	transform: translateY(0);
}

.btn-dots-inner {
	display: flex;
	gap: 3px;
	align-items: center;
}

.btn-dots-inner span {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: #C4C4C4;
	transition: background-color 0.3s ease;
}

.carousel-btn:hover .btn-dots-inner span {
	background-color: var(--text-dark);
}

.carousel-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: var(--bg-white);
	border-radius: 20px;
	padding: 0 16px;
	min-width: 80px;
	width: auto;
	height: 36px;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.03);
}

.carousel-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #C4C4C4;
	transition: all 0.3s ease;
	cursor: pointer;
	flex-shrink: 0;
}

.carousel-dot-active {
	width: 14px;
	height: 6px;
	border-radius: 3px;
	background-color: var(--text-dark);
}

@media (max-width: 992px) {
	.carousel-btn {
		display: none;
	}
}

/* ==========================================
   CLIENTS
   ========================================== */
.section-clients {
	padding: 100px 0;
}

.clients-logos {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 32px;
	margin-top: 48px;
}

.client-logo-item {
	width: 160px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition-smooth);
}

.client-logo-item img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* ==========================================
   STAY IN TOUCH (NEWSLETTER)
   ========================================== */
.clients-divider {
	width: 1140px;
	max-width: calc(100% - 300px);
	height: 1px;
	background: #F5F5F5;
	margin: 0 auto;
}

.section-touch {
	padding: 100px 0;
	position: relative;
}

.touch-form-container {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.touch-form-container .section-title {
	text-align: center;
}

.touch-form {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 48px;
	margin-bottom: 24px;
}

/* Send / contact button (right edge of the newsletter section) */
.touch-send-btn {
	position: absolute;
	right: 64px;
	top: 50%;
	transform: translateY(-50%);
	width: 88px;
	height: 48px;
	background-color: var(--black);
	border-radius: 48px;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.touch-send-btn:hover {
	transform: translateY(calc(-50% - 4px));
	background-color: var(--text-dark);
}

.touch-send-btn img {
	width: 24px;
	height: 24px;
}

.touch-form .input-field-pill {
	flex-grow: 1;
}

.touch-form .btn-pill {
	flex-shrink: 0;
}

.touch-note {
	font-size: 16px;
	color: var(--text-muted);
	line-height: 24px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
	background-color: var(--black);
	color: var(--bg-white);
	padding: 80px 0 40px 0;
	position: relative;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 60px;
}

.footer-logo-text {
	color: var(--bg-white);
}

.footer-menu {
	display: flex;
	list-style: none;
	gap: 32px;
}

.footer-menu-item a {
	color: var(--bg-white);
	font-size: 16px;
	opacity: 0.8;
}

.footer-menu-item a:hover {
	opacity: 1;
}

.footer-middle {
	display: grid;
	grid-template-columns: repeat(3, 1fr) auto;
	gap: 32px;
	margin-bottom: 60px;
	align-items: center;
}

.footer-write-to-us {
	width: 143px;
	height: 48px;
	white-space: nowrap;
}

.footer-contact-item {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 16px;
	color: var(--bg-white);
}

.footer-contact-icon {
	width: 24px;
	height: 24px;
}

.footer-divider {
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.2);
	margin-bottom: 32px;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: var(--border-light);
}

.footer-bottom-links {
	display: flex;
	gap: 24px;
}

.footer-bottom-links a {
	text-decoration: underline;
}

.footer-bottom-links a:hover {
	color: var(--bg-white);
}

.footer-socials {
	display: flex;
	gap: 16px;
}

.footer-social-icon {
	width: 24px;
	height: 24px;
	opacity: 0.8;
	/* Source icons are black-stroked; invert to render white on the dark footer. */
	filter: brightness(0) invert(1);
	transition: var(--transition-smooth);
}

.footer-social-icon:hover {
	opacity: 1;
	transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVENESS
   ========================================== */

/* Mobile hero: vertical reflow for viewports narrower than 769px */
@media (max-width: 768px) {
	.hero-section {
		height: auto;
		min-height: auto;
		overflow: visible;
		padding-top: 40px;
	}

	.hero-main-container {
		height: auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0 24px;
	}

	.hero-text-col {
		position: static;
		width: 100%;
		max-width: 480px;
		margin: 0 auto 32px;
		text-align: center;
	}

	.hero-heading {
		font-size: 32px;
		line-height: 1.2;
	}

	.hero-subheading {
		font-size: 22px;
		line-height: 1.3;
		margin-bottom: 24px;
	}

	/* Decorative frame hidden on mobile: left:50% causes layout overflow even with
	   transform:translateX(-50%) visual centering, producing a horizontal scrollbar. */
	.hero-bg-frame {
		display: none;
	}

	.hero-mockup-img {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		width: 100%;
		max-width: 260px;
		height: auto;
		margin: 0 auto;
		display: block;
		z-index: 2;
	}

	.hero-banner-overlay {
		position: relative;
		left: auto;
		top: auto;
		width: 100vw;
		margin-left: calc(-50vw + 50%);
		min-height: auto;
		padding: 24px 16px;
		margin-top: -20px;
		z-index: 3;
	}

	.hero-banner-text {
		text-align: center;
		padding: 0 16px;
	}

	/* Divider width scales with the container on mobile */
	.clients-divider {
		max-width: calc(100% - 48px);
	}
}

@media (max-width: 992px) {
	.steps-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.security-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.footer-middle {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* Center the Write to us button when it becomes a single-column item */
	.footer-write-to-us {
		justify-self: center;
		width: 100%;
		max-width: 280px;
	}

	.touch-send-btn {
		position: static;
		transform: none;
		margin: 24px auto 0;
	}

	.touch-send-btn:hover {
		transform: translateY(-4px);
	}

	.footer-top {
		flex-direction: column;
		gap: 30px;
		align-items: flex-start;
	}

	.footer-menu {
		flex-direction: column;
		gap: 16px;
	}

	/* Hero banner text padding is now handled in the responsive overlay above */

	/* Middle banner: reduce height and border-radius on tablets/mobile */
	.middle-banner {
		height: auto;
		min-height: 280px;
		border-radius: 16px;
		margin-bottom: 60px;
	}

	/* Section paddings tighter on mobile */
	.section-how,
	.section-security,
	.section-advantages,
	.section-clients,
	.section-touch {
		padding-top: 60px;
		padding-bottom: 60px;
	}
}

@media (max-width: 768px) {
	.hero-heading {
		font-size: 36px;
	}

	.hero-subheading {
		font-size: 24px;
	}

	/* Middle banner even smaller on phones */
	.middle-banner {
		height: auto;
		min-height: 200px;
		border-radius: 12px;
		margin-bottom: 40px;
	}

	.middle-banner-text {
		font-size: 16px;
	}

	/* Tighten section spacing on phones */
	.section-how,
	.section-security,
	.section-advantages,
	.section-clients,
	.section-touch {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.section-title-centered {
		font-size: 26px;
		margin-bottom: 40px;
	}

	.touch-form {
		flex-direction: column;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.hero-subfooter {
		height: auto;
		padding: 16px 0;
	}

	.hero-subfooter-inner {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.hero-subfooter-right {
		flex-wrap: wrap;
		justify-content: center;
		gap: 20px;
	}
}

/* ==========================================
   CONTACT MODAL
   ========================================== */
.modal-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.40);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.modal-overlay.is-visible {
	display: flex;
}

.modal-overlay.is-open {
	opacity: 1;
}

.modal-content {
	background-color: var(--bg-white);
	border-radius: 16px;
	width: 738px;
	max-width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.16);
	transform: translateY(20px);
	transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-content {
	transform: translateY(0);
}

/* Header row: title + close btn */
.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 40px 48px 0;
}

.modal-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-dark);
	line-height: 1.2;
}

.modal-close {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background-color: var(--black);
	border: none;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition-smooth);
}

.modal-close:hover {
	background-color: var(--text-dark);
}

/* Description paragraph */
.modal-desc {
	padding: 24px 48px 0;
	font-size: 16px;
	color: var(--text-dark);
	line-height: 1.6;
}

/* Form — narrower than card (91px horizontal padding) */
.modal-form {
	padding: 32px 91px 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.modal-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.modal-form-group label {
	font-size: 16px;
	color: #9E9E9E;
	font-weight: 400;
}

/* Override pill radius inside modal */
.modal-content .input-field-pill {
	border-radius: 8px;
	height: 56px;
	padding: 0 16px;
}

.modal-textarea {
	width: 100%;
	height: 128px;
	border-radius: 8px;
	border: 1px solid var(--border-light);
	padding: 14px 16px;
	font-size: 16px;
	font-family: var(--font-primary);
	color: var(--text-dark);
	background-color: var(--bg-white);
	resize: none;
	outline: none;
	transition: border-color 0.2s ease;
}

.modal-textarea:focus {
	border-color: var(--black);
}

.modal-textarea.input-error,
.modal-content .input-field-pill.input-error {
	border-color: #e53e3e;
}

.field-error {
	font-size: 13px;
	color: #e53e3e;
	display: block;
	height: 0;
	overflow: hidden;
	transition: height 0.15s ease;
}

.field-error:not(:empty) {
	height: auto;
	overflow: visible;
}

/* Send button row */
.modal-form-footer {
	display: flex;
	justify-content: center;
	padding: 28px 91px 44px;
}

.modal-submit {
	min-width: 200px;
	height: 56px;
	font-size: 18px;
	font-weight: 500;
	border-radius: 48px;
}

.modal-submit.loading {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Success state */
.modal-success-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 240px;
	padding: 48px;
}

.modal-success-state[hidden] {
	display: none;
}

.modal-success-icon {
	width: 48px;
	height: 48px;
	display: block;
}

.modal-success-text {
	font-size: 16px;
	color: var(--text-dark);
	font-weight: 400;
}

.form-response {
	font-size: 14px;
	border-radius: 8px;
}

.form-response.success {
	color: #276749;
	background-color: #f0fff4;
	padding: 12px 16px;
}

.form-response.error {
	color: #c53030;
	background-color: #fff5f5;
	padding: 12px 16px;
}

@media (max-width: 780px) {
	.modal-content {
		border-radius: 12px;
	}

	.modal-header {
		padding: 32px 28px 0;
	}

	.modal-desc {
		padding: 20px 28px 0;
	}

	.modal-form {
		padding: 32px 28px 0;
	}

	.modal-form-footer {
		padding: 24px 28px 40px;
	}
}

/* ==========================================
   STANDARD & DOCUMENT PAGE TEMPLATES
   ========================================== */
.standard-page-main,
.document-page-main {
	padding: 140px 0 100px;
	background-color: var(--bg-white);
}

.standard-page-main .small-container,
.document-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 24px;
}

.standard-page-main .entry-header,
.document-header {
	margin-bottom: 60px;
	text-align: center;
	border-bottom: 1px solid var(--border-light);
	padding-bottom: 40px;
}

.standard-page-main .entry-title,
.document-title {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-dark);
	margin-bottom: 16px;
}

.standard-page-main .entry-content,
.document-body {
	color: var(--text-dark);
	font-size: 16px;
	line-height: 1.8;
}

.standard-page-main .entry-content p,
.document-section-content p {
	margin-bottom: 20px;
}

.standard-page-main .entry-content ul,
.standard-page-main .entry-content ol,
.document-section-content ul,
.document-section-content ol {
	margin-bottom: 20px;
	padding-left: 24px;
}

.standard-page-main .entry-content li,
.document-section-content li {
	margin-bottom: 8px;
}

.document-subtitle {
	font-size: 20px;
	font-weight: 300;
	color: var(--text-muted);
	line-height: 1.5;
	margin-bottom: 16px;
}

.document-meta {
	font-size: 14px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.document-section {
	margin-bottom: 48px;
}

.document-section-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 16px;
	color: var(--text-dark);
}

@media (max-width: 768px) {
	.standard-page-main,
	.document-page-main {
		padding: 100px 0 60px;
	}
	
	.standard-page-main .entry-title,
	.document-title {
		font-size: 32px;
	}
	
	.document-subtitle {
		font-size: 18px;
	}
	
	.document-section-title {
		font-size: 20px;
	}
}

/* ==========================================
   BLOG PAGE & LAYOUT
   ========================================== */
.blog-page-main {
	padding: 96px 0 100px;
}

.blog-page-main .page-title {
	font-size: 24px;
	font-weight: 700;
	color: #232935;
	margin-top: 0;
	margin-bottom: 40px;
	text-align: left;
	padding-left: 20px;
	line-height: 1.2;
}

.blog-page-main .page-title a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-smooth);
}

.blog-page-main .page-title a:hover {
	color: #FF8802;
}

.blog-layout-grid {
	display: grid;
	grid-template-columns: minmax(0, 835px) 265px;
	gap: 70px;
	align-items: start;
}

.blog-posts-col {
	max-width: 835px;
}

.blog-sidebar-col {
	width: 265px;
	position: sticky;
	top: 120px;
}

/* ==========================================
   BLOG POST CARD
   ========================================== */
.blog-post-card {
	position: relative;
	margin-bottom: 50px;
	background: var(--bg-white);
}

.blog-post-card .post-thumbnail {
	width: 100%;
	height: 380px;
	border-radius: 15px;
	overflow: hidden;
	background-color: rgba(177, 186, 209, 0.15); /* Grey placeholder background */
	margin-bottom: 24px;
}

.blog-post-card .post-thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.blog-post-card .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-card:hover .post-thumbnail img {
	transform: scale(1.03);
}

.blog-card-content {
	padding: 0 20px;
}

.blog-post-card .post-title {
	font-family: var(--font-primary);
	font-size: 24px;
	font-weight: 400;
	line-height: 32px;
	color: #232935;
	margin: 0 0 16px;
	letter-spacing: 0.01em;
}

.blog-post-card .post-title a {
	color: inherit;
	transition: var(--transition-smooth);
}

.blog-post-card .post-title a:hover {
	color: #FF8802;
}

.blog-post-card .post-meta {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 20px;
	font-size: 16px;
	color: rgba(35, 41, 53, 0.5);
}

.blog-post-card .post-meta .post-date {
	font-weight: 400;
}

.blog-post-card .post-meta .post-category {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #FF8802;
	font-weight: 400;
}

.blog-post-card .post-meta .post-category a {
	color: #FF8802;
	text-decoration: none;
	transition: var(--transition-smooth);
}

.blog-post-card .post-meta .post-category a:hover {
	opacity: 0.8;
}

.blog-post-card .post-meta .post-category svg {
	width: 19px;
	height: 19px;
	fill: none;
	display: block;
}

.blog-post-card .post-meta .post-category svg path {
	fill: #B1BAD1;
}

.blog-post-card .post-excerpt {
	font-size: 16px;
	line-height: 24px;
	color: #232935;
	margin-bottom: 24px;
	font-weight: 400;
}

.blog-post-card .post-footer {
	display: flex;
	justify-content: flex-start;
}

.blog-post-card .read-more-btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #B1BAD1;
	transition: var(--transition-smooth);
	cursor: pointer;
	background: transparent;
	border: none;
	padding: 0;
}

.blog-post-card .read-more-btn svg {
	width: 44px;
	height: 44px;
	display: block;
}

.blog-post-card .read-more-btn svg path {
	stroke: #B1BAD1;
	transition: var(--transition-smooth);
}

.blog-post-card .read-more-btn:hover {
	transform: translateX(4px);
}

.blog-post-card .read-more-btn:hover svg path {
	stroke: #232935;
}

.blog-card-separator {
	height: 1px;
	background-color: rgba(177, 186, 209, 0.3);
	margin: 40px 20px 50px;
}

/* ==========================================
   CUSTOM PAGINATION
   ========================================== */
.custom-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 60px 0 80px;
	padding: 0 20px;
}

.custom-pagination .page-numbers {
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.custom-pagination a.page-number,
.custom-pagination span.page-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(177, 186, 209, 0.3);
	font-size: 16px;
	color: #232935;
	font-weight: 400;
	transition: var(--transition-smooth);
}

.custom-pagination span.current {
	background-color: #FF8802;
	border-color: #FF8802;
	color: #FFFFFF;
	font-weight: 700;
}

.custom-pagination a.page-number:hover {
	border-color: #232935;
}

.custom-pagination .prev,
.custom-pagination .next {
	width: 130px;
	height: 40px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	border: 1px solid rgba(177, 186, 209, 0.3);
	color: #232935;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition-smooth);
	letter-spacing: 0.05em;
}

.custom-pagination .prev:hover,
.custom-pagination .next:hover {
	background-color: #232935;
	border-color: #232935;
	color: #FFFFFF;
}

.custom-pagination .prev.disabled,
.custom-pagination .next.disabled {
	color: rgba(35, 41, 53, 0.3);
	border-color: rgba(177, 186, 209, 0.15);
	pointer-events: none;
}

.custom-pagination span.dots {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 16px;
	color: #232935;
	border: 1px solid rgba(177, 186, 209, 0.3);
	border-radius: 50%;
}

/* ==========================================
   SIDEBAR & WIDGETS
   ========================================== */
.blog-sidebar-widget {
	margin-bottom: 48px;
}

.blog-sidebar-widget .widget-title {
	font-size: 24px;
	font-weight: 700;
	color: #232935;
	margin: 0 0 20px;
	line-height: 1.2;
}

/* Tags Widget Card */
.widget-tags-card {
	background-color: #FFFFFF;
	border: 1px solid rgba(177, 186, 209, 0.3);
	border-radius: 15px;
	padding: 24px;
	box-shadow: 0px 15px 30px 0px rgba(177, 186, 209, 0.05);
}

.tags-cloud {
	display: block;
	font-size: 16px;
	color: #232935;
	line-height: 1.8;
}

.tags-cloud a {
	color: #232935;
	transition: var(--transition-smooth);
	display: inline;
}

.tags-cloud a:hover {
	color: #FF8802;
}

/* Recent Posts Widget */
.recent-posts-list {
	display: flex;
	flex-direction: column;
}

.recent-post-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(177, 186, 209, 0.3);
}

.recent-post-item:first-child {
	padding-top: 0;
}

.recent-post-item:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.recent-post-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.recent-post-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.recent-post-icon svg path {
	stroke: #B1BAD1;
	transition: var(--transition-smooth);
}

.recent-post-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.recent-post-title {
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #232935;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: var(--transition-smooth);
}

.recent-post-item:hover .recent-post-title {
	color: #FF8802;
}

.recent-post-item:hover .recent-post-icon svg path {
	stroke: #FF8802;
}

.recent-post-date {
	font-size: 14px;
	color: rgba(35, 41, 53, 0.5);
}

/* ==========================================
   SINGLE POST PAGE
   ========================================== */
.single-post-main {
	padding: 96px 0 100px;
}

.single-post-main .page-title-eyebrow {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 14px;
	color: rgba(35, 41, 53, 0.5);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding-left: 20px;
}

.single-post-article {
	background-color: var(--bg-white);
	margin-bottom: 60px;
}

.single-post-article .post-featured-image {
	width: 100%;
	height: 380px;
	border-radius: 15px;
	overflow: hidden;
	background-color: rgba(177, 186, 209, 0.15);
	margin-bottom: 24px;
}

.single-post-article .post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-post-article .entry-title {
	font-family: var(--font-primary);
	font-size: 32px;
	font-weight: 400;
	line-height: 40px;
	color: #232935;
	margin: 0 0 16px;
	letter-spacing: 0.01em;
}

.single-post-article .post-meta {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 32px;
	font-size: 16px;
	color: rgba(35, 41, 53, 0.5);
}

.single-post-article .post-meta .post-date {
	font-weight: 400;
}

.single-post-article .post-meta .post-category {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #FF8802;
	font-weight: 400;
}

.single-post-article .post-meta .post-category a {
	color: #FF8802;
	text-decoration: none;
	transition: var(--transition-smooth);
}

.single-post-article .post-meta .post-category a:hover {
	opacity: 0.8;
}

.single-post-article .post-meta .post-category svg {
	width: 19px;
	height: 19px;
	fill: none;
	display: block;
}

.single-post-article .post-meta .post-category svg path {
	fill: #B1BAD1;
}

.single-post-article .entry-content {
	font-size: 16px;
	line-height: 26px;
	color: #232935;
	font-weight: 400;
}

.single-post-article .entry-content p {
	margin-bottom: 24px;
}

.single-post-article .entry-content h2,
.single-post-article .entry-content h3,
.single-post-article .entry-content h4 {
	color: #232935;
	font-weight: 700;
	margin: 40px 0 16px;
	line-height: 1.3;
}

.single-post-article .entry-content h2 { font-size: 24px; }
.single-post-article .entry-content h3 { font-size: 20px; }

.single-post-article .entry-content ul,
.single-post-article .entry-content ol {
	margin-bottom: 24px;
	padding-left: 24px;
}

.single-post-article .entry-content li {
	margin-bottom: 8px;
	line-height: 26px;
}

.single-post-article .entry-content blockquote {
	border-left: 3px solid #FF8802;
	padding-left: 20px;
	margin: 32px 0;
	font-style: italic;
	color: rgba(35, 41, 53, 0.7);
}

.single-post-article .entry-content blockquote p {
	margin-bottom: 0;
}

/* Post Navigation Cards */
.post-navigation-links {
	display: flex;
	gap: 20px;
	margin: 60px 0 40px;
	padding: 0 20px;
}

.post-navigation-links .nav-link {
	flex: 1;
	display: flex;
	align-items: center;
	padding: 16px 24px;
	border: 1px solid rgba(177, 186, 209, 0.3);
	border-radius: 30px;
	color: #232935;
	font-size: 14px;
	font-weight: 700;
	transition: var(--transition-smooth);
	text-decoration: none;
}

.post-navigation-links .prev-post {
	justify-content: flex-start;
	gap: 12px;
}

.post-navigation-links .next-post {
	justify-content: flex-end;
	gap: 12px;
	text-align: right;
}

.post-navigation-links .nav-link:hover:not(.disabled) {
	border-color: #232935;
	background-color: #232935;
	color: #FFFFFF;
}

.post-navigation-links .nav-link.disabled {
	color: rgba(35, 41, 53, 0.3);
	border-color: rgba(177, 186, 209, 0.15);
	pointer-events: none;
}

.post-navigation-links .nav-title {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-navigation-links .nav-arrow {
	font-size: 16px;
	font-weight: 700;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
	.blog-page-main {
		padding: 100px 0 60px;
	}

	.blog-page-main .page-title {
		padding-left: 0;
		text-align: center;
		margin-bottom: 30px;
	}

	.single-post-main .page-title-eyebrow {
		padding-left: 0;
		text-align: center;
	}

	.blog-layout-grid {
		grid-template-columns: 1fr;
		gap: 60px;
	}

	.blog-posts-col {
		max-width: 100%;
	}

	.blog-sidebar-col {
		width: 100%;
		position: static;
	}

	.blog-post-card .post-thumbnail,
	.single-post-article .post-featured-image {
		height: 280px;
	}

	.blog-card-content {
		padding: 0;
	}

	.blog-card-separator {
		margin: 30px 0 40px;
	}

	.custom-pagination,
	.post-navigation-links {
		padding: 0;
	}

	.custom-pagination {
		justify-content: center;
		flex-wrap: wrap;
	}
}

@media (max-width: 576px) {
	.blog-post-card .post-thumbnail,
	.single-post-article .post-featured-image {
		height: 200px;
	}

	.blog-post-card .post-title,
	.single-post-article .entry-title {
		font-size: 20px;
		line-height: 28px;
	}

	.blog-post-card .post-meta,
	.single-post-article .post-meta {
		gap: 16px;
		font-size: 14px;
	}

	.custom-pagination {
		gap: 8px;
	}

	.custom-pagination a.page-number,
	.custom-pagination span.page-number,
	.custom-pagination span.dots {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.custom-pagination .prev,
	.custom-pagination .next {
		width: calc(50% - 4px);
		height: 36px;
	}

	.post-navigation-links {
		flex-direction: column;
		gap: 12px;
	}

	.post-navigation-links .nav-link {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.post-navigation-links .next-post {
		flex-direction: row-reverse;
	}
}

@media (max-width: 480px) {
	/* Footer bottom row: stack on tiny screens */
	.footer-bottom {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.footer-bottom-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	/* Write to us full width on tiny screens */
	.footer-write-to-us {
		max-width: 100%;
	}

	/* Clients: 2-column grid on phones */
	.clients-logos {
		justify-content: center;
		gap: 24px;
	}

	.client-logo-item {
		width: 130px;
	}

	/* Mobile drawer actions: wrap if very small */
	.mobile-header-actions {
		flex-wrap: wrap;
		gap: 16px;
	}

	/* Tighten section paddings on very small screens */
	.section-how,
	.section-security,
	.section-advantages,
	.section-clients,
	.section-touch {
		padding-top: 40px;
		padding-bottom: 40px;
	}
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
