/**
 * Next Vision theme styles.
 * Component styles for the patterns. Colours come from theme.json presets
 * so style variations and Global Styles changes apply everywhere.
 */

:root {
	--nv-red: var(--wp--preset--color--primary);
	--nv-red-dark: var(--wp--preset--color--primary-dark);
	--nv-soft: var(--wp--preset--color--primary-soft);
	--nv-ink: var(--wp--preset--color--contrast);
	--nv-ink-2: var(--wp--preset--color--contrast-2);
	--nv-text: var(--wp--preset--color--body);
	--nv-muted: var(--wp--preset--color--muted);
	--nv-line: var(--wp--preset--color--line);
	--nv-surface: var(--wp--preset--color--surface);
	--nv-white: var(--wp--preset--color--base);
	--nv-radius: 18px;
	--nv-shadow: 0 10px 30px rgba(14, 18, 32, 0.08);
}

body { -webkit-font-smoothing: antialiased; }

/* ---------- Layout helpers ---------- */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part + main { margin-block-start: 0; }

.nv-section { padding-block: clamp(4rem, 8vw, 6rem); margin-block-start: 0 !important; }
.nv-section.nv-tight-top { padding-top: 1.5rem; }
.nv-alt { background: var(--nv-surface); }
.nv-dark { background: var(--nv-ink); color: #C9CEDC; }
.nv-dark :where(h1, h2, h3, h4) { color: var(--nv-white); }
.nv-dark .nv-lead, .nv-dark .nv-muted { color: #A9AFC2; }

.nv-head { text-align: center; max-width: 760px; margin-inline: auto !important; margin-bottom: 3rem !important; }
.nv-head > * + * { margin-block-start: 0.85rem; }
.nv-lead { font-size: 1.1rem; }
.nv-muted { color: var(--nv-muted); }
.nv-small { font-size: 0.85rem; }

.nv-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--nv-red);
}
.nv-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.nv-head .nv-eyebrow, .has-text-align-center.nv-eyebrow { justify-content: center; display: flex; }

.nv-accent { color: var(--nv-red); }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.wp-block-button:not(.is-style-outline):not(.nv-btn-light) .wp-block-button__link { box-shadow: 0 8px 22px rgba(237, 27, 62, 0.25); }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--nv-white); color: var(--nv-ink); border: 2px solid var(--nv-line);
	padding: calc(0.9rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--nv-ink); background: var(--nv-white); color: var(--nv-ink); }
.wp-block-button.nv-btn-light .wp-block-button__link { background: var(--nv-white); color: var(--nv-red); }
.wp-block-button.nv-btn-light .wp-block-button__link:hover { background: var(--nv-white); color: var(--nv-red-dark); }
.nv-full-btn, .nv-full-btn .wp-block-button { width: 100%; }
.nv-full-btn .wp-block-button__link { width: 100%; }

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }
.nv-header {
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--nv-line);
}
.nv-header-inner { min-height: 78px; gap: 20px; }
.nv-brand { gap: 12px; }
.nv-brand .wp-block-site-title { line-height: 1.1; }
.nv-brand .wp-block-site-title a { text-decoration: none; }
.nv-nav { gap: 30px; }
.nv-nav .wp-block-navigation-item__content { text-decoration: none; }
.nv-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--nv-red); }

/* ---------- Hero ---------- */
.nv-hero {
	padding-block: clamp(3.5rem, 7vw, 5.5rem) !important;
	background:
		radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--nv-red) 10%, transparent), transparent 60%),
		radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--nv-red) 6%, transparent), transparent 60%),
		var(--nv-white);
}
.nv-hero h1 { margin-block: 1rem 1.25rem; }
.nv-hero .wp-block-buttons { margin-block: 2rem 2rem; }
.nv-page-hero { text-align: center; }
.nv-page-hero > * { margin-inline: auto !important; }
.nv-page-hero h1 { max-width: 880px; }
.nv-page-hero .nv-lead { max-width: 690px; }
.nv-crumbs { font-size: 0.85rem; color: var(--nv-muted); }
.nv-crumbs a { color: inherit; text-decoration: none; }
.nv-crumbs a:hover { color: var(--nv-red); }

.nv-steps { gap: 10px !important; }
.nv-steps p {
	margin: 0; padding: 9px 14px; border-radius: 999px; background: var(--nv-surface);
	font-size: 0.86rem; font-weight: 600; color: var(--nv-ink-2);
}
.nv-steps p strong {
	display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px;
	border-radius: 50%; background: var(--nv-red); color: var(--nv-white); font-size: 0.72rem;
}
.nv-hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(14, 18, 32, 0.22)); }

/* ---------- Stats ---------- */
.nv-stats {
	gap: 1px !important; background: var(--nv-line); border: 1px solid var(--nv-line);
	border-radius: 20px; box-shadow: var(--nv-shadow); overflow: hidden;
}
.nv-stat { padding: 1.8rem 1.2rem; text-align: center; background: var(--nv-white); }
.nv-stat > * { margin: 0; }
.nv-stat .nv-stat-num { font-size: 2rem; font-weight: 800; color: var(--nv-ink); line-height: 1.2; }
.nv-stat .nv-stat-num strong { color: var(--nv-red); }
.nv-stat .nv-stat-label { color: var(--nv-muted); font-size: 0.92rem; }

.nv-stats-wrap { padding-block: 0; margin-block-start: 0 !important; }

/* ---------- Cards ---------- */
/* Responsive grids: auto-fit so a short row fills the width. */
.nv-card > *, .nv-result > *, .nv-flow > *, .nv-panel > * { margin-inline: 0 !important; max-width: none; }
.nv-flow.is-layout-flex { align-items: stretch; }

.nv-grid { gap: 24px !important; }
.nv-card {
	background: var(--nv-white); border: 1px solid var(--nv-line); border-radius: var(--nv-radius);
	padding: 1.9rem; transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex; flex-direction: column;
}
.nv-card > * { margin-block: 0; }
.nv-card > * + * { margin-block-start: 0.7rem; }
.nv-card.nv-hover:hover { transform: translateY(-6px); box-shadow: var(--nv-shadow); border-color: transparent; }
.nv-card .nv-more { margin-top: auto !important; padding-top: 0.8rem; font-weight: 700; }
.nv-card .nv-more a { text-decoration: none; }
.nv-card-cta { background: var(--nv-red); border-color: var(--nv-red); color: rgba(255, 255, 255, 0.9); }
.nv-card-cta h3 { color: var(--nv-white); }
.nv-card-cta .wp-block-buttons { margin-top: auto !important; padding-top: 1rem; }
.nv-dark .nv-card { background: var(--nv-ink-2); border-color: rgba(255, 255, 255, 0.06); }
.nv-dark .nv-card p { color: #A9AFC2; }

/* Icon heading: a soft square with a masked SVG icon. */
.nv-ic { position: relative; padding-top: 72px; }
.nv-ic::before {
	content: ""; position: absolute; top: 0; left: 0; width: 54px; height: 54px;
	border-radius: 14px; background: var(--nv-soft);
}
.nv-ic::after {
	content: ""; position: absolute; top: 14px; left: 14px; width: 26px; height: 26px;
	background: var(--nv-red);
	-webkit-mask: var(--nv-icon) center / contain no-repeat; mask: var(--nv-icon) center / contain no-repeat;
}
.nv-ic-cart { --nv-icon: url(../icons/cart.svg); }
.nv-ic-pin { --nv-icon: url(../icons/pin.svg); }
.nv-ic-scale { --nv-icon: url(../icons/scale.svg); }
.nv-ic-heart { --nv-icon: url(../icons/heart.svg); }
.nv-ic-gift { --nv-icon: url(../icons/gift.svg); }
.nv-ic-pulse { --nv-icon: url(../icons/pulse.svg); }
.nv-ic-target { --nv-icon: url(../icons/target.svg); }
.nv-ic-layout { --nv-icon: url(../icons/layout.svg); }
.nv-ic-chat { --nv-icon: url(../icons/chat.svg); }
.nv-ic-mail { --nv-icon: url(../icons/mail.svg); }
.nv-ic-phone { --nv-icon: url(../icons/phone.svg); }
.nv-ic-clock { --nv-icon: url(../icons/clock.svg); }

.nv-tags { gap: 8px !important; }
.nv-tags p {
	margin: 0; font-size: 0.76rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
	background: var(--nv-surface); color: var(--nv-ink-2);
}

.nv-num { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; color: var(--nv-red); }

/* Numbered step / flow items */
.nv-flow { gap: 14px !important; }
.nv-flow-item {
	background: var(--nv-ink-2); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
	padding: 1.25rem 1.4rem 1.25rem 4.6rem; position: relative;
}
.nv-flow-item > * { margin: 0; }
.nv-flow-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.nv-flow-item p { font-size: 0.92rem; color: #A9AFC2; }
.nv-flow-item .nv-badge-num {
	position: absolute; left: 1.3rem; top: 1.3rem; width: 40px; height: 40px; border-radius: 12px;
	background: var(--nv-red); color: var(--nv-white); font-weight: 800; display: grid; place-items: center; font-size: 0.95rem;
}

.nv-pill {
	display: inline-block; width: fit-content; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
	color: var(--nv-white); background: var(--nv-red); padding: 6px 12px; border-radius: 999px;
}
.nv-step-badge {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--nv-red); color: var(--nv-white); font-weight: 800;
}

/* ---------- Check lists ---------- */
ul.nv-check { list-style: none; padding: 0; display: grid; gap: 14px; }
ul.nv-check li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--nv-ink-2); }
ul.nv-check li::before {
	content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
	background-color: var(--nv-soft);
	background-image: url(../icons/check.svg); background-size: 12px; background-position: center; background-repeat: no-repeat;
}
ul.nv-check.nv-x li::before { background-image: url(../icons/x.svg); }
ul.nv-check.nv-two { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
@media (max-width: 640px) { ul.nv-check.nv-two { grid-template-columns: 1fr; } }
.nv-dark ul.nv-check li { color: #DDE1EA; }

.nv-panel {
	background: var(--nv-white); border: 1px solid var(--nv-line); border-radius: 20px;
	padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--nv-shadow);
}
.nv-panel > * { margin-block: 0; }
.nv-panel > * + * { margin-block-start: 0.9rem; }

/* ---------- Pricing ---------- */
.nv-plans { align-items: stretch; }
.nv-plan { padding: 2.1rem 1.9rem; position: relative; overflow: visible; }
.nv-plan .wp-block-buttons { margin-top: auto !important; padding-top: 1.2rem; }
.nv-plan .wp-block-button, .nv-plan .wp-block-button__link { width: 100%; }
.nv-plan-for { color: var(--nv-muted); font-size: 0.9rem; }
.nv-price { font-size: 2.6rem !important; font-weight: 800; color: var(--nv-ink); line-height: 1.1; margin-top: 1.2rem !important; }
.nv-price span { font-size: 1rem; color: var(--nv-muted); font-weight: 600; }
.nv-plan ul.nv-check { margin-top: 1.4rem !important; gap: 12px; }
.nv-plan ul.nv-check li { font-size: 0.95rem; font-weight: 500; }
.nv-popular { border: 2px solid var(--nv-red); box-shadow: 0 20px 40px rgba(237, 27, 62, 0.12); }
@media (min-width: 1025px) { .nv-popular { transform: translateY(-8px); } }
.nv-badge {
	position: absolute; top: -14px; left: 50%; transform: translateX(-50%); margin: 0 !important;
	background: var(--nv-red); color: var(--nv-white); font-size: 0.74rem; font-weight: 700;
	padding: 6px 14px; border-radius: 999px; letter-spacing: 0.04em; white-space: nowrap;
}
.nv-notes { gap: 12px 28px !important; margin-top: 2.5rem !important; }
.nv-notes p { margin: 0; font-weight: 600; color: var(--nv-ink-2); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.nv-notes p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nv-red); }

/* Comparison table */
.nv-table { border: 1px solid var(--nv-line); border-radius: 18px; overflow-x: auto; background: var(--nv-white); }
.nv-table table { min-width: 640px; border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.nv-table th, .nv-table td { border: 0; border-bottom: 1px solid var(--nv-line); padding: 16px 20px; text-align: center; }
.nv-table th:first-child, .nv-table td:first-child { text-align: left; }
.nv-table thead { border: 0; }
.nv-table thead th { background: var(--nv-ink); color: var(--nv-white); font-weight: 700; }
.nv-table tbody tr:last-child td { border-bottom: 0; font-weight: 700; color: var(--nv-ink); }

/* ---------- Trust bar ---------- */
.nv-trust { background: var(--nv-soft); border-radius: 16px; padding: 1.3rem 1.5rem; gap: 16px !important; }
.nv-trust > * { margin: 0; }
.nv-trust .nv-trust-num { font-size: 1.6rem; font-weight: 800; color: var(--nv-red); }
.nv-trust .nv-trust-label { font-weight: 600; color: var(--nv-ink-2); font-size: 0.92rem; line-height: 1.35; }

/* ---------- Results ---------- */
.nv-result { padding: 0; overflow: hidden; border-radius: 20px; }
.nv-result > * + * { margin-block-start: 0; }
.nv-result-shot { margin: 0 !important; }
.nv-result-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.nv-result-top { background: var(--nv-ink); padding: 1.3rem 1.5rem; }
.nv-result-top > * { margin: 0; }
.nv-result-top .nv-label { color: #A9AFC2; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.nv-result-top h3 { color: var(--nv-white); margin-top: 6px; }
.nv-result-top .nv-meta { color: #A9AFC2; font-size: 0.85rem; margin-top: 4px; }
.nv-result-body { padding: 1.4rem 1.5rem; gap: 16px !important; }
.nv-result-body > div > * { margin: 0; }
.nv-metric-label { display: block; color: var(--nv-muted); font-size: 0.8rem; }
.nv-metric-value { font-size: 1.35rem; color: var(--nv-ink); font-weight: 800; }
.nv-metric-value.nv-accent { color: var(--nv-red); }
.nv-story { padding: 1.1rem 1.5rem 1.5rem; border-top: 1px solid var(--nv-line); font-size: 0.92rem; }
.nv-story > * { margin: 0; }
.nv-story > * + * { margin-top: 8px; }
.nv-story strong { color: var(--nv-ink); }

/* ---------- FAQ ---------- */
.nv-faq { max-width: 860px; margin-inline: auto !important; }
.nv-faq > * + * { margin-block-start: 0; }
.nv-faq .wp-block-details { border-bottom: 1px solid var(--nv-line); padding: 1.35rem 4px; }
.nv-faq .wp-block-details summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
	font-weight: 700; color: var(--nv-ink); font-size: 1.07rem;
}
.nv-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.nv-faq .wp-block-details summary::after {
	content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
	background: var(--nv-surface); display: grid; place-items: center; font-size: 1.3rem; color: var(--nv-red); transition: 0.2s;
}
.nv-alt .nv-faq .wp-block-details summary::after { background: var(--nv-white); }
.nv-faq .wp-block-details[open] summary::after { content: "\2013"; background: var(--nv-red); color: var(--nv-white); }
.nv-faq .wp-block-details > p { margin-top: 0.75rem; padding-right: 50px; }
@media (max-width: 640px) { .nv-faq .wp-block-details > p { padding-right: 0; } }

/* ---------- CTA ---------- */
.nv-cta-box {
	position: relative; overflow: hidden; border-radius: 28px; text-align: center;
	padding: clamp(3rem, 6vw, 4.4rem) clamp(1.4rem, 4vw, 3rem) !important;
	background: linear-gradient(135deg, var(--nv-red), var(--nv-red-dark)); color: rgba(255, 255, 255, 0.92);
}
.nv-cta-box h2 { color: var(--nv-white); }
.nv-cta-box > * { position: relative; margin-inline: auto !important; }
.nv-cta-box p { max-width: 560px; font-size: 1.1rem; }
.nv-cta-box::before, .nv-cta-box::after {
	content: ""; position: absolute; border-radius: 50%; border: 40px solid rgba(255, 255, 255, 0.07);
}
.nv-cta-box::before { width: 340px; height: 340px; top: -140px; right: -100px; }
.nv-cta-box::after { width: 260px; height: 260px; bottom: -140px; left: -80px; }

/* Split offer / switching panel */
.nv-offer { background: var(--nv-ink); border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.8rem) !important; color: #C9CEDC; }
.nv-offer h2 { color: var(--nv-white); }
.nv-code {
	display: inline-block; width: fit-content; border: 2px dashed var(--nv-red); color: var(--nv-white); font-weight: 800;
	letter-spacing: 0.12em; padding: 12px 20px; border-radius: 12px;
}

/* ---------- Contact ---------- */
.nv-contact-item.nv-ic { padding: 1.1rem 1.2rem 1.1rem 84px; justify-content: center; min-height: 86px; }
.nv-contact-item.nv-ic::before { top: 50%; left: 1.2rem; transform: translateY(-50%); width: 48px; height: 48px; }
.nv-contact-item.nv-ic::after { top: 50%; left: calc(1.2rem + 13px); transform: translateY(-50%); width: 22px; height: 22px; }
.nv-contact-item > * + * { margin-block-start: 2px; }
.nv-contact-item p { margin: 0; }
.nv-contact-item .nv-metric-label { font-size: 0.82rem; }
.nv-contact-item strong { color: var(--nv-ink); }
.nv-founder { background: var(--nv-ink); border-radius: 16px; padding: 1.4rem; color: #C9CEDC; }
.nv-founder strong { color: var(--nv-white); }
.nv-form-box { min-height: 340px; }
.nv-placeholder {
	border: 2px dashed var(--nv-line); border-radius: 16px; padding: 2rem; text-align: center; color: var(--nv-muted);
}

/* ---------- Footer ---------- */
.nv-footer { background: var(--nv-ink); color: #A9AFC2; padding-block: 4.5rem 2.5rem; }
.nv-footer h4, .nv-footer .wp-block-site-title, .nv-footer .wp-block-site-title a { color: var(--nv-white); }
.nv-footer a { color: #A9AFC2; text-decoration: none; }
.nv-footer a:hover { color: var(--nv-white); }
.nv-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.nv-footer p { font-size: 0.93rem; }
.nv-footer .nv-foot-cta a { color: var(--nv-red); font-weight: 700; }
.nv-foot-bottom { margin-top: 3rem !important; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; font-weight: 600; color: var(--nv-white); }

/* ---------- Blog / generic templates ---------- */
.nv-main { padding-block: clamp(3rem, 6vw, 5rem); }
.nv-post-card { border: 1px solid var(--nv-line); border-radius: var(--nv-radius); padding: 1.4rem; height: 100%; }
.nv-post-card .wp-block-post-featured-image { margin: -1.4rem -1.4rem 1rem; }
.nv-post-card .wp-block-post-featured-image img { border-radius: var(--nv-radius) var(--nv-radius) 0 0; }
.nv-post-card .wp-block-post-title a { text-decoration: none; }
.wp-block-post-date, .wp-block-post-terms { color: var(--nv-muted); font-size: 0.88rem; }
.wp-block-post-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.wp-site-blocks *:focus-visible) { outline: 2px solid var(--nv-red); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.nv-hero .wp-block-buttons .wp-block-button { width: 100%; }
	.nv-hero .wp-block-buttons .wp-block-button__link { width: 100%; }
}

/* =========================================================
 * Responsive grids
 * 1 column on phones, 2 on tablets, 3 on laptops.
 * Rows of 3 or 4 items never leave a single card alone.
 * ======================================================= */
.nv-grid.is-layout-grid { grid-template-columns: minmax(0, 1fr); }
.nv-stats.is-layout-grid,
.nv-result-body.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

@media (min-width: 600px) {
	.nv-grid.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nv-grid.is-layout-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
	.nv-grid.is-layout-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nv-grid.is-layout-grid:has(> :nth-child(3):last-child) > :last-child { grid-column: auto; }
}
@media (min-width: 600px) and (max-width: 899px) {
	/* Wide content cards stack in one centred column on small tablets. */
	.nv-grid.is-layout-grid:not(:has(> .nv-trust)):has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 560px); justify-content: center; }
	.nv-trust { flex-direction: column; align-items: flex-start !important; gap: 4px !important; }
}
@media (min-width: 1024px) {
	.nv-grid.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nv-grid.is-layout-grid > :last-child:nth-child(odd) { grid-column: auto; }
	.nv-grid.is-layout-grid:not(.nv-result-body):has(> :nth-child(4):last-child),
	.nv-stats.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 599px) {
	.nv-stat { padding: 1.3rem 0.8rem; }
	.nv-stat .nv-stat-num { font-size: 1.6rem; }
	.nv-stat .nv-stat-label { font-size: 0.82rem; }
}

/* Hero illustration stays a sensible size when columns stack. */
@media (max-width: 781px) {
	.nv-hero-art { max-width: 520px; margin-inline: auto !important; }
}

/* Footer: 2 x 2 on tablets instead of one long column. */
@media (min-width: 480px) and (max-width: 781px) {
	.nv-footer .wp-block-columns { flex-wrap: wrap !important; }
	.nv-footer .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 1rem) !important; flex-grow: 0 !important; }
	.nv-footer .wp-block-columns > .wp-block-column:first-child { flex-basis: 100% !important; }
}

/* Contact detail links. */
.nv-contact-item a { color: var(--nv-ink); text-decoration: none; }
.nv-contact-item a:hover { color: var(--nv-red); }

/* Comparison table fits small screens. */
@media (max-width: 640px) {
	.nv-table table { min-width: 0; font-size: 0.85rem; }
	.nv-table th, .nv-table td { padding: 12px 10px; }
	.nv-table th:first-child, .nv-table td:first-child { width: 40%; }
}

/* =========================================================
 * Header + off-canvas navigation
 * Menu icon from 1023px down, panel slides in from the right.
 * ======================================================= */
.nv-header-inner > .nv-brand { margin-right: auto; }
.nv-nav .nv-nav-cta { display: none; }

@media (max-width: 1023px) {
	.nv-header-inner { gap: 12px !important; }
	.nv-header-cta { order: 2; }
	.nv-nav { order: 3; }
	.nv-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.nv-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 599px) {
	.nv-header-cta { display: none !important; }
	.nv-brand .wp-block-site-title { font-size: 1rem; }
}

/* 3-line menu button */
.nv-nav .wp-block-navigation__responsive-container-open {
	width: 46px; height: 46px; align-items: center; justify-content: center;
	border: 1.5px solid var(--nv-line); border-radius: 12px; background: var(--nv-white); color: var(--nv-ink);
	transition: border-color 0.2s ease, color 0.2s ease;
}
.nv-nav .wp-block-navigation__responsive-container-open:hover,
.nv-nav .wp-block-navigation__responsive-container-open:focus-visible { border-color: var(--nv-red); color: var(--nv-red); }
.nv-nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }

/* Off-canvas panel */
.nv-nav .wp-block-navigation__responsive-container.is-menu-open {
	left: auto !important; right: 0; top: 0; bottom: 0;
	width: min(380px, 88vw);
	padding: 1.25rem 1.5rem 2rem !important;
	background: var(--nv-white) !important; color: var(--nv-ink) !important;
	box-shadow: -24px 0 60px rgba(14, 18, 32, 0.22);
	animation: nv-offcanvas-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
	overflow-y: auto;
}
@keyframes nv-offcanvas-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .nv-nav .wp-block-navigation__responsive-container.is-menu-open { animation: none; } }

/* Dimmed backdrop behind the panel */
body:has(.nv-nav .wp-block-navigation__responsive-container.is-menu-open)::after {
	content: ""; position: fixed; inset: 0; z-index: 99999;
	background: rgba(14, 18, 32, 0.55);
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
	animation: nv-fade-in 0.25s ease both;
}
@keyframes nv-fade-in { from { opacity: 0; } to { opacity: 1; } }

.nv-nav .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0 !important; }
.admin-bar .nv-nav .wp-block-navigation__responsive-container.is-menu-open { top: var(--wp-admin--admin-bar--height, 32px); }

/* Close button */
.nv-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 0; right: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	border-radius: 12px; background: var(--nv-surface); color: var(--nv-ink); transition: background 0.2s ease, color 0.2s ease;
}
.nv-nav .is-menu-open .wp-block-navigation__responsive-container-close:hover { background: var(--nv-soft); color: var(--nv-red); }
.nv-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 22px; height: 22px; }

/* Menu items */
.nv-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.25rem !important; align-items: stretch !important; gap: 0 !important;
}
.nv-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important; gap: 0 !important; width: 100%;
}
.nv-nav .is-menu-open .wp-block-navigation-item {
	width: 100%; border-bottom: 1px solid var(--nv-line);
}
.nv-nav .is-menu-open .wp-block-navigation-item__content {
	display: flex !important; align-items: center; justify-content: space-between; width: 100%;
	padding: 1rem 0.25rem !important; font-size: 1.12rem; font-weight: 700; color: var(--nv-ink);
}
.nv-nav .is-menu-open .wp-block-navigation-item:not(.nv-nav-cta) .wp-block-navigation-item__content::after {
	content: "\2192"; color: var(--nv-muted); font-weight: 600; transition: transform 0.2s ease, color 0.2s ease;
}
.nv-nav .is-menu-open .wp-block-navigation-item__content:hover,
.nv-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--nv-red); }
.nv-nav .is-menu-open .wp-block-navigation-item__content:hover::after { color: var(--nv-red); transform: translateX(4px); }

/* CTA inside the panel */
.nv-nav .is-menu-open .nv-nav-cta { display: block; border-bottom: 0; margin-top: 1.5rem; }
.nv-nav .is-menu-open .nv-nav-cta .wp-block-navigation-item__content {
	justify-content: center; background: var(--nv-red); color: var(--nv-white) !important;
	border-radius: 999px; padding: 0.95rem 1.4rem !important; font-size: 1rem;
	box-shadow: 0 8px 22px rgba(237, 27, 62, 0.25);
}
.nv-nav .is-menu-open .nv-nav-cta .wp-block-navigation-item__content:hover { background: var(--nv-red-dark); }

/* While the menu is open: let the panel escape the header and sit above the backdrop. */
header.wp-block-template-part:has(.is-menu-open) { z-index: 100000; }
.nv-header:has(.is-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; }
.nv-nav .wp-block-navigation__responsive-container.is-menu-open,
.nv-nav .is-menu-open * { box-sizing: border-box; }

.nv-grid.nv-stats { gap: 1px !important; }
.nv-grid.nv-result-body { gap: 14px 16px !important; }

/* =========================================================
 * Icon centring (v1.0.4)
 * FAQ toggles are drawn with CSS bars instead of text glyphs,
 * so the + and - sit exactly in the middle of the circle.
 * ======================================================= */
.nv-faq .wp-block-details summary::after {
	content: "" !important;
	width: 32px; height: 32px; border-radius: 50%;
	background:
		linear-gradient(var(--nv-red), var(--nv-red)) center / 12px 2px no-repeat,
		linear-gradient(var(--nv-red), var(--nv-red)) center / 2px 12px no-repeat,
		var(--nv-surface);
}
.nv-alt .nv-faq .wp-block-details summary::after {
	background:
		linear-gradient(var(--nv-red), var(--nv-red)) center / 12px 2px no-repeat,
		linear-gradient(var(--nv-red), var(--nv-red)) center / 2px 12px no-repeat,
		var(--nv-white);
}
.nv-faq .wp-block-details[open] summary::after,
.nv-alt .nv-faq .wp-block-details[open] summary::after {
	background: linear-gradient(var(--nv-white), var(--nv-white)) center / 12px 2px no-repeat, var(--nv-red);
}

/* Number badges: exact vertical centring of the digits. */
.nv-steps p strong,
.nv-step-badge,
.nv-flow-item .nv-badge-num,
.nv-pill { line-height: 1; }
.nv-steps p strong { padding-top: 1px; }
.nv-step-badge, .nv-flow-item .nv-badge-num { padding: 0 !important; }

/* =========================================================
 * Contact Form 7 (v1.0.5)
 * ======================================================= */
.nv-cf7 { display: grid; gap: 16px; margin-top: 1.25rem; }
.nv-cf7 p { margin: 0; display: contents; }
.nv-cf7 br { display: none; }
.nv-cf7-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.nv-cf7-row.nv-cf7-one { grid-template-columns: 1fr; }
@media (max-width: 640px) { .nv-cf7-row { grid-template-columns: 1fr; } }
.nv-cf7-field { display: block; margin: 0; font-weight: 600; font-size: 0.9rem; line-height: 1.4; color: var(--nv-ink); }
.nv-cf7 .nv-req { color: var(--nv-red); }
.nv-cf7 .nv-opt { font-weight: 500; font-size: 0.75rem; color: var(--nv-muted); }
.nv-cf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.nv-cf7 .nv-req { margin-left: 2px; }
.nv-cf7 .nv-opt { margin-left: 4px; }
.nv-cf7 input[type="text"], .nv-cf7 input[type="email"], .nv-cf7 input[type="url"], .nv-cf7 input[type="tel"],
.nv-cf7 select, .nv-cf7 textarea {
	width: 100%; font: inherit; font-size: 0.96rem; font-weight: 500; color: var(--nv-ink);
	padding: 13px 15px; border: 1.5px solid var(--nv-line); border-radius: 12px; background: var(--nv-white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease; box-sizing: border-box;
}
.nv-cf7 select {
	appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
	background: var(--nv-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7285' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.nv-cf7 textarea { min-height: 120px; resize: vertical; }
.nv-cf7 ::placeholder { color: #a0a6b6; font-weight: 400; }
.nv-cf7 input:focus, .nv-cf7 select:focus, .nv-cf7 textarea:focus {
	outline: none; border-color: var(--nv-red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nv-red) 12%, transparent);
}
.nv-cf7 .wpcf7-not-valid { border-color: var(--nv-red); }
.nv-cf7 .wpcf7-not-valid-tip { font-size: 0.8rem; font-weight: 500; color: var(--nv-red); margin-top: 6px; }
.nv-cf7-submit { position: relative; margin-top: 6px; }
.nv-cf7 input.wpcf7-submit {
	width: 100%; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; border: 0; border-radius: 999px;
	padding: 15px 26px; background: var(--nv-red); color: var(--nv-white);
	box-shadow: 0 8px 22px rgba(237, 27, 62, 0.25); transition: background 0.2s ease, transform 0.2s ease;
}
.nv-cf7 input.wpcf7-submit:hover { background: var(--nv-red-dark); transform: translateY(-2px); }
.nv-cf7 input.wpcf7-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.nv-cf7-submit .wpcf7-spinner { position: absolute; right: 18px; top: 50%; margin: -12px 0 0; background-color: rgba(255, 255, 255, 0.6); }
.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; border-width: 1.5px; font-size: 0.92rem; font-weight: 600;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #12a150; background: #e8f8ee; color: #0d7a3c; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--nv-red); background: var(--nv-soft); color: var(--nv-red-dark);
}
.nv-form-box { min-height: 0; }

/* =======================================================
 * Hero dashboard (v1.0.7)
 * ======================================================= */
.nvd { container-type: inline-size; width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(14, 18, 32, 0.22)); }
.nvd-card {
	--u: calc(100cqw / 520); position: relative; border-radius: calc(var(--u) * 28); padding: calc(var(--u) * 26) calc(var(--u) * 26) calc(var(--u) * 20);
	color: #fff; font-family: var(--wp--preset--font-family--plus-jakarta-sans, "Plus Jakarta Sans", sans-serif); line-height: 1.25; overflow: hidden;
	background: radial-gradient(120% 80% at 100% 0%, #2a1424 0%, rgba(42, 20, 36, 0) 55%), linear-gradient(160deg, #141a2e 0%, #0b0f1c 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.nvd-card p { margin: 0; }
.nvd-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(var(--u) * 20); }
.nvd-ttl { font-size: calc(var(--u) * 16); font-weight: 700; letter-spacing: -0.01em; }
.nvd-sub { font-size: calc(var(--u) * 12.5); color: #8d94ab; margin-top: calc(var(--u) * 3) !important; font-weight: 500; }
.nvd-live { display: flex; align-items: center; gap: calc(var(--u) * 7); padding: calc(var(--u) * 7) calc(var(--u) * 13); border-radius: 99px; background: rgba(74, 222, 128, 0.12); color: #4ade80; font-size: calc(var(--u) * 12.5); font-weight: 700; }
.nvd-live i { width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 calc(var(--u) * 4) rgba(74, 222, 128, 0.18); }
.nvd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 12); }
.nvd-kpi { position: relative; height: calc(var(--u) * 94); background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: calc(var(--u) * 18); padding: calc(var(--u) * 15) calc(var(--u) * 16); overflow: hidden; }
.nvd-l { display: flex; align-items: center; gap: calc(var(--u) * 8); font-size: calc(var(--u) * 12.5); color: #a3a9be; font-weight: 600; }
.nvd-ic { width: calc(var(--u) * 24); height: calc(var(--u) * 24); border-radius: calc(var(--u) * 8); display: grid; place-items: center; background: rgba(237, 27, 62, 0.16); flex: none; }
.nvd-ic svg { width: 55%; height: 55%; stroke: #ff5470; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nvd-v { font-size: calc(var(--u) * 29); font-weight: 800; letter-spacing: -0.03em; margin-top: calc(var(--u) * 11) !important; line-height: 1; }
.nvd-v small { font-size: 0.62em; font-weight: 700; color: #cfd3e0; margin-right: 1px; }
.nvd-spark { position: absolute; right: calc(var(--u) * 12); bottom: calc(var(--u) * 12); width: calc(var(--u) * 76); height: calc(var(--u) * 28); }
.nvd-spark path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nvd-kpi.nvd-hl { background: linear-gradient(150deg, #ed1b3e 0%, #b5102c 100%); border-color: transparent; box-shadow: 0 calc(var(--u) * 14) calc(var(--u) * 30) rgba(237, 27, 62, 0.35); }
.nvd-hl .nvd-l { color: rgba(255, 255, 255, 0.88); }
.nvd-hl .nvd-ic { background: rgba(255, 255, 255, 0.2); }
.nvd-hl .nvd-ic svg { stroke: #fff; }
.nvd-hl .nvd-v { font-size: calc(var(--u) * 27); }
.nvd-tag { position: absolute; left: calc(var(--u) * 16); bottom: calc(var(--u) * 11); font-size: calc(var(--u) * 11); font-weight: 700; padding: calc(var(--u) * 3) calc(var(--u) * 9); border-radius: 99px; background: rgba(255, 255, 255, 0.2); white-space: nowrap; }
.nvd-chart { margin-top: calc(var(--u) * 14); background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: calc(var(--u) * 18); padding: calc(var(--u) * 15) calc(var(--u) * 16) calc(var(--u) * 10); }
.nvd-ch { display: flex; justify-content: space-between; align-items: center; font-size: calc(var(--u) * 12.5); color: #a3a9be; font-weight: 600; }
.nvd-lg { display: flex; gap: calc(var(--u) * 14); font-size: calc(var(--u) * 11.5); }
.nvd-lg > span { display: flex; align-items: center; gap: calc(var(--u) * 6); }
.nvd-lg b { width: calc(var(--u) * 8); height: calc(var(--u) * 8); border-radius: calc(var(--u) * 3); display: inline-block; background: #4ade80; }
.nvd-lg b.r { background: #ed1b3e; }
.nvd-svg { display: block; width: 100%; height: calc(var(--u) * 150); margin-top: calc(var(--u) * 6); }
.nvd-wk { display: flex; justify-content: space-between; font-size: calc(var(--u) * 10.5); color: #646b84; font-weight: 600; padding: calc(var(--u) * 2) calc(var(--u) * 4) 0; }
