/*
 * Kontakt — page-contact.php
 *
 * Loaded after services.css so the layout primitives (.service-hero,
 * .service-form__body) and the overlay-header pattern are already in
 * scope. This file owns:
 *   - overlay-header keyed to .page-template-page-contact,
 *   - hero typography tuned to Figma (40px Tahoma Bold uppercase),
 *   - 2-column branches + form section (no sidebar),
 *   - country sections (light = white panel + image,
 *     dark = red panel + inset branches).
 *
 * Maps Figma frame `126:2` "KONTAKT".
 */

.page-template-page-contact .site-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10;
}

.page-template-page-contact .site-main {
	margin-top: 0;
	overflow-x: clip;
}

/* Hero --------------------------------------------------------------- */
.contact-hero {
	min-height: 470px;
	padding: 180px 0 80px;
}

.contact-hero__title {
	max-width: 760px;
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 40px;
	line-height: 53px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
}

.contact-hero__text {
	max-width: 558px;
	margin: 24px 0 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	letter-spacing: 0.5px;
	color: #fff;
}

.contact-hero .cta {
	margin-top: 32px;
}

/* Branches + form section ------------------------------------------- */
.contact-form-section {
	padding: 64px 0 80px;
	background: #fff;
}

.contact-form-section__row {
	row-gap: 48px;
}

.contact-form-section__heading {
	margin: 0 0 24px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 39px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #0a0a0a;
}

.contact-form-section__heading--form {
	margin-bottom: 16px;
}

/* Branches grid — nested 2-up inside the left half (col-lg-6). Matches
 * Figma: Beograd top-left, Niš top-right, Novi Sad bottom-left alone. */
.contact-branches {
	--bs-gutter-x: 16px;
	--bs-gutter-y: 36px;
}

.contact-branch {
	display: flex;
	flex-direction: column;
}

.contact-branch__title {
	margin: 0 0 12px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	line-height: 30px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #0a0a0a;
}

.contact-branch__contact {
	margin: 0 0 16px;
}

.contact-branch__contact dd {
	display: flex;
	flex-direction: column;
	margin: 0;
	color: #6a6a6a;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 18px;
	line-height: 26px;
}

.contact-branch__phone-link,
.contact-branch__email-link {
	color: #6a6a6a;
	text-decoration: none;
	transition: color 180ms ease;
}

.contact-branch__phone-link:hover,
.contact-branch__phone-link:focus,
.contact-branch__email-link:hover,
.contact-branch__email-link:focus {
	color: #bb2548;
}

.contact-branch__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 12px;
	margin-top: auto;
	color: #0a0a0a;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 180ms ease;
}

.contact-branch__link:hover,
.contact-branch__link:focus {
	color: #bb2548;
	text-decoration: none;
}

.contact-branch__link-icon {
	position: relative;
	display: block;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.contact-branch__link-icon::before,
.contact-branch__link-icon::after {
	position: absolute;
	background: currentColor;
	content: "";
}

.contact-branch__link-icon::before {
	top: 50%;
	left: 0;
	width: 15px;
	height: 1.5px;
	transform: translateY(-50%);
}

.contact-branch__link-icon::after {
	top: 0;
	left: 50%;
	width: 1.5px;
	height: 15px;
	transform: translateX(-50%);
}

/* Form — relies on .service-form__body grid + input styles from
 * services.css. Override the top spacing because there's no preceding
 * lead text here. */
.contact-form__body {
	margin-top: 0;
}

/* Country sections -------------------------------------------------- */
.contact-country {
	padding: 56px 0;
}

/* Two adjacent red panels sit 40px apart per Figma, instead of the
 * default 56+56=112px stack gap. Half-padding on each side keeps the
 * surrounding light/dark spacing untouched. */
.contact-country--dark:has(+ .contact-country--dark) {
	padding-bottom: 20px;
}

.contact-country--dark + .contact-country--dark {
	padding-top: 20px;
}

/* Last red panel before the footer sits 120px above it. */
.contact-country--dark:last-child {
	padding-bottom: 120px;
}

.contact-country--light {
	background: #fff;
}

.contact-country__panel {
	border-radius: 20px;
}

.contact-country--dark .contact-country__panel {
	padding: 50px 64px;
	background: #bb2548;
	color: #fff;
}

.contact-country__row {
	row-gap: 32px;
	align-items: flex-start;
}

.contact-country__title {
	margin: 0 0 24px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 39px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #0a0a0a;
}

.contact-country--dark .contact-country__title {
	color: #fff;
}

.contact-country__body {
	color: #424242;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
}

.contact-country--dark .contact-country__body {
	color: #fff;
}

.contact-country__body p {
	margin: 0 0 16px;
}

.contact-country__body p:last-child {
	margin-bottom: 0;
}

/* Light variant — image on the right */
.contact-country__aside--image {
	display: flex;
	justify-content: flex-end;
}

.contact-country__image {
	width: 100%;
	max-width: 472px;
	overflow: hidden;
	border-radius: 12px;
}

.contact-country__image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Dark variant — branch cards inside the red panel */
.contact-country__branches {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.contact-country-branch {
	display: flex;
	flex-direction: column;
}

.contact-country-branch__title {
	margin: 0 0 12px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	line-height: 30px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.contact-country-branch__contact {
	margin: 0 0 16px;
}

.contact-country-branch__contact dd {
	display: flex;
	flex-direction: column;
	margin: 0;
	color: #fff;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 18px;
	line-height: 26px;
}

.contact-country-branch__phone-link,
.contact-country-branch__email-link {
	color: #fff;
	text-decoration: none;
	transition: opacity 180ms ease;
}

.contact-country-branch__phone-link:hover,
.contact-country-branch__phone-link:focus,
.contact-country-branch__email-link:hover,
.contact-country-branch__email-link:focus {
	color: #fff;
	opacity: 0.85;
}

.contact-country-branch__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 12px;
	margin-top: auto;
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity 180ms ease;
}

.contact-country-branch__link:hover,
.contact-country-branch__link:focus {
	color: #fff;
	opacity: 0.85;
	text-decoration: none;
}

.contact-country-branch__link-icon {
	position: relative;
	display: block;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.contact-country-branch__link-icon::before,
.contact-country-branch__link-icon::after {
	position: absolute;
	background: currentColor;
	content: "";
}

.contact-country-branch__link-icon::before {
	top: 50%;
	left: 0;
	width: 15px;
	height: 1.5px;
	transform: translateY(-50%);
}

.contact-country-branch__link-icon::after {
	top: 0;
	left: 50%;
	width: 1.5px;
	height: 15px;
	transform: translateX(-50%);
}

/* Responsive -------------------------------------------------------- */
@media screen and (max-width: 1499px) {
	.contact-hero {
		min-height: 440px;
		padding: 170px 0 72px;
	}

	.contact-country--dark .contact-country__panel {
		padding: 44px 48px;
	}
}

@media screen and (max-width: 991px) {
	.contact-hero {
		min-height: 400px;
		padding: 160px 0 64px;
	}

	.contact-hero__title {
		font-size: 32px;
		line-height: 1.3;
		letter-spacing: 1.5px;
	}

	.contact-hero__text {
		font-size: 16px;
		line-height: 26px;
	}

	.contact-form-section {
		padding: 56px 0 64px;
	}

	.contact-form-section__heading {
		font-size: 24px;
		line-height: 1.3;
	}

	.contact-form-section__heading--form {
		margin-top: 8px;
	}

	.contact-country {
		padding: 40px 0;
	}

	.contact-country__title {
		font-size: 24px;
		line-height: 1.3;
	}

	.contact-country--dark .contact-country__panel {
		padding: 36px 32px;
	}

	.contact-country__aside--image {
		justify-content: center;
	}
}

@media screen and (max-width: 599px) {
	.contact-hero {
		min-height: 360px;
		padding: 140px 0 48px;
	}

	.contact-hero__title {
		font-size: 26px;
		line-height: 1.25;
	}

	.contact-hero__text {
		font-size: 15px;
		line-height: 24px;
	}

	.contact-form-section {
		padding: 40px 0 56px;
	}

	.contact-form-section__heading {
		font-size: 22px;
	}

	.contact-branches {
		--bs-gutter-y: 32px;
	}

	.contact-branch__title,
	.contact-country-branch__title {
		font-size: 16px;
		letter-spacing: 0.75px;
	}

	.contact-branch__contact dd,
	.contact-country-branch__contact dd {
		font-size: 16px;
	}

	.contact-country {
		padding: 32px 0;
	}

	.contact-country__title {
		font-size: 22px;
	}

	.contact-country--dark .contact-country__panel {
		padding: 28px 20px;
	}
}
