/*
Theme Name: Baltics Medical
Theme URI: https://balticsmedical.com/
Author: Baltics Medical
Description: Watercolour studio block theme for Baltics Medical. Content is edited as blocks; sections use bm-* classes defined here.
Version: 1.1.3
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: balticsmedical
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #EEECE8;
	color: #393D47;
	font-family: Poppins, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.wp-site-blocks { overflow: hidden; }
section[id], .bm-main [id] { scroll-margin-top: 16px; }
a, .wp-site-blocks a { color: #2F7F7B; }
a:hover, .wp-site-blocks a:hover { color: #1F5C59; }
.wp-site-blocks h1, .wp-site-blocks h2, .wp-site-blocks h3, .wp-site-blocks h4 { color: inherit; font-family: inherit; }
.wp-site-blocks h1, .wp-site-blocks h2, .wp-site-blocks h3, .wp-site-blocks h4,
.wp-site-blocks p, .wp-site-blocks figure { margin: 0; }
.wp-site-blocks figure.wp-block-image img { display: block; }
.bm-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 32px;
	padding-right: 32px;
	box-sizing: border-box;
}
.bm-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #2F7F7B;
}
.bm-h2 {
	font-size: 40px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
}
.bm-link a, a.bm-link { font-weight: 500; font-size: 15px; }
.bm-row-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}
.bm-stack-10 { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Header ---------- */
.bm-header {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
}
.bm-logo img { width: 160px; height: auto; }
.bm-nav .wp-block-navigation__container {
	background: #FFFFFF;
	border-radius: 999px;
	padding: 6px;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
}
.bm-nav .wp-block-navigation-item__content {
	color: #393D47;
	text-decoration: none;
	padding: 10px 18px;
	border-radius: 999px;
	display: block;
}
.bm-nav .wp-block-navigation-item__content:hover { color: #2F7F7B; }
.bm-nav .bm-nav-cta .wp-block-navigation-item__content {
	color: #FFFFFF;
	background: #2F7F7B;
	padding: 10px 20px;
}
.bm-nav .bm-nav-cta .wp-block-navigation-item__content:hover { background: #1F5C59; color: #FFFFFF; }
.bm-nav .wp-block-navigation__responsive-container-open {
	background: #FFFFFF;
	border-radius: 999px;
	padding: 10px;
}
.bm-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #EEECE8;
	padding: 32px;
}
.bm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	background: transparent;
	font-size: 20px;
	gap: 6px;
}
/* Mobile menu overlay */
.bm-nav .wp-block-navigation__responsive-container.is-menu-open { background: #EEECE8 !important; }
.bm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px !important; gap: 10px !important; }
.bm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 10px !important; }
.bm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 6px 0 !important; font-size: 24px; font-weight: 500; color: #393D47; }
.bm-nav .wp-block-navigation__responsive-container.is-menu-open .bm-nav-cta { margin-top: 14px; }
.bm-nav .wp-block-navigation__responsive-container.is-menu-open .bm-nav-cta .wp-block-navigation-item__content { padding: 12px 28px !important; color: #FFFFFF; background: #2F7F7B; border-radius: 999px; }

/* ---------- Hero ---------- */
.bm-hero { position: relative; }
.bm-hero .bm-hero-blob {
	position: absolute;
	right: 4%;
	top: -60px;
	width: 34%;
	max-width: 480px;
	min-width: 220px;
	z-index: 0;
}
.bm-hero .bm-hero-dot {
	position: absolute;
	left: 46%;
	bottom: 40px;
	width: 9%;
	min-width: 70px;
	z-index: 0;
}
.bm-hero .bm-hero-blob img, .bm-hero .bm-hero-dot img { width: 100%; height: auto; }
.bm-hero-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 96px 32px 140px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 32px;
	box-sizing: border-box;
}
.bm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-chip {
	background: #FFFFFF;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
}
.bm-h1 {
	font-weight: 600;
	font-size: clamp(42px, 6vw, 72px);
	line-height: 1.04;
	letter-spacing: -0.025em;
	max-width: 780px;
}
.bm-accent { color: #2F7F7B; }
.bm-lead {
	font-size: 19px;
	line-height: 1.65;
	font-weight: 300;
	max-width: 600px;
}
.bm-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.bm-actions .wp-block-button__link {
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	padding: 16px 28px;
	border-radius: 999px;
	line-height: 1.5;
}
.bm-btn-dark .wp-block-button__link { background: #393D47; color: #FFFFFF; }
.bm-btn-dark .wp-block-button__link:hover { background: #2F7F7B; color: #FFFFFF; }
.bm-btn-light .wp-block-button__link { background: #FFFFFF; color: #393D47; }
.bm-btn-light .wp-block-button__link:hover { color: #2F7F7B; }

/* ---------- About / focus ---------- */
.bm-about { background: #FFFFFF; border-radius: 48px 48px 0 0; }
.bm-about > .bm-inner {
	padding-top: 88px;
	padding-bottom: 88px;
	display: flex;
	flex-direction: column;
	gap: 44px;
}
.bm-focus {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	row-gap: 32px;
}
.bm-focus-item {
	border-top: 2px solid #70C0BD;
	padding: 22px 16px 0 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	position: relative;
}
.bm-focus-item::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	background: #70C0BD;
	box-shadow: 0 0 0 5px #FFFFFF;
}
.bm-focus-item.is-amber { border-top-color: #E3A25E; }
.bm-focus-item.is-amber::before { background: #E3A25E; }
.bm-about-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: baseline;
	justify-content: space-between;
}
.bm-about-text {
	flex: 1 1 520px;
	max-width: 720px;
	font-size: 16px;
	line-height: 1.75;
	font-weight: 300;
}

/* ---------- Activities (LinkedIn feed) ---------- */
.bm-activities { background: #FFFFFF; }
.bm-activities > .bm-inner {
	padding-top: 24px;
	padding-bottom: 96px;
	display: flex;
	flex-direction: column;
	gap: 36px;
}
.bm-feed .profeedwp-feed-loading,
.bm-feed .profeedwp-feed-error { color: #5B606B; font-size: 15px; }


/* LinkedIn feed: LinkedIn-style post cards, 3 per row */
.bm-feed .profeedwp-feed-posts.profeedwp-feed-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px !important;
}
.bm-feed .profeedwp-feed-post-link { text-decoration: none; color: #393D47; display: block; min-width: 0; }
.bm-feed .profeedwp-feed-post {
	background: #EEECE8 !important;
	border: 0 !important;
	border-radius: 28px !important;
	box-shadow: none !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	color: #393D47;
	transition: transform .2s ease;
}
.bm-feed .profeedwp-feed-post-link:hover .profeedwp-feed-post { transform: translateY(-3px); }
.bm-feed .profeedwp-feed-post-image { margin: 0 !important; border-radius: 0 !important; aspect-ratio: 4 / 3 !important; overflow: hidden; }
.bm-feed .profeedwp-feed-post-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; }
.bm-feed .profeedwp-feed-post-media-carousel,
.bm-feed .profeedwp-feed-post-media-track,
.bm-feed .profeedwp-feed-post-media-item { height: 100%; }
.bm-feed .profeedwp-feed-post-media-count,
.bm-feed .profeedwp-feed-post-media-arrow { display: none !important; }
.bm-feed .profeedwp-feed-post-content {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 10px;
	padding: 22px 24px 26px !important;
	flex: 1 1 auto;
}
.bm-feed .profeedwp-feed-post-meta, .bm-feed .profeedwp-feed-post-date {
	font-size: 13px !important;
	font-weight: 500;
	color: #2F7F7B !important;
	margin: 0 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.bm-feed .profeedwp-feed-post-text {
	display: -webkit-box !important;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px !important;
	line-height: 1.6 !important;
	font-weight: 300;
	color: #5B606B !important;
	margin: 0 !important;
}
.bm-feed .profeedwp-first-paragraph {
	display: inline !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #393D47 !important;
}
.bm-feed .profeedwp-feed-post-link:hover .profeedwp-first-paragraph { color: #2F7F7B !important; }
.bm-feed .profeedwp-feed-post-content { flex-direction: column-reverse !important; justify-content: flex-end !important; }
.bm-feed .profeedwp-feed-post-text { flex: 0 0 auto !important; }
/* Text-only posts (no image): teal highlight card */
.bm-feed .profeedwp-feed-post.profeedwp-feed-post--no-image { background: #2F7F7B !important; }
.bm-feed .profeedwp-feed-post--no-image .profeedwp-feed-post-content { padding: 30px 28px 34px !important; gap: 14px; }
.bm-feed .profeedwp-feed-post--no-image .profeedwp-feed-post-text {
	-webkit-line-clamp: 7;
	font-size: 19px !important;
	line-height: 1.45 !important;
	font-weight: 500;
	color: #FFFFFF !important;
}
.bm-feed .profeedwp-feed-post--no-image .profeedwp-first-paragraph { color: #FFFFFF !important; font-size: 19px !important; }
.bm-feed .profeedwp-feed-post--no-image .profeedwp-feed-post-date,
.bm-feed .profeedwp-feed-post--no-image .profeedwp-feed-post-meta { color: #CFE6E3 !important; }
.bm-feed .profeedwp-feed-post-link:hover .profeedwp-feed-post--no-image { background: #286E6A !important; }
.bm-feed-more { justify-content: center; }

/* ---------- Partners ---------- */
.bm-partners { position: relative; }
.bm-partners .bm-partners-blob {
	position: absolute;
	left: -140px;
	top: 40px;
	width: 360px;
	opacity: 0.9;
}
.bm-partners .bm-partners-blob img { width: 100%; height: auto; }
.bm-partners > .bm-inner {
	padding-top: 96px;
	padding-bottom: 96px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 36px;
}
.bm-center-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.bm-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.bm-tile {
	flex: 0 1 220px;
	min-width: 0;
	background: #FFFFFF;
	border-radius: 20px;
	height: 104px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	box-sizing: border-box;
}
.bm-tile.is-wide { flex-basis: 456px; }
.bm-tile figure { display: flex; align-items: center; justify-content: center; max-width: 100%; }
.bm-tile img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.bm-tile.h-30 img { height: 30px; }
.bm-tile.h-36 img { height: 36px; }
.bm-tile.h-38 img { height: 38px; }
.bm-tile.h-42 img { height: 42px; }
.bm-tile.h-44 img { height: 44px; }
.bm-tile.h-50 img { height: 50px; }
.bm-tile.h-66 img { height: 66px; }
.bm-tile.h-72 img { height: 72px; }

/* ---------- Regions ---------- */
.bm-regions > .bm-inner { padding-bottom: 96px; }
.bm-regions-panel {
	background: #D1E4E4;
	border-radius: 40px;
	padding: 56px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}
.bm-regions-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bm-regions-text .bm-eyebrow { color: #1F5C59; }
.bm-regions-text p.bm-body { font-size: 16px; line-height: 1.75; font-weight: 300; }
.bm-regions-text .bm-link a { color: #1F5C59; }
.bm-regions-map { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.bm-regions-map img { width: 100%; max-width: 380px; height: auto; }

/* ---------- Team ---------- */
.bm-team { background: #FFFFFF; }
.bm-team > .bm-inner {
	padding-top: 88px;
	padding-bottom: 88px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.bm-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 32px 24px;
}
.bm-member { display: flex; flex-direction: column; gap: 14px; }
.bm-member figure { margin: 0; }
.bm-member img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 24px;
	background: #EEECE8;
	height: auto;
}
.bm-member-text { display: flex; flex-direction: column; gap: 4px; }
.bm-member-name { font-size: 16px; font-weight: 600; }
.bm-member-role { font-size: 13px; color: #5B606B; }

/* ---------- Contact ---------- */
.bm-contact > .bm-inner { padding-top: 0; padding-bottom: 64px; }
.bm-contact-card {
	background: #393D47;
	color: #FFFFFF;
	border-radius: 40px;
	padding: 64px 56px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: space-between;
	align-items: center;
}
.bm-contact-card .bm-contact-blob {
	position: absolute;
	right: -40px;
	bottom: -60px;
	width: 260px;
	opacity: 0.85;
}
.bm-contact-card .bm-contact-blob img { width: 100%; height: auto; }
.bm-contact-main { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.bm-contact-main h2 { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.bm-contact-main p { font-size: 17px; font-weight: 300; color: #D7DADF; }
.bm-contact-details { flex: 1 1 300px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; position: relative; }
.bm-contact-details a { text-decoration: none; }
.bm-contact-details .bm-c-mail a { color: #9FDAD7; font-weight: 500; }
.bm-contact-details .bm-c-phone a { color: #FFFFFF; }
.bm-contact-details .bm-c-addr { color: #D7DADF; font-weight: 300; }

.bm-talk > .bm-inner {
	max-width: 1240px;
	padding-top: 112px;
	padding-bottom: 112px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-end;
	justify-content: space-between;
}
.bm-talk h2 {
	flex: 1 1 520px;
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: clamp(56px, 7vw, 88px);
	line-height: 0.98;
}
.bm-talk h2 em { font-style: italic; color: #2F7F7B; }
.bm-talk-details { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.6; }
.bm-talk-details a { text-decoration: none; }
.bm-talk-details .bm-c-mail a { font-weight: 400; }
.bm-talk-details .bm-c-phone a { color: #2E323A; }
.bm-talk-details .bm-c-addr { color: #4A4F59; }

/* ---------- Footer ---------- */
.bm-footer {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 32px 40px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	font-size: 13px;
	color: #5B606B;
	box-sizing: border-box;
}
.bm-footer-links { display: flex; gap: 20px; }
.bm-footer a { color: #5B606B; }

/* ---------- Simple pages ---------- */
.bm-simple { max-width: 880px; margin: 0 auto; padding: 64px 32px 96px; box-sizing: border-box; }
.bm-simple h1 { font-size: 48px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; }
.bm-simple p { margin-bottom: 1em; line-height: 1.7; }

/* ---------- Medium screens ---------- */
@media (max-width: 1024px) and (min-width: 782px) {
	.bm-feed .profeedwp-feed-posts.profeedwp-feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
	.bm-feed .profeedwp-feed-post-content { padding: 18px 18px 22px !important; }
	.bm-feed .profeedwp-first-paragraph { font-size: 15px !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.bm-header { padding: 20px 16px; }
	.bm-inner, .bm-hero-inner { padding-left: 16px; padding-right: 16px; }
	.bm-hero-inner { padding-top: 56px; padding-bottom: 96px; }
	.bm-hero .bm-hero-blob { opacity: 0.35; top: -20px; }
	.bm-h2 { font-size: 32px; }
	.bm-about { border-radius: 32px 32px 0 0; }
	.bm-about > .bm-inner, .bm-team > .bm-inner { padding-top: 64px; padding-bottom: 64px; }
	.bm-partners > .bm-inner { padding-top: 64px; padding-bottom: 64px; }
	.bm-regions-panel { padding: 32px 24px; border-radius: 28px; }
	.bm-contact-card { padding: 40px 24px; border-radius: 28px; }
	.bm-contact-main h2 { font-size: 34px; }
	.bm-tile { flex-basis: 150px; height: 88px; }
	.bm-tile.is-wide { flex-basis: 100%; }
	.bm-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.bm-talk > .bm-inner { padding-top: 72px; padding-bottom: 72px; }
	.bm-footer { padding: 8px 16px 32px; }
	.bm-feed .profeedwp-feed-posts.profeedwp-feed-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
