/*
 * Biizline — WordPress compatibility layer.
 * Additions only: the design CSS stays untouched in theme.css / responsive.css.
 */

/* WordPress prints width/height attributes on images; keep the design's natural aspect ratio. */
img {
	height: auto;
}

/* Accessibility: skip link + screen-reader text (WordPress core pattern). */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #FFFFFF;
	clip: auto !important;
	clip-path: none;
	color: #0A0A0A;
	display: block;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* Sticky header and the mobile menu clear the admin bar for logged-in users. */
@media (min-width: 992px) {
	.admin-bar .site-header { top: 32px; }
}
@media (min-width: 783px) and (max-width: 991px) {
	body.admin-bar.menu-open .site-header { top: 32px; }
	body.admin-bar.menu-open .main-menu { top: calc(var(--header-h, 60px) + 32px); }
}
@media (min-width: 601px) and (max-width: 782px) {
	body.admin-bar.menu-open .site-header { top: 46px; }
	body.admin-bar.menu-open .main-menu { top: calc(var(--header-h, 60px) + 46px); }
}

/* Hero heading keeps the h1 look when an editor picks H2/H3 for SEO. */
h2.section-title,
h3.section-title,
h4.section-title {
	font-weight: 700;
	line-height: 1.12;
}
@media (min-width: 1200px) {
	h2.section-title,
	h3.section-title,
	h4.section-title { font-size: 52px; }
}

/* Optional links around images that the design renders bare. */
.mstore .store-link {
	display: inline;
	font-size: inherit;
	line-height: inherit;
}
.mstore .store-link + .store-link img { margin: 0; }
.logo-box a { display: block; }

/* ACF Section Settings. */
.bz-has-overlay { position: relative; }
.bz-section-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}
.bz-has-overlay > :not(.bz-section-overlay) {
	position: relative;
	z-index: 1;
}
.bz-parallax { background-attachment: fixed; }
.container.bz-container-full { max-width: none; width: 100%; }
.container.bz-container-wide { max-width: 1400px; }
.container.bz-container-narrow { max-width: 900px; }
.bz-scheme-light,
.bz-scheme-light :is(h1, h2, h3, h4, h5, h6, p, li, .h2-title, .h3-title, .small-title, .name) { color: #FFFFFF; }
.bz-scheme-dark,
.bz-scheme-dark :is(h1, h2, h3, h4, h5, h6, p, li, .h2-title, .h3-title, .small-title, .name) { color: #0A0A0A; }
@media (min-width: 992px) {
	.bz-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
	.bz-hide-tablet { display: none !important; }
	.bz-parallax { background-attachment: scroll; }
}
@media (max-width: 767px) {
	.bz-hide-mobile { display: none !important; }
	.bz-parallax { background-attachment: scroll; }
}
.bz-js .bz-anim {
	opacity: 0;
	transition-property: opacity, transform;
	transition-duration: .7s;
	transition-timing-function: ease;
}
.bz-js .bz-anim[data-bz-anim="slide-up"] { transform: translateY(40px); }
.bz-js .bz-anim[data-bz-anim="zoom-in"] { transform: scale(.94); }
.bz-js .bz-anim.bz-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.bz-js .bz-anim { opacity: 1; transform: none; transition: none; }
}

/* Block-built pages: core blocks placed between sections get the design's container width. */
.bz-blocks > :not(section):not(.outer-container) {
	max-width: 1272px;
	width: 95%;
	padding-left: 16px;
	padding-right: 16px;
	margin-left: auto;
	margin-right: auto;
}
.bz-blocks > .alignfull {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}
@media (max-width: 1199px) {
	.bz-blocks > :not(section):not(.outer-container):not(.alignfull) { width: 100%; }
}

/* Simple blog listing (Blog page without blocks), plain pages and comments. */
.bz-post-grid { flex-wrap: wrap; }
.bz-listing .resources-head { margin: 0 0 38px; }
.bz-listing .fsearch { max-width: 361px; }
.bz-pagination { margin-top: 60px; }
.bz-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.bz-pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid #CBD5E1;
	border-radius: 100px;
	color: #525252;
	font-size: 14px;
}
.bz-pagination .page-numbers.current,
.bz-pagination .page-numbers:hover {
	background-color: #000000;
	border-color: #000000;
	color: #FFFFFF;
}
.bz-entry-content > * { max-width: 100%; }
.bz-entry-content a { color: var(--primary-color); font-size: inherit; display: inline; }
.bz-404 { text-align: center; }
.bz-404 .small-title { justify-content: center; }
.bz-comments { margin-top: 60px; }

/* Field focus: the design removes the outline, so the focused field shows the brand-green border and a
   soft ring instead, keeping focus visible for keyboard users. Fields with an error stay red. */
.contact-form .form-style .gfield:not(.gfield_error) input:focus-visible,
.contact-form .form-style .gfield:not(.gfield_error) textarea:focus-visible,
.contact-form .form-style .gfield:not(.gfield_error) select:focus-visible {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(49, 134, 21, 0.15);
}
/* Gravity Forms errors: the design gives every field a grey border, so fields with an error get
   Gravity Forms' error colour back (the validation message alone is easy to miss). */
.contact-form .form-style .gfield.gfield_error input,
.contact-form .form-style .gfield.gfield_error textarea,
.contact-form .form-style .gfield.gfield_error select {
	border-color: var(--gf-color-danger, #c02b0a);
}

/* Blog Listing: tabs, search and Load more update in place (assets/js/blog.js). */
.fsearch input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
}
.load-more[hidden],
.bl-empty[hidden] {
	display: none !important;
}
.blog-listing-filter .bl-listing {
	transition: opacity .2s ease;
}
.blog-listing-filter.is-loading .bl-listing {
	opacity: .45;
}
.blog-listing-filter.is-loading .load-more .btn {
	opacity: .6;
	pointer-events: none;
}
/* A guest author without a link reads like the design's linked name. */
.author span {
	color: #262626;
	font-weight: 600;
}

/* Blog post: separators for an unlinked author, share feedback, and content blocks the design doesn't style. */
.blog-meta > span.bauthor::after {
	content: "|";
	margin-right: 12px;
	margin-left: 12px;
}
.blog-meta > :last-child::after {
	content: none;
}
.blog-content :is(p, li, figcaption, blockquote, td) a {
	display: inline;
	font-size: inherit;
	text-decoration: underline;
}
.blog-content ol {
	padding: 0 0 0 20px;
	margin: 0 0 40px;
}
.blog-content ol li {
	margin: 0;
}
.blog-content figure {
	margin: 0 0 40px;
}
.blog-content figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: #737373;
}
.blog-content blockquote {
	margin: 0 0 40px;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--primary-color);
}
.blog-content .wp-block-table {
	margin: 0 0 40px;
	overflow-x: auto;
}
.blog-content table {
	width: 100%;
	border-collapse: collapse;
}
.blog-content th,
.blog-content td {
	padding: 10px 14px;
	border: 1px solid #E5E5E5;
	text-align: left;
}
.bz-faq-inline.faq-list {
	max-width: 100%;
}
.bz-page-links {
	margin: 0 0 40px;
}
.social-share {
	position: relative;
}
.bz-share-status {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	padding: 6px 12px;
	border-radius: 8px;
	background: #0A0A0A;
	color: #FFFFFF;
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility .2s ease;
}
.bz-share-status.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Feature Highlights: a card reached through a menu link (#anchor) clears the sticky header. */
.feature-box[id] {
	scroll-margin-top: 110px;
}
