/*
Theme Name: BinaryPH AI Theme
Author: BinaryPH
Description: BinaryPH AI Theme is a modern WordPress Full Site Editing block theme for AI studios, automation agencies, and technology teams. It ships a dark glassmorphic design system with electric blue and cyan gradients, fluid typography, dependency-free scroll animations, and a full library of block patterns including heroes, sliders, counters, pricing, testimonials, tabs, video popups, magazine layouts, and WooCommerce storefront sections.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: binaryph-ai
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, blog, portfolio, news
*/

/* --------------------------------------------------------------
   1. Focus
-------------------------------------------------------------- */
:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--custom-secondary);
	outline-offset: 2px;
	border-radius: 2px;
}

/* --------------------------------------------------------------
   2. Sticky glass header
-------------------------------------------------------------- */
.binaryph-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--wp--preset--color--body-background) 72%, transparent);
	border-bottom: 1px solid transparent;
	transition: background var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease),
		border-color var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease),
		box-shadow var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease);
}

/* The glass blur lives on a pseudo-element, never on .binaryph-header itself:
   backdrop-filter creates a containing block for position:fixed descendants,
   which would trap the navigation's mobile overlay inside the header bar. */
.binaryph-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

@supports (backdrop-filter: blur(1px)) {
	.binaryph-header::before {
		backdrop-filter: blur(var(--wp--custom--glass--blur, 16px)) saturate(140%);
		-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur, 16px)) saturate(140%);
	}
}

body.admin-bar .binaryph-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

body.is-scrolled .binaryph-header {
	background: color-mix(in srgb, var(--wp--preset--color--body-background) 88%, transparent);
	border-bottom-color: var(--wp--preset--color--border-glass);
	box-shadow: var(--wp--preset--shadow--soft);
}

.binaryph-header-sentinel {
	position: absolute;
	top: 0;
	height: 1px;
	width: 1px;
	pointer-events: none;
}

/* --------------------------------------------------------------
   3. Post format badges (inline SVG masks, palette-driven)
-------------------------------------------------------------- */
.post_format-post-format-video > div,
.post_format-post-format-audio > div,
.post_format-post-format-gallery > div,
.post_format-post-format-image > div {
	position: relative;
}

.post_format-post-format-video > div:after,
.post_format-post-format-audio > div:after,
.post_format-post-format-gallery > div:after,
.post_format-post-format-image > div:after {
	content: "";
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border-radius: var(--wp--custom--radius--sm, 0.5rem);
	background-color: var(--wp--preset--color--custom-primary);
	box-shadow: var(--wp--preset--shadow--soft);
}

.post_format-post-format-video > div:before,
.post_format-post-format-audio > div:before,
.post_format-post-format-gallery > div:before,
.post_format-post-format-image > div:before {
	content: "";
	position: absolute;
	top: 20px;
	right: 20px;
	width: 20px;
	height: 20px;
	z-index: 1;
	background-color: var(--wp--preset--color--base-2);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.post_format-post-format-video > div:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

.post_format-post-format-audio > div:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3v10.55A4 4 0 1 0 14 17V7h4V3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 3v10.55A4 4 0 1 0 14 17V7h4V3z'/%3E%3C/svg%3E");
}

.post_format-post-format-gallery > div:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M22 16V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2zm-11-4 2.03 2.71L16 11l4 5H8zM2 6v14a2 2 0 0 0 2 2h14v-2H4V6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M22 16V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2zm-11-4 2.03 2.71L16 11l4 5H8zM2 6v14a2 2 0 0 0 2 2h14v-2H4V6z'/%3E%3C/svg%3E");
}

.post_format-post-format-image > div:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------
   4. Reveal-on-scroll system
   main.js adds `binaryph-anim` to <html> before first paint;
   without JS everything stays visible.
-------------------------------------------------------------- */
html.binaryph-anim .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--wp--custom--motion--ease, ease),
		transform 0.7s var(--wp--custom--motion--ease, ease);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}

html.binaryph-anim .reveal--fade {
	transform: none;
}

html.binaryph-anim .reveal--scale {
	transform: scale(0.94);
}

html.binaryph-anim .reveal--left {
	transform: translateX(-32px);
}

html.binaryph-anim .reveal--right {
	transform: translateX(32px);
}

html.binaryph-anim .reveal.is-revealed {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* Editor: never hide content in the canvas. */
.editor-styles-wrapper .reveal {
	opacity: 1 !important;
	transform: none !important;
}

/* --------------------------------------------------------------
   5. Glass surfaces
-------------------------------------------------------------- */
.binaryph-glass {
	background: var(--wp--preset--gradient--gradient-4);
	border: 1px solid var(--wp--preset--color--border-glass);
}

@supports (backdrop-filter: blur(1px)) {
	.binaryph-glass {
		background: var(--wp--preset--color--overlay-glass);
		backdrop-filter: blur(var(--wp--custom--glass--blur, 16px)) saturate(140%);
		-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur, 16px)) saturate(140%);
	}
}

/* --------------------------------------------------------------
   6. Card hover lift (palette-derived, survives style variations)
-------------------------------------------------------------- */
.has-hover-effect {
	transition: transform var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease),
		box-shadow var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease),
		border-color var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease);
}

.has-hover-effect:hover,
.has-hover-effect:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--wp--preset--color--custom-secondary) 25%, transparent),
		0 0 0 1px color-mix(in srgb, var(--wp--preset--color--custom-secondary) 18%, transparent);
}

/* --------------------------------------------------------------
   7. Buttons
-------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link {
	transition: filter var(--wp--custom--motion--durationFast, 150ms) var(--wp--custom--motion--ease, ease),
		box-shadow var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease),
		transform var(--wp--custom--motion--durationFast, 150ms) var(--wp--custom--motion--ease, ease);
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	filter: brightness(1.1);
	box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--wp--preset--color--custom-primary) 60%, transparent);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: translateY(1px);
}

.has-arrow-right .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.has-arrow-right .wp-block-button__link::after {
	content: "";
	width: 1em;
	height: 1em;
	flex: none;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: transform var(--wp--custom--motion--durationFast, 150ms) var(--wp--custom--motion--ease, ease);
}

.has-arrow-right .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* --------------------------------------------------------------
   8. Gradient text
-------------------------------------------------------------- */
.has-heading-extra-style mark,
.wp-block-site-title a {
	background: var(--wp--preset--gradient--gradient-9);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--wp--preset--color--custom-secondary);
}

@supports not (-webkit-background-clip: text) {
	.has-heading-extra-style mark,
	.wp-block-site-title a {
		background: none;
		color: var(--wp--preset--color--custom-secondary);
	}
}

/* --------------------------------------------------------------
   9. Scroll-to-top button
-------------------------------------------------------------- */
.binaryph-scroll-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	z-index: 110;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border-glass);
	border-radius: var(--wp--custom--radius--md, 0.75rem);
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease),
		transform var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease),
		box-shadow var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease);
}

.binaryph-scroll-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.binaryph-scroll-top:hover {
	box-shadow: var(--wp--preset--shadow--glow-cyan);
	color: var(--wp--preset--color--custom-secondary);
}

.binaryph-scroll-top svg {
	width: 1.1rem;
	height: 1.1rem;
}

/* --------------------------------------------------------------
   10. Logo marquee
-------------------------------------------------------------- */
.binaryph-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.binaryph-marquee__track {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40, 3rem);
	width: max-content;
	animation: binaryph-marquee 36s linear infinite;
}

.binaryph-marquee:hover .binaryph-marquee__track,
.binaryph-marquee:focus-within .binaryph-marquee__track {
	animation-play-state: paused;
}

.binaryph-marquee__track > * {
	flex: none;
	opacity: 0.55;
	transition: opacity var(--wp--custom--motion--durationFast, 150ms) ease;
}

.binaryph-marquee__track > *:hover {
	opacity: 1;
}

@keyframes binaryph-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* --------------------------------------------------------------
   11. Aurora orbs
-------------------------------------------------------------- */
.binaryph-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	pointer-events: none;
	z-index: 0;
	animation: binaryph-float 9s var(--wp--custom--motion--ease, ease-in-out) infinite alternate;
}

@keyframes binaryph-float {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(0, -28px, 0) scale(1.06);
	}
}

/* --------------------------------------------------------------
   12. Slider (CSS scroll-snap; JS adds controls, dots, autoplay)
-------------------------------------------------------------- */
.binaryph-slider {
	position: relative;
}

.binaryph-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.binaryph-slider__track::-webkit-scrollbar {
	display: none;
}

.binaryph-slider__track > * {
	flex: 0 0 100%;
	scroll-snap-align: start;
	min-width: 100%;
}

.binaryph-slider__prev,
.binaryph-slider__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border-glass);
	border-radius: var(--wp--custom--radius--full, 999px);
	background: color-mix(in srgb, var(--wp--preset--color--body-background) 60%, transparent);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	transition: box-shadow var(--wp--custom--motion--durationFast, 150ms) ease,
		color var(--wp--custom--motion--durationFast, 150ms) ease;
}

.binaryph-slider__prev {
	left: 1rem;
}

.binaryph-slider__next {
	right: 1rem;
}

.binaryph-slider__prev:hover,
.binaryph-slider__next:hover {
	box-shadow: var(--wp--preset--shadow--glow-cyan);
	color: var(--wp--preset--color--custom-secondary);
}

.binaryph-slider__prev svg,
.binaryph-slider__next svg {
	width: 1.1rem;
	height: 1.1rem;
}

.binaryph-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.25rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	z-index: 5;
}

.binaryph-slider__dots button {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--full, 999px);
	background: color-mix(in srgb, var(--wp--preset--color--base-2) 35%, transparent);
	cursor: pointer;
	transition: width var(--wp--custom--motion--duration, 300ms) var(--wp--custom--motion--ease, ease),
		background var(--wp--custom--motion--duration, 300ms) ease;
}

.binaryph-slider__dots button[aria-current="true"] {
	width: 1.6rem;
	background: var(--wp--preset--color--custom-secondary);
}

/* --------------------------------------------------------------
   13. Tabs (progressive enhancement; no-JS = stacked anchors)
-------------------------------------------------------------- */
.binaryph-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.binaryph-tabs__nav a,
.binaryph-tabs__nav button {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--wp--preset--color--border-glass);
	border-radius: var(--wp--custom--radius--full, 999px);
	background: transparent;
	color: var(--wp--preset--color--custom-text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--wp--custom--motion--durationFast, 150ms) ease,
		color var(--wp--custom--motion--durationFast, 150ms) ease,
		border-color var(--wp--custom--motion--durationFast, 150ms) ease;
}

.binaryph-tabs__nav a:hover,
.binaryph-tabs__nav button:hover {
	color: var(--wp--preset--color--base);
	border-color: color-mix(in srgb, var(--wp--preset--color--custom-secondary) 40%, transparent);
}

.binaryph-tabs__nav [aria-selected="true"] {
	background: var(--wp--preset--gradient--gradient-2);
	border-color: transparent;
	color: var(--wp--preset--color--base-2);
}

.binaryph-tabs__panel[hidden] {
	display: none;
}

/* --------------------------------------------------------------
   14. Video popup dialog
-------------------------------------------------------------- */
.binaryph-video-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.binaryph-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: var(--wp--custom--radius--full, 999px);
	background: var(--wp--preset--gradient--gradient-2);
	color: var(--wp--preset--color--base-2);
	animation: binaryph-pulse 2.4s ease-out infinite;
}

.binaryph-play svg {
	width: 1.5rem;
	height: 1.5rem;
	margin-left: 3px;
}

@keyframes binaryph-pulse {
	0% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--custom-secondary) 45%, transparent);
	}
	70% {
		box-shadow: 0 0 0 22px transparent;
	}
	100% {
		box-shadow: 0 0 0 0 transparent;
	}
}

.binaryph-video-dialog {
	width: min(90vw, 960px);
	padding: 0;
	border: 1px solid var(--wp--preset--color--border-glass);
	border-radius: var(--wp--custom--radius--lg, 1rem);
	background: var(--wp--preset--color--surface-1);
	overflow: hidden;
}

.binaryph-video-dialog::backdrop {
	background: rgba(3, 4, 10, 0.85);
	backdrop-filter: blur(6px);
}

.binaryph-video-dialog iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.binaryph-video-dialog__close {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--full, 999px);
	background: rgba(3, 4, 10, 0.7);
	color: var(--wp--preset--color--base-2);
	cursor: pointer;
}

.binaryph-video-dialog__close svg {
	width: 1rem;
	height: 1rem;
}

/* --------------------------------------------------------------
   15. Progress bars (fill animates when revealed)
-------------------------------------------------------------- */
.binaryph-progress {
	position: relative;
	height: 0.6rem;
	border-radius: var(--wp--custom--radius--full, 999px);
	background: var(--wp--preset--color--surface-2);
	overflow: hidden;
}

.binaryph-progress::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--progress, 0%);
	border-radius: inherit;
	background: var(--wp--preset--gradient--gradient-2);
}

html.binaryph-anim .reveal .binaryph-progress::after,
html.binaryph-anim .binaryph-progress.reveal::after {
	width: 0;
	transition: width 1.2s var(--wp--custom--motion--ease, ease);
}

html.binaryph-anim .reveal.is-revealed .binaryph-progress::after,
html.binaryph-anim .binaryph-progress.reveal.is-revealed::after {
	width: var(--progress, 0%);
}

/* --------------------------------------------------------------
   16. Counters
-------------------------------------------------------------- */
.binaryph-counter {
	font-family: var(--wp--preset--font-family--mono);
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------
   17. Forms (Contact Form 7, comments, WooCommerce)
-------------------------------------------------------------- */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select,
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea,
.woocommerce .input-text,
.wc-block-components-text-input input {
	width: 100%;
	padding: 0.7rem 0.9rem;
	background: var(--wp--preset--color--surface-2);
	border: 1px solid var(--wp--preset--color--border-glass);
	border-radius: var(--wp--custom--radius--sm, 0.5rem);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	transition: border-color var(--wp--custom--motion--durationFast, 150ms) ease,
		box-shadow var(--wp--custom--motion--durationFast, 150ms) ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus,
.woocommerce .input-text:focus {
	border-color: var(--wp--preset--color--custom-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--custom-primary) 25%, transparent);
	outline: none;
}

.wpcf7 input[type="submit"] {
	display: inline-block;
	padding: 0.7rem 1.5rem;
	background: var(--wp--preset--gradient--gradient-2);
	border: 0;
	border-radius: var(--wp--custom--radius--sm, 0.5rem);
	color: var(--wp--preset--color--base-2);
	font-weight: 600;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	filter: brightness(1.1);
}

.wpcf7 label {
	display: block;
	margin-bottom: 1rem;
	color: var(--wp--preset--color--custom-text);
	font-size: var(--wp--preset--font-size--small);
}

/* --------------------------------------------------------------
   18. WooCommerce token bridge
-------------------------------------------------------------- */
.wc-block-components-button:not(.is-link),
.woocommerce a.button,
.woocommerce button.button {
	background: var(--wp--preset--gradient--gradient-2);
	color: var(--wp--preset--color--base-2);
	border-radius: var(--wp--custom--radius--sm, 0.5rem);
	border: 0;
}

.wc-block-components-button:not(.is-link):hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	filter: brightness(1.1);
	color: var(--wp--preset--color--base-2);
}

.wc-block-components-panel,
.wc-block-cart-items,
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper {
	color: var(--wp--preset--color--custom-text);
}

.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	color: var(--wp--preset--color--custom-secondary);
	font-family: var(--wp--preset--font-family--mono);
}

.wc-block-components-product-badge,
.wc-block-grid__product-onsale,
.woocommerce span.onsale {
	background: var(--wp--preset--gradient--gradient-3);
	color: var(--wp--preset--color--base-2);
	border: 0;
	border-radius: var(--wp--custom--radius--full, 999px);
	padding: 0.25em 0.85em;
	font-weight: 600;
}

.wc-block-mini-cart__button {
	color: var(--wp--preset--color--base);
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--custom-primary);
	color: var(--wp--preset--color--base-2);
	border: 0;
}

/* --------------------------------------------------------------
   19. Navigation
-------------------------------------------------------------- */
.wp-block-navigation a:not(.wp-element-button) {
	transition: color var(--wp--custom--motion--durationFast, 150ms) ease;
}

:root :where(.wp-block-navigation a:not(.wp-element-button):hover) {
	color: var(--wp--preset--color--custom-secondary);
}

/* Current page indicator */
.wp-block-navigation .current-menu-item > a:not(.wp-element-button),
.wp-block-navigation a[aria-current="page"]:not(.wp-element-button) {
	color: var(--wp--preset--color--custom-secondary);
}

/* Desktop dropdown submenus */
@media (min-width: 720px) {
	.wp-block-navigation .wp-block-navigation__submenu-container {
		min-width: 220px;
		background: var(--wp--preset--color--surface-2);
		border: 1px solid var(--wp--preset--color--border-glass);
		border-radius: var(--wp--custom--radius--md, 0.75rem);
		box-shadow: var(--wp--preset--shadow--card);
		padding: 0.4rem;
		margin-top: 0.5rem;
	}

	.wp-block-navigation .wp-block-navigation__submenu-container a {
		font-size: var(--wp--preset--font-size--small);
		border-radius: var(--wp--custom--radius--sm, 0.5rem);
		padding: 0.5rem 0.75rem;
	}

	.wp-block-navigation .wp-block-navigation__submenu-container a:hover {
		background: color-mix(in srgb, var(--wp--preset--color--custom-primary) 18%, transparent);
	}
}

/* Hamburger + close buttons: comfortable 44px tap targets */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border-glass);
	border-radius: var(--wp--custom--radius--sm, 0.5rem);
	background: var(--wp--preset--color--overlay-glass);
	transition: border-color var(--wp--custom--motion--durationFast, 150ms) ease;
}

.wp-block-navigation__responsive-container-open:hover,
.wp-block-navigation__responsive-container-close:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--custom-secondary) 55%, transparent);
}

.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
	width: 1.4rem;
	height: 1.4rem;
}

/* Mobile fullscreen menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	z-index: 100000;
	background-image: var(--wp--preset--gradient--gradient-1);
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--surface-2) transparent;
	padding: 1.25rem clamp(1.25rem, 6vw, 2.5rem) 2.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	letter-spacing: -0.01em;
	padding: 0.55rem 0;
}

/* Default overlay type size — applies only when the Navigation block has no
   font size of its own, so the block's Typography setting stays in charge. */
.wp-block-navigation:not([style*="font-size"]):not([class*="font-size"]) .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > a {
	font-size: var(--wp--preset--font-size--large);
}

/* Submenus inside the overlay: indented rail, lighter type */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	margin-top: 0.25rem;
	padding-left: 1rem;
	border-left: 1px solid var(--wp--preset--color--border-glass);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {
	font-size: 0.9em;
	color: var(--wp--preset--color--custom-text);
	padding: 0.45rem 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a:hover {
	color: var(--wp--preset--color--custom-secondary);
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-navigation__responsive-container.is-menu-open {
		animation: binaryph-overlay-in 250ms var(--wp--custom--motion--ease, ease) both;
	}
}

@keyframes binaryph-overlay-in {
	from {
		opacity: 0;
		transform: translateY(-0.5rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* --------------------------------------------------------------
   20. Misc utilities
-------------------------------------------------------------- */
footer.wp-block-template-part {
	margin: 0;
}

/* An empty Button block renders as a blank colored pill — never show one.
   (The :not() keeps the editor's "Add text…" placeholder visible while editing.) */
.wp-block-button__link:empty:not([data-rich-text-placeholder]) {
	display: none;
}

.has-img-before {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.binaryph-clip {
	position: relative;
	overflow: hidden;
}

.binaryph-above {
	position: relative;
	z-index: 1;
}

.binaryph-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--custom-secondary);
}

.binaryph-icon-ring {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: var(--wp--custom--radius--md, 0.75rem);
	background: color-mix(in srgb, var(--wp--preset--color--custom-primary) 16%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--custom-secondary) 25%, transparent);
	color: var(--wp--preset--color--custom-secondary);
}

.binaryph-icon-ring svg {
	width: 1.5rem;
	height: 1.5rem;
}

.binaryph-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--wp--custom--radius--full, 999px);
	background: var(--wp--preset--gradient--gradient-3);
	color: var(--wp--preset--color--base-2);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	flex: none;
}

.binaryph-stars {
	display: inline-flex;
	gap: 0.15rem;
	color: var(--wp--preset--color--custom-secondary);
}

.binaryph-stars svg {
	width: 1rem;
	height: 1rem;
}

/* Scroll-driven enhancement for decorative orbs. */
@supports (animation-timeline: view()) {
	.binaryph-orb {
		animation: binaryph-float linear both;
		animation-timeline: view();
	}
}

/* --------------------------------------------------------------
   21. Reduced motion: everything stays visible and still
-------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html.binaryph-anim .reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.binaryph-marquee__track,
	.binaryph-orb,
	.binaryph-play {
		animation: none !important;
	}

	.binaryph-marquee {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}

	html.binaryph-anim .reveal .binaryph-progress::after,
	html.binaryph-anim .binaryph-progress.reveal::after {
		width: var(--progress, 0%);
		transition: none;
	}

	.has-hover-effect:hover,
	.has-hover-effect:focus-within {
		transform: none;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
}
