/*
Theme Name: BlisterMedic
Theme URI: https://blistermedic.com
Author: BlisterMedic
Description: Block tema za medicinsko blister pakovanje sa Gutenberg bibliotekom BlisterMedic sekcija.
Version: 2.0.3
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: blistermedic
*/

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

img {
	max-width: 100%;
	height: auto;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.bm-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--wp--preset--color--line);
	backdrop-filter: blur(14px);
}

.bm-brand-mark {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 14px;
	background: linear-gradient(145deg, var(--wp--preset--color--blue), var(--wp--preset--color--cyan));
	box-shadow: 0 8px 18px rgba(23, 107, 155, 0.22);
	color: var(--wp--preset--color--white);
	font-size: 20px;
	font-weight: 800;
}

.bm-header .wp-block-site-title a,
.bm-footer .wp-block-site-title a {
	color: inherit;
}

.bm-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--blue);
}

.admin-bar .bm-header {
	top: 32px;
}

.bm-brand:has(.custom-logo-link) .bm-brand-mark {
	display: none;
}

.bm-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--wp--preset--color--blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.bm-kicker::before {
	width: 25px;
	height: 2px;
	background: var(--wp--preset--color--cyan);
	content: "";
}

.bm-hero,
.bm-production,
.bm-products,
.bm-quality {
	position: relative;
	overflow: hidden;
}

.bm-hero::after {
	position: absolute;
	right: -110px;
	bottom: -330px;
	width: 500px;
	height: 500px;
	border: 1px solid #a8d2dc;
	border-radius: 50%;
	box-shadow: 0 0 0 45px #cce8ec55, 0 0 0 95px #cce8ec33;
	content: "";
	pointer-events: none;
}

.bm-hero-copy {
	position: relative;
	z-index: 1;
}

.bm-hero h1,
.bm-hero .bm-display-heading {
	max-width: 700px;
}

.bm-accent {
	color: var(--wp--preset--color--blue);
}

.bm-visual-card,
.bm-info-card,
.bm-product-card,
.bm-proof-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--custom--shadow);
}

.bm-hero-image {
	position: relative;
	z-index: 1;
}

.bm-hero-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.bm-floating-note {
	position: relative;
	z-index: 2;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 35px rgba(16, 43, 70, 0.12);
}

.bm-trust-strip {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.bm-feature-panel {
	min-height: 100%;
	border-radius: var(--wp--custom--radius--large);
	background: linear-gradient(145deg, var(--wp--preset--color--navy), #174d70);
	color: var(--wp--preset--color--white);
}

.bm-feature-panel h2,
.bm-feature-panel h3,
.bm-feature-panel p {
	color: inherit;
}

.bm-metric {
	border-left: 3px solid var(--wp--preset--color--cyan);
}

.bm-metric strong {
	display: block;
	color: var(--wp--preset--color--navy);
	font-size: 28px;
	line-height: 1.1;
}

.bm-product-card {
	height: 100%;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.bm-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 55px rgba(16, 43, 70, 0.14);
}

.bm-check-list li::marker {
	color: var(--wp--preset--color--cyan);
}

.bm-footer {
	background: #0b2034;
}

.bm-footer,
.bm-footer a {
	color: #b8c9d4;
}

.bm-footer h2,
.bm-footer h3,
.bm-footer h4,
.bm-footer .wp-block-site-title {
	color: #fff;
}

@media (max-width: 782px) {
	.admin-bar .bm-header {
		top: 46px;
	}
}

.bm-footer-divider {
	border-color: rgba(255, 255, 255, 0.14);
}

.wp-block-post-template {
	gap: var(--wp--preset--spacing--30);
}

.bm-post-card {
	height: 100%;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
}

.wp-block-query-pagination {
	justify-content: center;
	margin-top: var(--wp--preset--spacing--50);
}

@media (max-width: 781px) {
	.bm-header .wp-block-buttons {
		display: none;
	}

	.bm-hero::after {
		opacity: 0.55;
	}

	.bm-hero-columns,
	.bm-split-columns {
		flex-wrap: wrap !important;
	}

	.bm-hero-columns > .wp-block-column,
	.bm-split-columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.bm-products-grid > .wp-block-column {
		flex-basis: calc(50% - 15px) !important;
	}
}

@media (max-width: 560px) {
	.bm-products-grid > .wp-block-column {
		flex-basis: 100% !important;
	}

	.bm-header {
		position: relative;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.bm-product-card {
		transition: none;
	}
}
