/* MultiOptimization theme — the only stylesheet the theme loads.
   Everything else comes from theme.json presets. */

/* ---------- Cards ---------- */

.mo-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.75rem;
	box-shadow: 0 1px 2px rgba(23, 18, 74, 0.04);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	height: 100%;
}

.mo-card:hover {
	box-shadow: 0 10px 28px rgba(23, 18, 74, 0.1);
	transform: translateY(-2px);
}

.mo-card h3 a,
.mo-card h2 a {
	text-decoration: none;
}

.mo-card-dark {
	background: var(--wp--preset--color--navy-2);
	border-color: rgba(255, 255, 255, 0.12);
}

/* Small pill label above card / section titles */
.mo-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--violet-dark);
	background: var(--wp--preset--color--lavender);
	border-radius: 999px;
	padding: 0.25rem 0.85rem;
}

.mo-eyebrow-on-dark {
	color: #d9ccff;
	background: rgba(255, 255, 255, 0.1);
}

/* ---------- Checklist (feature lists) ---------- */

ul.mo-checklist {
	list-style: none;
	padding-left: 0;
}

ul.mo-checklist > li {
	padding-left: 1.9em;
	position: relative;
	margin-bottom: 0.55em;
}

ul.mo-checklist > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 1.15em;
	height: 1.15em;
	border-radius: 50%;
	background: var(--wp--preset--color--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235539b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/62% no-repeat;
}

.mo-on-dark ul.mo-checklist > li::before {
	background-color: rgba(255, 255, 255, 0.14);
}

/* ---------- FAQ accordion (native details/summary — zero JS) ---------- */

details.mo-faq {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 0;
	margin-bottom: 0.75rem;
	background: var(--wp--preset--color--base);
}

details.mo-faq summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	padding: 1rem 1.25rem;
	list-style: none;
	position: relative;
	padding-right: 3rem;
}

details.mo-faq summary::-webkit-details-marker {
	display: none;
}

details.mo-faq summary::after {
	content: "+";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--wp--preset--color--violet);
	transition: transform 0.15s ease;
}

details.mo-faq[open] summary::after {
	content: "–";
}

details.mo-faq > :not(summary) {
	padding: 0 1.25rem;
}

details.mo-faq > :last-child {
	padding-bottom: 1.1rem;
}

/* ---------- Comparison / spec tables ---------- */

.mo-table table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95rem;
}

.mo-table th,
.mo-table td {
	border: 1px solid var(--wp--preset--color--line);
	padding: 0.7rem 0.9rem;
	text-align: left;
	vertical-align: top;
}

.mo-table thead th,
.mo-table tr:first-child strong:only-child {
	background: var(--wp--preset--color--navy);
	color: #fff;
}

.mo-table tbody tr:nth-child(even) td {
	background: var(--wp--preset--color--gray-light);
}

/* Highlight column (the "us" column in comparisons) */
.mo-table .mo-col-highlight,
.mo-table td.mo-col-highlight {
	background: var(--wp--preset--color--lavender) !important;
	font-weight: 600;
}

/* ---------- Stats row ---------- */

.mo-stat {
	text-align: center;
}

.mo-stat .mo-stat-number {
	font-size: clamp(2rem, 4vw, 2.9rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--violet);
	display: block;
	letter-spacing: -0.02em;
}

.mo-on-dark .mo-stat .mo-stat-number {
	color: #c9b8ff;
}

.mo-stat .mo-stat-label {
	font-size: 0.92rem;
	color: var(--wp--preset--color--gray);
}

.mo-on-dark .mo-stat .mo-stat-label {
	color: rgba(255, 255, 255, 0.72);
}

/* ---------- Breadcrumbs (MO SEO) ---------- */

.mo-breadcrumbs {
	font-size: 0.85rem;
	color: var(--wp--preset--color--gray);
	margin: 0 0 1.25rem;
}

.mo-breadcrumbs a {
	color: var(--wp--preset--color--gray);
	text-decoration: none;
}

.mo-breadcrumbs a:hover {
	color: var(--wp--preset--color--violet-dark);
	text-decoration: underline;
}

/* ---------- Buttons: secondary/outline styles ---------- */

.wp-block-button.is-style-outline .wp-block-button__link,
.mo-btn-outline .wp-block-button__link {
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--violet);
	color: var(--wp--preset--color--violet-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--lavender);
	color: var(--wp--preset--color--navy);
}

.mo-on-dark .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.mo-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* ---------- Header ---------- */

.mo-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	position: sticky;
	top: 0;
	z-index: 90;
}

.mo-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--violet-dark);
}

/* Admin bar offset for the sticky header */
body.admin-bar .mo-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* ---------- Footer ---------- */

.mo-footer {
	background: var(--wp--preset--color--navy);
	color: rgba(255, 255, 255, 0.82);
}

.mo-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.mo-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.mo-footer h2,
.mo-footer h3,
.mo-footer .wp-block-site-title a {
	color: #fff;
}

/* ---------- Hero on dark sections ---------- */

.mo-on-dark,
.mo-on-dark h1,
.mo-on-dark h2,
.mo-on-dark h3,
.mo-on-dark h4 {
	color: #fff;
}

.mo-on-dark p {
	color: rgba(255, 255, 255, 0.86);
}

.mo-on-dark a:not(.wp-block-button__link) {
	color: #cfc0ff;
}

/* Screenshot framing */
.mo-screenshot img {
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 18px 44px rgba(23, 18, 74, 0.18);
	height: auto;
}

/* ---------- WooCommerce polish ---------- */

/* Product cards in shop grid */
.woocommerce ul.products li.product {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.1rem;
	transition: box-shadow 0.15s ease;
}

.woocommerce ul.products li.product:hover {
	box-shadow: 0 10px 28px rgba(23, 18, 74, 0.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.05rem;
	color: var(--wp--preset--color--navy);
}

.woocommerce ul.products li.product .price {
	color: var(--wp--preset--color--violet-dark);
	font-weight: 600;
}

.woocommerce ul.products li.product img {
	border-radius: 8px;
}

/* Buttons WooCommerce renders itself (add to cart, checkout…) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
	background-color: var(--wp--preset--color--violet);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: var(--wp--preset--color--violet-dark);
	color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: var(--wp--preset--color--navy);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background-color: var(--wp--preset--color--navy-2);
}

/* Sale / status badges */
.woocommerce span.onsale {
	background: var(--wp--preset--color--teal);
	border-radius: 999px;
	line-height: 2.6;
	min-height: auto;
	padding: 0 0.9rem;
}

/* Single product */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--violet-dark);
	font-size: 1.35rem;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: var(--wp--preset--color--base);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--wp--preset--color--navy);
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--wp--preset--color--violet);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--wp--preset--color--violet);
}

/* ---------- Demo download CTA ---------- */

.mo-demo-cta {
	background: var(--wp--preset--color--lavender);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}

.mo-demo-cta h3 {
	margin-top: 0;
}

/* Download button: filled violet with a download icon before the label */
.mo-btn-download .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.55em;
	vertical-align: -0.18em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10m0 0l-4.5-4.5M12 13l4.5-4.5M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10m0 0l-4.5-4.5M12 13l4.5-4.5M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Classic-menu bridge (mega menu plugins) ---------- */

/* Only used when the [mo_nav_menu] shortcode replaces the Navigation
   block in the header — gives Max Mega Menu & co. a sane baseline. */
.mo-classic-nav > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mo-classic-nav a {
	text-decoration: none;
	color: inherit;
}

.mo-classic-nav a:hover {
	color: var(--wp--preset--color--violet-dark);
}

/* ---------- Misc ---------- */

/* Videos embedded 16:9 without layout shift */
.mo-video iframe {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Slim down archive pagination */
.wp-block-query-pagination a,
.wp-block-query-pagination-numbers .page-numbers {
	text-decoration: none;
}

@media (max-width: 781px) {
	.mo-card {
		padding: 1.25rem;
	}
}
