/* ==========================================================================
   ISVETA — homepage
   2026-05-08 redesign. Brand palette from header_footer.css.
   ========================================================================== */

/* Section base */
.home-hero,
.home-trust-strip,
.home-categories,
.home-about,
.home-featured,
.home-coverage,
.home-testimonials,
.home-cta {
	color: var(--header-fg);
}

/* Section heading helpers */
.home-section-head {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
}
.home-section-eyebrow {
	display: inline-block;
	color: var(--brand-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.home-section-title {
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
	margin: 0 0 12px;
}
.home-section-sub {
	color: #5b6473;
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}

/* Buttons */
.btn-primary-lg {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--brand-blue);
	color: #ffffff;
	border: 0;
	border-radius: 4px;
	padding: 14px 28px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .3px;
	text-decoration: none;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
	box-shadow: 0 4px 14px rgba(11, 85, 160, .18);
}
.btn-primary-lg:hover,
.btn-primary-lg:focus {
	background: var(--brand-blue-hover);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(11, 85, 160, .28);
}

.btn-ghost-lg {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	color: #ffffff;
	border: 2px solid rgba(255, 255, 255, .8);
	border-radius: 4px;
	padding: 12px 26px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-ghost-lg:hover,
.btn-ghost-lg:focus {
	background: #ffffff;
	color: var(--brand-blue);
	border-color: #ffffff;
	text-decoration: none;
}

.btn-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--brand-blue);
	font-weight: 600;
	text-decoration: none;
	transition: gap .15s ease, color .15s ease;
}
.btn-link:hover,
.btn-link:focus {
	color: var(--brand-blue-hover);
	gap: 14px;
	text-decoration: none;
}

/* ==========================================================================
   HERO (Bootstrap 4 carousel — slides from $site['n_iliustracija'])
   ========================================================================== */

.home-hero {
	position: relative;
	color: #ffffff;
	overflow: hidden;
}

.home-hero-carousel,
.home-hero-carousel .carousel-inner {
	height: 580px;
}

.home-hero-slide {
	position: relative;
	height: 580px;
	overflow: hidden;
}

.home-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 0;
}

/* Active slide: subtle slow zoom for the photographic feel */
.home-hero-slide.active .home-hero-img {
	animation: hero-zoom 14s ease-out forwards;
}
@keyframes hero-zoom {
	from { transform: scale(1); }
	to   { transform: scale(1.05); }
}

.home-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg,
		rgba(8, 32, 60, .55)  0%,
		rgba(11, 85, 160, .35) 50%,
		rgba(0, 0, 0, .15)    100%);
}

.home-hero-content {
	position: relative;
	z-index: 2;
	padding: 100px 0 80px;
	max-width: 760px;
}

.home-hero-indicators {
	z-index: 3;
	bottom: 18px;
}
.home-hero-indicators li {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	border: 0;
	margin: 0 6px;
	transition: background .15s ease, transform .15s ease;
}
.home-hero-indicators li.active {
	background: #ffffff;
	transform: scale(1.2);
}

.home-hero-control {
	width: 5%;
	z-index: 3;
	opacity: .7;
}
.home-hero-control:hover { opacity: 1; }

/* Animate caption when slide becomes active */
.home-hero-slide.active .home-hero-eyebrow,
.home-hero-slide.active .home-hero-title,
.home-hero-slide.active .home-hero-sub,
.home-hero-slide.active .home-hero-actions {
	animation: hero-rise .8s cubic-bezier(.2, .8, .2, 1) backwards;
}
.home-hero-slide.active .home-hero-eyebrow  { animation-delay: .15s; }
.home-hero-slide.active .home-hero-title    { animation-delay: .25s; }
.home-hero-slide.active .home-hero-sub      { animation-delay: .4s;  }
.home-hero-slide.active .home-hero-actions  { animation-delay: .55s; }
@keyframes hero-rise {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.home-hero-eyebrow {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 4px;
	font-weight: 700;
	color: rgba(255, 255, 255, .85);
	margin-bottom: 18px;
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(255, 255, 255, .3);
}

.home-hero-title {
	font-size: clamp(28px, 4.5vw, 52px);
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 18px;
	color: #ffffff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

.home-hero-sub {
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.5;
	color: rgba(255, 255, 255, .92);
	margin: 0 0 32px;
	max-width: 640px;
}

.home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */

.home-trust-strip {
	background: #ffffff;
	border-bottom: 1px solid var(--header-border);
	padding: 32px 0;
	margin-top: -1px;
}

.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.trust-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 8px 0;
}
.trust-item i {
	color: var(--brand-blue);
	font-size: 24px;
	margin-top: 2px;
	flex-shrink: 0;
}
.trust-item strong {
	display: block;
	color: var(--header-fg);
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 4px;
}
.trust-item span,
.trust-item a {
	display: block;
	color: #5b6473;
	font-size: 13px;
	line-height: 1.4;
}
.trust-item a {
	color: var(--brand-blue);
	text-decoration: none;
	font-weight: 600;
}
.trust-item a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   SECTION SPACING
   ========================================================================== */

.home-categories,
.home-about,
.home-featured,
.home-coverage,
.home-testimonials,
.home-cta {
	padding: 80px 0;
}

/* Alternating backgrounds for visual rhythm */
.home-categories  { background: #ffffff; }
.home-about       { background: #f4f8fa; }
.home-featured    { background: #ffffff; }
.home-coverage    { background: #f4f8fa; }
.home-testimonials{ background: #ffffff; }
.home-cta         { background: var(--footer-bg); color: #ffffff; }

.home-cta .home-section-title { color: #ffffff; }
.home-cta .home-section-eyebrow { color: var(--brand-blue-light); }

/* ==========================================================================
   CATEGORIES GRID
   ========================================================================== */

.cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.cat-card {
	display: block;
	background: #ffffff;
	border: 1px solid var(--header-border);
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: var(--header-fg);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-card:hover,
.cat-card:focus {
	transform: translateY(-4px);
	box-shadow: 0 14px 40px rgba(11, 85, 160, .14);
	border-color: var(--brand-blue-light);
	text-decoration: none;
	color: var(--header-fg);
}

.cat-card-media {
	aspect-ratio: 16 / 10;
	background: #e9eef4;
	overflow: hidden;
}
.cat-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.cat-card:hover .cat-card-media img {
	transform: scale(1.05);
}
.cat-card-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-blue-light);
	font-size: 64px;
}

.cat-card-body {
	padding: 22px 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.cat-card-title {
	flex: 1 1 auto;
	font-size: 18px;
	font-weight: 700;
	color: var(--header-fg);
	margin: 0;
}
.cat-card-count {
	font-size: 12px;
	color: #8d97ad;
	font-weight: 500;
}
.cat-card-arrow {
	color: var(--brand-blue);
	font-size: 14px;
	transition: transform .25s ease;
}
.cat-card:hover .cat-card-arrow {
	transform: translateX(4px);
}

/* ==========================================================================
   ABOUT / STATS
   ========================================================================== */

.about-row {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	align-items: center;
}

.about-text p {
	color: #5b6473;
	font-size: 16px;
	line-height: 1.7;
	margin: 12px 0 24px;
}

.about-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.stat-card {
	background: #ffffff;
	border: 1px solid var(--header-border);
	border-radius: 8px;
	padding: 32px 24px;
	text-align: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(11, 85, 160, .12);
}
.stat-num {
	display: block;
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	color: var(--brand-blue);
	margin-bottom: 8px;
}
.stat-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #5b6473;
	text-transform: uppercase;
	letter-spacing: .4px;
	line-height: 1.4;
}

/* ==========================================================================
   FEATURED PRODUCTS
   ========================================================================== */

.prod-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.prod-card {
	display: block;
	background: #ffffff;
	border: 1px solid var(--header-border);
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: var(--header-fg);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.prod-card:hover,
.prod-card:focus {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(11, 85, 160, .12);
	border-color: var(--brand-blue-light);
	text-decoration: none;
	color: var(--header-fg);
}

.prod-card-media {
	aspect-ratio: 1 / 1;
	background: #e9eef4;
	overflow: hidden;
}
.prod-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.prod-card:hover .prod-card-media img {
	transform: scale(1.06);
}
.prod-card-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--brand-blue-light);
	font-size: 48px;
}

.prod-card-body {
	padding: 16px 18px;
}
.prod-card-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--header-fg);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 40px;
}
.prod-card-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--brand-blue);
}

/* ==========================================================================
   COVERAGE BAND
   ========================================================================== */

.coverage-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.coverage-text p {
	color: #5b6473;
	font-size: 16px;
	line-height: 1.7;
	margin: 12px 0 0;
}
.coverage-stat {
	background: #ffffff;
	border: 1px solid var(--header-border);
	border-radius: 8px;
	padding: 28px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	box-shadow: 0 4px 14px rgba(11, 85, 160, .06);
}
.coverage-stat i {
	color: var(--brand-blue);
	font-size: 32px;
	flex-shrink: 0;
}
.coverage-stat strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--header-fg);
}
.coverage-stat span {
	color: #5b6473;
	font-size: 14px;
	line-height: 1.5;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testi-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.testi-card {
	background: #ffffff;
	border: 1px solid var(--header-border);
	border-radius: 8px;
	padding: 28px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.testi-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(11, 85, 160, .08);
}
.testi-stars {
	color: #f0a410;
	margin-bottom: 12px;
	font-size: 14px;
	letter-spacing: 2px;
}
.testi-text {
	color: var(--header-fg);
	font-size: 15px;
	line-height: 1.6;
	font-style: italic;
	margin: 0 0 14px;
}
.testi-author {
	color: #5b6473;
	font-size: 14px;
	font-weight: 600;
}

/* ==========================================================================
   CTA / CONTACT FORM
   ========================================================================== */

.home-cta .home-section-eyebrow,
.home-cta .home-section-title,
.home-cta p,
.home-cta .cta-list {
	color: rgba(255, 255, 255, .92);
}
.home-cta p { line-height: 1.7; }

.cta-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
}

.cta-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
}
.cta-list li {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
}
.cta-list i {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--brand-blue);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
}

.cta-form {
	background: #ffffff;
	border-radius: 10px;
	padding: 36px 32px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}
.cta-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.cta-form label {
	display: block;
	margin-bottom: 14px;
	color: var(--header-fg);
}
.cta-form label > span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #5b6473;
	margin-bottom: 6px;
}
.cta-form input,
.cta-form textarea {
	width: 100%;
	border: 1px solid var(--header-border);
	border-radius: 4px;
	padding: 12px 14px;
	font-size: 14px;
	font-family: inherit;
	background: #ffffff;
	color: var(--header-fg);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.cta-form input:focus,
.cta-form textarea:focus {
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px rgba(11, 85, 160, .12);
	outline: none;
}
.cta-form .btn-primary-lg {
	margin-top: 8px;
	justify-content: center;
}
.btn-primary-lg.w-100 { width: 100%; }
.cta-form-note {
	margin: 14px 0 0;
	font-size: 12px;
	color: #8d97ad;
	text-align: center;
}
.cta-form-note a {
	color: var(--brand-blue);
	text-decoration: underline;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */

.js-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity .7s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms),
		transform .7s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}
.js-reveal.is-revealed {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.js-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199.98px) {
	.cat-grid       { grid-template-columns: repeat(3, 1fr); }
	.prod-grid      { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
	.home-hero          { min-height: 460px; }
	.home-hero-content  { padding: 60px 20px; }
	.trust-grid         { grid-template-columns: repeat(2, 1fr); }
	.about-row          { grid-template-columns: 1fr; gap: 40px; }
	.coverage-inner     { grid-template-columns: 1fr; gap: 24px; }
	.cta-row            { grid-template-columns: 1fr; gap: 36px; }
	.cat-grid           { grid-template-columns: repeat(2, 1fr); }
	.prod-grid          { grid-template-columns: repeat(3, 1fr); }
	.testi-grid         { grid-template-columns: repeat(2, 1fr); }
	.home-categories,
	.home-about,
	.home-featured,
	.home-coverage,
	.home-testimonials,
	.home-cta           { padding: 60px 0; }
}

@media (max-width: 575.98px) {
	.home-hero          { min-height: 420px; }
	.home-hero-content  { padding: 50px 16px; }
	.home-hero-actions  { gap: 10px; }
	.btn-primary-lg,
	.btn-ghost-lg       { padding: 12px 18px; font-size: 14px; }
	.trust-grid         { grid-template-columns: 1fr; gap: 16px; }
	.about-stats        { grid-template-columns: 1fr; }
	.cat-grid           { grid-template-columns: 1fr; }
	.prod-grid          { grid-template-columns: repeat(2, 1fr); }
	.testi-grid         { grid-template-columns: 1fr; }
	.cta-form           { padding: 24px 20px; }
	.cta-form-row       { grid-template-columns: 1fr; }
	.stat-num           { font-size: 44px; }
}
