/*
Theme Name: Vexora
Theme URI:
Author: Effe Themes
Author URI: https://www.effethemes.com/
Description: Vexora is a premium full-site-editing agency theme engineered for studios, consultancies, and digital product teams. Built on modern Gutenberg FSE architecture, Vexora delivers an asymmetric layout system, precise typographic scale, and a deep-contrast aesthetic that commands attention. Designed for performance, editorial clarity, and long-term scalability across complex digital projects.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vexora
Tags: blog, portfolio, block-styles, full-site-editing, two-columns, full-width-template, custom-logo, custom-menu, editor-style, block-patterns, translation-ready, template-editing, one-column, wide-blocks
*/

/* ==========================================
   RESET & BASE
   ========================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html,
body {
	overflow-x: hidden;
}

body {
	background-color: var(--wp--preset--color--vx-bg-primary);
	color: var(--wp--preset--color--vx-text-muted);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
	margin-block-start: 0;
}

a {
	color: inherit;
	transition:
		color 0.2s ease,
		opacity 0.2s ease;
}

ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

ul > li > a {
	text-decoration: none;
}

ul > li > a:hover {
	color: var(--wp--preset--color--vx-accent) !important;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

/* ==========================================
   SELECTION
   ========================================== */

::selection {
	background-color: var(--wp--preset--color--vx-accent);
	color: var(--wp--preset--color--vx-bg-primary);
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--vx-bg-primary);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--vx-surface);
	border-radius: 3px;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.full-width-image,
.full-width-image > img {
	width: 100% !important;
}

/* Noise texture overlay */
.vx-noise {
	position: relative;
}

.vx-noise::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 0;
	opacity: 0.4;
}

/* Glow accent backgrounds */
.vx-glow-teal {
	position: relative;
	overflow: hidden;
}

.vx-glow-teal::after {
	content: '';
	position: absolute;
	top: -20%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(
		ellipse at center,
		rgba(0, 212, 168, 0.12) 0%,
		rgba(0, 212, 168, 0.04) 50%,
		transparent 75%
	);
	pointer-events: none;
	z-index: 0;
}

.vx-glow-left::after {
	right: auto;
	left: -10%;
}

/* Accent line decoration */
.vx-accent-line {
	position: relative;
	padding-left: 20px;
}

.vx-accent-line::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 70%;
	background: var(--wp--preset--color--vx-accent);
	border-radius: 2px;
}

/* ==========================================
   HEADER
   ========================================== */

.wp-block-site-title > a {
	text-decoration: none;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wp-block-site-title > a:hover {
	color: var(--wp--preset--color--vx-accent) !important;
}

.vx-header {
	border-bottom: 1px solid rgba(240, 237, 232, 0.06);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 15, 0.85);
}

.wp-block-navigation-item__content {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.wp-block-navigation-item:hover > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--vx-accent) !important;
}

.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	border: 1px solid rgba(240, 237, 232, 0.08) !important;
	background: var(--wp--preset--color--vx-surface) !important;
	border-radius: 8px;
	overflow: hidden;
}

.wp-block-navigation-submenu > li {
	background: transparent !important;
	color: var(--wp--preset--color--vx-text-muted);
	transition: background 0.15s ease;
}

.wp-block-navigation-submenu > li:hover {
	background: rgba(240, 237, 232, 0.04) !important;
}

.wp-block-navigation__responsive-container-content {
	align-items: start !important;
}

/* ==========================================
   HERO
   ========================================== */

.vx-hero {
	position: relative;
	overflow: hidden;
}

.vx-hero-grid-bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(240, 237, 232, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(240, 237, 232, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
	pointer-events: none;
	z-index: 0;
	mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

.vx-hero-content {
	position: relative;
	z-index: 2;
}

.vx-hero-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--vx-accent);
	border: 1px solid rgba(0, 212, 168, 0.25);
	border-radius: 100px;
	padding: 6px 16px;
}

.vx-hero-label::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--wp--preset--color--vx-accent);
	border-radius: 50%;
	animation: vx-pulse 2s ease-in-out infinite;
}

@keyframes vx-pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.8);
	}
}

/* ==========================================
   BUTTONS
   ========================================== */

.wp-block-button__link,
.wp-block-search__button {
	background: var(--wp--preset--color--vx-accent);
	color: var(--wp--preset--color--vx-bg-primary) !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: all 0.2s ease;
	border: none;
}

.wp-block-button__link:hover,
.wp-block-search__button:hover {
	background: var(--wp--preset--color--vx-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 212, 168, 0.25);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--vx-text-primary) !important;
	border: 1px solid rgba(240, 237, 232, 0.2) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--vx-accent) !important;
	color: var(--wp--preset--color--vx-accent) !important;
	box-shadow: none;
	transform: none;
}

/* ==========================================
   FORMS & INPUTS
   ========================================== */

input,
textarea,
select {
	background: var(--wp--preset--color--vx-surface) !important;
	color: var(--wp--preset--color--vx-text-primary) !important;
	border: 1px solid rgba(240, 237, 232, 0.1) !important;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--vx-accent) !important;
}

/* ==========================================
   CARDS & SURFACES
   ========================================== */

.vx-card {
	background: var(--wp--preset--color--vx-surface);
	border: 1px solid rgba(240, 237, 232, 0.06);
	border-radius: 16px;
	transition:
		border-color 0.2s ease,
		transform 0.2s ease;
}

.vx-card:hover {
	border-color: rgba(0, 212, 168, 0.2);
	transform: translateY(-2px);
}

/* ==========================================
   SERVICES GRID
   ========================================== */

.vx-service-item {
	border-top: 1px solid rgba(240, 237, 232, 0.08);
	transition: border-color 0.2s ease;
}

.vx-service-item:hover {
	border-top-color: var(--wp--preset--color--vx-accent);
}

.vx-service-number {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--vx-accent);
	font-variant-numeric: tabular-nums;
}

/* ==========================================
   STATS
   ========================================== */

.vx-stat-value {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	color: var(--wp--preset--color--vx-text-primary);
	line-height: 1;
	letter-spacing: -0.03em;
}

.vx-stat-label {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--vx-text-muted);
}

/* ==========================================
   BLOG / POSTS
   ========================================== */

.wp-block-post-title > a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-post-title > a:hover {
	color: var(--wp--preset--color--vx-accent) !important;
}

.wp-block-post-featured-image img {
	border-radius: 12px;
	transition: transform 0.3s ease;
}

.wp-block-post-featured-image:hover img {
	transform: scale(1.02);
}

.vx-post-meta {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--vx-accent);
}

.wp-block-read-more {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--vx-accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap 0.2s ease;
}

.wp-block-read-more::after {
	content: '→';
}

.wp-block-read-more:hover {
	gap: 10px;
}

/* ==========================================
   SEPARATOR
   ========================================== */

.wp-block-separator {
	border-color: rgba(240, 237, 232, 0.07) !important;
}

/* ==========================================
   PAGINATION
   ========================================== */

.wp-block-query-pagination {
	display: flex;
	gap: 8px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination-numbers a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(240, 237, 232, 0.1);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.wp-block-query-pagination a:hover {
	border-color: var(--wp--preset--color--vx-accent);
	color: var(--wp--preset--color--vx-accent);
}

/* ==========================================
   FOOTER
   ========================================== */

.vx-footer {
	border-top: 1px solid rgba(240, 237, 232, 0.06);
}

.vx-footer-logo {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--vx-text-primary);
}

.vx-footer-nav a {
	font-size: 14px;
	font-weight: 400;
	color: var(--wp--preset--color--vx-text-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.vx-footer-nav a:hover {
	color: var(--wp--preset--color--vx-accent);
}

.vx-copy {
	font-size: 13px;
	color: rgba(240, 237, 232, 0.3);
}

.vx-copy a {
	color: rgba(240, 237, 232, 0.5);
	text-decoration: none;
}

.vx-copy a:hover {
	color: var(--wp--preset--color--vx-accent);
}

/* ==========================================
   SEARCH
   ========================================== */

.wp-block-search.wp-block-search__button-only .wp-block-search__button {
	display: block !important;
}

/* ==========================================
   404 / SEARCH RESULTS
   ========================================== */

.vx-404-code {
	font-size: clamp(6rem, 15vw, 12rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.05em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(240, 237, 232, 0.1);
	position: relative;
}

/* ==========================================
   MEDIA QUERIES
   ========================================== */

@media (max-width: 1024px) {
	.wp-block-columns {
		flex-direction: column;
	}
}

.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
	z-index: 101;
}

@media (max-width: 992px) {
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open)
		.wp-block-navigation__responsive-container-close,
	.wp-block-navigation__responsive-container-open:not(.always-shown),
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.wp-block-navigation__container {
		--navigation-layout-justification-setting: flex-start !important;
		--navigation-layout-justify: flex-start !important;
	}
}

@media (max-width: 768px) {
	.wp-block-buttons {
		flex-direction: column;
	}

	.vx-hero-grid-bg {
		background-size: 40px 40px;
	}
}

@media (max-width: 600px) {
	.vx-stat-value {
		font-size: 2.5rem;
	}
}

.wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open {
	color: #fff;
	inset-block-end: auto;
	background: var(--wp--preset--color--vx-surface);
}

.has-modal-open .wp-block-navigation__responsive-close {
	height: 100vh;
}

.form-submit > input[name='submit'] {
	background: var(--wp--preset--color--vx-accent) !important;
}

.wp-block-navigation-submenu__toggle:focus,
.wp-block-navigation-submenu__toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--vx-accent);
	outline-offset: 2px;
}
