/* Virtue Core — front-end UI that belongs to plugin features.
   Uses the theme's tokens when present; brand fallbacks otherwise. */

:root {
	--vf-primary: var(--v-primary, #4E3A94);
	--vf-accent: var(--v-accent, #C1208D);
	--vf-dark: var(--v-dark, #1C1C1C);
	--vf-bg: var(--v-bg, #FFFFFF);
	--vf-border: var(--v-border, #E6E3EE);
	--vf-wa: #1FAF38;
}

/* ---------- Structural fallbacks (zero specificity so any theme can override) ---------- */
:where(.v-cards) { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
:where(.v-ph) { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; overflow: hidden;
	background:
		linear-gradient(135deg, rgb(78 58 148 / .07), rgb(193 32 141 / .06)),
		var(--v-bg-light, #F8F7FB);
	color: var(--v-muted, #6B6878); text-align: center; }
.v-ph__mark { position: absolute; inset: 14px; pointer-events: none;
	/* Registration crop marks in each corner — a quiet nod to print. */
	background:
		linear-gradient(currentColor, currentColor) top left / 14px 1px no-repeat,
		linear-gradient(currentColor, currentColor) top left / 1px 14px no-repeat,
		linear-gradient(currentColor, currentColor) top right / 14px 1px no-repeat,
		linear-gradient(currentColor, currentColor) top right / 1px 14px no-repeat,
		linear-gradient(currentColor, currentColor) bottom left / 14px 1px no-repeat,
		linear-gradient(currentColor, currentColor) bottom left / 1px 14px no-repeat,
		linear-gradient(currentColor, currentColor) bottom right / 14px 1px no-repeat,
		linear-gradient(currentColor, currentColor) bottom right / 1px 14px no-repeat;
	opacity: .35; }
.v-ph__label { position: relative; max-width: 80%; padding: .35rem .6rem; font-family: var(--v-mono, ui-monospace, monospace); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
.v-empty-note { padding: 1rem; border: 1px dashed var(--vf-border); border-radius: 8px; color: var(--v-muted, #6B6878); }

/* ---------- Announcement ---------- */
.vf-announce { position: relative; z-index: 51; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .55rem 3rem; background: var(--vf-dark); color: #fff; font-size: .875rem; text-align: center; }
.vf-announce__text { margin: 0; }
.vf-announce a { color: #fff; font-weight: 600; text-underline-offset: .2em; }
.vf-announce a:hover { color: #fff; opacity: .85; }
.vf-announce__close { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: #fff; font-size: 1.375rem; line-height: 1; cursor: pointer; border-radius: 6px; }
.vf-announce__close:hover { background: rgb(255 255 255 / .12); }

/* ---------- Floating buttons ---------- */
.vf-float { position: fixed; z-index: 55; right: clamp(.75rem, 2vw, 1.5rem); bottom: calc(clamp(.75rem, 2vw, 1.5rem) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: .625rem; }
.vf-float__btn { display: inline-flex; align-items: center; gap: .5rem; height: 52px; min-width: 52px; padding: 0 1rem; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; box-shadow: 0 10px 28px -10px rgb(0 0 0 / .45); transition: transform .2s ease, box-shadow .2s ease; }
.vf-float__btn:hover, .vf-float__btn:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgb(0 0 0 / .5); }
.vf-float__btn--wa { background: var(--vf-wa); }
.vf-float__btn--call { justify-content: center; padding: 0; width: 52px; background: var(--vf-primary); }
@media (min-width: 768px) { .vf-float__btn--call { display: none; } }
@media (max-width: 767.98px) {
	.vf-float--hide-mobile { display: none; }
	.vf-float__label { display: none; }
	.vf-float__btn--wa { justify-content: center; padding: 0; width: 52px; }
}

/* ---------- Mobile bottom bar ---------- */
.vf-bar { display: none; }
@media (max-width: 767.98px) {
	.vf-bar { position: fixed; z-index: 56; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--vf-bg); border-top: 1px solid var(--vf-border); box-shadow: 0 -8px 24px -16px rgb(0 0 0 / .3); }
	.vf-bar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 60px; color: var(--v-heading, #1C1C1C); text-decoration: none; font-size: .75rem; font-weight: 600; }
	.vf-bar__item svg { width: 22px; height: 22px; }
	.vf-bar__item--wa { color: var(--vf-wa); }
	.vf-bar__item--quote { background: var(--vf-primary); color: #fff; }
	.vf-bar__item--quote:hover, .vf-bar__item--quote:focus-visible { color: #fff; }
	body.v-has-mobile-bar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
	body.v-has-mobile-bar .vf-cookie { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- Cookie notice ---------- */
.vf-cookie { position: fixed; z-index: 57; left: 1rem; bottom: 1rem; max-width: 380px; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--vf-bg); border: 1px solid var(--vf-border); border-radius: 10px; box-shadow: 0 16px 40px -18px rgb(0 0 0 / .35); font-size: .875rem; }
.vf-cookie[hidden] { display: none; }
.vf-cookie p { margin: 0; }
@media (max-width: 480px) { .vf-cookie { left: .75rem; right: .75rem; max-width: none; } }

/* ---------- Quote popup ---------- */
.vf-dialog { width: min(640px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 14px; background: var(--vf-bg); color: var(--v-text, #3D3B45); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .45); overflow: auto; }
.vf-dialog::backdrop { background: rgb(22 20 29 / .6); backdrop-filter: blur(2px); }
.vf-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem 1rem; background: var(--vf-bg); border-bottom: 1px solid var(--vf-border); }
.vf-dialog__head .v-eyebrow { margin-bottom: .25rem; }
.vf-dialog__title { margin: 0; font-size: 1.375rem; }
.vf-dialog__close { flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--v-bg-light, #F8F7FB); color: var(--v-heading, #1C1C1C); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.vf-dialog__close:hover { background: var(--vf-border); }
.vf-dialog .vq { padding: 1.25rem 1.5rem 0; max-width: none; }
.vf-dialog__alt { margin: 0; padding: 1rem 1.5rem 1.5rem; font-size: .875rem; }
html.vf-modal-open { overflow: hidden; }
@media (max-width: 560px) {
	.vf-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
}

/* Quick form specifics */
.vq--quick .vq-form { gap: 1.1rem; }
.vqq-items { padding: .75rem 1rem; background: var(--v-bg-light, #F8F7FB); border: 1px solid var(--vf-border); border-radius: 8px; }
.vqq-items__label { margin: 0 0 .35rem; font-size: .75rem; font-family: var(--v-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--vf-primary); }
.vq .vqq-items__list[class] > li { padding: .15rem 0; font-weight: 600; color: var(--v-heading, #1C1C1C); }
.vqq-nav { flex-wrap: wrap; }
.vqq-nav .vq-privacy { flex: 1 1 220px; }

/* ---------- Map ---------- */
.v-map { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--v-bg-light, #F8F7FB); }
.v-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lift the basket pill above the floating/mobile UI */
@media (min-width: 768px) { .vq-pill { bottom: calc(1.5rem + env(safe-area-inset-bottom)); } }

/* Sample-content badge (demo clients/testimonials) — disappears once the item is marked as real */
.v-sample-badge { display: inline-block; margin-left: .35rem; padding: .05rem .4rem; border-radius: 4px; background: #FFF3CD; color: #7A5B00; font-family: var(--v-mono, ui-monospace, monospace); font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.v-logo__inner { position: relative; }
.v-logo .v-sample-badge { position: absolute; top: .4rem; right: .4rem; margin: 0; }

/* Contact details list */
.v-contact-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--vf-border); }
.v-contact-list > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--vf-border); }
.v-contact-list dt { color: var(--v-muted, #6B6878); font-size: .875rem; }
.v-contact-list dd { margin: 0; font-weight: 600; color: var(--v-heading, #1C1C1C); }
.v-contact-list a { color: inherit; text-decoration: none; }
.v-contact-list a:hover { color: var(--vf-primary); text-decoration: underline; }
