/* Posts, search form, gallery — replacements for Elementor Pro widgets on balticmovers.com.
   Typography and colours follow the Pro settings (Elementor global variables where Pro used globals). */

/* ---------- Posts: grid ---------- */
.bm-posts {
	display: grid;
	grid-template-columns: repeat(var(--bm-cols, 3), minmax(0, 1fr));
	column-gap: 30px;
	row-gap: var(--bm-row-gap, 35px);
}
@media (max-width: 1024px) { .bm-posts { grid-template-columns: repeat(var(--bm-cols-t, 2), minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bm-posts { grid-template-columns: repeat(var(--bm-cols-m, 1), minmax(0, 1fr)); } }

.bm-posts .elementor-post { display: flex; flex-direction: column; min-width: 0; }
.bm-posts .elementor-post__thumbnail__link { display: block; position: relative; width: 100%; }
.bm-posts .elementor-post__thumbnail { position: relative; overflow: hidden; padding-bottom: var(--bm-ratio, 66%); }
.bm-posts .elementor-post__thumbnail img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none;
	transition: filter .3s;
}
.bm-posts .elementor-post__title { margin: 0; }
.bm-posts .elementor-post__title a { color: inherit; text-decoration: none; }
.bm-posts .elementor-post__excerpt p { margin: 0; }
.bm-posts .elementor-post__read-more { display: inline-block; text-decoration: none; }
.bm-posts .elementor-post__meta-sep { padding: 0 .4em; }

/* Classic: image left/right */
.bm-posts.elementor-posts--thumbnail-left .elementor-post,
.bm-posts.elementor-posts--thumbnail-right .elementor-post { flex-direction: row; align-items: flex-start; }
.bm-posts.elementor-posts--thumbnail-right .elementor-post { flex-direction: row-reverse; }
.bm-posts.elementor-posts--thumbnail-left .elementor-post__thumbnail__link,
.bm-posts.elementor-posts--thumbnail-right .elementor-post__thumbnail__link { flex: 0 0 var(--bm-img-w, 30%); width: var(--bm-img-w, 30%); }
.bm-posts.elementor-posts--thumbnail-left .elementor-post__thumbnail__link { margin-right: 20px; }
.bm-posts.elementor-posts--thumbnail-right .elementor-post__thumbnail__link { margin-left: 20px; }
.bm-posts.elementor-posts--thumbnail-top .elementor-post__thumbnail__link { margin-bottom: 20px; }
@media (max-width: 767px) {
	.bm-posts .elementor-post__thumbnail { padding-bottom: var(--bm-ratio-m, var(--bm-ratio, 66%)); }
	.bm-posts.elementor-posts--thumbnail-left .elementor-post__thumbnail__link,
	.bm-posts.elementor-posts--thumbnail-right .elementor-post__thumbnail__link { flex-basis: var(--bm-img-w-m, var(--bm-img-w)); width: var(--bm-img-w-m, var(--bm-img-w)); }
}

/* Classic typography — Pro used global "accent" (title) and "text" (meta); excerpt custom 10/400/1.5. Fallbacks = Pro custom values. */
.bm-posts.elementor-posts--skin-classic .elementor-post__title {
	font-family: "Fira Sans", sans-serif; font-size: 16px; font-weight: 500; line-height: 1.2;
	color: var(--e-global-color-cd524e5, #840612); margin-bottom: 6px;
}
.bm-posts.elementor-posts--skin-classic .elementor-post__meta-data {
	font-family: "Fira Sans", sans-serif; font-size: 16px; line-height: 1.5; color: #adadad; margin-bottom: 6px;
}
.bm-posts.elementor-posts--skin-classic .elementor-post__excerpt { font-family: "Fira Sans", sans-serif; font-size: 10px; font-weight: 400; line-height: 1.5; color: #777; }
@media (max-width: 767px) {
	.bm-posts.elementor-posts--skin-classic .elementor-post__title { font-size: 18px; }
	.bm-posts.elementor-posts--skin-classic .elementor-post__meta-data,
	.bm-posts.elementor-posts--skin-classic .elementor-post__excerpt { font-size: 14px; }
}

/* Cards */
.bm-posts.elementor-posts--skin-cards .elementor-post__card {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: #fff; border-radius: var(--bm-card-radius, 0); overflow: hidden;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .15);
	transition: box-shadow .25s;
}
.bm-posts.elementor-posts--skin-cards .elementor-post__card:hover { box-shadow: 0 0 30px 0 rgba(0, 0, 0, .15); }
.bm-posts.elementor-posts--skin-cards .elementor-post__thumbnail__link { margin-bottom: 20px; }
.bm-posts.elementor-posts--skin-cards .elementor-post__text { flex-grow: 1; padding: 0 var(--bm-card-pad, 30px); margin-top: 20px; margin-bottom: 20px; }
.bm-posts.elementor-posts--skin-cards .elementor-post__title {
	font-family: "Fira Sans", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; text-transform: capitalize;
	color: var(--e-global-color-cd524e5, #840612);
	margin-bottom: 25px;
}
.bm-posts.elementor-posts--skin-cards .elementor-post__excerpt {
	font-family: "Fira Sans", sans-serif; font-size: 14px; line-height: 1.6;
	color: var(--e-global-color-674ca47, #1B1D20); margin-bottom: 25px;
}
.bm-posts.elementor-posts--skin-cards .elementor-post__read-more {
	font-family: "Fira Sans", sans-serif; font-size: 16px; font-weight: 600; line-height: 1; text-transform: uppercase;
	color: var(--e-global-color-ce41f71, #FC9922);
}
.bm-posts.elementor-posts--skin-cards .elementor-post__meta-data {
	border-top: 1px solid #eaeaea; padding: 15px var(--bm-card-pad, 30px);
	font-family: "Fira Sans", sans-serif; font-size: 16px; line-height: 1.5;
	color: var(--e-global-color-674ca47, #1B1D20);
}
.bm-posts.elementor-posts--skin-cards .elementor-post__badge {
	position: absolute; top: 0; left: 0; margin: 20px;
	background: var(--e-global-color-ce41f71, #FC9922); color: #fff;
	font-size: 12px; font-weight: 400; line-height: 1; letter-spacing: .5px;
	padding: .6em 1.2em; border-radius: 999px; text-transform: uppercase;
}
.bm-posts.elementor-posts--align-center .elementor-post__text,
.bm-posts.elementor-posts--align-center .elementor-post__meta-data { text-align: center; }
.bm-posts.elementor-posts--align-right .elementor-post__text,
.bm-posts.elementor-posts--align-right .elementor-post__meta-data { text-align: right; }
@media (max-width: 1024px) { .bm-posts.elementor-posts--skin-cards .elementor-post__read-more { font-size: 17px; } }
@media (max-width: 767px) {
	.bm-posts.elementor-posts--skin-cards .elementor-post__title { font-size: 16px; }
	.bm-posts.elementor-posts--skin-cards .elementor-post__read-more,
	.bm-posts.elementor-posts--skin-cards .elementor-post__meta-data { font-size: 14px; }
}

/* ---------- Search form ---------- */
.bm-search-form .elementor-search-form__container {
	display: flex; align-items: stretch; overflow: hidden;
	min-height: 50px; border-radius: 5px;
	background: var(--e-global-color-802eac3, #fff);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.bm-search-form .elementor-search-form__input {
	flex: 1 1 auto; min-width: 0; margin: 0; border: 0 !important; outline: 0; box-shadow: none;
	background: transparent !important; padding: 0 16px; border-radius: 0;
	font-family: var(--e-global-typography-text-font-family, "Fira Sans"), sans-serif;
	font-size: var(--e-global-typography-text-font-size, 16px);
	color: var(--e-global-color-674ca47, #1B1D20);
}
.bm-search-form .elementor-search-form__container:focus-within { box-shadow: inset 0 0 0 2px var(--e-global-color-ce41f71, #FC9922); }
.bm-search-form button.elementor-search-form__submit {
	all: unset; box-sizing: border-box;
	display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
	min-width: 50px; padding: 0 14px; cursor: pointer;
	background-color: var(--e-global-color-ce41f71, #FC9922); color: #fff; font-size: 16px;
}
.bm-search-form button.elementor-search-form__submit:hover { filter: brightness(.92); }
.bm-search-form button.elementor-search-form__submit:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.bm-search-form .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Gallery ---------- */
.bm-gallery.bm-gallery--grid {
	display: grid; grid-template-columns: repeat(var(--bm-cols, 4), minmax(0, 1fr)); gap: var(--bm-gap, 10px);
}
.bm-gallery.bm-gallery--grid .bm-gallery__item { display: block; aspect-ratio: var(--bm-ratio, 3 / 2); overflow: hidden; border-radius: var(--bm-radius, 0); }
.bm-gallery.bm-gallery--grid .bm-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bm-gallery.bm-gallery--grid a.bm-gallery__item:hover .bm-gallery__img { transform: scale(1.04); }
.bm-gallery.bm-gallery--masonry { columns: var(--bm-cols, 4); column-gap: var(--bm-gap, 10px); }
.bm-gallery.bm-gallery--masonry .bm-gallery__item { display: block; margin-bottom: var(--bm-gap, 10px); break-inside: avoid; border-radius: var(--bm-radius, 0); overflow: hidden; }
.bm-gallery.bm-gallery--masonry .bm-gallery__img { width: 100%; height: auto; display: block; }
/* Justified: rows of equal height, each image keeps its proportions (--bm-ar = width/height) */
.bm-gallery.bm-gallery--justified { display: flex; flex-wrap: wrap; gap: var(--bm-gap, 10px); --bm-rh: var(--bm-row-h, 200px); }
.bm-gallery.bm-gallery--justified::after { content: ""; flex-grow: 999999; }
.bm-gallery.bm-gallery--justified .bm-gallery__item {
	display: block; position: relative; overflow: hidden; border-radius: var(--bm-radius, 0);
	flex-grow: calc(var(--bm-ar, 1.5) * 100); flex-basis: calc(var(--bm-rh) * var(--bm-ar, 1.5));
	height: var(--bm-rh); min-width: 0;
}
.bm-gallery.bm-gallery--justified .bm-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bm-gallery.bm-gallery--justified a.bm-gallery__item:hover .bm-gallery__img { transform: scale(1.04); }
@media (max-width: 1024px) { .bm-gallery.bm-gallery--justified { --bm-rh: var(--bm-row-h-t, 150px); gap: var(--bm-gap-t, var(--bm-gap)); } }
@media (max-width: 767px)  { .bm-gallery.bm-gallery--justified { --bm-rh: var(--bm-row-h-m, 150px); gap: var(--bm-gap-m, var(--bm-gap)); } }
@media (max-width: 1024px) {
	.bm-gallery.bm-gallery--grid { grid-template-columns: repeat(var(--bm-cols-t, 2), minmax(0, 1fr)); gap: var(--bm-gap-t, var(--bm-gap)); }
	.bm-gallery.bm-gallery--masonry { columns: var(--bm-cols-t, 2); }
}
@media (max-width: 767px) {
	.bm-gallery.bm-gallery--grid { grid-template-columns: repeat(var(--bm-cols-m, 1), minmax(0, 1fr)); gap: var(--bm-gap-m, var(--bm-gap)); }
	.bm-gallery.bm-gallery--masonry { columns: var(--bm-cols-m, 1); }
}
@media (prefers-reduced-motion: reduce) { .bm-gallery .bm-gallery__img { transition: none; } }

/* ---------- Single post: post info ---------- */
.bm-post-info { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.bm-post-info .elementor-icon-list-item { position: relative; display: flex; align-items: center; }
.bm-post-info .elementor-icon-list-icon { display: inline-flex; justify-content: center; }
.bm-post-info .elementor-icon-list-text { font-family: var(--e-global-typography-text-font-family, "Fira Sans"), sans-serif; font-size: var(--e-global-typography-text-font-size, 16px); line-height: var(--e-global-typography-text-line-height, 1.5); }
.bm-post-info--divider .elementor-icon-list-item:not(:last-child)::after {
	content: ""; position: absolute; top: 50%; transform: translateY(-50%); height: 60%;
	border-left: 1px solid currentColor; border-color: var(--e-global-color-674ca47, #1B1D20);
}

/* ---------- Single post: author box ---------- */
.bm-author-box { display: flex; align-items: center; gap: 20px; }
.bm-author-box--above { flex-direction: column; text-align: center; }
.bm-author-box--right { flex-direction: row-reverse; text-align: right; }
.bm-author-box .elementor-author-box__avatar { flex: 0 0 auto; }
.bm-author-box .elementor-author-box__avatar img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; display: block; }
.bm-author-box .elementor-author-box__name { margin: 0 0 6px; }
.bm-author-box .elementor-author-box__bio p:last-child { margin-bottom: 0; }
.bm-author-box .elementor-author-box__button { display: inline-block; margin-top: 12px; padding: 8px 18px; border: 2px solid currentColor; border-radius: 5px; text-decoration: none; }

/* ---------- Single post: previous / next ---------- */
.bm-post-navigation { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.bm-post-navigation .elementor-post-navigation__link { flex: 1 1 50%; min-width: 0; }
.bm-post-navigation .elementor-post-navigation__next { text-align: right; }
.bm-post-navigation .elementor-post-navigation__link a { display: inline-flex; align-items: center; text-decoration: none; max-width: 100%; }
.bm-post-navigation .post-navigation__arrow-wrapper { display: inline-flex; line-height: 1; }
.bm-post-navigation .post-navigation__arrow-prev { padding-right: 10px; }
.bm-post-navigation .post-navigation__arrow-next { padding-left: 10px; }
.bm-post-navigation [class*="elementor-post-navigation__link__"] { display: flex; flex-direction: column; min-width: 0; }
.bm-post-navigation [class*="--label"] {
	text-transform: uppercase;
	font-family: var(--e-global-typography-text-font-family, "Fira Sans"), sans-serif;
	font-size: var(--e-global-typography-text-font-size, 16px);
	color: var(--e-global-color-ce41f71, #FC9922);
}
.bm-post-navigation [class*="--title"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Contact form (Pro form settings: 50% fields, gaps 16/13, #F4F4F4 fields, no border, red button) ---------- */
.bm-form { --bm-col-gap: 16px; --bm-row-gap: 13px; }
.bm-form__fields { display: flex; flex-wrap: wrap; margin: 0 calc(var(--bm-col-gap) / -2) calc(var(--bm-row-gap) * -1); }
.bm-form__group { box-sizing: border-box; padding: 0 calc(var(--bm-col-gap) / 2); margin-bottom: var(--bm-row-gap); flex: 0 0 100%; }
.bm-form__group--50 { flex-basis: 50%; }
.bm-form__group--33 { flex-basis: 33.333%; }
@media (max-width: 767px) { .bm-form__group--50, .bm-form__group--33 { flex-basis: 100%; } }
.bm-form .elementor-field {
	width: 100%; box-sizing: border-box; margin: 0;
	background-color: #F4F4F4; border: 0; border-radius: 3px; box-shadow: none;
	font-family: "Fira Sans", sans-serif; font-size: 16px; line-height: 1.5; color: var(--e-global-color-674ca47, #1B1D20);
}
.bm-form input.elementor-field { min-height: 59px; padding: 12px 20px; }
.bm-form textarea.elementor-field { padding: 15px 20px; resize: vertical; }
.bm-form .elementor-field:focus { outline: 2px solid var(--e-global-color-ce41f71, #FC9922); outline-offset: 0; }
.bm-form .elementor-field[aria-invalid="true"] { outline: 2px solid #c0392b; }
.bm-form .bm-form__submit {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 30px; border: 0; border-radius: 3px; cursor: pointer;
	background-color: var(--e-global-color-cd524e5, #840612); color: #fff;
	font-family: "Fira Sans", sans-serif; font-size: 16px; font-weight: 500; line-height: 1;
}
.bm-form .bm-form__submit:hover { filter: brightness(1.12); }
.bm-form .bm-form__submit[disabled] { opacity: .6; cursor: wait; }
.bm-form__message { margin-top: 15px; padding: 12px 16px; border-radius: 3px; font-size: 15px; }
.bm-form__message.is-success { background: #e7f6ec; color: #1e6b37; }
.bm-form__message.is-error { background: #fdecea; color: #a12a1e; }
.bm-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-form .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* The Elementor kit global form-field style (bold) is more specific than the widget CSS;
   Pro widgets overrode it with their own typography. Keep text and placeholders regular. */
.bm-form .elementor-field,
.bm-form .elementor-field::placeholder,
.bm-search-form .elementor-search-form__input,
.bm-search-form .elementor-search-form__input::placeholder {
	font-weight: 400 !important;
	font-family: "Fira Sans", sans-serif !important;
}
