/* YBPro Landing: floats, accessibility widget, form states, a11y modes. */

/* ---------- Landing page basics ---------- */
html { scroll-padding-top: 130px; }
body.ybpro-landing { margin: 0; overscroll-behavior: none; }
body.admin-bar.ybpro-landing header.fixed { top: 32px; }
@media (max-width: 782px) { body.admin-bar.ybpro-landing header.fixed { top: 46px; } }
@media (max-width: 767px) { body.ybpro-landing { padding-bottom: 64px; } }
#main:focus { outline: none; }
.ybpro-landing ::placeholder { color: #6b6c70 !important; opacity: 1; }

.ybpro-skip {
	position: fixed; top: -100px; right: 16px; z-index: 100000;
	background: #1c1d1f; color: #fff; padding: 12px 20px; font: 500 16px/1.2 Rubik, Arial, sans-serif;
	text-decoration: none; border-radius: 4px;
}
.ybpro-skip:focus { top: 16px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid #b8894a !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 5px #fff !important;
}

/* ---------- Forms ---------- */
.ybpro-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
body.ybpro-landing { overflow-x: clip; }
[data-ybpro-form] [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ba1a1a !important; }
.ybpro-err { display: block; color: #93000a; font-size: 13px; line-height: 18px; margin-top: 4px; font-weight: 500; }
[data-ybpro-status].is-error { background: #ffdad6 !important; color: #93000a !important; }
[data-ybpro-status].is-success { background: #e7f4ea !important; color: #14532d !important; }
[data-ybpro-form] button[type="submit"][aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Floating WhatsApp ---------- */
#ybpro-floats { font-family: Rubik, Arial, sans-serif; }
#ybpro-wa {
	position: fixed; left: 20px; bottom: 20px; z-index: 9990;
	display: flex; align-items: center; gap: 10px;
	height: 58px; min-width: 58px; padding: 0 14px; box-sizing: border-box; justify-content: center;
	background: #25d366; color: #0b2e16; border-radius: 999px; text-decoration: none;
	box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); transition: transform .2s ease, box-shadow .2s ease;
}
#ybpro-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgba(0,0,0,.4); }
#ybpro-wa svg { flex: 0 0 auto; }
#ybpro-wa .ybpro-wa-label {
	max-width: 0; overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 500; color: #0b2e16;
	transition: max-width .3s ease;
}
#ybpro-wa:hover .ybpro-wa-label, #ybpro-wa:focus-visible .ybpro-wa-label { max-width: 220px; }

/* ---------- Accessibility widget ---------- */
#ybpro-a11y-toggle {
	position: fixed; right: 20px; bottom: 20px; z-index: 9991;
	width: 52px; height: 52px; border: 2px solid #fff; border-radius: 999px; cursor: pointer;
	background: #1c1d1f; color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); padding: 0;
}
#ybpro-a11y-panel {
	position: fixed; right: 20px; bottom: 84px; z-index: 9992; width: 300px; max-width: calc(100vw - 40px);
	max-height: calc(100vh - 120px); overflow: auto; box-sizing: border-box;
	background: #fff; color: #1b1c1a; border: 1px solid #c6c6ca; border-radius: 8px; padding: 16px;
	box-shadow: 0 16px 48px -12px rgba(0,0,0,.35); direction: rtl; text-align: right;
}
#ybpro-a11y-panel[hidden] { display: none; }
.ybpro-a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ybpro-a11y-head .ybpro-a11y-title { margin: 0; font-size: 18px; font-weight: 600; color: #1b1c1a; }
.ybpro-a11y-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #1b1c1a; padding: 4px 8px; }
.ybpro-a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ybpro-a11y-grid button, .ybpro-a11y-reset {
	font: 500 14px/1.3 Rubik, Arial, sans-serif; padding: 12px 8px; min-height: 48px; cursor: pointer;
	background: #f5f3ef; color: #1b1c1a; border: 1px solid #c6c6ca; border-radius: 6px;
}
.ybpro-a11y-grid button[aria-pressed="true"] { background: #1c1d1f; color: #fff; border-color: #1c1d1f; }
.ybpro-a11y-reset { width: 100%; margin-top: 10px; background: #fff; }
.ybpro-a11y-statement { display: block; margin-top: 12px; text-align: center; color: #584323; font-size: 14px; text-decoration: underline; }

/* Mobile: landing pages have a bottom action bar. */
@media (max-width: 767px) {
	body.ybpro-landing #ybpro-wa { bottom: 80px; left: 12px; }
	body.ybpro-landing #ybpro-a11y-toggle { bottom: 80px; right: 12px; width: 48px; height: 48px; }
	body.ybpro-landing #ybpro-a11y-panel { bottom: 140px; right: 12px; }
}

/* ---------- Accessibility modes (classes on <html>) ---------- */
html.ybpro-fs-1 body { zoom: 1.1; }
html.ybpro-fs-2 body { zoom: 1.2; }
html.ybpro-fs-3 body { zoom: 1.35; }
html.ybpro-fs--1 body { zoom: 0.92; }

html.ybpro-contrast body, html.ybpro-contrast body *:not(svg):not(path):not(img) {
	background-color: #000 !important; color: #fff !important; border-color: #fff !important;
	background-image: none !important; text-shadow: none !important; box-shadow: none !important;
}
html.ybpro-contrast a, html.ybpro-contrast a * { color: #ffeb3b !important; }
html.ybpro-contrast button, html.ybpro-contrast input, html.ybpro-contrast select, html.ybpro-contrast textarea { border: 1px solid #fff !important; }
html.ybpro-contrast .ybpro-a11y-grid button[aria-pressed="true"] { background: #ffeb3b !important; color: #000 !important; }
html.ybpro-contrast #ybpro-wa { background: #000 !important; border: 2px solid #ffeb3b !important; }

html.ybpro-gray body > *:not(#ybpro-floats) { filter: grayscale(1); }

html.ybpro-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 1px dashed currentColor; outline-offset: 2px; }

html.ybpro-font body, html.ybpro-font body *:not(.material-symbols-outlined) { font-family: Arial, "Helvetica Neue", sans-serif !important; letter-spacing: .01em !important; }

html.ybpro-motion *, html.ybpro-motion *::before, html.ybpro-motion *::after {
	animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

html.ybpro-cursor, html.ybpro-cursor * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1 4 8-3 1.5-4-8-6 5z' fill='%23000' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important;
}

@media (prefers-reduced-motion: reduce) {
	.ybpro-landing *, .ybpro-landing *::before, .ybpro-landing *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
