/* Homepage sections. Hero structure remains editable as native Bricks elements. */

/* Offer accordion: native Bricks section, linked blocks, images and headings. */
.threeh-home-offer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding: 68px 0 88px;
  background: #fff;
  color: var(--threeh-navy);
}
.threeh-home-offer__head {
  width: min(var(--threeh-container), calc(100% - 2 * var(--threeh-gutter)));
  max-width: none;
  margin: 0 auto 52px;
  padding: 0;
}
.threeh-home-offer__heading {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.025em;
  color: var(--threeh-navy);
}
.threeh-home-offer__heading strong { font-weight: 700; }
.threeh-home-offer__row {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 470px;
  padding: 0 10px;
}
.threeh-home-offer__card {
  position: relative;
  isolation: isolate;
  display: block;
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--threeh-navy);
  box-shadow: none;
  text-decoration: none;
  color: #fff;
  transition: flex-grow .55s cubic-bezier(.22,.61,.36,1);
}
.threeh-home-offer__photo,
.threeh-home-offer__photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none;
  height: 100% !important;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
.threeh-home-offer__card::before,
.threeh-home-offer__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.threeh-home-offer__card::before {
  background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.2) 52%, rgba(0,0,0,.92) 100%);
}
.threeh-home-offer__card::after {
  background: rgba(16,35,79,.52);
  opacity: 0;
  transition: opacity .4s ease;
}
.threeh-home-offer__meta {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 12px;
  bottom: 30px;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.threeh-home-offer__icon,
.threeh-home-offer__icon img {
  display: block;
  width: 80px !important;
  height: 80px !important;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
}
.threeh-home-offer__name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: #fff;
}
.threeh-home-offer__cta {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: max-content;
  padding: 17px 28px;
  background: #fff;
  clip-path: polygon(15% 0,100% 0,85% 100%,0 100%);
  color: var(--threeh-navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%,-35%);
  transition: opacity .25s ease, transform .35s ease;
}
.threeh-home-offer__card:focus-visible {
  outline: 3px solid var(--threeh-yellow);
  outline-offset: -3px;
}
.threeh-home-offer__card:is(:hover,:focus-visible)::after { opacity: 1; }
.threeh-home-offer__card:is(:hover,:focus-visible) .threeh-home-offer__cta { opacity: 1; transform: translate(-50%,-50%); }
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .threeh-home-offer__card:is(:hover,:focus-visible) { flex-grow: 3; }
}
@media (max-width: 991px), (hover: none), (pointer: coarse) {
  .threeh-home-offer { padding: 42px 0 52px; }
  .threeh-home-offer__head { margin-bottom: 30px; }
  .threeh-home-offer__row { height: 390px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 10px; }
  .threeh-home-offer__card { flex: 0 0 300px; width: 300px; scroll-snap-align: start; }
  .threeh-home-offer__cta { opacity: 1; transform: translate(-50%,-50%); }
}
@media (max-width: 600px) {
  .threeh-home-offer__row { height: 370px; }
  .threeh-home-offer__card { flex-basis: 78%; width: 78%; }
  .threeh-home-offer__heading { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .threeh-home-offer__card, .threeh-home-offer__card::after, .threeh-home-offer__cta { transition: none; }
}

/* Recommended products: native Bricks nested tabs + the shared catalogue product card. */
.threeh-home-products {
  --catalog-line: #cbd3df;
  --catalog-muted: #596779;
  --catalog-image-height: 300px;
  width: 100%;
  padding: 78px var(--threeh-gutter) 92px;
  background: #fff;
  color: var(--threeh-navy);
}
.threeh-home-products__inner {
  width: 100%;
  max-width: var(--threeh-container);
  margin-inline: auto;
  padding: 0;
  gap: 0;
}
.threeh-home-products__heading {
  width: 100%;
  margin: 0 0 42px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--threeh-navy);
}
.threeh-home-products__tabs { display: block; width: 100%; }
.threeh-home-products__tabs > .tab-menu,
.threeh-home-products__tabs-menu {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--catalog-line);
}
.threeh-home-products__tabs .tab-title {
  position: relative;
  width: auto;
  margin: 0;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--threeh-navy);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  cursor: pointer;
}
.threeh-home-products__tabs .tab-title:hover,
.threeh-home-products__tabs .tab-title.brx-open { border-bottom-color: var(--threeh-yellow); color: var(--threeh-blue); }
.threeh-home-products__tabs .tab-title:focus-visible { outline: 2px solid var(--threeh-blue); outline-offset: 4px; }
.threeh-home-products__tabs > .tab-content,
.threeh-home-products__tab-content { width: 100%; margin: 44px 0 0 !important; padding: 0 !important; }
.threeh-home-products__tabs .tab-pane { width: 100%; margin: 0; padding: 0; }
.threeh-home-products .threeh-catalog-products ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) {
  .threeh-home-products { --catalog-image-height: 280px; }
  .threeh-home-products .threeh-catalog-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .threeh-home-products { --catalog-image-height: 300px; padding: 52px var(--threeh-gutter) 62px; }
  .threeh-home-products__heading { margin-bottom: 28px; font-size: 22px; }
  .threeh-home-products__tabs > .tab-menu, .threeh-home-products__tabs-menu { justify-content: flex-start; flex-wrap: nowrap; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .threeh-home-products__tabs > .tab-menu::-webkit-scrollbar, .threeh-home-products__tabs-menu::-webkit-scrollbar { display: none; }
  .threeh-home-products__tabs .tab-title { flex: 0 0 auto; white-space: nowrap; }
  .threeh-home-products__tabs > .tab-content, .threeh-home-products__tab-content { margin-top: 30px !important; }
  .threeh-home-products .threeh-catalog-products ul.products { grid-template-columns: minmax(0, 1fr); }
}

.threeh-home-news {
  width: 100%;
  padding: 78px var(--threeh-gutter) 88px;
  background: #f3f5f7;
  color: var(--threeh-navy);
}

.threeh-home-news__inner {
  width: 100%;
  max-width: var(--threeh-container);
  margin-inline: auto;
  padding: 0;
  gap: 0;
}

.threeh-home-news__heading {
  width: 100%;
  margin: 0 0 48px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--threeh-navy);
}

.threeh-home-news__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  row-gap: 48px;
  width: 100%;
}

.threeh-home-news__item {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.threeh-home-news__date {
  margin: 0 0 14px;
  color: #6d7785;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .02em;
}

.threeh-home-news__body {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: 26px;
  width: 100%;
  min-width: 0;
  align-items: start;
}

.threeh-home-news__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
}

.threeh-home-news__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .24s ease;
}

.threeh-home-news__item:hover .threeh-home-news__image img { transform: scale(1.025); }
.threeh-home-news__content { min-width: 0; width: 100%; }

.threeh-home-news__title {
  margin: 0 0 16px;
  color: var(--threeh-navy);
  font-size: 16px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -.01em;
}

.threeh-home-news__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 18px;
  color: #4f5d6d;
  font-size: 13px;
  line-height: 1.6;
}

.threeh-home-news__cta a,
.threeh-home-news__more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 24px;
  background: var(--threeh-navy);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.threeh-home-news__cta a:hover,
.threeh-home-news__more a:hover { background: var(--threeh-yellow); color: var(--threeh-navy); }

.threeh-home-news__footer { display: flex; justify-content: flex-end; width: 100%; margin-top: 48px; }
.threeh-home-news__more a { min-height: 48px; padding-inline: 30px; font-size: 12px; }

@media (max-width: 991px) {
  .threeh-home-news__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 600px) {
  .threeh-home-news { padding: 52px var(--threeh-gutter) 60px; }
  .threeh-home-news__heading { margin-bottom: 32px; font-size: 22px; }
  .threeh-home-news__body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .threeh-home-news__title { font-size: 17px; }
  .threeh-home-news__footer { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .threeh-home-news__image img { transition: none; }
}

.threeh-home-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: auto !important;
	aspect-ratio: 1600 / 731;
	min-height: 0 !important;
	padding: 0 !important;
	background: #12213a;
}

.threeh-home-hero__slider,
.threeh-home-hero__slider .splide__track,
.threeh-home-hero__slider .splide__list,
.threeh-home-hero__slider .splide__slide,
.threeh-home-hero__slide {
	width: 100%;
	height: 100% !important;
}

.threeh-home-hero__slide {
	display: block !important;
	overflow: hidden;
	padding: 0 !important;
}

.threeh-home-hero__image,
.threeh-home-hero__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0;
	object-fit: contain;
	object-position: center center;
}

/* ALUPROF-style white rail. Labels come from native Splide pagination. */
.threeh-home-hero .splide__pagination {
	position: absolute;
	left: 0;
	right: auto;
	bottom: 0;
	z-index: 8;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	width: auto;
	max-width: 100%;
	height: 64px;
	margin: 0;
	padding: 0 20px;
	transform: none;
	background: #fff;
	counter-reset: threeh-hero-slide;
}

.threeh-home-hero .splide__pagination li {
	display: flex;
	align-items: stretch;
	height: 100%;
	margin: 0;
	counter-increment: threeh-hero-slide;
}

.threeh-home-hero .splide__pagination__page {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 64px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	opacity: 1;
	transform: none;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #a2a8b0;
}

.threeh-home-hero .splide__pagination__page::before {
	content: counter(threeh-hero-slide, decimal-leading-zero);
}

.threeh-home-hero .splide__pagination__page.is-active {
	transform: none;
	color: #111827;
}

.threeh-home-hero .splide__pagination__page.is-active::after {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 13px;
	height: 2px;
	background: #111827;
	transform: scaleX(0);
	transform-origin: left center;
	animation: threeh-hero-progress 6.5s linear forwards;
}

/* Square side controls, independent from the bottom-left slide numbers. */
.threeh-home-hero .splide__arrow {
	position: absolute;
	top: 50%;
	bottom: auto;
	z-index: 9;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	opacity: 1;
	transform: translateY(-50%);
	transition: background-color .2s ease, border-color .2s ease;
}

.threeh-home-hero .splide__arrow--prev {
	left: 0;
	right: auto;
}

.threeh-home-hero .splide__arrow--next {
	left: auto;
	right: 0;
}

.threeh-home-hero .splide__arrow svg {
	width: 18px;
	height: 18px;
	fill: var(--threeh-navy, #10234f);
}

/* Splide creates the same right-pointing SVG for both generated buttons. */
.threeh-home-hero .splide__arrow--prev svg {
	transform: rotate(180deg);
}

.threeh-home-hero .splide__arrow--next svg {
	transform: none;
}

.threeh-home-hero .splide__arrow:hover {
	border-color: var(--threeh-navy, #10234f);
	background: var(--threeh-navy, #10234f);
}

.threeh-home-hero .splide__arrow:hover svg {
	fill: #fff;
}

.threeh-home-hero .splide__arrow:focus-visible,
.threeh-home-hero .splide__pagination__page:focus-visible {
	outline: 2px solid var(--threeh-yellow, #ffcb05);
	outline-offset: -3px;
}

@keyframes threeh-hero-progress {
	to {
		transform: scaleX(1);
	}
}

@media (max-width: 767px) {
	/* Put controls below the complete artwork instead of covering its text. */
	.threeh-home-hero {
		box-sizing: content-box;
		padding-bottom: 52px !important;
		background: #fff;
	}

	.threeh-home-hero__slider {
		overflow: visible;
	}

	.threeh-home-hero .splide__pagination {
		width: 100%;
		height: 52px;
		padding: 0 112px 0 12px;
		border-top: 1px solid #e5e7eb;
		transform: translateY(100%);
	}

	.threeh-home-hero .splide__pagination__page {
		width: 44px;
		height: 52px;
	}

	.threeh-home-hero .splide__pagination__page.is-active::after {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}

	.threeh-home-hero .splide__arrow {
		top: auto;
		bottom: 0;
		width: 52px;
		height: 52px;
		transform: translateY(100%);
	}

	.threeh-home-hero .splide__arrow--prev {
		left: auto;
		right: 52px;
	}

	.threeh-home-hero .splide__arrow--next {
		left: auto;
		right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.threeh-home-hero .splide__pagination__page.is-active::after {
		animation: none;
		transform: scaleX(1);
	}
}

/* Banner ratio remains 1600 / 731. No crop, stretching, or extra text overlay. */

/* Homepage recommendation mosaic */
.threeh-home-recommend {
	width: 100%;
	padding: 78px var(--threeh-gutter) 92px;
	background: #fff;
}

.threeh-home-recommend__inner {
	width: 100%;
	max-width: var(--threeh-container);
	margin-inline: auto;
	padding: 0;
	gap: 0;
}

.threeh-home-recommend__heading {
	width: 100%;
	margin: 0 0 48px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.02em;
	color: var(--threeh-navy, #10234f);
}

.threeh-home-recommend__heading strong {
	font-weight: 700;
}

.threeh-home-recommend__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: clamp(300px, 27vw, 410px);
	gap: 20px;
	width: 100%;
}

.threeh-home-recommend__tile {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	border-radius: 0;
	background: var(--threeh-navy, #10234f);
	color: #fff;
	text-decoration: none;
}

.threeh-home-recommend__tile:nth-child(1),
.threeh-home-recommend__tile:nth-child(4) {
	grid-column: span 2;
}

.threeh-home-recommend__tile:nth-child(2),
.threeh-home-recommend__tile:nth-child(3) {
	grid-column: span 1;
}

.threeh-home-recommend__tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10, 27, 57, .05) 28%, rgba(10, 27, 57, .82) 100%);
	transition: background .25s ease;
}

.threeh-home-recommend__tile:hover::after,
.threeh-home-recommend__tile:focus-visible::after {
	background: linear-gradient(180deg, rgba(10, 27, 57, .12) 20%, rgba(10, 27, 57, .9) 100%);
}

.threeh-home-recommend__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.threeh-home-recommend__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.threeh-home-recommend__tile:hover .threeh-home-recommend__image img {
	transform: scale(1.035);
}

.threeh-home-recommend__content {
	position: absolute;
	left: clamp(24px, 2.4vw, 38px);
	right: clamp(24px, 2.4vw, 38px);
	bottom: clamp(24px, 2.4vw, 36px);
	z-index: 2;
	gap: 10px;
	color: #fff;
}

.threeh-home-recommend__title {
	margin: 0;
	font-size: clamp(25px, 2.1vw, 36px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.025em;
	color: #fff;
}

.threeh-home-recommend__desc {
	max-width: 620px;
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .92);
}

.threeh-home-recommend__tile:focus-visible {
	outline: 3px solid var(--threeh-yellow, #ffcb05);
	outline-offset: -3px;
}

@media (max-width: 991px) {
	.threeh-home-recommend__grid { grid-auto-rows: 320px; gap: 16px; }
}

@media (max-width: 767px) {
	.threeh-home-recommend { padding: 52px var(--threeh-gutter) 62px; }
	.threeh-home-recommend__heading { margin-bottom: 28px; font-size: 22px; }
	.threeh-home-recommend__grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 280px; gap: 14px; }
	.threeh-home-recommend__tile:nth-child(n) { grid-column: 1; }
	.threeh-home-recommend__title { font-size: 25px; }
}
