/*
Theme Name: Nova Law
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-law
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* ============================================================
   NOVA LAW — custom design
   ============================================================ */
:root {
	--nova-bg: var(--wp--preset--color--background);
	--nova-surface: var(--wp--preset--color--surface);
	--nova-alt: var(--wp--preset--color--surface-alt);
	--nova-primary: var(--wp--preset--color--primary);
	--nova-primary-deep: var(--wp--preset--color--primary-deep);
	--nova-primary-soft: var(--wp--preset--color--primary-soft);
	--nova-text: var(--wp--preset--color--text);
	--nova-text-2: var(--wp--preset--color--text-secondary);
	--nova-border: rgba(20, 50, 90, 0.10);
	--nova-glass: rgba(255, 255, 255, 0.68);
	--nova-glass-border: rgba(255, 255, 255, 0.65);
	--nova-r-lg: 24px;
	--nova-r-xl: 28px;
	--nova-radius: 16px;
	--nova-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
	--nova-display: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, sans-serif;
	--nova-shadow-sm: 0 1px 2px rgba(15, 40, 80, 0.04), 0 8px 24px rgba(15, 40, 80, 0.06);
	--nova-shadow-lg: 0 10px 40px rgba(20, 60, 120, 0.14);
}

html {
	scroll-behavior: smooth;
}

body {
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(10,132,255,0.10), transparent 60%),
		radial-gradient(900px 500px at -10% 20%, rgba(90,168,255,0.10), transparent 55%),
		var(--nova-bg);
	color: var(--nova-text);
	font-family: var(--nova-font);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: rgba(10,132,255,0.18);
}

h1, h2, h3, h4 {
	font-family: var(--nova-display);
	color: var(--nova-text);
}

a {
	color: var(--nova-primary);
	text-decoration: none;
	transition: color .2s ease;
}

a:hover {
	color: var(--nova-primary-deep);
}

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

.nova-container {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Buttons */
.nova-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-family: var(--nova-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.nova-btn-primary {
	background: var(--nova-primary);
	color: #fff;
	box-shadow: 0 8px 20px rgba(10,132,255,0.28);
}
.nova-btn-primary:hover {
	background: var(--nova-primary-deep);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(10,132,255,0.36);
}
.nova-btn-ghost {
	background: var(--nova-glass);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-color: var(--nova-glass-border);
	color: var(--nova-text);
	box-shadow: var(--nova-shadow-sm);
}
.nova-btn-ghost:hover {
	color: var(--nova-primary);
	transform: translateY(-2px);
	box-shadow: var(--nova-shadow-sm);
}

/* ============ HEADER ============ */
.nova-header-wrap {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 900;
}
.nova-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px clamp(1.25rem, 4vw, 3rem);
	background: rgba(255,255,255,0.62);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(20,50,90,0.08);
}
.nova-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--nova-text);
}
.nova-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--nova-primary), var(--nova-primary-deep));
	color: #fff;
	box-shadow: 0 6px 16px rgba(10,132,255,0.3);
}
.nova-logo-mark svg {
	width: 22px;
	height: 22px;
}
.nova-logo-text {
	font-family: var(--nova-display);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.nova-logo-a {
	color: var(--nova-primary);
}
.nova-logo-b {
	color: var(--nova-text);
}
.nova-nav {
	display: flex;
	align-items: center;
	gap: 26px;
}
.nova-nav a {
	position: relative;
	color: var(--nova-text);
	font-size: 15px;
	font-weight: 500;
}
.nova-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--nova-primary);
	transition: width .25s ease;
}
.nova-nav a:hover {
	color: var(--nova-primary);
}
.nova-nav a:hover::after {
	width: 100%;
}
.nova-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}
.nova-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--nova-border);
	background: rgba(255,255,255,0.7);
	color: var(--nova-text);
	cursor: pointer;
	transition: .2s ease;
}
.nova-icon-btn:hover {
	border-color: var(--nova-primary);
	color: var(--nova-primary);
}
.nova-icon-btn svg {
	width: 20px;
	height: 20px;
}
.nova-header-cta {
	padding: 11px 22px;
}
.nova-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--nova-border);
	border-radius: 12px;
	cursor: pointer;
}
.nova-burger span {
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--nova-text);
	transition: .25s ease;
}
.nova-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nova-burger.is-open span:nth-child(2) { opacity: 0; }
.nova-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile glass menu */
.nova-mobile-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 24px;
	background: var(--nova-glass);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border-bottom: 1px solid var(--nova-glass-border);
	box-shadow: var(--nova-shadow-lg);
}
.nova-mobile-menu.is-open {
	display: block;
	animation: novaFade .25s ease;
}
.nova-mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.nova-mobile-nav a {
	padding: 14px 4px;
	font-size: 17px;
	font-weight: 600;
	color: var(--nova-text);
	border-bottom: 1px solid rgba(20,50,90,0.06);
}
.nova-mobile-nav a:hover {
	color: var(--nova-primary);
}
.nova-mobile-cta {
	width: 100%;
	margin-top: 18px;
}

/* ============ MAIN / HEADROOM (fixed header) ============ */
main {
	padding-top: var(--nova-headroom, 78px);
}
@media (max-width: 720px) {
	main {
		--nova-headroom: 68px;
	}
}

/* ============ HERO ============ */
.nova-hero {
	position: relative;
	padding: clamp(20px, 3vw, 44px) 0 clamp(48px, 6vw, 90px);
}
.nova-hero-cols {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(30px, 5vw, 64px);
	align-items: center;
}
.nova-hero-copy .nova-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(10,132,255,0.08);
	border: 1px solid rgba(10,132,255,0.18);
	color: var(--nova-primary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.nova-hero-title {
	margin: 22px 0 20px;
	font-size: clamp(40px, 5.4vw, 72px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.03em;
}
.nova-accent {
	color: var(--nova-primary);
}
.nova-hero-sub {
	margin: 0 0 30px;
	max-width: 520px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--nova-text-2);
}
.nova-hero-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.nova-trust {
	list-style: none;
	margin: 34px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}
.nova-trust li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 500;
	color: var(--nova-text-2);
}
.nova-trust .nova-tick {
	display: inline-flex;
	color: var(--nova-primary);
}
.nova-trust .nova-tick svg {
	width: 18px;
	height: 18px;
}

/* Hero media + floating glass cards */
.nova-hero-media {
	position: relative;
}
.nova-hero-imgwrap {
	border-radius: 30px;
	overflow: hidden;
	box-shadow: var(--nova-shadow-lg);
}
.nova-hero-imgwrap img {
	width: 100%;
	display: block;
	aspect-ratio: 4/4.4;
	object-fit: cover;
}
.nova-float {
	position: absolute;
	background: var(--nova-glass);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--nova-glass-border);
	border-radius: 18px;
	padding: 14px 18px;
	box-shadow: var(--nova-shadow-lg);
	color: var(--nova-text);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.nova-float strong {
	font-family: var(--nova-display);
	font-size: 24px;
	color: var(--nova-primary);
}
.nova-float span {
	font-size: 13px;
	font-weight: 500;
	color: var(--nova-text-2);
}
.nova-float-1 { top: 26px; left: -26px; }
.nova-float-2 { bottom: 74px; right: -18px; max-width: 190px; }
.nova-float-3 { bottom: -18px; left: 26px; }

/* ============ CONTACT STRIP ============ */
.nova-strip {
	padding: 0 0 clamp(48px, 6vw, 80px);
}
.nova-strip-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.nova-strip-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	border-radius: var(--nova-r-lg);
	background: var(--nova-glass);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--nova-glass-border);
	box-shadow: var(--nova-shadow-sm);
}
.nova-strip-ic {
	display: inline-flex;
	color: var(--nova-primary);
	margin-bottom: 4px;
}
.nova-strip-ic svg { width: 22px; height: 22px; }
.nova-strip-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nova-text-2);
}
.nova-strip-val {
	font-size: 15px;
	font-weight: 600;
	color: var(--nova-text);
}
a.nova-strip-val:hover {
	color: var(--nova-primary);
}

/* ============ SECTIONS ============ */
.nova-section {
	padding: clamp(60px, 7vw, 100px) 0;
}
.nova-alt {
	background: var(--nova-alt);
}
.nova-h2 {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin: 0 0 18px;
}
.nova-center {
	text-align: center;
}
.nova-center.nova-h2 {
	margin-left: auto;
	margin-right: auto;
}
.nova-section-desc {
	max-width: 640px;
	margin: 0 auto 40px;
	color: var(--nova-text-2);
	font-size: 17px;
	line-height: 1.6;
}

/* About */
.nova-about-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(30px, 5vw, 70px);
	align-items: center;
}
.nova-about-title .nova-btn {
	margin-top: 12px;
}
.nova-lead {
	font-size: 20px;
	line-height: 1.6;
	color: var(--nova-text);
	margin: 0 0 28px;
}
.nova-feature-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.nova-feature-chip {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	border-radius: var(--nova-radius);
	background: var(--nova-glass);
	border: 1px solid var(--nova-glass-border);
	box-shadow: var(--nova-shadow-sm);
}
.nova-feature-chip strong {
	font-size: 15px;
	color: var(--nova-text);
}
.nova-feature-chip span {
	font-size: 13px;
	color: var(--nova-text-2);
}

/* Practice grid */
.nova-practice-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.nova-practice-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 26px;
	border-radius: var(--nova-r-lg);
	background: rgba(255,255,255,0.75);
	border: 1px solid rgba(10,132,255,0.10);
	box-shadow: var(--nova-shadow-sm);
	color: var(--nova-text);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nova-practice-card:hover {
	transform: translateY(-5px);
	border-color: rgba(10,132,255,0.35);
	box-shadow: 0 14px 40px rgba(10,132,255,0.16);
}
.nova-practice-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(10,132,255,0.10);
	color: var(--nova-primary);
}
.nova-practice-icon svg { width: 26px; height: 26px; }
.nova-practice-title {
	font-size: 19px;
	font-weight: 700;
	margin: 4px 0 0;
	color: var(--nova-text);
}
.nova-practice-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--nova-text-2);
	flex: 1;
}
.nova-card-arrow {
	display: inline-flex;
	color: var(--nova-primary);
}
.nova-card-arrow svg { width: 20px; height: 20px; }

/* ============ WHY US ============ */
.nova-why {
	background:
		radial-gradient(900px 500px at 15% 0%, rgba(90,168,255,0.12), transparent 55%),
		var(--nova-alt);
}
.nova-why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.nova-why-item {
	padding: 26px;
	border-radius: var(--nova-r-lg);
	background: rgba(255,255,255,0.7);
	border: 1px solid rgba(10,132,255,0.08);
	transition: transform .25s ease, box-shadow .25s ease;
}
.nova-why-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--nova-shadow-sm);
}
.nova-why-num {
	font-family: var(--nova-display);
	font-size: 34px;
	font-weight: 800;
	color: rgba(10,132,255,0.28);
}
.nova-why-item h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 12px 0 6px;
}
.nova-why-item p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--nova-text-2);
}

/* ============ LAWYERS ============ */
.nova-lawyer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.nova-lawyer-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--nova-r-xl);
	overflow: hidden;
	background: var(--nova-surface);
	box-shadow: var(--nova-shadow-sm);
	color: var(--nova-text);
	transition: transform .25s ease, box-shadow .25s ease;
}
.nova-lawyer-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--nova-shadow-lg);
}
.nova-lawyer-photo {
	display: block;
	overflow: hidden;
	aspect-ratio: 4/3.6;
}
.nova-lawyer-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.nova-lawyer-card:hover .nova-lawyer-photo img {
	transform: scale(1.05);
}
.nova-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--nova-display);
	font-size: 56px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--nova-primary), var(--nova-primary-deep));
}
.nova-lawyer-body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 18px;
}
.nova-lawyer-name {
	font-family: var(--nova-display);
	font-size: 18px;
	font-weight: 700;
}
.nova-lawyer-role {
	font-size: 13px;
	color: var(--nova-primary);
	font-weight: 600;
}
.nova-lawyer-link {
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--nova-text-2);
}
.nova-lawyer-card:hover .nova-lawyer-link {
	color: var(--nova-primary);
}

/* ============ STATS ============ */
.nova-stats {
	padding: clamp(40px, 5vw, 64px) 0;
	display: block;
}
.nova-stats-cols {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.nova-stat {
	text-align: center;
	padding: 30px 16px;
	border-radius: var(--nova-lg);
	background: rgba(255,255,255,0.6);
	border: 1px solid var(--nova-border);
}
.nova-stat-num {
	display: block;
	font-family: var(--nova-display);
	font-size: clamp(34px, 4vw, 46px);
	font-weight: 800;
	color: var(--nova-primary);
	letter-spacing: -0.02em;
}
.nova-stat-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--nova-text-2);
}

/* ============ ARTICLES ============ */
.nova-posts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.nova-article-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--nova-r-lg);
	overflow: hidden;
	background: var(--nova-surface);
	border: 1px solid var(--nova-border);
	box-shadow: var(--nova-shadow-sm);
	color: var(--nova-text);
	transition: transform .25s ease, box-shadow .25s ease;
}
.nova-article-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--nova-shadow-lg);
}
.nova-article-media {
	position: relative;
	display: block;
}
.nova-article-media img {
	width: 100%;
	aspect-ratio: 4/2.9;
	object-fit: cover;
}
.nova-article-cat {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.8);
	backdrop-filter: blur(8px);
	font-size: 12px;
	font-weight: 600;
	color: var(--nova-primary);
}
.nova-article-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
}
.nova-article-date {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--nova-text-2);
}
.nova-article-title {
	font-family: var(--nova-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.nova-article-excerpt {
	font-size: 13px;
	line-height: 1.5;
	color: var(--nova-text-2);
}
.nova-article-more {
	font-size: 14px;
	font-weight: 600;
	color: var(--nova-primary);
}

/* ============ FAQ ============ */
.nova-faq {
	max-width: 760px;
	margin: 0 auto;
}
.nova-faq-item {
	border: 1px solid var(--nova-border);
	border-radius: 16px;
	background: var(--nova-surface);
	margin-bottom: 12px;
	overflow: hidden;
	box-shadow: var(--nova-shadow-sm);
}
.nova-faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 20px 22px;
	font-family: var(--nova-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--nova-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.nova-faq-item summary::-webkit-details-marker {
	display: none;
}
.nova-faq-item summary::after {
	content: "+";
	font-size: 22px;
	font-weight: 500;
	color: var(--nova-primary);
	transition: transform .25s ease;
	flex-shrink: 0;
}
.nova-faq-item[open] summary::after {
	transform: rotate(45deg);
}
.nova-faq-item p {
	margin: 0;
	padding: 0 22px 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--nova-text-2);
}

/* ============ CTA ============ */
.nova-cta {
	padding: clamp(48px, 6vw, 80px) 0;
}
.nova-cta-card {
	position: relative;
	text-align: center;
	padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 80px);
	border-radius: var(--nova-r-xl);
	overflow: hidden;
	background:
		radial-gradient(700px 300px at 20% 0%, rgba(255,255,255,0.5), transparent 60%),
		linear-gradient(135deg, var(--nova-primary), var(--nova-primary-deep));
	color: #fff;
	box-shadow: 0 20px 60px rgba(10,132,255,0.3);
}
.nova-cta-card::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: calc(var(--nova-r-xl) - 1px);
	background: rgba(255,255,255,0.10);
	pointer-events: none;
}
.nova-cta-title {
	position: relative;
	color: #fff;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	margin: 0 0 16px;
}
.nova-cta-desc {
	position: relative;
	color: rgba(255,255,255,0.9);
	font-size: 17px;
	line-height: 1.6;
	max-width: 560px;
	margin: 0 auto 28px;
}
.nova-cta-btns {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}
.nova-cta-btns .nova-btn-ghost {
	background: rgba(255,255,255,0.16);
	border-color: rgba(255,255,255,0.4);
	color: #fff;
}
.nova-cta-btns .nova-btn-ghost:hover {
	background: rgba(255,255,255,0.28);
	color: #fff;
}

/* ============ FOOTER ============ */
.nova-footer {
	background: var(--nova-surface);
	border-top: 1px solid var(--nova-border);
}
.nova-footer-top {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
	gap: 32px;
	padding-block: 56px;
}
.nova-footer-brand .nova-logo {
	margin-bottom: 16px;
}
.nova-footer-desc {
	max-width: 300px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--nova-text-2);
	margin: 0;
}
.nova-footer-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.nova-footer-col h4 {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin: 0 0 6px;
}
.nova-footer-col a,
.nova-footer-col span {
	font-size: 14px;
	color: var(--nova-text-2);
}
.nova-footer-col a:hover {
	color: var(--nova-primary);
}
.nova-footer-bottom {
	border-top: 1px solid var(--nova-border);
	padding-block: 18px;
}
.nova-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.nova-footer-inner p {
	margin: 0;
	font-size: 13px;
	color: var(--nova-text-2);
}
.nova-footer-legal {
	display: flex;
	gap: 18px;
}
.nova-footer-legal a {
	font-size: 13px;
	color: var(--nova-text-2);
}
.nova-footer-legal a:hover {
	color: var(--nova-primary);
}

/* ============ OVERLAY (search) ============ */
[hidden] {
	display: none !important;
}
.nova-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 16vh;
}
.nova-overlay-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 35, 60, 0.4);
	backdrop-filter: blur(6px);
}
.nova-search-panel {
	position: relative;
	width: min(620px, 90vw);
	padding: 28px;
	border-radius: 24px;
	background: var(--nova-glass);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid var(--nova-glass-border);
	box-shadow: var(--nova-shadow-lg);
}
.nova-overlay-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--nova-border);
	background: rgba(255,255,255,0.7);
	color: var(--nova-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.nova-overlay-close svg { width: 20px; height: 20px; }
.nova-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 6px;
	border-bottom: 2px solid var(--nova-primary);
}
.nova-search-form svg {
	width: 22px;
	height: 22px;
	color: var(--nova-primary);
	flex-shrink: 0;
}
.nova-search-form input {
	flex: 1;
	border: none;
	background: transparent;
	font-family: var(--nova-display);
	font-size: 22px;
	font-weight: 600;
	color: var(--nova-text);
	outline: none;
	padding: 12px 0;
}
.nova-search-form input::placeholder {
	color: var(--nova-text-2);
}
.nova-search-hint {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--nova-text-2);
}

/* ============ COOKIE NOTICE ============ */
.nova-cookie {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 950;
	width: min(420px, calc(100vw - 40px));
}
.nova-cookie-card {
	padding: 22px;
	border-radius: 20px;
	background: var(--nova-glass);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid var(--nova-glass-border);
	box-shadow: var(--nova-shadow-lg);
}
.nova-cookie-text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--nova-text);
}
.nova-cookie-text a {
	color: var(--nova-primary);
}
.nova-cookie-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.nova-btn-ghost.nova-cookie-decline {
	background: rgba(255,255,255,0.5);
}

/* ============ MOBILE BOTTOM BAR ============ */
.nova-mobilebar {
	display: none;
}

/* ============ PAGE / TEMPLATE CONTENT ============ */
.nova-page {
	padding: clamp(32px, 5vw, 64px) 0;
}
.nova-page-title {
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
}
.nova-page-content {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--nova-text-2);
}
.nova-page-content h2,
.nova-page-content h3 {
	color: var(--nova-text);
}

/* Contact page layout */
.nova-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(30px, 5vw, 60px);
	align-items: start;
}
.nova-contact-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.nova-contact-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px;
	border-radius: var(--nova-radius);
	background: var(--nova-glass);
	border: 1px solid var(--nova-glass-border);
	box-shadow: var(--nova-shadow-sm);
}
.nova-contact-item .nova-strip-ic {
	margin: 0;
	flex-shrink: 0;
}
.nova-contact-item h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
}
.nova-contact-item p {
	margin: 0;
	font-size: 14px;
	color: var(--nova-text-2);
}
.nova-contact-item a {
	font-weight: 600;
}

/* Contact form */
.nova-form-wrap {
	padding: 30px;
	border-radius: var(--nova-r-xl);
	background: var(--nova-glass);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid var(--nova-glass-border);
	box-shadow: var(--nova-shadow-lg);
}
.nova-form-result {
	padding: 14px 18px;
	border-radius: 14px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
}
.nova-form-result.is-success {
	background: rgba(34,197,94,0.12);
	color: #15803d;
}
.nova-form-result.is-error {
	background: rgba(239,68,68,0.10);
	color: #b91c1c;
}
.nova-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.nova-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 16px;
}
.nova-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--nova-text);
}
.nova-field input,
.nova-field select,
.nova-field textarea {
	padding: 13px 16px;
	border-radius: 14px;
	border: 1px solid var(--nova-border);
	background: rgba(255,255,255,0.8);
	font-family: var(--nova-font);
	font-size: 15px;
	color: var(--nova-text);
	transition: border-color .2s ease, box-shadow .2s ease;
	width: 100%;
}
.nova-field input:focus,
.nova-field select:focus,
.nova-field textarea:focus {
	outline: none;
	border-color: var(--nova-primary);
	box-shadow: 0 0 0 4px rgba(10,132,255,0.14);
}
.nova-consent {
	margin: 4px 0 20px;
}
.nova-consent label {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: var(--nova-text-2);
	line-height: 1.5;
	align-items: flex-start;
}
.nova-consent input {
	margin-top: 3px;
}
.nova-consent a {
	color: var(--nova-primary);
	text-decoration: underline;
}
.nova-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
}

/* Archive / single grids */
.nova-archive-header {
	background: var(--nova-alt);
	padding: clamp(40px, 6vw, 64px) 0;
	border-bottom: 1px solid var(--nova-border);
}
.nova-archive-title {
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
	margin: 0;
}
.nova-archive-desc {
	color: var(--nova-text-2);
	margin: 8px 0 0;
}
.nova-archive {
	padding: clamp(40px, 5vw, 64px) 0;
}
.nova-loop {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.nova-single {
	padding: clamp(40px, 6vw, 72px) 0;
}
.nova-single-meta {
	color: var(--nova-text-2);
	font-size: 14px;
}
.nova-single-content {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.75;
	color: var(--nova-text-2);
}
.nova-single-content h2,
.nova-single-content h3 {
	color: var(--nova-text);
}

/* 404 */
.nova-404 {
	text-align: center;
	padding: clamp(80px, 12vw, 140px) 0;
}
.nova-404-code {
	font-family: var(--nova-display);
	font-size: clamp(90px, 16vw, 150px);
	font-weight: 800;
	line-height: 1;
	color: rgba(10,132,255,0.18);
}
.nova-404 h1 {
	font-size: clamp(24px, 3.4vw, 38px);
	margin: 8px 0 12px;
}
.nova-404 p {
	color: var(--nova-text-2);
	margin: 0 0 24px;
}

/* Search results */
.nova-search-head {
	color: var(--nova-text-2);
}
.nova-empty {
	text-align: center;
	color: var(--nova-text-2);
	padding: 40px;
}

/* ============ MOTION ============ */
@keyframes novaFade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}
.nova-reveal {
	opacity: 1;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--nova-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
	.nova-nav { display: none; }
	.nova-burger { display: inline-flex; }
	.nova-practice-grid, .nova-why-grid, .nova-loop { grid-template-columns: repeat(2, 1fr); }
	.nova-lawyer-grid, .nova-posts-grid { grid-template-columns: repeat(2, 1fr); }
	.nova-footer-top { grid-template-columns: 1fr 1fr 1fr; }
	.nova-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
	.nova-header-cta { display: none; }
	.nova-hero-cols { grid-template-columns: 1fr; }
	.nova-hero-media { margin-top: 30px; }
	.nova-float-1 { left: -6px; }
	.nova-float-2 { right: -4px; }
	.nova-strip-cols, .nova-about-cols, .nova-contact-grid, .nova-stats-cols, .nova-field-row { grid-template-columns: 1fr 1fr; }
	.nova-about-cols, .nova-contact-grid { grid-template-columns: 1fr; }
	.nova-feature-row { grid-template-columns: 1fr; }
	.nova-practice-grid, .nova-why-grid, .nova-lawyer-grid, .nova-posts-grid, .nova-loop { grid-template-columns: 1fr; }
	.nova-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
	.nova-footer-inner { flex-direction: column; text-align: center; }

	/* Mobile bottom action bar */
	.nova-mobilebar {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: 12px;
		z-index: 940;
		padding: 8px;
		border-radius: 20px;
		background: rgba(255,255,255,0.85);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border: 1px solid var(--nova-glass-border);
		box-shadow: var(--nova-shadow-lg);
	}
	.nova-mb-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		padding: 10px;
		border-radius: 14px;
		color: var(--nova-text);
		font-size: 12px;
		font-weight: 600;
	}
	.nova-mb-item svg { width: 20px; height: 20px; color: var(--nova-primary); }
	.nova-mb-item:active { background: rgba(10,132,255,0.1); }
	body { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ============ DETAIL PAGES ============ */
.nova-lawyer-hero {
	border-radius: var(--nova-r-xl);
	overflow: hidden;
	box-shadow: var(--nova-shadow-sm);
	margin: 0 0 24px;
}
.nova-lawyer-profile .nova-lawyer-role {
	font-size: 16px;
	margin: -14px 0 20px;
}
.nova-lawyer-facts {
	display: flex;
	flex-direction: column;
	margin-top: 28px;
	border: 1px solid var(--nova-border);
	border-radius: var(--nova-r-lg);
	overflow: hidden;
	background: var(--nova-surface);
}
.nova-lawyer-facts > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--nova-border);
}
.nova-lawyer-facts > div:last-child {
	border-bottom: none;
}
.nova-lawyer-facts strong {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nova-primary);
}
.nova-lawyer-facts span {
	font-size: 15px;
	color: var(--nova-text);
}
.nova-contact-card {
	position: sticky;
	top: 96px;
	padding: 26px;
	border-radius: var(--nova-r-lg);
	background: var(--nova-glass);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--nova-glass-border);
	box-shadow: var(--nova-shadow-lg);
}
.nova-contact-card h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 6px;
}
.nova-contact-card-label {
	font-size: 14px;
	color: var(--nova-text-2);
	margin: 0 0 18px;
}
.nova-contact-card .nova-btn {
	display: flex;
	width: 100%;
	margin-top: 10px;
}
.nova-contact-card .nova-btn:first-of-type {
	margin-top: 0;
}
.nova-archive-header-bare {
	margin-bottom: 28px;
}
.nova-single .nova-single-content img {
	border-radius: 16px;
	margin: 16px 0;
}



