/**
 * Homepage styles â€” loaded on the front page only (is_front_page()).
 *
 * Typography: inherits from flatsome.css defaults (h1â€“h6 rem scale, 400 weight).
 * Colors: uses Flatsome CSS variables (--primary-color, --fs-color-*).
 * This file only adds layout/structure specific to homepage sections.
 */

/* =========================================================================
   1. HERO
   ========================================================================= */
.av-section-hero { position: relative; }
.av-section-hero .ux-banner { min-height: 640px; }
.av-section-hero .text-box-content h1 {
	color: #fff;
	font-weight: 700;
	margin: 0 0 18px;
}
.av-section-hero .av-hero-sub {
	color: rgba(255,255,255,0.9);
	max-width: 540px;
	margin: 0 0 28px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.av-section-hero .av-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--fs-color-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	margin: 0 0 22px;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}
.av-section-hero .av-hero-cta {
	background: #091120;
}
.av-section-hero .av-hero-cta:hover {

}

/* =========================================================================
   2. CATEGORY CARDS
   ========================================================================= */
.av-section-categories { background: #fff; }

/* =========================================================================
   3. FEATURES BAR
   ========================================================================= */
.av-section-features {
	background: #fff;
	border-top: 1px solid var(--fs-color-base, #e5e7eb);
	border-bottom: 1px solid var(--fs-color-base, #e5e7eb);
	border-color: rgba(0,0,0,0.06);
}

.icons-hp .icon-box-text {
	display: flex;
	align-items: center;
}

/* =========================================================================
   4. SECTION HEADERS (products, blog, ambassadors)
   ========================================================================= */
.av-section-head { margin-bottom: 40px; }
.av-section-head .col-inner { padding: 0; }

/* =========================================================================
   5. PROMO GRID
   ========================================================================= */
/* Promo card visuals live in shortcodes/promo-card/assets/promo-card.css */

/* =========================================================================
   6. WHY US
   ========================================================================= */



.av-section-whyus .av-accent { color: var(--primary-color); }

/* =========================================================================
   7. FREE CONSULTATION
   ========================================================================= */
.av-section-consult .av-consult-title .av-accent { color: var(--primary-color); }
.av-section-consult .av-consult-body { max-width: 540px; margin: 0 0 24px; }

.av-section-consult .av-consult-info {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: rgba(0,0,0,0.02);
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 16px;
	padding: 16px 20px;
	font-size: 0.9em;
	font-weight: 500;
	margin: 0 0 24px;
}
.av-section-consult .av-consult-info .icon { color: var(--primary-color); display: inline-flex; }

.av-section-consult .av-consult-cta {
	display: inline-block;
	background: var(--primary-color);
	color: #fff;
	padding: 16px 32px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85em;
	letter-spacing: 0.08em;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(var(--primary-color-rgb, 146,192,150), 0.4);
	transition: background 0.15s ease, transform 0.15s ease;
}
.av-section-consult .av-consult-cta:hover {
	filter: brightness(0.9);
	color: #fff;
	transform: translateY(-1px);
}

/* =========================================================================
   8. BLOG
   ========================================================================= */
.av-section-blog .post-item {
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	height: 100%;
}
.av-section-blog .post-item .box-image img { border-radius: 0; }
.av-section-blog .post-item .box-text { padding: 22px; }
.av-section-blog .post-item .is-meta,
.av-section-blog .post-item .is-divider { display: none; }

/* =========================================================================
   9. AMBASSADORS
   ========================================================================= */
.av-section-ambassadors { border-top: 1px solid rgba(0,0,0,0.06); }



.arrow-button{
	background: #091120 !important;
	display: flex !important;
	align-items: center;
	gap: 6px;
	min-height: 40px !important;
}

.arrow-button span{
	font-weight: 600;
	font-size: 12px;
	line-height: 16px !important;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #FAF8F5;
}

.arrow-button:after{
	content: '';
	background-image: url("data:image/svg+xml;utf8,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.3335 8H12.6668' stroke='%23FAF8F5' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 3.33398L12.6667 8.00065L8 12.6673' stroke='%23FAF8F5' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	width: 16px;
	height: 16px;
	display: block;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* =========================================================================
   Brand marquee (.av-marquee) â€” auto-scrolling row of brand names.
   Markup duplicates the brand list (16 spans = 8 unique Ã— 2), so a
   translateX(-50%) animation loops seamlessly. The whole marquee must
   sit on a single line in post_content (no <br>, no inner newlines) so
   wpautop doesn't insert <p> tags between siblings.
   ========================================================================= */
.col:has(> .av-marquee),
.col-inner:has(> .av-marquee),
.section-content:has(.av-marquee) {
	overflow: hidden;
}

.av-marquee {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: max-content;
	gap: 0;
	animation: av-marquee-scroll 40s linear infinite;
	will-change: transform;
	user-select: none;
}

.av-marquee > span {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 2.5rem;
	white-space: nowrap;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 600;
	font-size: clamp(1.5rem, 3vw, 2.75rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #101828;
}

.av-marquee:hover {
	animation-play-state: paused;
}

.zakaj-izbrati-icons h4{
	font-weight: 700;
	font-size: 15px;
}

.zakaj-izbrati-icons p{
	font-size: 13px;
}


.brands-slider .dynamic-slider__slide {
	display: flex;
    align-items: center;
	justify-content: center;
}

@keyframes av-marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.av-marquee {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}
}

/* =========================================================================
   Slider arrows — always visible on the homepage (not only on :hover)
   Overrides Flatsome core (flatsome.css: .flickity-prev-next-button opacity:0,
   .slider:hover -> opacity:0.7). Keeps the brighter state on direct hover.
   ========================================================================= */
.home .slider .flickity-prev-next-button {
	opacity: 0.7;
	transform: translateX(0) !important;
}
.home .slider .flickity-prev-next-button:hover {
	opacity: 1;
}

/* =========================================================================
   Mobile
   ========================================================================= */
@media (max-width: 849px) {
	.av-section-hero .ux-banner { min-height: 520px; }
	.av-whyus-card-col > .col-inner { min-height: 360px; padding: 32px; margin-bottom: 32px; }

	.av-marquee {
		animation-duration: 25s;
	}
	.av-marquee > span {
		padding: 0 1.25rem;
	}
}
