/* Vienen y Van FSE theme: effects block markup cannot express on its own.
   Everything colour-related reads the theme.json presets. See BUILD-PLAN.md "Gaps". */

/* ── Responsive tokens used by the spacing presets in theme.json ── */
:root {
	--vv-gutter: 1.5rem;
	--vv-section-y-lg: 6rem;
	--vv-hero-y: 6rem;
}
@media (min-width: 1024px) {
	:root {
		--vv-gutter: 3rem;
		--vv-section-y-lg: 8rem;
		--vv-hero-y: 9rem;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
section[id] {
	scroll-margin-top: 5rem;
}
.wp-element-button {
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.is-hidden {
	display: none !important;
}

/* ── Icon font (Material Symbols Outlined, self-hosted) ── */
@font-face {
	font-family: 'Material Symbols Outlined';
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url('../fonts/MaterialSymbolsOutlined.woff2') format('woff2');
}
.material-symbols-outlined {
	font-family: 'Material Symbols Outlined';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
	vertical-align: middle;
	flex-shrink: 0;
}
.vv-icon-html {
	display: flex;
	margin: 0;
}
.vv-i-14 { font-size: 14px; }
.vv-i-18 { font-size: 18px; }
.vv-i-24 { font-size: 24px; }
.vv-c-primary { color: var(--wp--preset--color--primary); }
.vv-c-secondary { color: var(--wp--preset--color--secondary); }
.vv-c-tertiary { color: var(--wp--preset--color--tertiary); }
.vv-c-secondary-fixed { color: var(--wp--preset--color--secondary-fixed); }

/* ── Header: fixed bar with glass blur (Stitch: fixed top-0, bg-primary/95, backdrop-blur-xl) ── */
.vv-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
body.admin-bar .vv-header {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .vv-header {
		top: 46px;
	}
}
.vv-header .vv-header-bar {
	margin-left: auto;
	margin-right: auto;
	max-width: 1280px;
}
.vv-nav .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.8);
	transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.vv-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--on-primary);
}
.vv-nav .wp-block-navigation-item__content.is-active,
.vv-nav .wp-block-navigation-item__content[aria-current='page'] {
	color: var(--wp--preset--color--secondary-fixed);
	font-weight: 600;
	font-size: 1rem;
}
@media (max-width: 639px) {
	.vv-hide-sm {
		display: none !important;
	}
}

/* ── Hero backdrop: architectural grid + two blurred glow orbs ── */
.vv-hero {
	position: relative;
	overflow: hidden;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M60 0H0V60' fill='none' stroke='white' stroke-opacity='0.1' stroke-width='1.2'/%3E%3Ccircle cx='60' cy='0' r='2.5' fill='white' fill-opacity='0.1'/%3E%3C/svg%3E");
	background-size: 60px 60px;
}
.vv-hero::before,
.vv-hero::after {
	content: '';
	position: absolute;
	border-radius: 9999px;
	pointer-events: none;
	filter: blur(64px);
}
.vv-hero::before {
	top: 25%;
	left: -12rem;
	width: 24rem;
	height: 24rem;
	background: rgba(152, 211, 254, 0.2);
}
.vv-hero::after {
	bottom: 2.5rem;
	right: 0;
	width: 30rem;
	height: 30rem;
	background: rgba(33, 100, 138, 0.3);
}
.vv-hero > * {
	position: relative;
	z-index: 1;
}

/* ── Width helpers (Tailwind max-w-* equivalents); left-aligned unless .vv-center ── */
.is-layout-constrained > .vv-maxw-3xl,
.is-layout-constrained > .vv-maxw-4xl,
.is-layout-constrained > .vv-maxw-md,
.is-layout-constrained > .vv-fit,
.is-layout-constrained > .vv-left {
	margin-left: 0 !important;
	margin-right: auto !important;
}
.is-layout-constrained > .vv-maxw-3xl { max-width: 48rem; }
.is-layout-constrained > .vv-maxw-4xl { max-width: 56rem; }
.is-layout-constrained > .vv-maxw-md { max-width: 28rem; }
.is-layout-constrained > .vv-maxw-6xl { max-width: 72rem; }
.vv-maxw-3xl { max-width: 48rem; }
.vv-maxw-4xl { max-width: 56rem; }
.vv-maxw-md { max-width: 28rem; }
.vv-maxw-6xl { max-width: 72rem; }
.vv-fit { width: fit-content; }
.is-layout-constrained > .vv-center,
.is-layout-constrained > .vv-maxw-6xl {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ── Line-heights that ship with Tailwind's text-* sizes ── */
.has-xs-font-size { line-height: 1.3333; }
.has-sm-font-size { line-height: 1.4286; }
.has-lg-font-size { line-height: 1.5556; }
.has-xl-font-size { line-height: 1.4; }
.has-xxl-font-size { line-height: 1.3333; }
.has-xxxl-font-size { line-height: 1.2; }
.has-stat-value-font-size { line-height: 1.4; }
.vv-footer-link a { color: inherit; }
.vv-baseline { align-items: baseline !important; }

/* ── Glass surfaces on dark backgrounds ── */
.vv-blur-md {
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.vv-blur-lg {
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.vv-blur-sm {
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.vv-dot {
	display: inline-block;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 9999px;
	background: var(--wp--preset--color--tertiary-fixed);
	margin-right: 0.5rem;
	vertical-align: middle;
}

/* ── Buttons: per-variant hover from the design ── */
.vv-btn-light .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--secondary-fixed) !important;
	color: var(--wp--preset--color--on-secondary-fixed) !important;
}
.vv-btn-ghost .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary-container) !important;
}
.vv-btn-green .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--tertiary-container) !important;
	color: var(--wp--preset--color--on-tertiary-container) !important;
}
.vv-btn-full,
.vv-btn-full .wp-block-button__link {
	width: 100%;
}
.vv-btn-full .wp-block-button__link {
	display: block;
	text-align: center;
}

/* ── Progress bars ── */
.vv-bar {
	width: 100%;
	height: 0.75rem;
	border-radius: 0.75rem;
	overflow: hidden;
	background: var(--wp--preset--color--surface-container-high);
}
.vv-bar__fill {
	height: 100%;
	border-radius: 0.75rem;
	background: var(--wp--preset--color--secondary);
}
.vv-bar--dark {
	background: var(--wp--preset--color--primary-container);
}
.vv-bar--dark .vv-bar__fill {
	background: var(--wp--preset--color--secondary-fixed);
}

/* ── Cards: stacked with footer pinned to the bottom, hover tints ── */
.vv-card-split {
	display: flex !important;
	flex-direction: column;
	justify-content: space-between;
}
.vv-hover-low,
.vv-hover-dark {
	transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.vv-hover-low:hover {
	background-color: var(--wp--preset--color--surface-container-low) !important;
}
.vv-hover-dark:hover {
	background-color: var(--wp--preset--color--primary-container) !important;
}
.vv-row-wrap {
	flex-wrap: wrap;
}
.vv-min-w-0 {
	min-width: 0;
}

/* ── Grids: collapse the way the design does (Tailwind md 768 / lg 1024) ── */
.wp-block-group.vv-grid-7-5 {
	grid-template-columns: repeat(12, minmax(0, 1fr));
}
.wp-block-group.vv-grid-7-5 > :first-child {
	grid-column: span 7;
}
.wp-block-group.vv-grid-7-5 > :last-child {
	grid-column: span 5;
}
.wp-block-group.vv-grid-footer {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.wp-block-group.vv-grid-footer > :first-child {
	grid-column: span 2;
}
@media (max-width: 1023px) {
	.wp-block-group.vv-grid-2,
	.wp-block-group.vv-grid-7-5 {
		grid-template-columns: minmax(0, 1fr);
	}
	.wp-block-group.vv-grid-7-5 > :first-child,
	.wp-block-group.vv-grid-7-5 > :last-child {
		grid-column: auto;
	}
	.wp-block-group.vv-grid-steps,
	.wp-block-group.vv-grid-team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.wp-block-group.vv-grid-steps,
	.wp-block-group.vv-grid-team,
	.wp-block-group.vv-grid-footer {
		grid-template-columns: minmax(0, 1fr);
	}
	.wp-block-group.vv-grid-footer > :first-child {
		grid-column: auto;
	}
	.wp-block-group.vv-grid-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.wp-block-group.vv-footer-bottom {
		flex-direction: column;
	}
}
@media (max-width: 639px) {
	h2.wp-block-heading {
		line-height: 1.2;
	}
	.vv-card-pad {
		padding: 2rem !important;
	}
}

/* ── Contact form (raw HTML block, mirrors the design's inputs) ── */
.vv-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.vv-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}
@media (max-width: 639px) {
	.vv-form__row {
		grid-template-columns: minmax(0, 1fr);
	}
}
.vv-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.vv-form label {
	display: block;
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--on-surface);
}
.vv-form input,
.vv-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--surface-container-low);
	color: var(--wp--preset--color--on-surface);
	font-family: inherit;
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.vv-form input::placeholder,
.vv-form textarea::placeholder {
	color: var(--wp--preset--color--outline);
	opacity: 1;
}
.vv-form input:focus,
.vv-form textarea:focus {
	outline: none;
	background: var(--wp--preset--color--surface-container-highest);
}
.vv-form textarea {
	resize: none;
}
.vv-form button[type='submit'] {
	width: 100%;
	padding: 1rem 2rem;
	border: 0;
	border-radius: 0.5rem;
	cursor: pointer;
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--on-tertiary);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.vv-form button[type='submit']:hover {
	background: var(--wp--preset--color--tertiary-container);
	color: var(--wp--preset--color--on-tertiary-container);
}
.vv-form button[type='submit'].is-sending {
	opacity: 0.75;
}
.vv-form__success {
	padding: 1rem;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--tertiary-container);
	color: var(--wp--preset--color--on-tertiary-container);
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	text-align: center;
}

/* ── Contact card: watermark, links ── */
.vv-contact-card {
	position: relative;
	overflow: hidden;
}
.vv-contact-card > * {
	position: relative;
	z-index: 1;
}
.vv-contact-card .vv-watermark {
	position: absolute;
	z-index: 0;
	right: -4rem;
	bottom: -4rem;
	opacity: 0.1;
	pointer-events: none;
	margin: 0;
}
.vv-contact-card .vv-watermark img {
	width: 18rem;
	height: 18rem;
	object-fit: contain;
}
.vv-link-light a {
	transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.vv-link-light a:hover {
	color: var(--wp--preset--color--on-primary);
}

/* ── Footer links ── */
.vv-footer-link a,
.vv-footer-link {
	transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.vv-footer-link a:hover {
	color: var(--wp--preset--color--on-primary);
}
.vv-pill-link .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--secondary-fixed) !important;
	color: var(--wp--preset--color--on-secondary-fixed) !important;
}

/* ── Small fixed-size boxes and the offer heading note ── */
.vv-avatar,
.vv-iconbox {
	width: 3rem;
	height: 3rem;
	flex-shrink: 0;
}
.vv-h3-note {
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--wp--preset--color--secondary);
}

/* ── Coloured inline text ── */
mark.has-inline-color {
	background-color: transparent;
}

/* ── Line-heights that depend on the viewport, as in Tailwind's responsive text-* ── */
.has-lead-font-size { line-height: 1.5556; }
.has-lead-hero-font-size { line-height: 1.625; }
.has-body-fluid-font-size { line-height: 1.4286; }
.has-stat-value-font-size { line-height: 1.4; }
.has-offer-title-font-size { line-height: 1.3333; }
@media (min-width: 640px) {
	.has-body-fluid-font-size { line-height: 1.5; }
	.has-stat-value-font-size { line-height: 1.3333; }
	.has-offer-title-font-size { line-height: 1.1111; }
}
@media (min-width: 1024px) {
	.has-lead-hero-font-size { line-height: 1.3333; }
}
.vv-h3-note { line-height: 1.3333; }
.vv-link-light a,
.vv-footer-link a { color: inherit; }
.vv-nav.wp-block-navigation .wp-block-navigation-item__content { color: rgba(255, 255, 255, 0.8); }
.vv-nav.wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--on-primary); }
.vv-nav.wp-block-navigation .wp-block-navigation-item__content.is-active,
.vv-nav.wp-block-navigation .wp-block-navigation-item__content[aria-current='page'] { color: var(--wp--preset--color--secondary-fixed); }

.vv-nav.wp-block-navigation .wp-block-navigation-item__content.is-active { line-height: 1.5; }
.vv-hover-low .has-secondary-fixed-background-color { white-space: nowrap; flex-shrink: 0; }
/* The design's textarea is inline-block, so it sits on a line box with 6px of descender space below it. */
.vv-form textarea { margin-bottom: 6px; }

/* ── Mobile menu button on the dark bar; let the stat unit shrink instead of overflowing the card ── */
.vv-nav .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--on-primary);
}
.vv-baseline > * {
	min-width: 0;
}

/* ── Contact form: spam-trap field, error banner, no-JavaScript result ── */
.vv-form__hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}
.vv-form__error {
	padding: 1rem;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--surface-container-high);
	color: #93000a;
	font-family: var(--wp--preset--font-family--label);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	text-align: center;
}
.vv-form button[type='submit']:disabled {
	cursor: wait;
}
body.vv-sent-ok #form-success-banner { display: block !important; }
body.vv-sent-ok #pilot-contact-form button[type='submit'] { display: none; }
body.vv-sent-fail #form-error-banner { display: block !important; }
