/**
 * Kontakt (Contact) page sections.
 *
 * Each section is a block pattern in /patterns/kontakt-*.php, carrying its
 * own `className` (e.g. .kontakt-hero) so these rules attach to stable
 * hooks rather than core's generated wrappers. Same approach as about.css.
 *
 * Mobile first. The 900px breakpoint switches to the 1440 desktop design.
 * Values come from theme.json only — no raw hex, no magic numbers, except
 * one-off layout dimensions with no matching token (matches the convention
 * already used in about.css/home.css).
 *
 * @package Boxara
 */

.site-main--kontakt {
	padding: 0;
	margin: 0;
	max-width: none;
}

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

.kontakt-hero {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	max-width: none;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--24) var(--wp--preset--spacing--24);
	background-color: var(--wp--custom--color--bg-primary);
}

/* Reveal timing — lede settles in once the (single-row) title mask has
   finished rising (~750ms). */
.kontakt-hero__eyebrow.js-reveal-section {
	transition-delay: 0ms;
}

.kontakt-hero__lede.js-reveal-section {
	transition-delay: 650ms;
}

.kontakt-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	margin: 0;
	font-family: var(--wp--preset--font-family--label);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--ultra-wide);
}

.kontakt-hero__eyebrow-main {
	color: var(--wp--custom--color--brand-primary);
	white-space: nowrap;
}

.kontakt-hero__eyebrow-divider {
	width: 16px;
	height: 1px;
	flex-shrink: 0;
	background-color: var(--wp--custom--color--brand-primary);
}

.kontakt-hero__eyebrow-sub {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	letter-spacing: var(--wp--custom--letter-spacing--super-caps);
	color: var(--wp--custom--color--text-muted);
	white-space: nowrap;
}

.kontakt-hero__row {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--12);
	width: 100%;
}

.kontakt-hero__title {
	margin: 0;
	font-size: var(--wp--custom--font-size--display-lg);
	line-height: 1.1;
	color: var(--wp--custom--color--text-primary);
}

.kontakt-hero__title mark,
.kontakt-hero__title .has-brand-color {
	background: none;
	color: var(--wp--custom--color--brand-primary);
}

.kontakt-hero__lede {
	margin: 0;
	font-size: var(--wp--custom--font-size--body-sm);
	line-height: 1.571;
	color: var(--wp--custom--color--text-secondary);
}

@media (min-width: 900px) {

	.kontakt-hero {
		gap: var(--wp--preset--spacing--24);
		padding: 80px var(--wp--custom--container--gutter-desktop) 48px;
	}

	.kontakt-hero__eyebrow {
		gap: var(--wp--preset--spacing--12);
		font-size: var(--wp--custom--font-size--body-3-xs);
	}

	.kontakt-hero__eyebrow-divider {
		width: 24px;
	}

	.kontakt-hero__row {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 40px;
	}

	.kontakt-hero__title {
		flex: 1 1 auto;
		min-width: 0;
		font-size: var(--wp--custom--font-size--display-2-xl);
		line-height: var(--wp--custom--line-height--display-lg);
	}

	.kontakt-hero__lede {
		flex: 0 1 460px;
		font-size: var(--wp--custom--font-size--body-sm);
		line-height: 1.571;
	}
}

/* -------------------------------------------------------------------------
 * Form + Info
 * ---------------------------------------------------------------------- */

.kontakt-main {
	max-width: none;
	padding: 0;
	background-color: var(--wp--custom--color--bg-primary);
}

.kontakt-main__row {
	display: flex;
	flex-direction: column;
}

/* Form */

.kontakt-form {
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--24) var(--wp--preset--spacing--32);
}

.kontakt-form__form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.kontakt-form__group {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
}

.kontakt-form__label {
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--custom--font-size--body-3-xs);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	color: var(--wp--custom--color--text-tertiary);
}

.kontakt-form__input {
	width: 100%;
	height: 48px;
	padding: 0 var(--wp--preset--spacing--16);
	border: 1px solid var(--wp--custom--color--stroke-warm);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--custom--color--bg-secondary);
	color: var(--wp--custom--color--text-primary);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--custom--font-size--body-xs);
	line-height: normal;
}

.kontakt-form__input--textarea {
	height: 120px;
	padding-top: var(--wp--preset--spacing--16);
	padding-bottom: var(--wp--preset--spacing--16);
	resize: vertical;
}

.kontakt-form__input::placeholder {
	color: var(--wp--custom--color--text-muted);
}

.kontakt-form__input:focus-visible {
	outline: 2px solid var(--wp--custom--color--brand-primary);
	outline-offset: -2px;
}

.kontakt-form__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.kontakt-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: var(--wp--preset--spacing--16);
	border: none;
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--custom--color--brand-primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--custom--font-size--body-sm);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-align: center;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.kontakt-form__submit:hover,
.kontakt-form__submit:focus-visible {
	background-color: var(--wp--custom--color--brand-dark);
}

.kontakt-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.kontakt-form__status {
	margin: calc(-1 * var(--wp--preset--spacing--8)) 0 0;
	font-size: var(--wp--custom--font-size--body-xs);
	color: var(--wp--custom--color--text-secondary);
}

.kontakt-form__status.is-error {
	color: var(--wp--custom--color--accent-crimson);
}

/* Info card */

.kontakt-info {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--32);
	padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--24) var(--wp--preset--spacing--40);
	background-color: var(--wp--custom--color--bg-secondary);
	border-top: 1px solid var(--wp--custom--color--stroke-muted);
	border-bottom: 1px solid var(--wp--custom--color--stroke-muted);
}

.kontakt-info__header {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
}

.kontakt-info__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 28px;
	line-height: 1.1;
	color: var(--wp--custom--color--text-primary);
}

.kontakt-info__divider {
	display: none;
}

.kontakt-info__list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	width: 100%;
}

.kontakt-info__item {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	width: 100%;
}

.kontakt-info__item-row {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--12);
	width: 100%;
}

.kontakt-info__icon {
	display: flex;
	flex-shrink: 0;
	color: var(--wp--custom--color--brand-primary);
}

.kontakt-info__icon .boxara-icon {
	width: 18px;
	height: 18px;
}

.kontakt-info__label {
	font-family: var(--wp--preset--font-family--label);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--ultra-wide);
	color: var(--wp--custom--color--text-muted);
}

.kontakt-info__value {
	margin: 0;
	font-size: var(--wp--custom--font-size--body-sm);
	line-height: 1.571;
	color: var(--wp--custom--color--text-primary);
}

.kontakt-info__value a {
	color: inherit;
	text-decoration: none;
}

.kontakt-info__value a:hover,
.kontakt-info__value a:focus-visible {
	text-decoration: underline;
}

.kontakt-info__social {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--16);
	width: 100%;
}

.kontakt-info__social-row {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
}

.kontakt-info__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--custom--color--stroke-warm);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--custom--color--text-primary);
	transition: border-color 0.18s ease, color 0.18s ease;
}

.kontakt-info__social-link .boxara-icon {
	width: 18px;
	height: 18px;
}

.kontakt-info__social-link:hover,
.kontakt-info__social-link:focus-visible {
	border-color: var(--wp--custom--color--brand-primary);
	color: var(--wp--custom--color--brand-primary);
}

@media (min-width: 900px) {

	.kontakt-main {
		padding: 24px var(--wp--custom--container--gutter-desktop) 80px;
	}

	.kontakt-main__row {
		flex-direction: row;
		align-items: flex-start;
		gap: 80px;
	}

	.kontakt-form {
		flex: 1 0 0;
		min-width: 0;
		padding: 0;
	}

	.kontakt-form__form {
		gap: 28px;
	}

	.kontakt-form__input {
		height: 52px;
	}

	.kontakt-form__submit {
		padding: 18px;
		font-size: var(--wp--custom--font-size--body-sm);
	}

	.kontakt-info {
		flex-shrink: 0;
		width: 480px;
		gap: 40px;
		padding: var(--wp--preset--spacing--48);
		border: 1px solid var(--wp--custom--color--stroke-muted);
		border-radius: var(--wp--custom--radius--md);
	}

	.kontakt-info__title {
		font-size: 40px;
	}

	.kontakt-info__divider {
		display: block;
		width: 40px;
		height: 1px;
		background-color: var(--wp--custom--color--brand-primary);
	}
}

/* -------------------------------------------------------------------------
 * Location + Store
 * ---------------------------------------------------------------------- */

.kontakt-location {
	display: flex;
	flex-direction: column;
	max-width: none;
	padding: 0;
	background-color: var(--wp--custom--color--bg-primary);
}

.kontakt-location__row {
	display: flex;
	flex-direction: column;
}

.kontakt-location__col {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--24);
}

.kontakt-location__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 28px;
	line-height: 1.1;
	color: var(--wp--custom--color--text-primary);
}

.kontakt-location__map-card,
.kontakt-location__store-card {
	position: relative;
	height: 220px;
	overflow: hidden;
	border: 1px solid var(--wp--custom--color--stroke-warm);
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--custom--color--bg-secondary);
}

.kontakt-location__map-image,
.kontakt-location__store-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kontakt-location__map-image {
	/* The source graphic's title label sits top-left; a centered crop clips
	   it, so bias the crop left to keep "Belgrade City Center" readable. */
	object-position: 10% 50%;
}

.kontakt-location__map-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	transform: translate(-50%, -50%);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--custom--color--brand-primary);
	box-shadow: 0 6px 7px rgba(0, 0, 0, 0.4);
	color: var(--wp--preset--color--white);
}

.kontakt-location__map-marker .boxara-icon {
	width: 16px;
	height: 16px;
}

.kontakt-location__map-overlay {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--12);
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: var(--wp--preset--spacing--16);
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
}

.kontakt-location__map-address {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	min-width: 0;
}

.kontakt-location__map-label {
	font-family: var(--wp--preset--font-family--label);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--ultra-wide);
	color: var(--wp--custom--color--text-muted);
}

.kontakt-location__map-value {
	margin: 0;
	font-size: var(--wp--custom--font-size--body-xs);
	color: var(--wp--custom--color--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kontakt-location__map-cta {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	flex-shrink: 0;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--custom--color--brand-primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--label);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.18s ease;
}

.kontakt-location__map-cta .boxara-icon {
	width: 16px;
	height: 16px;
}

.kontakt-location__map-cta:hover,
.kontakt-location__map-cta:focus-visible {
	background-color: var(--wp--custom--color--brand-dark);
}

.kontakt-location__store-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0;
	color: var(--wp--custom--color--stroke-warm);
}

.kontakt-location__store-placeholder .boxara-icon {
	width: 48px;
	height: 48px;
}

.kontakt-location__store-caption {
	margin: 0;
	font-size: var(--wp--custom--font-size--body-sm);
	line-height: 1.571;
	color: var(--wp--custom--color--text-secondary);
}

@media (min-width: 900px) {

	.kontakt-location {
		border-top: 1px solid var(--wp--custom--color--stroke-muted);
		border-bottom: 1px solid var(--wp--custom--color--stroke-muted);
		background-color: var(--wp--custom--color--bg-sunken);
	}

	.kontakt-location__row {
		flex-direction: row;
		gap: 80px;
		padding: 64px var(--wp--custom--container--gutter-desktop) 80px;
	}

	.kontakt-location__col {
		flex: 1 0 0;
		min-width: 0;
		gap: var(--wp--preset--spacing--24);
		padding: 0;
	}

	.kontakt-location__title {
		font-size: 40px;
	}

	.kontakt-location__map-card,
	.kontakt-location__store-card {
		height: 360px;
	}

	.kontakt-location__store-caption {
		display: none;
	}
}
