/* NVF theme. Colours, fonts and sizes come from Customizer variables printed in <head>. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	font-family: var(--nvf-font-body);
	font-size: var(--nvf-font-size);
	line-height: 1.7;
	color: var(--nvf-text);
	background-color: var(--nvf-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.nvf-bg-soft {
	background-image:
		radial-gradient(900px 520px at 88% -120px, color-mix(in srgb, var(--nvf-primary) 13%, transparent), transparent 70%),
		radial-gradient(700px 480px at -120px 260px, color-mix(in srgb, var(--nvf-primary) 8%, transparent), transparent 70%);
	background-repeat: no-repeat;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--nvf-primary); text-underline-offset: 3px; }
a:hover { color: var(--nvf-primary-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--nvf-font-heading); font-weight: var(--nvf-heading-weight); color: var(--nvf-heading); line-height: 1.15; letter-spacing: -.02em; margin: 1.6em 0 .55em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.01em; }
h4 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1.15em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--nvf-primary) 50%, transparent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100000; padding: 10px 16px; background: #fff; color: var(--nvf-heading); border-radius: 8px; }
.nvf-container { width: 100%; max-width: var(--nvf-container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.nvf-narrow { max-width: 880px; }
.nvf-center { text-align: center; }
.nvf-small { font-size: .85rem; color: var(--nvf-muted); }
.nvf-eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; color: var(--nvf-muted); }

/* ---------- Buttons ---------- */
.nvf-button, .wp-block-button__link, button[type=submit]:not(.nvf-btn), input[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px;
	border: 0; border-radius: var(--nvf-btn-radius); background: var(--nvf-primary); color: #fff; font: inherit; font-weight: 600; font-size: .98rem;
	line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease;
	box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--nvf-primary) 80%, transparent);
}
.nvf-button:hover, .wp-block-button__link:hover, button[type=submit]:not(.nvf-btn):hover, input[type=submit]:hover { background: var(--nvf-primary-dark); color: #fff; transform: translateY(-1px); }
.nvf-button-light { background: #fff; color: var(--nvf-heading); box-shadow: none; }
.nvf-button-light:hover { background: var(--nvf-soft); color: var(--nvf-heading); }

/* ---------- Forms (theme-wide) ---------- */
input[type=text], input[type=email], input[type=url], input[type=search], input[type=tel], input[type=number], input[type=password], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--nvf-border); border-radius: 12px; background: #fff; color: #0f172a; font: inherit; font-size: 16px;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--nvf-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nvf-primary) 20%, transparent); }
.nvf-search { display: flex; gap: 8px; max-width: 520px; }

/* ---------- Top bar ---------- */
.nvf-topbar { background: var(--nvf-heading); color: #fff; font-size: .85rem; }
.nvf-topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.nvf-topbar-text { margin: 0; margin-right: auto; }
.nvf-topbar a { color: #fff; text-decoration: none; }
.nvf-topbar .nvf-contact, .nvf-topbar-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* ---------- Header ---------- */
.nvf-header { background: var(--nvf-header-bg); color: var(--nvf-header-text); border-bottom: 1px solid color-mix(in srgb, var(--nvf-border) 70%, transparent); position: relative; z-index: 900; }
.nvf-sticky .nvf-header { position: sticky; top: 0; }
.admin-bar.nvf-sticky .nvf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.nvf-sticky .nvf-header { top: 0; } }
.nvf-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 26, 71, .35); }
.nvf-header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.nvf-brand { display: flex; flex-direction: column; justify-content: center; margin-right: auto; }
.nvf-brand .custom-logo-link { display: block; line-height: 0; }
.nvf-brand .custom-logo { width: var(--nvf-logo-width); height: auto; max-height: 72px; object-fit: contain; object-position: left center; }
.nvf-site-name { font-family: var(--nvf-font-heading); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--nvf-heading); text-decoration: none; }
.nvf-tagline { margin: 2px 0 0; font-size: .78rem; color: var(--nvf-muted); }
.nvf-menu, .nvf-menu ul { list-style: none; margin: 0; padding: 0; }
.nvf-menu { display: flex; align-items: center; gap: 4px; }
.nvf-menu > li { position: relative; }
.nvf-menu a { display: block; padding: 10px 14px; color: var(--nvf-header-text); font-weight: 500; font-size: .96rem; text-decoration: none; border-radius: 10px; }
.nvf-menu a:hover, .nvf-menu .current-menu-item > a, .nvf-menu .current-menu-ancestor > a { color: var(--nvf-primary); }
.nvf-menu .current-menu-item > a[href*="#"]:not(:hover) { color: var(--nvf-header-text); }
.nvf-menu .menu-item-has-children > a { padding-right: 26px; }
.nvf-menu .menu-item-has-children > a::after { content: ''; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); }
.nvf-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--nvf-border); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(11, 26, 71, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease; }
.nvf-menu .sub-menu .sub-menu { top: 0; left: 100%; }
.nvf-menu li:hover > .sub-menu, .nvf-menu li:focus-within > .sub-menu, .nvf-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nvf-menu .sub-menu a { padding: 9px 12px; }
.nvf-menu .sub-menu a:hover { background: var(--nvf-soft); }
.nvf-header-cta { white-space: nowrap; }
.nvf-cta-mobile { display: none; }
.nvf-menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--nvf-border); border-radius: 12px; background: #fff; cursor: pointer; box-shadow: none; }
.nvf-burger { display: grid; gap: 5px; width: 20px; margin: auto; }
.nvf-burger span { display: block; height: 2px; border-radius: 2px; background: var(--nvf-heading); transition: transform .2s ease, opacity .2s ease; }
.nvf-menu-toggle[aria-expanded=true] .nvf-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nvf-menu-toggle[aria-expanded=true] .nvf-burger span:nth-child(2) { opacity: 0; }
.nvf-menu-toggle[aria-expanded=true] .nvf-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Centered header */
.nvf-header-center .nvf-header-inner { flex-wrap: wrap; justify-content: center; padding-block: 12px; }
.nvf-header-center .nvf-brand { margin: 0 auto; align-items: center; flex-basis: 100%; }
.nvf-header-center .nvf-brand .custom-logo { object-position: center; }
.nvf-header-center .nvf-nav { flex-basis: 100%; }
.nvf-header-center .nvf-menu { justify-content: center; }
.nvf-header-center .nvf-cta-desktop { position: absolute; right: clamp(16px, 4vw, 32px); top: 18px; }

@media (max-width: 1024px) {
	.nvf-menu-toggle { display: inline-block; }
	.nvf-cta-desktop { display: none; }
	.nvf-header-center .nvf-brand { flex-basis: auto; margin: 0 auto 0 0; align-items: flex-start; }
	.nvf-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--nvf-border); box-shadow: 0 20px 30px -20px rgba(11, 26, 71, .35); padding: 12px clamp(16px, 4vw, 32px) 20px; max-height: calc(100vh - 90px); overflow-y: auto; display: none; }
	.nvf-nav.is-open { display: block; }
	.nvf-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nvf-menu a { padding: 13px 4px; border-bottom: 1px solid var(--nvf-border); border-radius: 0; }
	.nvf-menu .menu-item-has-children > a::after { right: 8px; }
	.nvf-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.nvf-menu li.is-open > .sub-menu { display: block; }
	.nvf-cta-mobile { display: flex; width: 100%; margin-top: 16px; }
}

/* ---------- Layout ---------- */
.nvf-site-content { min-height: 50vh; }
.nvf-main-page { padding-block: clamp(32px, 5vw, 64px); }
.nvf-main-builder { padding: 0; }
.nvf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: clamp(32px, 5vw, 64px); }
.nvf-sidebar-right .nvf-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.nvf-sidebar-left .nvf-layout { grid-template-columns: 320px minmax(0, 1fr); }
.nvf-sidebar-left .nvf-sidebar { order: -1; }
@media (max-width: 960px) { .nvf-sidebar-right .nvf-layout, .nvf-sidebar-left .nvf-layout { grid-template-columns: minmax(0, 1fr); } .nvf-sidebar-left .nvf-sidebar { order: 0; } }
.nvf-page-header, .nvf-entry-header { margin-bottom: 28px; }
.nvf-page-header .entry-title, .nvf-entry-header .entry-title { margin-top: 0; }
.nvf-meta { font-size: .88rem; color: var(--nvf-muted); margin: 0 0 8px; }
.nvf-meta a { color: inherit; }
.nvf-featured { margin: 0 0 28px; }
.nvf-featured img { border-radius: var(--nvf-radius); width: 100%; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--nvf-primary); background: var(--nvf-soft); border-radius: 0 12px 12px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--nvf-border); padding: 10px 12px; text-align: left; }
.entry-content img { border-radius: 12px; }
.nvf-article { max-width: 780px; }
.nvf-sidebar-right .nvf-article, .nvf-sidebar-left .nvf-article { max-width: none; }
.nvf-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--nvf-soft); font-size: .82rem; text-decoration: none; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--nvf-border); }
.post-navigation a { font-weight: 600; text-decoration: none; }

/* Post cards */
.nvf-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.nvf-post-card { display: flex; flex-direction: column; background: var(--nvf-surface); border: 1px solid var(--nvf-border); border-radius: var(--nvf-radius); overflow: hidden; box-shadow: 0 12px 30px -20px rgba(11, 26, 71, .3); transition: transform .15s ease; }
.nvf-post-card:hover { transform: translateY(-3px); }
.nvf-post-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nvf-post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.nvf-post-title { font-size: 1.2rem; margin: 0 0 10px; }
.nvf-post-title a { color: var(--nvf-heading); text-decoration: none; }
.nvf-post-title a:hover { color: var(--nvf-primary); }
.nvf-post-excerpt { color: var(--nvf-text); font-size: .96rem; flex: 1; }
.nvf-read-more { font-weight: 600; text-decoration: none; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 40px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--nvf-border); background: #fff; text-decoration: none; color: var(--nvf-heading); font-weight: 600; }
.pagination .page-numbers.current { background: var(--nvf-primary); border-color: var(--nvf-primary); color: #fff; }

/* Sidebar + widgets */
.nvf-sidebar .widget { background: var(--nvf-surface); border: 1px solid var(--nvf-border); border-radius: var(--nvf-radius); padding: 22px; margin-bottom: 22px; }
.widget-title { font-size: 1.05rem; margin: 0 0 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; }

/* Comments */
.nvf-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--nvf-border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 18px; background: #fff; border: 1px solid var(--nvf-border); border-radius: 14px; margin-bottom: 14px; }
.comment-list .children { list-style: none; padding-left: 24px; }

/* 404 + none */
.nvf-404 { padding-block: clamp(48px, 8vw, 120px); text-align: center; }
.nvf-404 .nvf-search { margin: 24px auto; }
.nvf-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Homepage sections (template "NVF Homepage") ---------- */
.nvf-section { padding-block: clamp(48px, 7vw, 96px); }
.nvf-section-soft { background: color-mix(in srgb, var(--nvf-soft) 70%, transparent); }
.nvf-section-title { margin-top: 0; }
.nvf-section-lead { max-width: 720px; font-size: 1.08rem; }
.nvf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .nvf-two { grid-template-columns: minmax(0, 1fr); } }
.nvf-rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 28px 0 18px; }
.nvf-rule { background: var(--nvf-surface); border: 1px solid var(--nvf-border); border-radius: var(--nvf-radius); padding: 26px; box-shadow: 0 12px 30px -22px rgba(11, 26, 71, .35); }
.nvf-rule h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.nvf-rule p { margin: 0 0 10px; }
.nvf-rule-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--nvf-soft); color: var(--nvf-primary); font-weight: 800; }
.nvf-rule-src { font-size: .8rem; color: var(--nvf-muted); }
.nvf-steps { list-style: none; counter-reset: st; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 28px 0 32px; }
.nvf-steps li { counter-increment: st; position: relative; padding: 26px 26px 22px; background: var(--nvf-surface); border: 1px solid var(--nvf-border); border-radius: var(--nvf-radius); }
.nvf-steps li::before { content: counter(st, decimal-leading-zero); display: block; font-weight: 800; color: var(--nvf-primary); margin-bottom: 6px; }
.nvf-steps h3 { margin: 0 0 8px; font-size: 1.15rem; }
.nvf-steps p { margin: 0; }
.nvf-section-cta { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--nvf-primary) 7%, transparent)); }

/* ---------- Footer ---------- */
.nvf-footer { background: var(--nvf-footer-bg); color: var(--nvf-footer-text); padding-top: clamp(48px, 6vw, 80px); margin-top: 0; font-size: .95rem; }
.nvf-footer a { color: #fff; text-decoration: none; }
.nvf-footer a:hover { text-decoration: underline; }
.nvf-footer .nvf-button-light { color: var(--nvf-heading); margin-top: 8px; }
.nvf-footer .nvf-button-light:hover { color: var(--nvf-heading); text-decoration: none; }
.nvf-footer .widget-title, .nvf-footer h2, .nvf-footer h3 { color: #fff; font-size: 1.05rem; margin-top: 0; }
.nvf-footer-cols { display: grid; gap: 36px; padding-bottom: 40px; }
.nvf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nvf-cols-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.nvf-cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .nvf-cols-2, .nvf-cols-3, .nvf-cols-4 { grid-template-columns: minmax(0, 1fr); } }
.nvf-footer .nvf-site-name { color: #fff; }
.nvf-footer .custom-logo { max-height: 60px; width: auto; }
.nvf-footer-menu, .nvf-contact { list-style: none; margin: 0 0 16px; padding: 0; }
.nvf-footer-menu li, .nvf-footer .nvf-contact li { padding: 4px 0; }
.nvf-social { display: flex; gap: 14px; flex-wrap: wrap; }
.nvf-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 22px 0 96px; font-size: .82rem; }
.nvf-footer-disclaimer { max-width: 900px; opacity: .85; }
.nvf-copyright { margin: 0; opacity: .75; }

/* ---------- Elementor ---------- */
.elementor-page .nvf-main-builder > article > .entry-content { margin: 0; }
.nvf-main-builder .entry-content > .elementor { width: 100%; }
body.elementor-editor-active .nvf-header { position: relative; }

/* =====================================================================
   Blog — list, cards, featured, single post
   ===================================================================== */
.nvf-blog-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(8px, 2vw, 16px); }
.nvf-blog-hero .entry-title { margin: 0 0 12px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.nvf-blog-intro { max-width: 680px; margin: 0; font-size: 1.12rem; color: var(--nvf-muted); }
.nvf-blog-hero + .nvf-layout { padding-top: clamp(20px, 3vw, 32px); }

.nvf-chip-cat { display: inline-block; align-self: flex-start; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--nvf-primary) 10%, #fff); color: var(--nvf-primary-dark); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.nvf-chip-cat:hover { background: var(--nvf-primary); color: #fff; }
.nvf-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 0; font-size: .84rem; color: var(--nvf-muted); }
.nvf-card-meta > * + *::before { content: '·'; margin-right: 14px; }
.nvf-card-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 20px; text-align: center; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em;
	background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--nvf-primary) 85%, #fff) 0%, var(--nvf-primary) 40%, var(--nvf-heading) 100%); }
.nvf-card-placeholder span { opacity: .92; }

/* Cards (override base) */
.nvf-post-grid { gap: clamp(20px, 2.5vw, 28px); }
.nvf-post-card { border-radius: 20px; box-shadow: 0 18px 40px -28px rgba(11, 26, 71, .45); transition: transform .2s ease, box-shadow .2s ease; }
.nvf-post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(11, 26, 71, .5); }
.nvf-post-thumb { display: block; overflow: hidden; }
.nvf-post-thumb img { transition: transform .4s ease; }
.nvf-post-card:hover .nvf-post-thumb img { transform: scale(1.04); }
.nvf-post-body { padding: 22px 22px 20px; }
.nvf-post-title { font-size: 1.22rem; line-height: 1.3; margin: 0 0 8px; }
.nvf-post-excerpt { font-size: .95rem; color: var(--nvf-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nvf-post-excerpt p { margin: 0; }

/* Featured card */
.nvf-featured-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: clamp(28px, 4vw, 44px); border-radius: 26px; overflow: hidden; background: var(--nvf-surface); border: 1px solid var(--nvf-border); box-shadow: 0 30px 60px -36px rgba(11, 26, 71, .5); }
.nvf-featured-media { display: block; min-height: 100%; overflow: hidden; }
.nvf-featured-media img, .nvf-featured-media .nvf-card-placeholder { width: 100%; height: 100%; min-height: 320px; object-fit: cover; aspect-ratio: auto; display: grid; font-size: 1.8rem; }
.nvf-featured-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(26px, 4vw, 52px); }
.nvf-featured-label { margin: 0 0 12px; font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--nvf-muted); }
.nvf-featured-title { margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.nvf-featured-title a { color: var(--nvf-heading); text-decoration: none; }
.nvf-featured-title a:hover { color: var(--nvf-primary); }
.nvf-featured-excerpt { color: var(--nvf-text); font-size: 1.04rem; }
.nvf-featured-excerpt p { margin: 0; }
.nvf-featured-body .nvf-card-meta { margin: 16px 0 22px; }
@media (max-width: 860px) { .nvf-featured-card { grid-template-columns: minmax(0, 1fr); } .nvf-featured-media img, .nvf-featured-media .nvf-card-placeholder { min-height: 0; aspect-ratio: 16 / 9; } }

/* Single post */
.nvf-single-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(20px, 3vw, 32px); }
.nvf-single-head { max-width: 900px; }
.nvf-crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; font-size: .85rem; color: var(--nvf-muted); }
.nvf-crumbs a { color: var(--nvf-muted); text-decoration: none; }
.nvf-crumbs a:hover { color: var(--nvf-primary); }
.nvf-single-title { margin: 6px 0 16px; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.1; }
.nvf-single-dek { margin: 0 0 22px; max-width: 760px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--nvf-muted); }
.nvf-single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .9rem; color: var(--nvf-muted); }
.nvf-single-meta > * + *::before { content: '·'; margin-right: 18px; }
.nvf-single-author { display: inline-flex; align-items: center; gap: 10px; color: var(--nvf-heading); font-weight: 600; }
.nvf-single-avatar { width: 34px; height: 34px; border-radius: 50%; }
.nvf-single-image { margin: 0 auto clamp(28px, 4vw, 48px); max-width: calc(var(--nvf-container)); }
.nvf-single-image img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px -40px rgba(11, 26, 71, .55); }
.nvf-single-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: clamp(32px, 4vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
.nvf-single-layout.has-aside { grid-template-columns: minmax(0, 760px) 280px; }
.nvf-single-aside { position: relative; }
.nvf-toc-aside { position: sticky; top: 110px; padding: 22px; border-radius: 18px; background: var(--nvf-surface); border: 1px solid var(--nvf-border); }
.admin-bar .nvf-toc-aside { top: 142px; }
.nvf-toc-title { margin: 0 0 12px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--nvf-muted); }
.nvf-toc-list { list-style: none; margin: 0; padding: 0; counter-reset: toc; max-height: 60vh; overflow: auto; }
.nvf-toc-list li { margin: 0; }
.nvf-toc-list a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--nvf-border); color: var(--nvf-text); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.nvf-toc-list a:hover, .nvf-toc-list a.is-active { color: var(--nvf-primary); border-left-color: var(--nvf-primary); }
.nvf-toc-h3 a { padding-left: 26px; font-size: .84rem; color: var(--nvf-muted); }
.nvf-toc-mobile { display: none; margin: 0 0 28px; border-radius: 14px; border: 1px solid var(--nvf-border); background: var(--nvf-surface); }
.nvf-toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--nvf-heading); }
.nvf-toc-mobile .nvf-toc-list { padding: 0 18px 14px; }
@media (max-width: 1080px) {
	.nvf-single-layout.has-aside { grid-template-columns: minmax(0, 760px); }
	.nvf-single-aside { display: none; }
	.nvf-toc-mobile { display: block; }
}

/* Article typography */
.nvf-prose { font-size: 1.08rem; line-height: 1.8; color: var(--nvf-text); }
.nvf-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.nvf-prose h2 { margin: 2em 0 .6em; font-size: clamp(1.5rem, 2.6vw, 2rem); scroll-margin-top: 110px; }
.nvf-prose h3 { margin: 1.7em 0 .5em; font-size: clamp(1.2rem, 2vw, 1.45rem); scroll-margin-top: 110px; }
.nvf-prose a { color: var(--nvf-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nvf-prose ul, .nvf-prose ol { padding-left: 1.3em; }
.nvf-prose li { margin-bottom: .45em; }
.nvf-prose li::marker { color: var(--nvf-primary); }
.nvf-prose img { border-radius: 16px; }
.nvf-prose figure { margin: 2em 0; }
.nvf-prose figcaption { margin-top: 8px; font-size: .85rem; color: var(--nvf-muted); text-align: center; }
.nvf-prose blockquote { margin: 2em 0; padding: 20px 24px; border-left: 4px solid var(--nvf-primary); background: color-mix(in srgb, var(--nvf-primary) 6%, #fff); border-radius: 0 16px 16px 0; font-size: 1.12rem; color: var(--nvf-heading); }
.nvf-prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .95rem; }
.nvf-prose th { background: var(--nvf-soft); color: var(--nvf-heading); }
.nvf-prose th, .nvf-prose td { padding: 10px 14px; border: 1px solid var(--nvf-border); }
.nvf-prose hr { border: 0; border-top: 1px solid var(--nvf-border); margin: 2.5em 0; }

/* In-article call-to-action */
.nvf-post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin: 2.2em 0; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--nvf-primary) 10%, #fff), color-mix(in srgb, var(--nvf-primary) 4%, #fff)); border: 1px solid color-mix(in srgb, var(--nvf-primary) 22%, #fff); }
.nvf-post-cta-text { flex: 1 1 300px; }
.nvf-post-cta-text p { margin: 0; font-size: 1rem; line-height: 1.55; }
.nvf-post-cta-title { margin-bottom: 6px !important; font-family: var(--nvf-font-heading); font-weight: 800; font-size: 1.15rem !important; color: var(--nvf-heading); }
.nvf-post-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nvf-post-cta .nvf-button { text-decoration: none; color: #fff; }
.nvf-button-ghost { background: #fff !important; color: var(--nvf-heading) !important; border: 1px solid var(--nvf-border) !important; box-shadow: none !important; }
.nvf-button-ghost:hover { background: var(--nvf-soft) !important; }
.nvf-post-cta-end { margin-top: 3em; }

/* Tags, author box, post navigation */
.nvf-single .nvf-tags { margin: 2em 0; }
.nvf-author-box { display: flex; gap: 20px; align-items: flex-start; margin: 2.5em 0; padding: 26px; border-radius: 20px; background: var(--nvf-surface); border: 1px solid var(--nvf-border); }
.nvf-author-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.nvf-author-box .nvf-eyebrow { margin-bottom: 2px; }
.nvf-author-name { margin: 0 0 8px; font-weight: 800; font-size: 1.15rem; color: var(--nvf-heading); }
.nvf-author-name span { display: block; font-weight: 500; font-size: .88rem; color: var(--nvf-muted); }
.nvf-author-bio { margin: 0; font-size: .97rem; }
@media (max-width: 560px) { .nvf-author-box { flex-direction: column; } }
.nvf-single .post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 0; padding-top: 0; }
.nvf-single .post-navigation a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--nvf-border); background: var(--nvf-surface); }
.nvf-single .post-navigation .nav-next a { text-align: right; }
.nvf-nav-label { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--nvf-muted); }
.nvf-nav-title { color: var(--nvf-heading); font-weight: 700; line-height: 1.3; }
@media (max-width: 600px) { .nvf-single .post-navigation .nav-links { grid-template-columns: 1fr; } }

/* Related */
.nvf-related { padding: clamp(48px, 6vw, 80px) 0; background: color-mix(in srgb, var(--nvf-soft) 70%, transparent); }

/* Blog fixes: alignment, widgets, avatars, small screens */
.nvf-post-thumb, .nvf-featured-media, .nvf-post-thumb:hover, .nvf-featured-media:hover { text-decoration: none; }
.nvf-single-head { max-width: var(--nvf-container); }
.nvf-single-head > * { max-width: 900px; }
.nvf-single:not(.nvf-has-aside) .nvf-single-head { max-width: calc(760px + 2 * clamp(16px, 4vw, 32px)); }
.nvf-single-layout.has-aside { justify-content: space-between; }
@media (max-width: 1080px) { .nvf-single.nvf-has-aside .nvf-single-head { max-width: calc(760px + 2 * clamp(16px, 4vw, 32px)); } .nvf-single-layout.has-aside { justify-content: center; } }
.nvf-author-photo, .nvf-single-avatar { background: var(--nvf-soft); color: transparent; overflow: hidden; object-fit: cover; }
@media (max-width: 600px) {
	.nvf-single-meta > * + *::before, .nvf-card-meta > * + *::before { content: none; }
	.nvf-single-meta, .nvf-card-meta { gap: 6px 14px; }
}
.nvf-sidebar h2, .nvf-sidebar h3, .nvf-sidebar .wp-block-heading { margin: 0 0 12px; font-size: 1.02rem; letter-spacing: 0; }
.nvf-sidebar .wp-block-group, .nvf-sidebar .wp-block-group__inner-container { margin: 0; padding: 0; }
.nvf-sidebar a { color: var(--nvf-heading); text-decoration: none; }
.nvf-sidebar a:hover { color: var(--nvf-primary); }
.nvf-sidebar ul, .nvf-sidebar ol { list-style: none; margin: 0; padding: 0; }
.nvf-sidebar li { padding: 6px 0; border-bottom: 1px solid var(--nvf-border); font-size: .93rem; }
.nvf-sidebar li:last-child { border-bottom: 0; }
.nvf-sidebar .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.nvf-sidebar .wp-block-search__label { font-weight: 700; color: var(--nvf-heading); margin-bottom: 8px; display: block; }

/* Header phone (highlighted) */
.nvf-header-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--nvf-header-text); text-decoration: none; white-space: nowrap; }
.nvf-hp-ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--nvf-primary); color: #fff; flex: none; }
.nvf-hp-text { display: flex; flex-direction: column; line-height: 1.15; }
.nvf-hp-text small { font-size: .72rem; color: var(--nvf-muted); text-transform: uppercase; letter-spacing: .08em; }
.nvf-hp-text strong { font-size: 1rem; font-weight: 700; color: var(--nvf-heading); }
.nvf-header-phone:hover strong { color: var(--nvf-primary); }
.nvf-header-phone.is-anim .nvf-hp-ico::before, .nvf-header-phone.is-anim .nvf-hp-ico::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--nvf-primary); animation: nvf-hp-ring 2.4s ease-out infinite; }
.nvf-header-phone.is-anim .nvf-hp-ico::after { animation-delay: 1.2s; }
.nvf-header-phone.is-anim .nvf-hp-ico svg { animation: nvf-hp-shake 4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes nvf-hp-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes nvf-hp-shake { 0%, 82%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 88% { transform: rotate(14deg); } 91% { transform: rotate(-10deg); } 94% { transform: rotate(8deg); } 97% { transform: rotate(-4deg); } }
@media (max-width: 1024px) {
	.nvf-header-phone { order: 1; }
	.nvf-menu-toggle { order: 2; }
}
@media (max-width: 600px) {
	.nvf-hp-text { display: none; }
	.nvf-hp-ico { width: 44px; height: 44px; }
	.nvf-header-inner { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.nvf-header-phone.is-anim .nvf-hp-ico::before, .nvf-header-phone.is-anim .nvf-hp-ico::after, .nvf-header-phone.is-anim .nvf-hp-ico svg { animation: none; }
}
@media (min-width: 1025px) { .nvf-header-center .nvf-header-phone { position: absolute; left: clamp(16px, 4vw, 32px); top: 18px; } }
.nvf-link-arrow { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--nvf-primary); text-decoration: none; }
.nvf-link-arrow:hover { text-decoration: underline; }

/* Hero inside Elementor / homepage: the section already has its own spacing */
.nvf-el-hero .nvf-hero, .elementor .nvf-hero { padding-top: clamp(8px, 1.5vw, 20px); padding-bottom: clamp(16px, 2.5vw, 32px); }
