/*
 * Almaza home page — 015-H (homepage-audit-2026-11-19.md, phase A). Loaded on the front page only, after
 * almaza-ui.css, so the same selectors win without !important. No text changes; layout, weight and links only.
 *
 * 1. Hero: the slides are <img> now (LCP), and the entrance animation no longer starts invisible.
 * 2. "Organised moving" background: 1440px / 800px copies instead of the 2880px, 1 MB original.
 * 3. Services: card titles are H3 (were H2); "details" button + small call link.
 * 4. Winch: link to the service page under the call button.
 * 5. Areas: taller tap targets.
 * 6. Guides: "all guides" link; three cards on phones.
 * 7. Gallery on phones: two columns, first six photos.
 */

/* 1. Hero ---------------------------------------------------------------- */
.home-banner img.hero-slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* The slider used to fade in from opacity 0 after 0.4 s, which delayed the largest paint. Scale only. */
.home-banner .hero-swiper {
	animation-name: almazaSliderIn;
	animation-delay: 0s;
}

@keyframes almazaSliderIn {
	from { transform: scale(0.96); }
	to   { transform: scale(1); }
}

/* 2. About background -------------------------------------------------------- */
.home-about.almaza-about-experience {
	background-image:
		linear-gradient(247deg, rgba(32, 109, 191, 0.62), rgba(3, 66, 150, 0.72)),
		url(../imgs/home-about-1440.webp);
}

@media (max-width: 800px) {
	.home-about.almaza-about-experience {
		background-image:
			linear-gradient(247deg, rgba(32, 109, 191, 0.62), rgba(3, 66, 150, 0.72)),
			url(../imgs/home-about-800.webp);
	}
}

/* 3. Services ------------------------------------------------------------- */
.home-services.almaza-services-section .content h3.service-title {
	margin: 0 0 0.8rem;
	font-size: clamp(1.55rem, 3.2vw, 2.45rem);
	line-height: 1.35;
	letter-spacing: 0;
	color: #034296;
}

.home-services.almaza-services-section .service-image-frame img.item {
	width: 100%;
	height: auto;
}

.home-services.almaza-services-section .service-card-call {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	margin-inline-start: 0.9rem;
	color: #034296;
	font-weight: 700;
	text-decoration: none;
}

.home-services.almaza-services-section .service-card-call:hover,
.home-services.almaza-services-section .service-card-call:focus {
	color: #206dbf;
	text-decoration: underline;
}

@media (max-width: 575px) {
	.home-services.almaza-services-section .content h3.service-title {
		font-size: clamp(1.35rem, 7vw, 1.8rem);
	}

	.home-services.almaza-services-section .service-card-call {
		margin: 0.5rem 0 0;
	}
}

/* 4. Winch --------------------------------------------------------------- */
.arriveWorker.almaza-lift-showcase .arriveWorkerInfo .info a.lift-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-inline-start: 1rem;
	color: #034296;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.arriveWorker.almaza-lift-showcase .arriveWorkerInfo .info a.lift-more::after {
	content: " ←";
}

@media (max-width: 768px) {
	.arriveWorker.almaza-lift-showcase .arriveWorkerInfo .info a.lift-more {
		display: flex;
		justify-content: center;
		margin: 0.5rem 0 0;
	}
}

/* 5. Areas: tap targets of at least 40 px ------------------------------------------ */
.almaza-area-links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.45rem 0.95rem;
}

.almaza-area-title a,
.almaza-area-more {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
}

/* 6. Guides ---------------------------------------------------------------- */
.recent-articles.almaza-articles-section .articles-all {
	margin: 0.5rem 0 0;
	text-align: center;
}

.recent-articles.almaza-articles-section .articles-all a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.6rem 1.4rem;
	border: 1px solid #034296;
	border-radius: 12px;
	background: #fff;
	color: #034296;
	font-weight: 700;
	text-decoration: none;
}

.recent-articles.almaza-articles-section .articles-all a::after {
	content: " ←";
}

.recent-articles.almaza-articles-section .articles-all a:hover,
.recent-articles.almaza-articles-section .articles-all a:focus {
	background: #034296;
	color: #fff;
}

@media (max-width: 767px) {
	.recent-articles.almaza-articles-section .article-column:nth-child(n + 4) {
		display: none;
	}
}

/* 7. Gallery on phones: two columns, six photos (the rest open in the lightbox) ------------- */
@media (max-width: 767px) {
	.home-gallery.almaza-gallery-section .almaza-gallery-grid,
	.home-gallery.almaza-gallery-section .almaza-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 10.5rem;
		gap: 0.7rem;
	}

	.home-gallery.almaza-gallery-section .gallery-item--featured {
		grid-column: span 2;
		grid-row: span 2;
	}

	.home-gallery.almaza-gallery-section .gallery-item:nth-child(n + 8) {
		display: none;
	}
}

/* 8. Hero text (015-A2): the badge, H1, text and buttons faded in one after another (0.15–1.4 s), so the first
   screen stayed half empty on slow phones (Speed Index). They show at once now; the badge keeps its gentle float. */
.home-banner .hero-brand-badge {
	animation: badgeFloat 4.5s ease-in-out 0.9s infinite;
	opacity: 1;
}

.home-banner .row .text-wrapper h1.hero-main-heading,
.home-banner .row .text-wrapper p.hero-subheadline,
.home-banner .row .text-wrapper p.hero-service-areas,
.home-banner .row .hero-cta-wrap {
	animation: none;
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.home-banner .hero-swiper,
	.home-banner .hero-brand-badge {
		animation: none;
	}
}
