/*
 * Kontakt / O nama pages built from the block patterns in /patterns
 * (inc/block-patterns.php). Everything is scoped to .msj-page, the outer
 * Group block of each pattern, so it never touches other content.
 * Loaded on the front end and in the block editor.
 */

.msj-page {
	--msj-dark: #18202e;
	--msj-orange: #f37a1f;
	--msj-orange-dark: #d9650f;
	--msj-text: #18202e;
	--msj-muted: #5b6472;
	--msj-line: #e5e7eb;
	--msj-soft: #f6f7f9;
	--msj-radius: 18px;
	--msj-shadow: 0 1px 2px rgba(24, 32, 46, 0.05), 0 8px 24px rgba(24, 32, 46, 0.07);
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 0 24px;
	color: var(--msj-text);
	font-size: 16px;
	line-height: 1.65;
}

.msj-page *,
.msj-page *::before,
.msj-page *::after {
	box-sizing: border-box;
}

/* The pattern has its own hero with the title — hide the theme's page title. */
.hentry:has(.msj-page) .entry-header {
	display: none;
}

.msj-page p {
	margin: 0 0 12px;
}

.msj-page p:last-child {
	margin-bottom: 0;
}

.msj-page a {
	color: inherit;
	text-decoration: none;
}

.msj-page h1,
.msj-page h2,
.msj-page h3 {
	color: var(--msj-text);
	font-weight: 600;
	line-height: 1.2;
}

.msj-page .msj-eyebrow {
	margin: 0 0 10px;
	color: var(--msj-orange);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ------------------------------------------------------------- Hero */

.msj-page .msj-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 32px;
	padding: 72px 56px;
	border-radius: var(--msj-radius);
	background: #18202e url('/wp-content/uploads/2024/10/msjoker-slider-hero.webp') center / cover no-repeat;
	color: #fff;
}

.msj-page .msj-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(24, 32, 46, 0.95) 0%, rgba(24, 32, 46, 0.82) 50%, rgba(24, 32, 46, 0.35) 100%);
	pointer-events: none;
}

.msj-page .msj-hero > * {
	position: relative;
	max-width: 640px;
}

.msj-page .msj-hero h1 {
	margin: 0 0 16px;
	color: #fff;
	font-size: 46px;
	font-weight: 600;
}

.msj-page .msj-hero .msj-lead {
	margin: 0 0 28px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
}

/* ------------------------------------------------------------- Buttons
 * "body .msj-page.msj-page" outranks Storefront's
 * ".hentry .entry-content .wp-block-button .wp-block-button__link"
 * (square corners) without !important. */

.msj-page .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

body .msj-page.msj-page .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border: 2px solid var(--msj-orange);
	border-radius: 999px;
	background: var(--msj-orange);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

body .msj-page.msj-page .wp-block-button .wp-block-button__link:hover,
body .msj-page.msj-page .wp-block-button .wp-block-button__link:focus-visible {
	border-color: var(--msj-orange-dark);
	background: var(--msj-orange-dark);
	color: #fff;
}

body .msj-page.msj-page .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: currentColor;
	background: transparent;
	color: var(--msj-text);
}

body .msj-page.msj-page .msj-hero .wp-block-button.is-style-outline .wp-block-button__link,
body .msj-page.msj-page .msj-cta .wp-block-button.is-style-outline .wp-block-button__link {
	color: #fff;
}

body .msj-page.msj-page .wp-block-button.is-style-outline .wp-block-button__link:hover,
body .msj-page.msj-page .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	border-color: var(--msj-orange);
	background: var(--msj-orange);
	color: #fff;
}

/* ------------------------------------------------------------- Sections */

.msj-page .msj-section {
	margin: 0 0 56px;
}

.msj-page .msj-section-title {
	margin: 0 0 8px;
	font-size: 32px;
}

.msj-page .msj-section-intro {
	max-width: 720px;
	margin: 0 0 28px;
	color: var(--msj-muted);
	font-size: 17px;
}

/* ------------------------------------------------------------- Cards */

.msj-page .msj-cards {
	gap: 20px;
	margin: 0 0 56px;
}

.msj-page .msj-cards > .wp-block-column {
	display: flex;
}

.msj-page .msj-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 28px;
	border: 1px solid transparent;
	border-radius: var(--msj-radius);
	background: #fff;
	box-shadow: var(--msj-shadow);
	transition: border-color 0.2s, transform 0.2s;
}

.msj-page .msj-card:hover {
	border-color: rgba(243, 122, 31, 0.35);
}

.msj-page .msj-card h3 {
	margin: 0 0 14px;
	font-size: 21px;
}

.msj-page .msj-card .msj-eyebrow {
	margin-bottom: 6px;
}

.msj-page .msj-card p {
	color: var(--msj-muted);
}

.msj-page .msj-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 18px;
}

body .msj-page.msj-page .msj-card .wp-block-button .wp-block-button__link {
	padding: 10px 20px;
	font-size: 14px;
}

/* Big, tappable contact lines (phones, e-mail). */
.msj-page .msj-contact-line {
	margin: 0 0 6px;
	color: var(--msj-text) !important;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
}

.msj-page .msj-contact-line a {
	color: var(--msj-text);
	transition: color 0.2s;
}

.msj-page .msj-contact-line a:hover,
.msj-page .msj-contact-line a:focus-visible {
	color: var(--msj-orange);
}

.msj-page .msj-hours {
	margin-top: 12px;
	padding-top: 14px;
	border-top: 1px solid var(--msj-line);
	font-size: 15px;
}

.msj-page .msj-hours strong {
	color: var(--msj-text);
}

/* ------------------------------------------------------------- Split (image + text) */

.msj-page .msj-split {
	align-items: center !important;
	gap: 48px;
	margin: 0 0 56px;
}

.msj-page .msj-split .wp-block-image {
	margin: 0;
}

.msj-page .msj-split .wp-block-image img,
.msj-page .msj-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--msj-radius);
	box-shadow: var(--msj-shadow);
}

.msj-page .msj-split .wp-block-image a {
	display: block;
	transition: transform 0.25s;
}

.msj-page .msj-split .wp-block-image a:hover {
	transform: translateY(-3px);
}

.msj-page .msj-split h2 {
	margin: 0 0 14px;
	font-size: 30px;
}

.msj-page .msj-split p {
	color: var(--msj-muted);
}

.msj-page .msj-list {
	margin: 18px 0 0;
	padding: 20px 24px;
	border-radius: 14px;
	background: #fff;
	list-style: none;
	box-shadow: var(--msj-shadow);
}

.msj-page .msj-list li {
	position: relative;
	margin: 0;
	padding: 6px 0 6px 22px;
	border-bottom: 1px solid var(--msj-line);
}

.msj-page .msj-list li:last-child {
	border-bottom: 0;
}

.msj-page .msj-list li::before {
	content: '';
	position: absolute;
	top: 16px;
	left: 2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--msj-orange);
}

/* Inside a card the list is plain — the card already is the white box. */
.msj-page .msj-card .msj-list {
	margin: 4px 0 0;
	padding: 0;
	background: none;
	box-shadow: none;
}

.msj-page .msj-card .msj-list li {
	color: var(--msj-muted);
	font-size: 15px;
}

/* ------------------------------------------------------------- Gallery */

.msj-page .msj-gallery {
	gap: 20px;
}

.msj-page .msj-gallery .wp-block-image {
	margin: 0;
}

.msj-page .msj-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 460 / 384;
	object-fit: cover;
	border-radius: var(--msj-radius);
	box-shadow: var(--msj-shadow);
}

.msj-page .msj-gallery figcaption {
	margin: 10px 0 0;
	color: var(--msj-muted);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}

/* ------------------------------------------------------------- Stats (O nama) */

.msj-page .msj-stats {
	gap: 16px;
	margin: -8px 0 56px;
}

.msj-page .msj-stat {
	height: 100%;
	padding: 24px;
	border-radius: var(--msj-radius);
	background: #fff;
	box-shadow: var(--msj-shadow);
}

.msj-page .msj-stat .msj-stat-number {
	margin: 0 0 6px;
	color: var(--msj-orange);
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}

.msj-page .msj-stat p {
	color: var(--msj-muted);
	font-size: 15px;
	line-height: 1.45;
}

/* ------------------------------------------------------------- Brands (O nama) */

.msj-page .msj-brand {
	border-top: 4px solid var(--msj-orange);
}

.msj-page .msj-brand h3 {
	font-size: 26px;
	letter-spacing: 0.02em;
}

/* ------------------------------------------------------------- CTA */

.msj-page .msj-cta {
	margin: 0;
	padding: 48px 56px;
	border-radius: var(--msj-radius);
	background: var(--msj-dark);
	color: #fff;
}

.msj-page .msj-cta h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 30px;
}

.msj-page .msj-cta p {
	max-width: 680px;
	margin-bottom: 24px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 17px;
}


/* ------------------------------------------------------------- Reasons + steps (Zašto MS Joker) */

.msj-page .msj-cards.msj-reasons {
	margin-bottom: 0;
}

.msj-page .msj-cards.msj-reasons + .msj-reasons {
	margin-top: 20px;
	margin-bottom: 56px;
}

@media (max-width: 781px) {
	.msj-page .msj-cards.msj-reasons + .msj-reasons {
		margin-top: 12px;
	}
}

.msj-page .msj-reason::before {
	content: '';
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: #fff4ea var(--msj-icon) center / 26px no-repeat;
}

.msj-page .msj-reason--quality {
	--msj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f37a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 4v5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V7z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.msj-page .msj-reason--stock {
	--msj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f37a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-5 9 5v8l-9 5-9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E");
}

.msj-page .msj-reason--price {
	--msj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f37a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12l-8 8-9-9V3h8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
}

.msj-page .msj-reason--delivery {
	--msj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f37a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3zM14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
}

.msj-page .msj-reason--support {
	--msj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f37a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0 5 5l-9.4 9.4a2.1 2.1 0 0 1-3-3z'/%3E%3Cpath d='M14.7 6.3 17 4l3 3-2.3 2.3'/%3E%3C/svg%3E");
}

.msj-page .msj-reason--warranty {
	--msj-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f37a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

.msj-page .msj-step-card {
	height: 100%;
	padding: 26px;
	border: 1px dashed #d5d9e0;
	border-radius: var(--msj-radius);
	background: #fff;
}

.msj-page .msj-step-card .msj-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--msj-orange);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
}

.msj-page .msj-step-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
}

.msj-page .msj-step-card p:last-child {
	color: var(--msj-muted);
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1330px) {
	.msj-page {
		padding-left: 4px;
		padding-right: 4px;
	}
}

@media (max-width: 900px) {
	.msj-page .msj-hero {
		padding: 48px 32px;
	}

	.msj-page .msj-hero h1 {
		font-size: 36px;
	}

	.msj-page .msj-split {
		gap: 28px;
	}

	.msj-page .msj-cta {
		padding: 36px 32px;
	}
}

/* Core Columns stack at 781px; tighten spacing for phones. */
@media (max-width: 781px) {
	.msj-page {
		padding-top: 8px;
		padding-bottom: 16px;
		font-size: 15px;
	}

	.msj-page .msj-hero {
		margin-bottom: 20px;
		padding: 36px 22px;
	}

	.msj-page .msj-hero::before {
		background: linear-gradient(180deg, rgba(24, 32, 46, 0.92) 0%, rgba(24, 32, 46, 0.85) 100%);
	}

	.msj-page .msj-hero h1 {
		font-size: 30px;
	}

	.msj-page .msj-hero .msj-lead {
		margin-bottom: 22px;
		font-size: 16px;
	}

	.msj-page .msj-cards,
	.msj-page .msj-split,
	.msj-page .msj-section {
		margin-bottom: 36px;
	}

	.msj-page .msj-cards,
	.msj-page .msj-gallery {
		gap: 14px;
	}

	.msj-page .msj-card {
		padding: 22px;
	}

	.msj-page .msj-section-title,
	.msj-page .msj-split h2,
	.msj-page .msj-cta h2 {
		font-size: 24px;
	}

	.msj-page .msj-contact-line {
		font-size: 18px;
	}

	/* Stats: one per row on phones. */
	.msj-page .msj-stats {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin-bottom: 36px;
	}

	.msj-page .msj-stat {
		padding: 18px;
	}

	.msj-page .msj-stat .msj-stat-number {
		font-size: 28px;
	}

	.msj-page .msj-cta {
		padding: 30px 22px;
	}

	.msj-page .wp-block-buttons > .wp-block-button {
		flex: 1 1 auto;
	}

	body .msj-page.msj-page .msj-hero .wp-block-button .wp-block-button__link,
	body .msj-page.msj-page .msj-cta .wp-block-button .wp-block-button__link {
		justify-content: center;
		width: 100%;
	}
}
