/*
Theme Name: BM Construction
Theme URI: https://bm-construction.in
Author: BM Construction
Author URI: https://bm-construction.in
Description: Custom WordPress theme for BM Construction, built from the BM Construction HTML template. Dynamic home page powered by custom post types, ACF and the Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bm-construction
*/

/*
 * The real styling lives in /assets/css/main.css (and the other vendor
 * stylesheets), which are enqueued from inc/enqueue.php.
 * This file only carries the theme header required by WordPress plus a few
 * small overrides for WP-generated markup.
 */

/* WordPress core alignment / caption helpers */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; }
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* ----------------------------------------------------------------------------
 * Blog detail (single.php) — share row, tags, author box & related posts.
 * These blocks aren't covered by main.css, so the on-brand styling lives here.
 * -------------------------------------------------------------------------- */
.tp-postbox-details-share {
	gap: 15px 25px;
	flex-wrap: wrap;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	margin-bottom: 40px;
}
.tp-postbox-details-tags,
.tp-postbox-details-social {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.tp-postbox-details-tags-title,
.tp-postbox-details-social-title {
	font-weight: 600;
	color: var(--tp-theme-color);
	margin-right: 4px;
}
.tp-postbox-details-tags a {
	display: inline-block;
	padding: 5px 16px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tp-theme-color);
	transition: 0.3s;
}
.tp-postbox-details-tags a:hover {
	background: var(--tp-secoundery-color);
	border-color: var(--tp-secoundery-color);
	color: var(--tp-white-color);
}
.tp-postbox-details-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	color: var(--tp-theme-color);
	transition: 0.3s;
}
.tp-postbox-details-social a:hover {
	background: var(--tp-secoundery-color);
	border-color: var(--tp-secoundery-color);
	color: var(--tp-white-color);
	transform: translateY(-3px);
}

/* ----------------------------------------------------------------------------
 * Home gallery — expanding panels + full-screen lightbox.
 * -------------------------------------------------------------------------- */
.bmc-epanels {
	display: flex;
	gap: 16px;
	height: 540px;
}
.bmc-epanel {
	position: relative;
	flex: 1 1 0;
	min-width: 56px;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	background-size: cover;
	background-position: center;
	transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.bmc-epanel::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 55%);
	opacity: 0.55;
	transition: opacity 0.4s ease;
}
.bmc-epanel:hover,
.bmc-epanel:focus-visible,
.bmc-epanel.is-active {
	flex: 4 1 0;
}
.bmc-epanel:hover::after,
.bmc-epanel.is-active::after {
	opacity: 1;
}
.bmc-epanel-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 34px;
	color: var(--tp-white-color);
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.bmc-epanel:hover .bmc-epanel-content,
.bmc-epanel.is-active .bmc-epanel-content {
	opacity: 1;
	transform: none;
}
.bmc-epanel-title {
	color: var(--tp-white-color);
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 1.2;
}
.bmc-epanel-view {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.bmc-epanel-view svg {
	transition: transform 0.3s ease;
}
.bmc-epanel:hover .bmc-epanel-view svg,
.bmc-epanel.is-active .bmc-epanel-view svg {
	transform: rotate(0) scale(1.15);
}
@media (max-width: 991.98px) {
	.bmc-epanels { height: 460px; }
}
@media (max-width: 767.98px) {
	.bmc-epanels { flex-wrap: wrap; height: auto; }
	.bmc-epanel { flex: 1 1 calc(50% - 16px); height: 220px; }
	.bmc-epanel .bmc-epanel-content { opacity: 1; transform: none; padding: 20px; }
	.bmc-epanel-title { font-size: 20px; }
}

/* Full-screen lightbox slider */
.bmc-lb {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.94);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}
.bmc-lb.is-open {
	opacity: 1;
	visibility: visible;
}
.bmc-lb-swiper {
	width: 88%;
	max-width: 1120px;
}
.bmc-lb-swiper .swiper-slide {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.bmc-lb-swiper img {
	max-width: 100%;
	max-height: 80vh;
	border-radius: 14px;
	object-fit: contain;
}
.bmc-lb-caption {
	margin-top: 18px;
	color: var(--tp-white-color);
	font-weight: 500;
	font-size: 18px;
}
.bmc-lb-close {
	position: absolute;
	top: 26px;
	right: 32px;
	z-index: 2;
	width: 50px;
	height: 50px;
	line-height: 1;
	font-size: 28px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	color: var(--tp-white-color);
	cursor: pointer;
	transition: 0.3s;
}
.bmc-lb-close:hover {
	background: var(--tp-secoundery-color);
	border-color: var(--tp-secoundery-color);
}
.bmc-lb .swiper-button-prev,
.bmc-lb .swiper-button-next {
	color: var(--tp-white-color);
	transition: 0.3s;
}
.bmc-lb .swiper-button-prev:hover,
.bmc-lb .swiper-button-next:hover {
	color: var(--tp-secoundery-color);
}

/* White CTA button (.tp-btn-white): the base .tp-btn sets white text, and this
 * variant only changes the background to white — so the label was white-on-white
 * (invisible until hover). Give it dark text, like the theme's .tp-btn-border does. */
.tp-btn-white,
.tp-btn-white .tp-btn-text {
	color: var(--tp-theme-color);
}

/* Inline validation / error message shown above the enquiry & contact forms
 * (assets/js/bmc-property.js inserts a .bmc-form-error paragraph on failure). */
.bmc-form-error {
	margin: 0 0 18px;
	padding: 12px 18px;
	border-radius: 10px;
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #b3261e;
	font-size: 15px;
	font-weight: 500;
}

/* Sidebar recent-post thumbnail: fixed square so any image size stays tidy
 * (main.css leaves .tprecentpost__thumb unsized, which breaks with large images). */
.tprecentpost__thumb {
	flex: 0 0 auto;
	width: 85px;
	height: 85px;
}
.tprecentpost__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
