/*
Theme Name:   Meistarklase Child
Theme URI:    https://meistarklase.com
Description:  Kadence bērnu tēma vietnei meistarklase.com (migrācija no Wix). Visi pielāgojumi — CSS, patterns, functions.php — iet šeit, nevis pamattēmā.
Author:       Meistarklase
Template:     kadence
Version:      0.1.0
Text Domain:  meistarklase-child
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* === Pamata tipogrāfija (pārraksta Kadence noklusējumu) ===================== */
body,
.entry-content,
.content-container,
button,
input,
select,
textarea {
	font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
	font-size: 18px;
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-weight: 300;
	line-height: 1.1;
}

/* === Header: logo centrēts augšā, izvēlne centrēta zem (kā oriģinālā) ======= */
/* Paslēpjam vietnes nosaukuma tekstu blakus logo (oriģinālā tā nav) */
.site-branding .site-title,
.site-branding .site-title-wrap {
	display: none !important;
}

/* Logo izmērs */
.site-branding a.brand img,
.site-branding a.brand img.svg-logo-image {
	max-width: none;
	width: auto;
	max-height: 88px;
}

/* Desktop: logo augšā centrā, izvēlne centrēta zem tā */
@media (min-width: 1025px) {
	.site-main-header-wrap .site-header-row-container-inner {
		justify-content: center;
	}
	.site-main-header-wrap .site-header-row.site-header-row-has-sides {
		display: flex;
		flex-direction: column;
		align-items: center;
		row-gap: 0.85rem;
	}
	.site-main-header-wrap .site-header-main-section-left,
	.site-main-header-wrap .site-header-main-section-right {
		justify-content: center;
		width: auto;
	}
	.site-branding {
		text-align: center;
		justify-content: center;
	}
}

/* Galvenes soc.ikonas — augšā pa labi (absolūti, netraucē centrēto logo/izvēlni) */
.site-header-upper-inner-wrap { position: relative; }
.mk-header-social {
	display: flex;
	align-items: center;
	gap: 16px;
}
.mk-header-social a {
	display: inline-flex;
	color: #1a1a1a;
	transition: color 0.2s ease;
}
.mk-header-social a:hover { color: #aabcbf; }
.mk-header-social svg { width: 19px; height: 19px; fill: currentColor; }
@media (min-width: 1025px) {
	.mk-header-social {
		position: absolute;
		top: 50%;
		right: clamp(1rem, 3vw, 2.5rem);
		transform: translateY(-50%);
		z-index: 10;
	}
}
/* Mobilajā galvenes soc.ikonas paslēptas (paliek footerī), lai netraucē izvēlnes pogu */
@media (max-width: 1024px) {
	.mk-header-social { display: none; }
}

/* Mobilā galvene: logo precīzi centrā + 25% mazāks (izvēlnes poga paliek pa labi) */
@media (max-width: 1024px) {
	/* 25% mazāks logo (88px → 66px) */
	#mobile-header .site-branding a.brand img {
		max-height: 66px;
	}
	/* Logo centrā: rinda centrē saturu, poga absolūti pie labās malas */
	#mobile-header .site-main-header-inner-wrap {
		position: relative;
		justify-content: center;
	}
	#mobile-header .site-header-main-section-left {
		margin: 0;
		justify-content: center;
	}
	#mobile-header .site-header-main-section-right {
		position: absolute;
		top: 0;
		bottom: 0;
		right: 1rem;
		margin: 0;
		display: flex;
		align-items: center;
	}
}

/* === Parallax fiksētais fons =============================================== */
.wp-block-cover.has-parallax .wp-block-cover__image-background,
.wp-block-cover__image-background.has-parallax {
	background-attachment: fixed;
	background-size: cover;
	background-repeat: no-repeat;
}

/* Mobilajos fixed bg bieži lec — pārejam uz scroll */
@media (max-width: 781px) {
	.wp-block-cover.has-parallax .wp-block-cover__image-background,
	.wp-block-cover__image-background.has-parallax {
		background-attachment: scroll;
	}
}

/* Tukšā attēla josla starp teksta blokiem */
.mk-band .wp-block-cover__inner-container {
	min-height: 0;
}

/* === Navigācija — versāls, atstatumi (kā oriģinālā) ======================== */
.main-navigation .menu li a,
.header-navigation .menu li a {
	text-transform: uppercase;
	letter-spacing: 0;
	font-size: 18px;
}

/* === Visas lapas: paslēpjam Kadence lapas virsrakstu un kartes ietvaru ====== */
.page .entry-hero-container-inner,
.page .entry-hero,
.page .page-title,
.page header.entry-header,
.page .wp-block-post-title {
	display: none !important;
}

.page .content-area,
.page .site-main,
.page .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Noņemam Kadence satura "kartes" ietvaru (padding + ēna), lai pilnplatuma
   sekcijas ir no malas līdz malai kā oriģinālā */
.page .entry-content-wrap {
	padding: 0 !important;
}

.page .entry.single-entry,
.page .entry.loop-entry {
	box-shadow: none !important;
}

.page .entry-content > .alignfull:first-child {
	margin-top: 0;
}

/* === Pogas (melnas / outline, kā oriģinālā) ================================= */
.entry-content .wp-block-button__link {
	border-radius: 0;
	padding: 0.95em 2.6em;
	font-family: "Raleway", sans-serif;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 14px;
}

/* Melnā pildītā poga (UZZINI VAIRĀK) */
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: #000000;
	color: #ffffff;
	border: 1px solid #000000;
}

.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: #333333;
	border-color: #333333;
}

/* Outline poga (MEISTARKLASES) */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: #000000;
	border: 1px solid #000000;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #000000;
	color: #ffffff;
}

/* Outline poga uz tumša fona (hero/band) — balta */
.mk-hero .wp-block-button.is-style-outline .wp-block-button__link,
.mk-promo-cover .wp-block-button.is-style-outline .wp-block-button__link {
	color: #ffffff;
	border-color: #ffffff;
}

/* === Hero =================================================================== */
.mk-hero .wp-block-cover__inner-container {
	width: 100%;
}

.mk-hero__title {
	color: #ffffff !important;
	font-size: clamp(2.5rem, 7vw, 72px);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}

.mk-hero__subtitle {
	color: #ffffff;
	max-width: 40em;
	margin: 1.5rem auto 0;
	font-size: clamp(1rem, 1.6vw, 20px);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	line-height: 1.67;
}

/* Hero ievada teksts (Raleway, balts) */
.mk-hero__intro {
	color: #ffffff;
	max-width: 46em;
	margin: 1.75rem auto 0;
	font-size: clamp(1rem, 1.5vw, 20px);
	line-height: 1.67;
}

/* === Kopīgi sekciju elementi ================================================ */
.mk-section {
	padding-block: clamp(3rem, 7vw, 6rem);
	padding-inline: 1.25rem;
}

.mk-section-title {
	font-size: clamp(1.75rem, 4vw, 40px);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.35;
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 1.5rem;
}

.mk-section-intro {
	max-width: 46em;
	margin: 0 auto 2.5rem;
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.9;
}

/* Ievada teksts zem hero — Raleway 20px (kā oriģinālā) */
.mk-lead {
	font-family: "Raleway", sans-serif;
	font-size: clamp(1rem, 1.6vw, 20px);
	font-weight: 400;
	line-height: 1.67;
	margin: 0;
}

/* Pamatteksts sekcijās (Raleway) */
.mk-body {
	font-size: clamp(1rem, 1.4vw, 18px);
	line-height: 1.7;
	margin: 0;
}

/* === MEISTARKLASES rinda: attēls + pelēks panelis ========================== */
.mk-mc-row {
	align-items: stretch;
	gap: 0;
}

.mk-mc-imgcol {
	padding: 0;
	background: #e9e9e9;
}

.mk-mc-img {
	margin: 0;
	height: 440px; /* Oriģināla rindas augstums (Wix attēls 490×440) */
}

.mk-mc-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Sākumlapas MK attēls — slīdošais parallax fons (kā mk-band joslai) */
.mk-mc-img-bg {
	height: 100%;
	min-height: 360px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

@media (max-width: 781px) {
	.mk-mc-img-bg {
		background-attachment: scroll;
	}
}

.mk-mc-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: clamp(2rem, 4vw, 3.5rem);
	background-color: var(--wp--preset--color--surface, #f1f1f1) !important;
}

.mk-mc-text {
	font-size: clamp(1rem, 1.4vw, 18px);
	line-height: 1.7;
	margin: 0;
}

/* Meistarklašu lapas rindas (panelis pa kreisi + attēls pa labi) */
.mk-mc-page .mk-mc-row {
	margin-block: clamp(1.5rem, 3vw, 2.75rem);
}

.mk-mc-title {
	font-size: clamp(1.5rem, 2.6vw, 30px);
	font-weight: 300;
	letter-spacing: 0.03em;
	line-height: 1.3;
	text-transform: uppercase;
	margin: 0 0 2rem;
}

/* Footer josla (e-pasts, adrese, sociālie) */
/* Paslēpjam Kadence noklusējuma footeri (oriģinālā nav "WordPress Theme by Kadence WP") */
.site-footer {
	display: none !important;
}

.mk-site-footer {
	background: #ffffff;
}

.mk-footer-band {
	padding-block: clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

.mk-footer-email a {
	font-size: 1.05rem;
	text-decoration: none;
	color: #1a1a1a;
}

.mk-footer-email a:hover {
	text-decoration: underline;
}

.mk-footer-addr {
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-top: 0.4rem;
	color: #1a1a1a;
}

.mk-footer-social {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.mk-footer-social a {
	display: inline-flex;
	color: #000000;
	transition: opacity 0.2s ease;
}

.mk-footer-social a:hover {
	opacity: 0.6;
}

.mk-footer-social svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* === Privātais šefpavārs: fiksēts fons + centrēts puscaurspīdīgs panelis ==== */
.mk-priv {
	padding-block: clamp(3rem, 8vh, 7rem);
}

.mk-priv .wp-block-cover__inner-container {
	width: 100%;
}

.mk-priv-panel {
	background: rgba(241, 241, 241, 0.93);
	padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
	margin-inline: auto;
}

/* Cover bloks pēc noklusējuma liek baltu tekstu — uzspiežam tumšu panelī */
.mk-priv-panel,
.mk-priv-panel p,
.mk-priv-panel h1,
.mk-priv-panel h2,
.mk-priv-panel h3,
.mk-priv-panel span,
.mk-priv-panel li {
	color: #1a1a1a !important;
}

.mk-priv-panel .wp-block-button__link {
	color: #000000 !important;
}

/* Balts izcēlums aiz teksta (Wix highlight efekts) */
.mk-hl {
	background: #ffffff;
	padding: 0.05em 0.35em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.mk-priv-title {
	font-size: clamp(1.9rem, 4vw, 44px);
	font-weight: 300;
	line-height: 1.5;
	text-transform: uppercase;
	margin: 0 0 1.75rem;
}

.mk-priv-body {
	font-family: "Raleway", sans-serif;
	font-size: clamp(0.9rem, 1.4vw, 16px);
	letter-spacing: 0.06em;
	line-height: 1.9;
	text-transform: uppercase;
	margin: 0 0 1.25rem;
}

.mk-priv-howtitle {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 2rem 0 1.5rem;
	font-size: 0.95rem;
}

.mk-priv-steps {
	text-align: center;
}

.mk-priv-step {
	margin-bottom: 1.5rem;
}

.mk-priv-step-title {
	font-family: "Raleway", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 0.4rem;
}

.mk-priv-step p {
	font-size: clamp(0.9rem, 1.3vw, 16px);
	line-height: 1.7;
	margin: 0;
}

/* === Meistarklašu apakšlapas (detaļu lapas) ================================ */
.mk-detail-title {
	color: #ffffff !important;
	font-size: clamp(2rem, 5vw, 52px);
	font-weight: 300;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
}

.mk-detail {
	max-width: 100%;
}

.mk-detail-meta {
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.8;
	margin: 0 0 2rem;
}

.mk-detail-text {
	font-size: clamp(1rem, 1.5vw, 18px);
	line-height: 1.75;
	margin: 0 0 2.5rem;
}

.mk-detail-h {
	font-size: clamp(1.4rem, 2.4vw, 28px);
	font-weight: 300;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 2rem 0 1rem;
}

.mk-detail-list {
	list-style: none;
	padding: 0;
	margin: 0 auto 1rem;
	max-width: 30em;
	text-align: center;
	line-height: 2;
}

.mk-detail-list ul {
	list-style: none;
	padding: 0;
	margin: 0.25rem 0;
	font-size: 0.95em;
	color: #555;
}

.mk-detail-price {
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.7;
	margin: 0 0 0.75rem;
}

.mk-detail-note {
	font-size: 0.9rem;
	color: #777;
	max-width: 34em;
	margin: 0 auto 2.5rem;
	line-height: 1.6;
}

@media (max-width: 781px) {
	.mk-mc-row {
		flex-wrap: wrap;
	}
	.mk-mc-imgcol,
	.mk-mc-panel {
		flex-basis: 100% !important;
	}
	.mk-mc-img {
		height: 300px;
	}
}

/* === Promo sekcijas (teksts pārklāts uz attēla, kā oriģinālā) =============== */
.mk-promo-cover .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--global-content-width, 1170px);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

/* Kreisi līdzināts teksta bloks (promo) */
.mk-promo-cover .mk-promo-inner {
	max-width: 620px;
	text-align: left;
}

.mk-promo__title {
	color: #ffffff !important;
	font-size: clamp(2rem, 4.5vw, 50px);
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-transform: uppercase;
	margin: 0 0 1.25rem;
}

.mk-promo__text {
	color: #ffffff;
	margin: 0 0 2rem;
	font-size: clamp(1rem, 1.5vw, 20px);
	line-height: 1.67;
}

/* === Komandas režģis (9 kartītes) =========================================== */
.mk-team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem 2rem;
	margin: 0;
}

.mk-team-card {
	margin: 0;
	text-align: center;
}

.mk-team-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
	transition: filter 0.4s ease;
}

.mk-team-card:hover .mk-team-photo {
	filter: grayscale(0%);
}

.mk-team-card figcaption {
	padding-top: 1.5rem;
}

.mk-team-name {
	font-size: 1.6rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	margin: 0 0 0.4rem;
}

.mk-team-role {
	font-family: "Raleway", sans-serif;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-dark);
	margin: 0 0 0.75rem;
}

.mk-team-quote {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-style: italic;
	font-size: 1.1rem;
	line-height: 1.5;
	color: #404040;
	margin: 0;
}

/* === Partneri =============================================================== */
.mk-partners {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-block: 1rem;
}

/* Katrs logo vienādā "kartītē" → vizuāli samērīgi neatkarīgi no proporcijām
   un dažādajiem iebūvētajiem foniem. Oriģinālās krāsas saglabātas (nav filtru). */
.mk-partner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 200px;
	height: 120px;
	padding: 18px;
	background: #ffffff;
	border: 1px solid #ececec;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mk-partner:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.mk-partner img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* === Kontaktu josla (footer virs Kadence footer) =========================== */
.mk-contact .mk-section-title {
	color: #ffffff;
}

.mk-contact-info {
	text-align: center;
	font-size: 1.1rem;
	line-height: 2;
}

.mk-contact-info a {
	color: #ffffff;
	text-decoration: underline;
}

/* === Iekšējās lapas ========================================================= */
.mk-hero__title--md {
	font-size: clamp(2rem, 5vw, 4rem) !important;
	max-width: 16em;
	margin-inline: auto;
}

.mk-page-head {
	padding-block: clamp(2.5rem, 5vw, 4rem) 0;
}

/* "Kā tas notiek" soļi */
.mk-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	margin: 0 0 2.5rem;
	text-align: center;
}

.mk-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-family: "Cormorant Garamond", serif;
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.mk-step-title {
	font-size: 1.4rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}

.mk-step p {
	font-size: 0.95rem;
	line-height: 1.7;
}

/* === Galerija: masonry režģis + hover virsraksts + lightbox ================ */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Wix collage 1:1: joslas pa 3 (2 mazi + 1 liels 2×2), mainās A/B */
.mk-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mk-g-band {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 215px;
	gap: 12px;
}

.mk-g-band--a { grid-template-areas: "s1 big big" "s2 big big"; }
.mk-g-band--b { grid-template-areas: "big big s1" "big big s2"; }

.mk-g-band--a > :nth-child(1) { grid-area: s1; }
.mk-g-band--a > :nth-child(2) { grid-area: s2; }
.mk-g-band--a > :nth-child(3) { grid-area: big; }
.mk-g-band--b > :nth-child(1) { grid-area: big; }
.mk-g-band--b > :nth-child(2) { grid-area: s1; }
.mk-g-band--b > :nth-child(3) { grid-area: s2; }

@media (max-width: 600px) {
	.mk-g-band {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: none !important;
		grid-auto-rows: 150px;
	}
	.mk-g-band > * { grid-area: auto !important; }
}

.mk-g-item {
	display: block;
	position: relative;
	margin: 0;
	overflow: hidden;
	line-height: 0;
	cursor: pointer;
}

.mk-g-item img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.5s ease;
	aspect-ratio: auto !important;
}

.mk-g-item:hover img {
	transform: scale(1.05);
}

.mk-g-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.35s ease;
	padding: 1rem;
}

.mk-g-item:hover .mk-g-overlay {
	opacity: 1;
}

.mk-g-title {
	color: #ffffff;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 300;
	font-size: clamp(1.1rem, 2vw, 1.6rem);
	line-height: 1.3;
	text-align: center;
}

/* Virtuālā tūre */
.mk-tour-embed {
	aspect-ratio: 16 / 9;
	width: 100%;
}

.mk-tour-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Kontakti */
.mk-contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 3rem;
	margin-top: 2.5rem;
	text-align: left;
}

.mk-contact-details p {
	margin: 0 0 1.25rem;
	line-height: 1.5;
}

.mk-contact-details strong {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.8rem;
	color: var(--wp--preset--color--accent-dark);
}

.mk-contact-social a {
	margin-right: 1.25rem;
	text-decoration: underline;
}

.mk-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mk-contact-form label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.mk-contact-form input,
.mk-contact-form textarea {
	padding: 0.75rem 0.9rem;
	border: 1px solid #ccc;
	border-radius: 0;
	font-family: "Raleway", sans-serif;
	font-size: 1rem;
}

.mk-form-submit {
	align-self: start;
	border: none;
	border-radius: 0;
	background: var(--wp--preset--color--accent);
	color: #fff;
	padding: 0.85em 2.4em;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s ease;
}

.mk-form-submit:hover {
	background: var(--wp--preset--color--accent-dark);
}

.mk-form-note {
	font-size: 0.8rem;
	color: #888;
}

/* === Responsīvi ============================================================= */
@media (max-width: 1024px) {
	.mk-team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mk-steps {
		grid-template-columns: 1fr;
		max-width: 28rem;
		margin-inline: auto;
	}
	.mk-contact-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.mk-team-grid {
		grid-template-columns: 1fr;
		max-width: 22rem;
		margin-inline: auto;
	}
}


/* === Kontaktu lapa (2 kolonnas + apakšsvītras forma + karte) =============== */
/* margin-bottom:0 — WP kolonnu bloka noklusētā apakšējā atstarpe citādi caur sekciju
   (margin-collapse) atstumtu karti ~32px uz leju; mums attēlam jāsavienojas ar karti. */
.mk-contact-row { align-items: stretch; gap: 0; margin-bottom: 0 !important; }

/* Sekcijas apakšā NAV atstarpes — attēls (un forma) savienojas tieši ar karti,
   kā oriģinālā meistarklase.com. Augšējā atstarpe (zem izvēlnes) paliek.
   !important pārvar Kadence/WP bloku atstarpi (padding-bottom 20px + margin-bottom 32px). */
.mk-contact-page { padding-bottom: 0 !important; margin-bottom: 0 !important; }

.mk-contact-left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 4vw, 3.5rem);
}

.mk-contact-info-top { text-align: center; }
.mk-contact-email a,
.mk-contact-phone a { color: #1a1a1a; text-decoration: none; font-size: 1.05rem; }
.mk-contact-phone { margin-top: 0.25rem; }
.mk-contact-left .wp-block-social-links { justify-content: center; margin: 1rem 0 2.5rem; }

.mk-contact-form { display: flex; flex-direction: column; gap: 0; }
.mk-contact-form .mk-hp { display: none !important; }
.mk-contact-form input,
.mk-contact-form textarea {
	border: 0;
	border-bottom: 1px solid #cfcfcf;
	background: transparent;
	padding: 1rem 0.25rem;
	font-family: "Raleway", sans-serif;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	color: #1a1a1a;
}
.mk-contact-form input::placeholder,
.mk-contact-form textarea::placeholder {
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.82rem;
}
.mk-contact-form input:focus,
.mk-contact-form textarea:focus { outline: none; border-bottom-color: #1a1a1a; }
.mk-contact-form textarea { resize: vertical; min-height: 90px; }
.mk-contact-form .mk-form-submit {
	margin-top: 1.75rem;
	border: 0;
	background: #000000;
	color: #ffffff;
	padding: 1.1em;
	font-family: "Raleway", sans-serif;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.3s ease;
}
.mk-contact-form .mk-form-submit:hover { background: #333333; }

.mk-contact-imgcol { padding: 0; display: flex; }
/* Attēla kolonna izlaužas no 1240px konteinera līdz EKRĀNA labajai malai (full-bleed
   pa labi), kā oriģinālā meistarklase.com. flex-grow aizpilda atbrīvoto vietu, negatīvā
   margin-right izstiepj līdz viewport malai. !important pārvar WP core kolonnu flex
   utilītu. Tikai ≥782px (mobilajā kolonnas krītas vienā ailē). */
@media (min-width: 782px) {
	.mk-contact-imgcol {
		flex-grow: 1 !important;
		margin-right: calc(50% - 50vw) !important;
	}
}
/* Lodziņa augstums ~820px (kā oriģinālā ~840px dizaina augstums — gandrīz kvadrāts,
   NE izstiepts vertikāli kā agrāk 1142px, NE par zemu kā 635px). Platums = full-bleed
   līdz ekrāna malai. Forma blakus (kreisā kolonna) centrējas šajā augstumā, kā oriģinālā.
   display:flex uz kolonnas ļauj lodziņam izstiepties kolonnas pilnā augstumā. */
.mk-contact-img {
	position: relative;
	width: 100%;
	min-height: 820px;
	overflow: hidden;
}
/* Attēls augstāks par rāmi (125%) → mk-parallax.js var slīdināt (BgReveal efekts).
   Augstums vienlaikus nosaka tālummaiņu: mazāks % = vairāk redzams no ainas (zoom-out). */
.mk-reveal-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 125%;
	object-fit: cover;
	object-position: 50% 50%;
	will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
	.mk-reveal-img { height: 100%; transform: none !important; }
}

/* Karte pilnā ekrāna platumā (100vw, full-bleed), kā oriģinālā; augstums 420px. */
.mk-map-wrap {
	width: 100vw;
	max-width: 100vw;
	margin-top: 0 !important;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	line-height: 0;
	padding: 0;
}
.mk-map { line-height: 0; }
.mk-map iframe { display: block; width: 100%; height: 420px; border: 0; }

.mk-form-success {
	background: #eef6ee;
	border: 1px solid #cfe3cf;
	color: #2e5b2e;
	text-align: center;
	padding: 1rem;
	margin: 0 auto 1.5rem;
	max-width: 600px;
}

@media (max-width: 781px) {
	.mk-contact-row { flex-wrap: wrap; }
	.mk-contact-left, .mk-contact-imgcol { flex-basis: 100% !important; }
	/* Mobilajā attēls stiepjas pa visu platumu (full-bleed izlaušanās aktīva tikai ≥782px). */
	.mk-contact-imgcol { min-height: 340px; }
	.mk-contact-img { min-height: 340px; }
}
