/*
 * WordPress integration layer.
 *
 * Scope rule: everything here is prefixed with .prosyo-theme (the body class)
 * and targets either WordPress-generated markup or the theme's own
 * prosyo-* classes. Plugin markup, WooCommerce templates and generic
 * selectors such as .button / .card / .row are deliberately left alone so the
 * template's styling never leaks into other plugins' output.
 */

.prosyo-theme .wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Native dropdown state also works for FAQ items added beyond exported IDs. */
.prosyo-theme .faq-answer-block.w--open { height: auto !important; }
.prosyo-theme .faq-answer-block:not(.w--open) { height: 0 !important; }
.prosyo-theme .faq-answer-block { interpolate-size: allow-keywords; transition: height .3s ease; }
.prosyo-theme .faq-question-block.w--open .faq-question-icon { transform: rotate(45deg) !important; }

/* ------------------------------------------------------------------
 * No-JS and interaction-failure fallback
 *
 * The template's sections start at opacity:0 so Webflow can animate them in.
 * If scripts never run, those start states must not hide the content. The
 * animations themselves are untouched - this only neutralises the start state.
 * ---------------------------------------------------------------- */
/* html gains .w-mod-js from the template's own inline probe, so the absence of
   it is an accurate "scripts never ran" signal. */
html:not(.w-mod-js) .prosyo-theme [style*="opacity:0"],
html:not(.w-mod-js) .prosyo-theme [style*="opacity: 0"] {
	opacity: 1 !important;
	transform: none !important;
}

/* The pattern layer is purely decorative and full-viewport, so it is left
   hidden in the fallback rather than forced on top of the page. */

/* ------------------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------------- */
.prosyo-theme .prosyo-pagination {
	display: flex;
	justify-content: center;
	margin-top: 60px;
}

.prosyo-theme .prosyo-pagination-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.prosyo-theme .prosyo-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--stoke, #ffffff1a);
	border-radius: 12px;
	background-color: var(--card, #ffffff03);
	color: var(--text, #f3f3f3);
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}

.prosyo-theme a.prosyo-page-link:hover {
	border-color: var(--primary, #b638ff);
	color: var(--white, #fff);
}

.prosyo-theme .prosyo-page-link.is-current {
	border-color: var(--primary, #b638ff);
	background-color: var(--button, #863aff);
	color: var(--white, #fff);
}

.prosyo-theme .prosyo-page-link.dots {
	border-color: transparent;
	background: none;
	min-width: 24px;
	padding: 0;
}

/* ------------------------------------------------------------------
 * Empty states
 * ---------------------------------------------------------------- */
.prosyo-theme .prosyo-empty {
	border: 1px solid var(--stoke, #ffffff1a);
	border-radius: 24px;
	background-color: var(--card, #ffffff03);
	padding: 48px 32px;
	text-align: center;
	color: var(--paragraph, #818089);
}

.prosyo-theme .prosyo-empty .h5 {
	margin-bottom: 12px;
	color: var(--text, #f3f3f3);
}

/* ------------------------------------------------------------------
 * Sidebar
 *
 * Designed from the same tokens as the template; never injected into the
 * original page layouts, only into WordPress-generated ones.
 * ---------------------------------------------------------------- */
.prosyo-theme .prosyo-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 40px;
	align-items: start;
}

.prosyo-theme .prosyo-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: 110px;
}

.prosyo-theme .prosyo-widget {
	border: 1px solid var(--stoke, #ffffff1a);
	border-radius: 24px;
	background-color: var(--card, #ffffff03);
	padding: 28px;
}

.prosyo-theme .prosyo-widget-title {
	margin-bottom: 18px;
	color: var(--text, #f3f3f3);
}

.prosyo-theme .prosyo-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.prosyo-theme .prosyo-widget ul a {
	color: var(--paragraph, #818089);
	text-decoration: none;
	transition: color .3s ease;
}

.prosyo-theme .prosyo-widget ul a:hover {
	color: var(--primary, #b638ff);
}

.prosyo-theme .prosyo-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.prosyo-theme .prosyo-tag-list a {
	display: inline-flex;
	padding: 8px 14px;
	border: 1px solid var(--stoke, #ffffff1a);
	border-radius: 99px;
	font-size: 14px;
	color: var(--paragraph, #818089);
	text-decoration: none;
	transition: border-color .3s ease, color .3s ease;
}

.prosyo-theme .prosyo-tag-list a:hover {
	border-color: var(--primary, #b638ff);
	color: var(--white, #fff);
}

.prosyo-theme .prosyo-search-form {
	display: flex;
	gap: 8px;
}

.prosyo-theme .prosyo-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--stoke, #ffffff1a);
	border-radius: 12px;
	background-color: #ffffff05;
	color: var(--text, #f3f3f3);
	font-family: inherit;
	font-size: 16px;
}

.prosyo-theme .prosyo-search-form input[type="search"]::placeholder {
	color: var(--paragraph, #818089);
}

.prosyo-theme .prosyo-search-form button {
	height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background-color: var(--button, #863aff);
	color: var(--white, #fff);
	font-family: inherit;
	font-size: 16px;
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * Contact form states
 * ---------------------------------------------------------------- */
.prosyo-theme .prosyo-form-message {
	margin-top: 20px;
}

.prosyo-theme .prosyo-field-error {
	display: block;
	margin-top: 6px;
	color: var(--secondary, #ff75d4);
	font-size: 14px;
}

.prosyo-theme .prosyo-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ------------------------------------------------------------------
 * Post content inside the template's rich-text container
 * ---------------------------------------------------------------- */
.prosyo-theme .w-richtext > .alignwide,
.prosyo-theme .w-richtext > .alignfull {
	max-width: 100%;
}

.prosyo-theme .w-richtext figure,
.prosyo-theme .w-richtext img {
	max-width: 100%;
	height: auto;
}

.prosyo-theme .w-richtext .wp-block-image img {
	border-radius: 16px;
}

/* ------------------------------------------------------------------
 * Reliable motion fallback
 * ---------------------------------------------------------------- */
.prosyo-theme .prosyo-reveal-fallback {
	will-change: opacity, transform;
	transition: opacity .7s cubic-bezier(.2, .75, .2, 1), transform .7s cubic-bezier(.2, .75, .2, 1) !important;
}

.prosyo-theme .prosyo-reveal-fallback.is-visible {
	opacity: 1 !important;
	transform: none !important;
}

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

/* ------------------------------------------------------------------
 * Native dropdown and Mega Menu Builder output
 * ---------------------------------------------------------------- */
.prosyo-theme .header-section,
.prosyo-theme .header-block,
.prosyo-theme .header-menu-block,
.prosyo-theme .header-navigation {
	position: relative;
	overflow: visible;
}

.prosyo-theme .prosyo-dropdown {
	position: relative;
}

.prosyo-theme .prosyo-mega-menu {
	position: static;
}

.prosyo-theme .prosyo-dropdown-panel,
.prosyo-theme .prosyo-mega-panel {
	display: block !important;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .25s cubic-bezier(.2, .75, .2, 1), visibility .2s ease;
}

.prosyo-theme .prosyo-dropdown.is-open > .prosyo-dropdown-panel,
.prosyo-theme .prosyo-mega-menu.is-open > .prosyo-mega-panel,
.prosyo-theme .prosyo-dropdown-panel.w--open,
.prosyo-theme .prosyo-mega-panel.w--open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.prosyo-theme .prosyo-dropdown-panel {
	left: 0;
	width: min(300px, calc(100vw - 32px));
	padding-top: 12px;
	background: transparent;
}

.prosyo-theme .prosyo-dropdown-list,
.prosyo-theme .prosyo-mega-inner {
	border: 1px solid var(--stoke, #ffffff1a);
	background: rgba(8, 5, 25, .98);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
	backdrop-filter: blur(20px);
}

.prosyo-theme .prosyo-dropdown-list {
	display: grid;
	gap: 4px;
	padding: 10px;
	border-radius: 16px;
}

.prosyo-theme .prosyo-mega-panel {
	top: 10px;
	left: 50%;
	width: min(1180px, calc(100vw - 48px));
	padding-top: 44px;
	background: transparent;
	transform: translate(-50%, 12px);
}

.prosyo-theme .prosyo-mega-menu.is-open > .prosyo-mega-panel,
.prosyo-theme .prosyo-mega-panel.w--open {
	transform: translate(-50%, 0);
}

.prosyo-theme .prosyo-mega-panel.is-full {
	width: calc(100vw - 32px);
}

.prosyo-theme .prosyo-mega-panel.is-content {
	width: min(880px, calc(100vw - 48px));
}

.prosyo-theme .prosyo-mega-inner {
	display: grid;
	gap: 20px;
	max-height: min(72vh, 720px);
	overflow: auto;
	padding: 24px;
	border-radius: 22px;
}

.prosyo-theme .prosyo-mega-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.prosyo-theme .prosyo-mega-row.columns-1 { grid-template-columns: minmax(0, 1fr); }
.prosyo-theme .prosyo-mega-row.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prosyo-theme .prosyo-mega-row.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.prosyo-theme .prosyo-mega-row + .prosyo-mega-row {
	padding-top: 20px;
	border-top: 1px solid var(--stoke, #ffffff1a);
}

.prosyo-theme .prosyo-mega-row-label {
	grid-column: 1 / -1;
	color: var(--quinary, #e9c4ff);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.prosyo-theme .prosyo-mega-column {
	display: grid;
	align-content: start;
	gap: 6px;
}

.prosyo-theme .prosyo-mega-column-title {
	margin: 0 12px 8px;
	color: var(--paragraph, #818089);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.prosyo-theme .prosyo-menu-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 11px 12px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: var(--text, #f3f3f3);
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.prosyo-theme .prosyo-menu-card:hover,
.prosyo-theme .prosyo-menu-card:focus-visible {
	border-color: rgba(182, 56, 255, .35);
	background: rgba(182, 56, 255, .08);
	transform: translateY(-1px);
}

.prosyo-theme .prosyo-menu-card-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--stoke, #ffffff1a);
	border-radius: 10px;
	background: rgba(255, 255, 255, .035);
}

.prosyo-theme .prosyo-menu-card-icon img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.prosyo-theme .prosyo-menu-card-copy {
	display: block;
	min-width: 0;
}

.prosyo-theme .prosyo-menu-card-title {
	display: inline;
	color: var(--text, #f3f3f3);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.prosyo-theme .prosyo-menu-card-badge {
	display: inline-flex;
	margin-left: 7px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(182, 56, 255, .16);
	color: var(--quinary, #e9c4ff);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
}

.prosyo-theme .prosyo-menu-card-description {
	display: block;
	margin-top: 4px;
	color: var(--paragraph, #818089);
	font-size: 12px;
	line-height: 1.45;
}

.prosyo-theme .header-dropdown.is-open > .header-dropdown-link .header-dropdown-icon {
	transform: rotate(180deg);
}

/* ------------------------------------------------------------------
 * Tools / Compare single-entry composition
 * ---------------------------------------------------------------- */
.prosyo-theme .prosyo-entry-section .section-gap {
	padding-top: clamp(28px, 4vw, 64px);
}

.prosyo-theme .prosyo-entry-media {
	margin: 0 0 clamp(42px, 7vw, 96px);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.prosyo-theme .prosyo-entry-media .section-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.prosyo-theme .prosyo-entry-content {
	width: min(100%, 880px);
	margin-inline: auto;
}

.prosyo-theme .prosyo-entry-tools .prosyo-entry-content {
	width: 100%;
}

.prosyo-theme .prosyo-entry-content > :first-child { margin-top: 0; }
.prosyo-theme .prosyo-entry-content > :last-child { margin-bottom: 0; }

/* Comments, when a site turns them on for posts. */
.prosyo-theme .prosyo-comments {
	margin-top: 60px;
	border-top: 1px solid var(--stoke, #ffffff1a);
	padding-top: 40px;
}

.prosyo-theme .prosyo-comments input[type="text"],
.prosyo-theme .prosyo-comments input[type="email"],
.prosyo-theme .prosyo-comments input[type="url"],
.prosyo-theme .prosyo-comments textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--stoke, #ffffff1a);
	border-radius: 12px;
	background-color: #ffffff05;
	color: var(--text, #f3f3f3);
	font-family: inherit;
}

/* ------------------------------------------------------------------
 * Responsive - mirrors the template's own breakpoints
 * ---------------------------------------------------------------- */
@media screen and (max-width: 991px) {
	.prosyo-theme .prosyo-dropdown,
	.prosyo-theme .prosyo-mega-menu {
		position: relative;
	}

	.prosyo-theme .prosyo-dropdown-panel,
	.prosyo-theme .prosyo-mega-panel {
		position: static;
		width: 100% !important;
		max-height: 0;
		padding: 0;
		overflow: hidden;
		transform: none !important;
		transition: max-height .35s ease, opacity .2s ease, visibility .2s ease;
	}

	/*
	 * An open panel is read by scrolling the menu, not by scrolling inside the
	 * panel: a scroll box nested in a scrolling menu is hard to use on a phone,
	 * and capping the height hid the lower half of the longer menus. The cap
	 * stays generous so the open transition still has something to animate to.
	 */
	.prosyo-theme .prosyo-dropdown.is-open > .prosyo-dropdown-panel,
	.prosyo-theme .prosyo-mega-menu.is-open > .prosyo-mega-panel,
	.prosyo-theme .prosyo-dropdown-panel.w--open,
	.prosyo-theme .prosyo-mega-panel.w--open {
		max-height: 400vh;
		padding-top: 10px;
		overflow: visible;
	}

	/*
	 * Webflow clips the collapsed menu to the height it measured when the menu
	 * opened. The theme re-measures it as panels open (see prosyo.js); this is
	 * the standing guarantee that nothing is cut off if that script is blocked.
	 */
	.prosyo-theme .header-section .w-nav-overlay {
		overflow: visible;
	}

	.prosyo-theme .prosyo-mega-inner {
		max-height: none;
		padding: 18px;
	}

	.prosyo-theme .prosyo-mega-row,
	.prosyo-theme .prosyo-mega-row.columns-3,
	.prosyo-theme .prosyo-mega-row.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.prosyo-theme .prosyo-with-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.prosyo-theme .prosyo-sidebar {
		position: static;
	}
}

@media screen and (max-width: 767px) {
	.prosyo-theme .prosyo-pagination {
		margin-top: 40px;
	}

	.prosyo-theme .prosyo-widget {
		padding: 24px;
	}
}

@media screen and (max-width: 479px) {
	.prosyo-theme .prosyo-mega-row,
	.prosyo-theme .prosyo-mega-row.columns-2,
	.prosyo-theme .prosyo-mega-row.columns-3,
	.prosyo-theme .prosyo-mega-row.columns-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.prosyo-theme .prosyo-mega-inner {
		padding: 14px;
		border-radius: 14px;
	}

	.prosyo-theme .prosyo-menu-card-description {
		font-size: 11px;
	}

	.prosyo-theme .prosyo-page-link {
		min-width: 38px;
		height: 38px;
		padding: 0 10px;
		font-size: 14px;
	}
}
