/*
Theme Name: BlinkWorx
Description: Standalone BlinkWorx block theme. No Divi dependency.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: blinkworx
*/
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }

.bw-prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 64px 24px 96px;
}
.bw-prose h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; margin: 0 0 16px; }
.bw-prose .wp-block-post-featured-image { margin: 24px 0; }
.bw-prose .wp-block-post-featured-image img { border-radius: 12px; }
.bw-prose a { text-underline-offset: 3px; }
.bw-meta { color: #3A4C6E; font-size: 15px; }

.bw-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px 96px;
}
.bw-archive h1 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 32px; }
.bw-archive .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bw-archive .wp-block-post-template > li {
	margin: 0;
	border: 1px solid #DCE4F0;
	border-radius: 12px;
	overflow: hidden;
	background: #FFFFFF;
}
.bw-archive .wp-block-post-featured-image { margin: 0; }
.bw-archive .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}
.bw-archive .wp-block-post-title {
	font-size: 20px;
	line-height: 1.25;
	margin: 16px 20px 8px;
}
.bw-archive .wp-block-post-title a { text-decoration: none; color: inherit; }
.bw-archive .wp-block-post-excerpt { margin: 0 20px 20px; font-size: 16px; color: #3A4C6E; }
.bw-archive .wp-block-post-excerpt__more-text { display: none; }
.bw-archive .wp-block-query-pagination { margin-top: 40px; gap: 16px; }

@media (max-width: 781px) {
	.bw-archive .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
	.bw-prose, .bw-archive { padding: 48px 20px 64px; }
}
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
.bw-page .bw-faq details + details { margin-block-start: 0; }

.bw-page .wp-block-latest-posts.is-grid { gap: 24px; padding: 0; list-style: none; }
.bw-page .wp-block-latest-posts__featured-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }

#gt_float_wrapper {
	top: auto !important;
	bottom: 16px !important;
	left: 16px !important;
	z-index: 9990 !important;
}

.whatsapp_float_btn {
	position: fixed;
	right: 16px;
	bottom: 92px;
	z-index: 9980;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #25D366;
	box-shadow: 0 6px 16px rgba(5, 28, 69, .24);
	transition: transform .2s ease;
}
.whatsapp_float_btn:hover { transform: translateY(-2px); }
.whatsapp_float_btn:focus-visible { outline: 2px solid #038EFB; outline-offset: 3px; }

.bw-page .wp-block-latest-posts.is-grid li {
	margin-right: 0;
}
@media (max-width: 599px) {
	.bw-page .wp-block-latest-posts.is-grid li { width: 100%; }
}

@media (max-width: 781px) {
	.frm_forms input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
	.frm_forms textarea,
	.frm_forms select,
	.frm_forms .frm_primary_label {
		font-size: 16px !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.whatsapp_float_btn { transition: none; }
}
/* phone fields */
@media (max-width: 781px) {
	.frm_forms input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
	.frm_forms select,
	.frm_forms .frm_button_submit {
		min-height: 44px;
	}
}

/* Sits above the chatbot greeting bubble. */
.whatsapp_float_btn { bottom: 184px; }
