/**
 * BoMa theme adjustments on top of Consulo template #1.
 */

/* The mobile off-canvas menu (.header-nav) is position:fixed and parked off the
   right edge with translateX(100%). That phantom box adds horizontal scroll and a
   blank gutter on the right of the page. Clip page-level horizontal overflow on
   touch/tablet widths where the drawer exists. */
@media (max-width: 991px) {
	html,
	body {
		overflow-x: hidden;
	}
}

hero-slider {
	width: 100%;
	min-width: 100%;
}

hero-slider > .swiper {
	width: 100%;
}

/* Seamless stacked sections (no white gaps from mt-100). */
main > .multicolumn,
main > .recent-project,
main > .promotion,
main > .footer-contact,
main > .section-contact-form,
main > .image-text {
	margin-top: 0 !important;
}

/* Zebra backgrounds — content sections only (not dark promotion/footer-contact). */
.boma-section--white.multicolumn,
.boma-section--white.recent-project {
	background-color: #ffffff;
}

.boma-section--gray.multicolumn,
.boma-section--gray.recent-project,
.multicolumn.boma-section.with-bg-color {
	background-color: #f2f2f2;
}

/* White multicolumn: cards visible without full-width photo background.
   Drive the card colour through --color-background so the dark hover state
   (which only swaps that variable) keeps working and the text stays readable. */
.multicolumn.boma-section--white:not(.with-bg-color) .multicolumn-card {
	--color-background: #f2f2f2;
}

.multicolumn.boma-section--white:not(.with-bg-color) .multicolumn-card .card-icon {
	--color-background: #ffffff;
}

.multicolumn.boma-section--white:not(.with-bg-color) .multicolumn-card:hover,
.multicolumn.boma-section--white:not(.with-bg-color) .multicolumn-card:focus {
	--color-background: rgba(32, 40, 45, 1);
}

.multicolumn.boma-section--white:not(.with-bg-color) .multicolumn-card:hover .card-icon,
.multicolumn.boma-section--white:not(.with-bg-color) .multicolumn-card:focus .card-icon {
	--color-background: #ffffff;
}

/* Contact form without a background image: light section so the white card stands out. */
.footer-contact--plain {
	background-color: #f2f2f2;
}

/* Hero: keep the headline / buttons static while only the photos rotate.
   The swiper becomes an absolute background; the text block defines the height. */
.hero-slider {
	position: relative;
}

.hero-slider .hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	height: 100%;
}

.hero-slider .hero-fg {
	position: relative;
	z-index: 2;
	/* hero-slider is display:flex; force the text layer to span the full width so
	   the inner .container can cap/centre the text exactly like every other section
	   (previously the swiper played this role and Swiper sized it for us). */
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	height: auto;
	pointer-events: none;
}

/* Re-enable interaction only for the actual controls inside the static block. */
.hero-slider .hero-fg .content-box {
	pointer-events: auto;
}

/* Hero buttons: consistent gap, wrap cleanly on small screens (no stray left margin). */
.hero-slider .buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.hero-slider .buttons .button {
	margin-left: 0;
}

/* Multicolumn cards with a photo (Applications): space the heading off the image. */
.multicolumn-card > .project-img {
	width: 100%;
	aspect-ratio: 16 / 11;
}

.multicolumn-card > .project-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.multicolumn-card > .project-img + .heading {
	margin-top: 22px;
}

@supports not (aspect-ratio: 1 / 1) {
	.multicolumn-card > .project-img { height: 220px; }
}

/* Recent project: make joy-co photos fill their slots (Consulo sources were exact-sized). */
.recent-project .project-img-large .project-img {
	width: 100%;
	aspect-ratio: 1000 / 595;
}

.recent-project .project-img-small .project-img {
	width: 100%;
	aspect-ratio: 500 / 385;
}

.recent-project .project-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@supports not (aspect-ratio: 1 / 1) {
	.recent-project .project-img-large .project-img { height: 360px; }
	.recent-project .project-img-small .project-img { height: 175px; }
}

/* Form selects: match the look of text inputs (Consulo styles inputs/textarea only). */
.form select {
	width: 100%;
	min-height: 54px;
	padding: 0 15px;
	background-color: #ffffff;
	border: 1px solid #e4e4e4;
	color: inherit;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23808080' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

@media (max-width: 767px) {
	.form select { min-height: 48px; }
}

/* Footer layout: brand (left) — empty space — Contact + Quick Links (right). */
.footer-split-row {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.footer-right-group {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* Keep the address from stretching the row into one long line. */
.footer-address {
	max-width: 320px;
}

@media (min-width: 768px) {
	.footer-right-group {
		flex-direction: row;
		gap: 64px;
	}
}

@media (min-width: 992px) {
	.footer-split-row {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		gap: 60px;
	}

	.footer-col-brand {
		max-width: 430px;
	}

	.footer-widget-contact {
		max-width: 330px;
	}
}

/* Footer links (contacts incl. tel/mailto/WhatsApp): inherit the light footer
   colour instead of the browser-default blue. */
.footer-main .link {
	color: var(--color-foreground);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.footer-main .link:hover,
.footer-main .link:focus {
	opacity: 0.75;
}

/* Product photo at the top of solution / category cards (replaces flat icons). */
.multicolumn-card .card-photo {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 26px;
}

.multicolumn-card .card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.multicolumn-card:hover .card-photo img,
.multicolumn-card:focus .card-photo img {
	transform: scale(1.04);
}

@supports not (aspect-ratio: 1 / 1) {
	.multicolumn-card .card-photo {
		height: 200px;
	}
}

/* Hero: stronger scrim so white text + floating header stay readable over any
   product photo (incl. bright flat-lays). Darker on the left where text sits. */
.hero-slider .slider-card.overlay::after {
	background:
		linear-gradient(90deg, rgba(18, 22, 26, 0.88) 0%, rgba(18, 22, 26, 0.68) 42%, rgba(18, 22, 26, 0.32) 100%),
		linear-gradient(180deg, rgba(18, 22, 26, 0.55) 0%, rgba(18, 22, 26, 0) 28%);
}

/* Hero pagination dots. */
.hero-slider .swiper-pagination {
	bottom: 32px;
	z-index: 3;
}

.hero-slider .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ffffff;
	opacity: 0.45;
	transition: opacity 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
	opacity: 1;
}

/* About page — body paragraphs, facts row and certifications line. */
.about-body p {
	margin: 0 0 16px;
}

.about-body p:last-child {
	margin-bottom: 0;
}

.about-facts {
	text-align: center;
}

.about-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	max-width: 980px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.about-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.about-stat {
	padding: 34px 20px;
	background: #f2f2f2;
	border-radius: 16px;
}

.about-stat-value {
	display: block;
	font-size: 46px;
	line-height: 1.1;
	font-weight: 700;
	color: var(--color-foreground-heading, #1c2539);
}

.about-stat-label {
	display: block;
	margin-top: 10px;
	opacity: 0.8;
}

.about-certs {
	max-width: 760px;
	margin: 36px auto 0;
	text-align: center;
	opacity: 0.85;
}
