/*
 * SoftPulse Builder — frontend.
 * Theme ke fonts/colors inherit hote hain. Accent: --bvx-accent (Settings se) ya
 * block theme ka primary color.
 * Responsive: container queries — har section apni chaurai ke hisaab se adjust.
 */
:root {
	--bvx-accent: var(--wp--preset--color--primary, #2563eb);
	--bvx-accent-contrast: #fff;
	--bvx-radius-base: 10px;
}

/* ---------- Layout ---------- */
.bvx-builder { box-sizing: border-box; } /* width auto: block themes ki alignfull spacing kaam kare */
.bvx-section {
	position: relative;
	container: bvx-section / inline-size; /* row stacking, nav, hide-on-mobile */
	padding-top: var(--bvx-pt, 60px);
	padding-bottom: var(--bvx-pb, 60px);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.bvx-section.bvx-bg-fixed { background-attachment: fixed; }
.bvx-overlay { position: absolute; inset: 0; pointer-events: none; }
.bvx-container { position: relative; z-index: 1; width: 100%; max-width: var(--bvx-maxw, 1140px); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.bvx-section--full .bvx-container { max-width: none; padding: 0; }
.bvx-row { display: flex; gap: var(--bvx-gap, 24px); align-items: var(--bvx-valign, stretch); }
.bvx-col {
	flex: 0 1 var(--bvx-w, 100%); /* gap ke liye khud shrink hota hai */
	min-width: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	container: bvx-col / inline-size; /* grids (gallery, testimonials) column ki chaurai dekhte hain */
}
.bvx-col--shadow { box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.bvx-widget { margin-bottom: var(--bvx-mb, 20px); }
.bvx-widget:last-child { margin-bottom: 0; }

@container bvx-section (max-width: 767px) {
	.bvx-row { flex-direction: column; }
	.bvx-reverse-mobile .bvx-row, .bvx-row.bvx-reverse { flex-direction: column-reverse; }
	.bvx-col { flex-basis: auto; width: 100%; }
	.bvx-hide-mobile { display: none !important; }
}
@container bvx-section (min-width: 768px) {
	.bvx-widget.bvx-hide-desktop { display: none !important; }
}
@media (max-width: 767px) { .bvx-section.bvx-hide-mobile { display: none; } .bvx-section.bvx-bg-fixed { background-attachment: scroll; } }
@media (min-width: 768px) { .bvx-section.bvx-hide-desktop { display: none; } }

/* Section text color headings par bhi (themes h1–h6 ko apna rang dete hain). */
.bvx-has-color :is(.bvx-heading, .bvx-text :is(h1, h2, h3, h4, h5, h6, p, li, a), .bvx-site-text, .bvx-pricing-title, .bvx-acc-item summary, .bvx-slide-title) { color: inherit; }

/* Classic themes: builder ko theme ke content box se nikal kar poori chaurai do. */
html:has(body.bvx-fullbleed) { overflow-x: clip; }
/* !important: themes (Astra, Twenty Twenty-One…) .entry-content > * par bohot taqatwar max-width lagate hain. */
body.bvx-fullbleed .bvx-builder.alignfull:not(.bvx-theme-part .bvx-builder):not(.bvx-popup .bvx-builder) {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* Typography: mobile font size (inline font-size se zyada taqatwar hona zaroori). */
@container bvx-section (max-width: 767px) {
	.bvx-typo[style*="--bvx-fs-m"] { font-size: var(--bvx-fs-m) !important; }
}

/* Canvas / full width templates */
body.bvx-canvas { margin: 0; }
.bvx-canvas-main, .bvx-full-width-main { width: 100%; }

/* ---------- Basic widgets ---------- */
.bvx-heading { margin: 0; line-height: 1.2; }
.bvx-heading a { color: inherit; text-decoration: none; }
.bvx-text > :first-child { margin-top: 0; }
.bvx-text > :last-child { margin-bottom: 0; }
.bvx-image { margin: 0; }
.bvx-image img { display: inline-block; max-width: var(--bvx-img-w, 100%); width: 100%; height: auto; border-radius: var(--bvx-radius, 0); vertical-align: middle; }
.bvx-image figcaption { font-size: .875em; opacity: .75; margin-top: 6px; }
.bvx-placeholder { padding: 24px; text-align: center; border: 2px dashed rgba(127,127,127,.35); border-radius: 8px; opacity: .7; font-size: 14px; }

.bvx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; box-sizing: border-box; max-width: 100%;
	border-radius: var(--bvx-radius, 8px); font-weight: 600; text-decoration: none !important; line-height: 1.2;
	border: 2px solid var(--bvx-btn-bg, var(--bvx-accent)); transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.bvx-btn--primary { background: var(--bvx-btn-bg, var(--bvx-accent)); color: var(--bvx-btn-color, var(--bvx-accent-contrast)) !important; }
.bvx-btn--outline { background: transparent; color: var(--bvx-btn-color, var(--bvx-btn-bg, var(--bvx-accent))) !important; }
.bvx-btn--ghost { background: transparent; border-color: transparent; color: var(--bvx-btn-color, var(--bvx-accent)) !important; padding-left: 0 !important; padding-right: 0 !important; }
.bvx-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.bvx-btn--sm { padding: 8px 16px; font-size: .875em; }
.bvx-btn--md { padding: 12px 24px; }
.bvx-btn--lg { padding: 16px 34px; font-size: 1.1em; }
.bvx-btn--block { display: flex; width: 100%; }
.bvx-divider { border: 0; margin: 0; height: 0; border-top-color: currentColor; opacity: .3; }
.bvx-divider[style*="border-top-color"] { opacity: 1; }
.bvx-icon-list { list-style: none; margin: 0; padding: 0; }
.bvx-icon-list li { display: flex; gap: .6em; align-items: center; padding: .25em 0; }
.bvx-icon-list--inline { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bvx-icon { color: var(--bvx-icon-color, var(--bvx-accent)); display: inline-flex; flex: 0 0 auto; width: 1.1em; height: 1.1em; align-items: center; justify-content: center; }
.bvx-icon .bvxe-wsvg { width: 100%; height: 100%; display: block; }

/* ---------- Media ---------- */
.bvx-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--bvx-radius, 12px); overflow: hidden; background: #000; }
.bvx-video iframe, .bvx-video video, .bvx-video-lite { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bvx-video--embed > * { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.bvx-video-lite { cursor: pointer; padding: 0; background: #000 center / cover no-repeat; }
.bvx-play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); background: #ff0033; border-radius: 14px; transition: transform .15s; }
.bvx-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.bvx-video-lite:hover .bvx-play { transform: translate(-50%, -50%) scale(1.08); }

.bvx-gallery { display: grid; grid-template-columns: repeat(var(--bvx-cols, 3), 1fr); gap: var(--bvx-gap, 12px); }
.bvx-gallery-item { margin: 0; overflow: hidden; border-radius: var(--bvx-radius, 8px); }
.bvx-gallery-item img { display: block; width: 100%; height: 100%; aspect-ratio: var(--bvx-ratio, 1/1); object-fit: cover; transition: transform .35s ease; }
.bvx-gallery-item a:hover img { transform: scale(1.05); }
.bvx-gallery-item figcaption { font-size: .85em; padding: 6px 2px; }
@container bvx-col (max-width: 520px) { .bvx-gallery { grid-template-columns: repeat(min(var(--bvx-cols, 3), 2), 1fr); } }

.bvx-lightbox-dialog { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.bvx-lightbox-dialog::backdrop { background: rgba(0, 0, 0, .88); }
.bvx-lightbox-dialog img { display: block; max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.bvx-lightbox-dialog p { color: #fff; text-align: center; margin: 8px 0 0; }
.bvx-lightbox-close { position: fixed; top: 14px; right: 18px; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; }

.bvx-slides { position: relative; overflow: hidden; border-radius: var(--bvx-radius, 0); }
.bvx-slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.bvx-slides-track::-webkit-scrollbar { display: none; }
.bvx-slide { position: relative; flex: 0 0 100%; min-height: var(--bvx-slide-h, 480px); scroll-snap-align: start; background: #222 center / cover no-repeat; display: flex; align-items: center; color: #fff; }
.bvx-slide::before { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--bvx-overlay, .4); }
.bvx-slide-inner { position: relative; z-index: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 40px 60px; }
.bvx-slide-title { color: inherit; margin: 0 0 .4em; font-size: clamp(1.5rem, 6cqi, 3rem); }
.bvx-slide-text { margin: 0 0 1.2em; font-size: 1.1em; opacity: .92; }
.bvx-slides-prev, .bvx-slides-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.bvx-slides-prev { left: 14px; }
.bvx-slides-next { right: 14px; }
.bvx-slides-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.bvx-slides-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.bvx-slides-dots button[aria-current="true"] { background: #fff; width: 24px; border-radius: 99px; }
@container bvx-col (max-width: 600px) { .bvx-slide-inner { padding: 30px 24px; } .bvx-slides-prev, .bvx-slides-next { display: none; } }

/* ---------- Marketing ---------- */
.bvx-pricing { position: relative; height: 100%; padding: 32px 28px; border: 1px solid rgba(127,127,127,.25); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; text-align: center; box-sizing: border-box; }
.bvx-pricing--featured { border: 2px solid var(--bvx-accent); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.bvx-pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--bvx-accent); color: var(--bvx-accent-contrast); font-size: .75em; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.bvx-pricing-title { margin: 0; font-size: 1.15em; }
.bvx-pricing-price { display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.bvx-amt { font-size: 2.6em; font-weight: 800; line-height: 1; }
.bvx-cur, .bvx-per { opacity: .7; }
.bvx-pricing-features { list-style: none; margin: 0; padding: 0; text-align: left; flex: 1; }
.bvx-pricing-features li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid rgba(127,127,127,.15); }
.bvx-pricing-features li::before { content: "✓"; position: absolute; left: 2px; color: var(--bvx-accent); font-weight: 700; }

.bvx-testimonials { display: grid; grid-template-columns: repeat(var(--bvx-cols, 3), 1fr); gap: 20px; }
@container bvx-col (max-width: 900px) { .bvx-testimonials { grid-template-columns: repeat(min(var(--bvx-cols, 3), 2), 1fr); } }
@container bvx-col (max-width: 560px) { .bvx-testimonials { grid-template-columns: 1fr; } }
.bvx-testimonial { margin: 0; padding: 26px; border-radius: 16px; background: rgba(127,127,127,.07); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.bvx-testimonial blockquote { margin: 0; padding: 0; border: 0; font-size: 1.02em; }
.bvx-testimonial blockquote::before { content: "“"; display: block; font-size: 2.6em; line-height: .6; color: var(--bvx-accent); }
.bvx-testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.bvx-testimonial figcaption span { display: flex; flex-direction: column; }
.bvx-testimonial small { opacity: .7; }
.bvx-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }

.bvx-accordion { display: flex; flex-direction: column; gap: 10px; }
.bvx-acc-item { border: 1px solid rgba(127,127,127,.25); border-radius: 12px; overflow: hidden; }
.bvx-acc-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; }
.bvx-acc-item summary::-webkit-details-marker { display: none; }
.bvx-acc-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3em; transition: transform .2s; }
.bvx-acc-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bvx-acc-body { padding: 0 18px 16px; }
.bvx-acc-body > :first-child { margin-top: 0; }

.bvx-countdown { display: flex; gap: 10px; }
.bvx-cd-box { flex: 1 1 0; min-width: 0; max-width: 96px; padding: 14px 10px; border-radius: 12px; text-align: center; background: var(--bvx-accent); color: var(--bvx-accent-contrast); }
.bvx-cd-num { display: block; font-size: clamp(1.25em, 7cqi, 2em); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bvx-cd-label { display: block; font-size: .75em; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; } /* Full opacity: small text needs 4.5:1 contrast (WCAG AA). */
.bvx-countdown-expired { font-weight: 600; }

.bvx-social { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bvx-soc-gap, 10px); }
.bvx-social-link {
	--s: var(--bvx-soc-size, 42px);
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	width: var(--s); height: var(--s); border-radius: 50%; box-sizing: border-box;
	text-decoration: none !important; line-height: 1; transition: transform .15s ease, filter .15s ease, background .15s ease, color .15s ease;
}
.bvx-social-link svg { width: 50%; height: 50%; fill: currentColor; flex: 0 0 auto; }
.bvx-social--rounded .bvx-social-link { border-radius: 10px; }
.bvx-social--square .bvx-social-link { border-radius: 0; }
.bvx-social--brand .bvx-social-link { background: var(--bvx-brand); color: #fff !important; }
.bvx-social--outline .bvx-social-link { border: 2px solid var(--bvx-brand); color: var(--bvx-brand) !important; }
.bvx-social--outline .bvx-social-link:hover { background: var(--bvx-brand); color: #fff !important; }
.bvx-social--plain .bvx-social-link { width: auto; height: auto; color: var(--bvx-brand) !important; }
.bvx-social--plain .bvx-social-link svg { width: calc(var(--s) * .62); height: calc(var(--s) * .62); }
.bvx-social--label .bvx-social-link { width: auto; height: calc(var(--s) * .9); padding: 0 1.1em 0 .9em; border-radius: 99px; background: var(--bvx-brand); color: #fff !important; font-size: .9em; font-weight: 600; }
.bvx-social--label.bvx-social--rounded .bvx-social-link { border-radius: 10px; }
.bvx-social--label.bvx-social--square .bvx-social-link { border-radius: 0; }
.bvx-social--label .bvx-social-link svg { width: 1.15em; height: 1.15em; }
.bvx-social-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
/* X / TikTok / Threads / GitHub ka brand color kaala hai — dark sections me dikhe. */
.bvx-has-color .bvx-social--plain :is(.bvx-social-x, .bvx-social-tiktok, .bvx-social-threads, .bvx-social-github, .bvx-social-email, .bvx-social-website) { color: inherit !important; }

/* ---------- Site: logo + nav ---------- */
.bvx-site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; }
.bvx-site-logo img { max-width: var(--bvx-logo-w, 160px); height: auto; display: block; }
.bvx-site-text { display: flex; flex-direction: column; line-height: 1.2; }
.bvx-site-text strong { font-size: 1.2em; }
.bvx-site-text small { opacity: .7; }

.bvx-nav { position: relative; display: flex; justify-content: var(--bvx-nav-justify, flex-end); }
.bvx-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.bvx-nav-list li { position: relative; }
.bvx-nav-list a { display: block; padding: 8px 0; color: var(--bvx-nav-color, inherit); text-decoration: none; font-weight: 500; }
.bvx-nav-list a:hover, .bvx-nav-list .current-menu-item > a { color: var(--bvx-nav-hover, var(--bvx-accent)); }
.bvx-nav-list .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -14px; min-width: 200px; background: var(--bvx-nav-mob-bg, #fff); color: #111; box-shadow: 0 12px 32px rgba(0,0,0,.12); border-radius: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s; z-index: 50; }
.bvx-nav-list .sub-menu a { padding: 8px 16px; color: inherit; }
.bvx-nav-list li:hover > .sub-menu, .bvx-nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bvx-nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; color: var(--bvx-nav-color, currentColor); }
.bvx-nav-toggle span:not(.screen-reader-text) { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.bvx-nav.is-open .bvx-nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.bvx-nav.is-open .bvx-nav-toggle span:nth-child(2) { opacity: 0; }
.bvx-nav.is-open .bvx-nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@container bvx-section (max-width: 767px) {
	.bvx-nav-toggle { display: flex; }
	.bvx-nav-list { display: none; position: absolute; top: 100%; right: 0; left: auto; min-width: 240px; flex-direction: column; gap: 0; padding: 10px 18px; background: var(--bvx-nav-mob-bg, #fff); color: #111; box-shadow: 0 16px 40px rgba(0,0,0,.15); border-radius: 12px; z-index: 60; }
	.bvx-nav-list a { color: inherit; }
	.bvx-nav.is-open .bvx-nav-list { display: flex; }
	.bvx-nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; background: none; }
}
.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; }

/* Header / footer templates */
.bvx-theme-part { position: relative; z-index: 100; }
.bvx-header.bvx-sticky { position: sticky; top: 0; transition: box-shadow .2s; }
body.admin-bar .bvx-header.bvx-sticky { top: var(--wp-admin--admin-bar--height, 32px); }
.bvx-header.bvx-sticky.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }

/* ---------- Popups ---------- */
.bvx-popup[hidden] { display: none !important; }
.bvx-popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
.bvx-popup.is-open { pointer-events: auto; }
.bvx-popup-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.bvx-popup:not(.bvx-popup--overlay) .bvx-popup-backdrop { display: none; }
.bvx-popup.is-open .bvx-popup-backdrop { opacity: 1; }
.bvx-popup-box { position: relative; width: 100%; max-width: var(--bvx-popup-w, 560px); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #111; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .25s; pointer-events: auto; }
.bvx-popup.is-open .bvx-popup-box { transform: none; opacity: 1; }
.bvx-popup-box .bvx-section { padding-top: var(--bvx-pt, 30px); padding-bottom: var(--bvx-pb, 30px); }
.bvx-popup-close { position: absolute; top: 8px; right: 10px; z-index: 5; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.bvx-popup--bottom-right { align-items: flex-end; justify-content: flex-end; }
.bvx-popup--bottom-right .bvx-popup-box { max-width: min(var(--bvx-popup-w, 380px), 100%); }
.bvx-popup--bottom, .bvx-popup--top { padding: 0; }
.bvx-popup--bottom { align-items: flex-end; }
.bvx-popup--top { align-items: flex-start; }
.bvx-popup--bottom .bvx-popup-box, .bvx-popup--top .bvx-popup-box { max-width: none; border-radius: 0; }
html.bvx-popup-lock { overflow: hidden; }

/* ---------- Motion: entrance animations ---------- */
/* JS na chale to kuch chhupa na rahe: sirf .bvx-js par initial hidden state. */
.bvx-js .bvx-anim:not(.bvx-in) { opacity: 0; }
.bvx-anim.bvx-in {
	animation-duration: var(--bvx-dur, 800ms);
	animation-delay: var(--bvx-delay, 0ms);
	animation-timing-function: cubic-bezier(.2, .8, .2, 1);
	animation-fill-mode: backwards; /* khatam hone ke baad hover transforms kaam karein */
}
.bvx-anim-fade-in.bvx-in    { animation-name: bvx-fade-in; }
.bvx-anim-fade-up.bvx-in    { animation-name: bvx-fade-up; }
.bvx-anim-fade-down.bvx-in  { animation-name: bvx-fade-down; }
.bvx-anim-fade-left.bvx-in  { animation-name: bvx-fade-left; }
.bvx-anim-fade-right.bvx-in { animation-name: bvx-fade-right; }
.bvx-anim-slide-up.bvx-in   { animation-name: bvx-slide-up; }
.bvx-anim-slide-left.bvx-in { animation-name: bvx-slide-left; }
.bvx-anim-slide-right.bvx-in { animation-name: bvx-slide-right; }
.bvx-anim-zoom-in.bvx-in    { animation-name: bvx-zoom-in; }
.bvx-anim-zoom-out.bvx-in   { animation-name: bvx-zoom-out; }
.bvx-anim-flip-x.bvx-in     { animation-name: bvx-flip-x; }
.bvx-anim-flip-y.bvx-in     { animation-name: bvx-flip-y; }
.bvx-anim-rotate-in.bvx-in  { animation-name: bvx-rotate-in; }
.bvx-anim-bounce-in.bvx-in  { animation-name: bvx-bounce-in; animation-timing-function: linear; }
.bvx-anim-blur-in.bvx-in    { animation-name: bvx-blur-in; }
.bvx-anim-skew-in.bvx-in    { animation-name: bvx-skew-in; }
.bvx-anim-roll-in.bvx-in    { animation-name: bvx-roll-in; }
.bvx-anim-typewriter.bvx-in { animation-name: bvx-reveal; }

@keyframes bvx-fade-in    { from { opacity: 0; } }
@keyframes bvx-fade-up    { from { opacity: 0; transform: translateY(32px); } }
@keyframes bvx-fade-down  { from { opacity: 0; transform: translateY(-32px); } }
@keyframes bvx-fade-left  { from { opacity: 0; transform: translateX(40px); } }
@keyframes bvx-fade-right { from { opacity: 0; transform: translateX(-40px); } }
@keyframes bvx-slide-up   { from { opacity: 0; transform: translateY(120px); } }
@keyframes bvx-slide-left { from { opacity: 0; transform: translateX(-140px); } }
@keyframes bvx-slide-right { from { opacity: 0; transform: translateX(140px); } }
@keyframes bvx-zoom-in    { from { opacity: 0; transform: scale(.82); } }
@keyframes bvx-zoom-out   { from { opacity: 0; transform: scale(1.18); } }
@keyframes bvx-flip-x     { from { opacity: 0; transform: perspective(900px) rotateX(70deg); transform-origin: 50% 100%; } }
@keyframes bvx-flip-y     { from { opacity: 0; transform: perspective(900px) rotateY(70deg); } }
@keyframes bvx-rotate-in  { from { opacity: 0; transform: rotate(-12deg) scale(.92); } }
@keyframes bvx-bounce-in {
	0% { opacity: 0; transform: scale(.3); }
	50% { opacity: 1; transform: scale(1.06); }
	70% { transform: scale(.96); }
	100% { transform: scale(1); }
}
@keyframes bvx-blur-in    { from { opacity: 0; filter: blur(14px); transform: scale(1.04); } }
@keyframes bvx-skew-in    { from { opacity: 0; transform: translateX(-60px) skewX(14deg); } }
@keyframes bvx-roll-in    { from { opacity: 0; transform: translateX(-100%) rotate(-120deg); } }
@keyframes bvx-reveal     { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Motion: hover effects ---------- */
[class*="bvx-hover-"] { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, filter .35s ease; }
.bvx-hover-grow:hover   { transform: scale(1.05); }
.bvx-hover-shrink:hover { transform: scale(.95); }
.bvx-hover-lift:hover   { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); }
.bvx-hover-rotate:hover { transform: rotate(-3deg) scale(1.02); }
.bvx-hover-glow:hover   { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bvx-accent) 35%, transparent), 0 12px 36px color-mix(in srgb, var(--bvx-accent) 35%, transparent); }
.bvx-hover-pop:hover    { animation: bvx-pop .45s ease; }
.bvx-hover-gray         { filter: grayscale(1); }
.bvx-hover-gray:hover   { filter: none; }
.bvx-hover-tilt         { transform-style: preserve-3d; will-change: transform; transition: transform .15s ease-out; }
.bvx-transform-3d { perspective: var(--bvx-perspective, 900px); transform-style: preserve-3d; }
.bvx-transform-3d > .bvx-3d-layer {
	transform: rotateX(var(--bvx-rotate-x, 0deg)) rotateY(var(--bvx-rotate-y, 0deg)) rotateZ(var(--bvx-rotate-z, 0deg)) translateZ(var(--bvx-translate-z, 0));
	transform-style: preserve-3d;
	transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.bvx-hover-shine        { position: relative; overflow: hidden; }
.bvx-hover-shine::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .7s ease;
}
.bvx-hover-shine:hover::after { transform: translateX(120%); }
@keyframes bvx-pop { 40% { transform: scale(1.08); } 70% { transform: scale(.97); } }

/* ---------- Motion: loop animations ---------- */
.bvx-loop { animation-duration: 2.4s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.bvx-loop-pulse     { animation-name: bvx-l-pulse; }
.bvx-loop-float     { animation-name: bvx-l-float; animation-duration: 3.2s; }
.bvx-loop-bounce    { animation-name: bvx-l-bounce; animation-duration: 1.6s; }
.bvx-loop-swing     { animation-name: bvx-l-swing; transform-origin: 50% 0; }
.bvx-loop-wobble    { animation-name: bvx-l-wobble; animation-duration: 3s; }
.bvx-loop-shake     { animation-name: bvx-l-shake; animation-duration: 4s; }
.bvx-loop-heartbeat { animation-name: bvx-l-heartbeat; animation-duration: 1.4s; }
.bvx-loop-spin      { animation-name: bvx-l-spin; animation-duration: 12s; animation-timing-function: linear; }
.bvx-loop-glow      { animation-name: bvx-l-glow; border-radius: 12px; }
@keyframes bvx-l-pulse { 50% { transform: scale(1.05); } }
@keyframes bvx-l-float { 50% { transform: translateY(-12px); } }
@keyframes bvx-l-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-16px); } 50% { transform: translateY(0); } 65% { transform: translateY(-6px); } }
@keyframes bvx-l-swing { 25% { transform: rotate(4deg); } 75% { transform: rotate(-4deg); } }
@keyframes bvx-l-wobble { 25% { transform: rotate(-2deg) translateX(-4px); } 75% { transform: rotate(2deg) translateX(4px); } }
@keyframes bvx-l-shake { 0%, 84%, 100% { transform: translateX(0); } 86%, 90%, 94% { transform: translateX(-6px); } 88%, 92%, 96% { transform: translateX(6px); } }
@keyframes bvx-l-heartbeat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.1); } 30% { transform: scale(1.04); } }
@keyframes bvx-l-spin { to { transform: rotate(360deg); } }
@keyframes bvx-l-glow { 50% { box-shadow: 0 0 28px color-mix(in srgb, var(--bvx-accent) 55%, transparent); } }

/* ---------- Motion: scroll effects (CSS scroll-driven animations, no JS) ---------- */
@supports (animation-timeline: view()) {
	.bvx-scroll { animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); }
	.bvx-scroll-parallax      { animation-name: bvx-s-parallax; animation-range: cover; }
	.bvx-scroll-parallax-fast { animation-name: bvx-s-parallax-fast; animation-range: cover; }
	.bvx-scroll-fade          { animation-name: bvx-s-fade; animation-range: cover; }
	.bvx-scroll-scale         { animation-name: bvx-s-scale; animation-range: entry 0% cover 45%; }
	.bvx-scroll-rotate        { animation-name: bvx-s-rotate; animation-range: cover; }
	.bvx-scroll-blur          { animation-name: bvx-s-blur; animation-range: entry 0% cover 40%; }
	.bvx-scroll-slide         { animation-name: bvx-s-slide; animation-range: entry 0% cover 45%; }
}
@keyframes bvx-s-parallax      { from { transform: translateY(60px); } to { transform: translateY(-60px); } }
@keyframes bvx-s-parallax-fast { from { transform: translateY(-80px); } to { transform: translateY(80px); } }
@keyframes bvx-s-fade   { 0% { opacity: 0; } 30%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bvx-s-scale  { from { transform: scale(.75); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes bvx-s-rotate { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes bvx-s-blur   { from { filter: blur(12px); opacity: .2; } to { filter: none; opacity: 1; } }
@keyframes bvx-s-slide  { from { transform: translateX(-25%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Motion band karna chahne walon ki izzat (OS setting). */
@media (prefers-reduced-motion: reduce) {
	.bvx-anim, .bvx-loop, .bvx-scroll, [class*="bvx-hover-"] { animation: none !important; transition: none !important; }
	.bvx-js .bvx-anim:not(.bvx-in) { opacity: 1; }
	.bvx-slides-track { scroll-behavior: auto; }
	.bvx-popup-box, .bvx-popup-backdrop { transition: none; }
}


/* Block themes: header/content/footer ke beech theme ka block-gap na aaye. */
.wp-site-blocks > .bvx-theme-part, .wp-site-blocks > .bvx-theme-part + *, .wp-site-blocks > .bvx-full-width-main + .bvx-theme-part,
.wp-site-blocks > .bvx-full-width-main { margin-block-start: 0; }
.bvx-full-width-main > .bvx-builder, .bvx-canvas-main > .bvx-builder { margin-block: 0; }

/* ==========================================================================
   Responsive overrides. Desktop = base; tablet 768–1024px; mobile <= 767px.
   Per-element overrides arrive as inline custom properties (-t tablet, -m mobile) and only
   exist when the user set them, so pages without overrides are unaffected. Tablet cascades
   into mobile (mobile -> tablet -> desktop). Column width is the exception: with no mobile
   value columns stack at 100%. Breakpoints mirror Buildvex_Responsive::TABLET_MAX / MOBILE_MAX.
   ========================================================================== */

/* Section's own box (it is the container, so it cannot be styled by its own container query). */
@media (max-width: 1024px) {
	.bvx-section { padding-top: var(--bvx-pt-t, var(--bvx-pt, 60px)); padding-bottom: var(--bvx-pb-t, var(--bvx-pb, 60px)); }
	.bvx-section.bvx-rp-minh { min-height: var(--bvx-minh-t, var(--bvx-minh, 0px)) !important; }
}
@media (max-width: 767px) {
	.bvx-section { padding-top: var(--bvx-pt-m, var(--bvx-pt-t, var(--bvx-pt, 60px))); padding-bottom: var(--bvx-pb-m, var(--bvx-pb-t, var(--bvx-pb, 60px))); }
	.bvx-section.bvx-rp-minh { min-height: var(--bvx-minh-m, var(--bvx-minh-t, var(--bvx-minh, 0px))) !important; }
}
@media (min-width: 768px) and (max-width: 1024px) { .bvx-section.bvx-hide-tablet { display: none; } }

/* Tablet (and below): row, column and widget properties. */
@container bvx-section (max-width: 1024px) {
	.bvx-row { gap: var(--bvx-gap-t, var(--bvx-gap, 24px)); align-items: var(--bvx-valign-t, var(--bvx-valign, stretch)); }
	.bvx-widget { margin-bottom: var(--bvx-mb-t, var(--bvx-mb, 20px)); }
	.bvx-widget:last-child { margin-bottom: 0; }
	.bvx-col.bvx-rp-pad { padding: var(--bvx-pad-t, var(--bvx-pad, 0px)) !important; }
	.bvx-col.bvx-rp-ta { text-align: var(--bvx-ta-t, var(--bvx-ta, unset)) !important; }
	.bvx-col.bvx-rp-cva { justify-content: var(--bvx-cva-t, var(--bvx-cva, flex-start)) !important; }
}
/* Tablet only: width overrides. Basis = W% of the row minus its share of the gaps, so any set of
   widths that adds up to 100% fits on one line; the row wraps when a custom set does not. */
@container bvx-section (min-width: 768px) and (max-width: 1024px) {
	.bvx-row--rt { flex-wrap: wrap; }
	.bvx-row--rt > .bvx-col {
		flex: 0 0 calc(var(--bvx-wt, var(--bvx-wn, 100)) * 1% - var(--bvx-gap-t, var(--bvx-gap, 24px)) * (1 - var(--bvx-wt, var(--bvx-wn, 100)) / 100) - .1px);
	}
	.bvx-hide-tablet { display: none !important; }
	.bvx-typo[style*="--bvx-fs-t"] { font-size: var(--bvx-fs-t) !important; }
}

/* Mobile: cascade from tablet, then width. Default (no override) is the stacked 100% layout above. */
@container bvx-section (max-width: 767px) {
	.bvx-row { gap: var(--bvx-gap-m, var(--bvx-gap-t, var(--bvx-gap, 24px))); align-items: var(--bvx-valign-m, var(--bvx-valign-t, var(--bvx-valign, stretch))); }
	.bvx-widget { margin-bottom: var(--bvx-mb-m, var(--bvx-mb-t, var(--bvx-mb, 20px))); }
	.bvx-widget:last-child { margin-bottom: 0; }
	.bvx-col.bvx-rp-pad { padding: var(--bvx-pad-m, var(--bvx-pad-t, var(--bvx-pad, 0px))) !important; }
	.bvx-col.bvx-rp-ta { text-align: var(--bvx-ta-m, var(--bvx-ta-t, var(--bvx-ta, unset))) !important; }
	.bvx-col.bvx-rp-cva { justify-content: var(--bvx-cva-m, var(--bvx-cva-t, var(--bvx-cva, flex-start))) !important; }
	.bvx-typo[style*="--bvx-fs-t"]:not([style*="--bvx-fs-m"]) { font-size: var(--bvx-fs-t) !important; }
	/* A custom mobile layout: columns sit side by side only where the user gave them a width. */
	.bvx-row--rm { flex-direction: row; flex-wrap: wrap; }
	.bvx-reverse-mobile .bvx-row--rm { flex-direction: row-reverse; }
	.bvx-row--rm > .bvx-col {
		width: auto;
		flex: 0 0 calc(var(--bvx-wm, 100) * 1% - var(--bvx-gap-m, var(--bvx-gap-t, var(--bvx-gap, 24px))) * (1 - var(--bvx-wm, 100) / 100) - .1px);
	}
}

/* Browsers without container queries: keep the default stacking working from the viewport width. */
@supports not (container-type: inline-size) {
	@media (max-width: 767px) {
		.bvx-row { flex-direction: column; }
		.bvx-reverse-mobile .bvx-row { flex-direction: column-reverse; }
		.bvx-col { flex-basis: auto; width: 100%; }
		.bvx-hide-mobile { display: none !important; }
	}
	@media (min-width: 768px) and (max-width: 1024px) { .bvx-hide-tablet { display: none !important; } }
}
