/*
Theme Name: Nova
Theme URI: https://test.imobilezone.com
Author: JetHost
Description: Модерна блок тема с пълно редактиране на сайта — чиста типография, градиентен hero, карти с услуги и тъмен футър.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nova
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.nova-header {
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent) !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .nova-header { top: 32px; }

.nova-hero {
	position: relative; overflow: hidden; isolation: isolate;
}
.nova-hero::before {
	content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%; z-index: -1;
	background:
		radial-gradient(40% 50% at 20% 30%, rgba(91,91,247,.55), transparent 70%),
		radial-gradient(35% 45% at 80% 20%, rgba(198,244,50,.35), transparent 70%),
		radial-gradient(45% 55% at 60% 80%, rgba(236,72,153,.30), transparent 70%);
	filter: blur(40px);
	animation: nova-drift 18s ease-in-out infinite alternate;
}
.nova-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
	background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes nova-drift { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .nova-hero::before { animation: none; } }

.nova-badge {
	display: inline-block; padding: .35rem .85rem; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
	letter-spacing: .02em;
}

.nova-card {
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	border: 1px solid var(--wp--preset--color--line);
}
.nova-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px rgba(11,11,18,.25);
	border-color: color-mix(in srgb, var(--wp--preset--color--accent) 45%, var(--wp--preset--color--line));
}
.nova-icon {
	width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--wp--preset--color--accent), #8b5cf6);
	color: #fff; font-size: 1.25rem; margin-bottom: 1rem !important;
}

.nova-stat strong { display: block; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1; }

.wp-block-post .wp-block-post-featured-image img { border-radius: 16px; transition: transform .4s ease; }
.wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.02); }

.wp-block-button__link { transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(91,91,247,.6); }
.is-style-outline .wp-block-button__link:hover { box-shadow: none; }

:where(a):focus-visible, :where(button):focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 4px; }
