/* ============================================
   Homepage Sections — Hero Slider + Trust + Categories + Brands + Footer
   ============================================ */

/* ========================================
   HIDE — old module duplicates + footer (temporary)
   ======================================== */
/* Old blog "Aktuálne akcie a novinky" from ph_simpleblog hook */
.ph_simpleblog.simpleblog-recent.block {
	display: none !important;
}

/* Old brand logos from blockmanufacturer hook */
.manufacturers-block {
	display: none !important;
}

/* Old footer — hide (new hardcoded footer replaces it) */
.footer-container--old {
	display: none !important;
}

/* ========================================
   HERO SLIDER — scroll-snap, touch-native
   ======================================== */
/* Remove Bootstrap padding from slider wrapper */
#slider_row {
	margin: 0;
}

#top_column.center_column {
	padding: 0;
}

.hero-slider {
	position: relative;
	padding: 16px 0 0;
}

.hero-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	border-radius: var(--es-radius-lg, 12px);
}

.hero-slider__track::-webkit-scrollbar {
	display: none;
}

.hero-slider__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	display: block;
	line-height: 0;
}

.hero-slider__slide img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* --- Arrows --- */
.hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1f242b;
	transition: background 0.2s, transform 0.2s;
	z-index: 2;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

.hero-slider__arrow:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.08);
}

.hero-slider__arrow--prev {
	left: 26px;
}

.hero-slider__arrow--next {
	right: 26px;
}

/* --- Dots --- */
.hero-slider__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 12px 0 4px;
}

.hero-slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #d1d5db;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, transform 0.2s;
	-webkit-tap-highlight-color: transparent;
}

.hero-slider__dot.is-active {
	background: var(--es-primary, #F57C00);
	transform: scale(1.25);
}

.hero-slider__dot:hover:not(.is-active) {
	background: #9ca3af;
}

/* --- Mobile: smaller arrows, tighter padding --- */
@media (max-width: 767px) {
	.hero-slider {
		padding: 8px 0 0;
	}

	.hero-slider__track {
		border-radius: 0;
	}

	.hero-slider__slide img {
		border-radius: 0;
	}

	.hero-slider__arrow {
		width: 32px;
		height: 32px;
	}

	.hero-slider__arrow--prev {
		left: 8px;
	}

	.hero-slider__arrow--next {
		right: 8px;
	}

	.hero-slider__arrow svg {
		width: 16px;
		height: 16px;
	}

	.hero-slider__dots {
		padding: 8px 0 2px;
	}
}

/* ========================================
   TRUST BAR — floating card style
   ======================================== */
.trust-bar {
	background: #fff;
	padding: 20px 0;
}

.trust-bar__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	background: #fff;
	border: 1px solid #ebedf0;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.trust-bar__item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 16px;
}

/* Vertical dividers between items (desktop) — subtle dotted */
.trust-bar__item + .trust-bar__item {
	border-left: 1px solid #ebedf0;
}

.trust-bar__icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #FFF2E5;
	color: #F57C00;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 12px;
}

.trust-bar__text {
	display: flex;
	flex-direction: column;
}

.trust-bar__text strong {
	font-size: 14px;
	font-weight: 700;
	color: #1f242b;
	line-height: 1.3;
}

.trust-bar__text span {
	font-size: 12px;
	color: #6B7280;
	line-height: 1.3;
}

/* --- Tablet: 2x2 grid --- */
@media (max-width: 991px) {
	.trust-bar__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0;
	}

	.trust-bar__item {
		justify-content: flex-start;
	}

	/* Remove left border, add to even items */
	.trust-bar__item + .trust-bar__item {
		border-left: none;
	}

	.trust-bar__item:nth-child(even) {
		border-left: 1px solid #ebedf0;
	}

	/* Horizontal divider between rows */
	.trust-bar__item:nth-child(n+3) {
		border-top: 1px solid #ebedf0;
	}
}

/* --- Mobile: compact --- */
@media (max-width: 479px) {
	.trust-bar {
		padding: 12px 0;
	}

	.trust-bar__item {
		padding: 10px 12px;
	}

	.trust-bar__icon {
		width: 36px;
		height: 36px;
		margin-right: 10px;
	}

	.trust-bar__icon svg {
		width: 18px;
		height: 18px;
	}

	.trust-bar__text strong {
		font-size: 13px;
	}
}

/* ========================================
   SHARED — section header
   ======================================== */
.hp-section-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 24px;
}

.hp-section-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: #1f242b;
	margin: 0;
}

.hp-section-link {
	font-size: 14px;
	font-weight: 600;
	color: #F57C00;
	text-decoration: none;
	white-space: nowrap;
}

.hp-section-link:hover {
	color: #E65100;
	text-decoration: underline;
}

/* ========================================
   CATEGORIES — 8 card grid
   ======================================== */
.hp-categories {
	padding: 48px 0;
	background: #fff;
}

.hp-categories__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.hp-cat-card {
	background: #fff;
	border: 1px solid #ebedf0;
	border-radius: 14px;
	padding: 20px 18px 22px;
	min-height: 150px;
	text-decoration: none;
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 10px;
	text-align: center;
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.hp-cat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(29, 36, 42, 0.08);
	border-color: #F57C00;
}

.hp-cat-card__img {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background: #f5f6f8;
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	overflow: hidden;
}

.hp-cat-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
}

.hp-cat-card h3 {
	font-size: 17px;
	font-weight: 700;
	color: #1f242b;
	margin: 0;
	line-height: 1.2;
}

.hp-cat-card span {
	font-size: 14px;
	color: #516170;
}

@media (max-width: 991px) {
	.hp-categories__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
}

@media (max-width: 767px) {
	.hp-categories {
		padding: 28px 0;
	}

	.hp-categories__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.hp-cat-card {
		padding: 14px 14px 16px;
		min-height: 120px;
	}

	.hp-cat-card__img {
		width: 48px;
		height: 48px;
		border-radius: 12px;
	}

	.hp-cat-card h3 {
		font-size: 15px;
	}

	.hp-cat-card span {
		font-size: 13px;
	}

	.hp-section-header h2 {
		font-size: 20px;
	}
}

/* ========================================
   PROMO BLOCKS — 2 promo cards
   ======================================== */
.hp-promos {
	padding: 48px 0;
	background: #fff;
}

.hp-promos__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.hp-promo-card {
	background: #fff;
	border: 1px solid #ebedf0;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	text-decoration: none;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.hp-promo-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: #d1d5db;
}

.hp-promo-card__img {
	width: 200px;
	flex-shrink: 0;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hp-promo-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-promo-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hp-promo-card__label {
	font-size: 12px;
	font-weight: 700;
	color: #F57C00;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.hp-promo-card__body h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1A1A1A;
	margin: 0 0 8px;
	line-height: 1.3;
}

.hp-promo-card__body p {
	font-size: 14px;
	color: #6B7280;
	margin: 0 0 16px;
	line-height: 1.5;
}

.hp-promo-card__cta {
	font-size: 14px;
	font-weight: 600;
	color: #F57C00;
}

.hp-promo-card:hover .hp-promo-card__cta {
	color: #E65100;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.hp-promos {
		padding: 28px 0;
	}

	.hp-promos__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hp-promo-card {
		flex-direction: column;
	}

	.hp-promo-card__img {
		width: 100%;
		height: 160px;
	}

	.hp-promo-card__body {
		padding: 16px;
	}
}

/* ========================================
   BRANDS — grayscale logo grid with wrapper
   ======================================== */
.hp-brands {
	padding: 48px 0;
	background: #fff;
}

.hp-brands__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}

.hp-brand-pill {
	min-height: 68px;
	border: 1px solid #ebedf0;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
	padding: 10px;
	text-decoration: none;
}

.hp-brand-pill img {
	max-height: 72px;
	max-width: 80%;
	width: auto;
	object-fit: contain;
	margin: -12px 0;
}

.hp-brand-pill:hover {
	border-color: #F57C00;
	box-shadow: 0 4px 12px rgba(245, 124, 0, 0.12);
}

@media (max-width: 991px) {
	.hp-brands__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 767px) {
	.hp-brands {
		padding: 28px 0;
	}

	.hp-brands__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.hp-brand-pill {
		min-height: 56px;
	}

	.hp-brand-pill img {
		max-height: 36px;
	}
}

/* ========================================
   FOOTER — dark, 4-col grid
   ======================================== */
.hp-footer {
	background: #171d25;
	color: #c8cdd4;
	padding: 56px 0 0;
	font-size: 14px;
	line-height: 1.6;
}

.hp-footer a {
	color: #c8cdd4;
	text-decoration: none;
	transition: color 0.15s;
}

.hp-footer a:hover {
	color: #fff;
}

/* --- Grid: brand + 3 link cols --- */
.hp-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
}

/* --- Brand column --- */
.hp-footer__logo {
	display: inline-block;
	margin-bottom: 12px;
}

.hp-footer__logo img {
	height: 40px;
	width: auto;
}

.hp-footer__desc {
	color: #8b929c;
	font-size: 13px;
	line-height: 1.6;
	margin: 0 0 20px;
}

/* --- Contact items --- */
.hp-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hp-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.hp-footer__contact-item svg {
	flex-shrink: 0;
	color: #F57C00;
	margin-top: 2px;
}

.hp-footer__contact-item strong {
	color: #fff;
	font-size: 15px;
	display: block;
}

.hp-footer__contact-item span {
	color: #8b929c;
	font-size: 12px;
}

.hp-footer__contact-item a {
	color: #c8cdd4;
	font-size: 13px;
}

.hp-footer__contact-item a:hover {
	color: #F57C00;
}

/* --- Link columns --- */
.hp-footer__col h4 {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 16px;
}

.hp-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hp-footer__col li {
	margin-bottom: 10px;
}

.hp-footer__col a {
	font-size: 14px;
}

/* --- Cert boxes (glass style) --- */
.hp-footer__certs {
	display: flex;
	justify-content: center;
	gap: 16px;
	padding: 32px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hp-footer__cert {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hp-footer__cert img {
	max-height: 48px;
	width: auto;
	object-fit: contain;
	filter: brightness(0.9);
	transition: filter 0.2s;
}

.hp-footer__cert:hover img {
	filter: brightness(1.1);
}

/* --- Bottom bar --- */
.hp-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px 0;
	text-align: center;
}

.hp-footer__bottom p {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
}

/* --- Tablet: 2 cols --- */
@media (max-width: 991px) {
	.hp-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.hp-footer__brand {
		grid-column: 1 / -1;
	}
}

/* --- Mobile: single col --- */
@media (max-width: 767px) {
	.hp-footer {
		padding: 36px 0 0;
	}

	.hp-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-bottom: 28px;
	}

	.hp-footer__certs {
		flex-wrap: wrap;
		gap: 10px;
		padding: 24px 0;
	}

	.hp-footer__cert {
		padding: 10px 14px;
	}

	.hp-footer__cert img {
		max-height: 40px;
	}
}
