/*
 * NTXWD Builder component styles.
 * Rule: only theme.json presets (--wp--preset--*) and custom tokens (--wp--custom--*).
 * No hardcoded brand colors or fonts, so every style preset re-skins everything here.
 */

/* ---------- Base ---------- */
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Header, page title, main and footer stack edge to edge: sections control their own spacing. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

/* Text on colored sections inherits the section color (headings, links, muted text). */
:where(.has-dark-background-color, .has-secondary-background-color, .has-primary-background-color, .has-brand-gradient-background, .has-dark-fade-gradient-background, .is-style-card-dark) :where(a:not(.wp-element-button)) {
	color: inherit;
}

/* Site title and heading links follow the surrounding text color (dark headers, cards). */
.wp-block-site-title a,
:where(h1, h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)) {
	color: inherit;
}

:where(h2, h3, h4, h5, h6) a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* ---------- Headings: highlighted words (Format toolbar → Highlight) ---------- */
:where(h1, h2, h3, h4, .wp-block-post-title) mark {
	background: none !important;
	font-family: var(--wp--preset--font-family--accent);
	font-style: var(--wp--custom--heading--accent-style);
	font-weight: var(--wp--custom--heading--accent-weight);
	color: var(--wp--preset--color--primary);
}

/* Heading style "Kicker": the first highlighted words sit on their own smaller line above the headline. */
.is-style-kicker > mark:first-child {
	display: block;
	font-size: 0.48em;
	line-height: 1.2;
	margin-bottom: 0.15em;
	letter-spacing: 0.01em;
}

/* ---------- Paragraph styles ---------- */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: var(--wp--custom--eyebrow--weight);
	letter-spacing: var(--wp--custom--eyebrow--letter-spacing);
	text-transform: uppercase;
	line-height: 1.4;
}

.is-style-eyebrow:not(.has-text-color) {
	color: var(--wp--custom--eyebrow--color);
}

/* On dark sections the eyebrow colour is lightened so it keeps AA contrast whatever the brand colour is. */
.has-dark-background-color .is-style-eyebrow:not(.has-text-color) {
	color: var(--wp--custom--eyebrow--on-dark, color-mix(in srgb, var(--wp--custom--eyebrow--color) 50%, #fff));
}

.is-style-pill {
	display: flex;
	align-items: center;
	gap: 0.5em;
	width: fit-content;
	padding: 0.45em 1em;
	border-radius: var(--wp--custom--radius--badge);
	background: color-mix(in srgb, currentColor 10%, transparent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: 1.3;
}

.is-style-pill:not(.has-text-color) {
	color: var(--wp--preset--color--primary);
}

:where(.is-layout-constrained) > .is-style-pill,
.has-text-align-center.is-style-pill {
	margin-inline: auto;
}

.is-style-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

.is-style-lead:not(.has-text-color) {
	color: var(--wp--preset--color--contrast-2);
}

.is-style-arrow-link {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.is-style-arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.is-style-arrow-link a::after {
	content: "→";
	transition: transform 0.2s ease;
}

.is-style-arrow-link a:hover {
	text-decoration: none;
}

.is-style-arrow-link a:hover::after {
	transform: translateX(4px);
}

.is-style-stars {
	letter-spacing: 0.12em;
	line-height: 1;
}

.is-style-stars:not(.has-text-color) {
	color: var(--wp--custom--stars--color, var(--wp--preset--color--accent));
}

.has-dark-background-color .is-style-stars:not(.has-text-color) {
	color: var(--wp--preset--color--accent);
}

/* ---------- Heading: stat number ---------- */
.is-style-stat {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: var(--wp--custom--heading--weight);
	letter-spacing: var(--wp--custom--heading--letter-spacing);
	font-size: var(--wp--preset--font-size--xxx-large);
	line-height: 1;
	font-variant-numeric: tabular-nums;
	margin-block-end: 0.25rem;
}

/* ---------- Cards (Group styles) ---------- */
.is-style-card,
.is-style-card-outline,
.is-style-card-dark,
.is-style-card-flat {
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--custom--card--padding);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.is-style-card:not(.has-background) {
	background-color: var(--wp--preset--color--surface);
}

.is-style-card {
	border: var(--wp--custom--card--border);
	box-shadow: var(--wp--custom--card--shadow);
}

.is-style-card-outline {
	border: var(--wp--custom--card--border);
}

.is-style-card-dark:not(.has-background) {
	background-color: var(--wp--preset--color--dark);
}

.is-style-card-dark:not(.has-text-color) {
	color: var(--wp--preset--color--on-dark);
}

.is-style-card-flat:not(.has-background) {
	background-color: var(--wp--preset--color--base-2);
}

.ntx-motion .is-style-card:hover,
.ntx-motion .is-style-card-outline:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lg);
}

/* Cards in a grid: equal height, arrow link pinned to the bottom. */
.is-layout-grid > :is(.is-style-card, .is-style-card-outline, .is-style-card-flat, .is-style-card-dark) {
	display: flex;
	flex-direction: column;
}

.is-layout-grid > * > .is-style-arrow-link:last-child {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
}

/* ---------- Lists ---------- */
.is-style-check,
.is-style-cross {
	list-style: none;
	padding-left: 0;
}

.is-style-check li,
.is-style-cross li {
	position: relative;
	padding-left: 1.85em;
	margin-block: 0.55em;
}

.is-style-check li::before,
.is-style-cross li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.2em;
	height: 1.2em;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url(../icons/check-circle.svg) center / contain no-repeat;
	mask: url(../icons/check-circle.svg) center / contain no-repeat;
}

.is-style-cross li::before {
	background-color: var(--wp--preset--color--contrast-2);
	-webkit-mask-image: url(../icons/x-circle.svg);
	mask-image: url(../icons/x-circle.svg);
}

.is-style-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	list-style: none;
	padding-left: 0;
}

.is-style-inline.is-style-check {
	gap: 0.5em 1.5em;
}

.is-style-inline li {
	margin-block: 0;
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-secondary .wp-block-button__link {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--on-dark);
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary);
}

.wp-block-button.is-style-light .wp-block-button__link {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-light .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 1.5px solid currentColor;
	padding: calc(0.9em - 1.5px) calc(1.6em - 1.5px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: color-mix(in srgb, currentColor 10%, transparent);
	color: inherit;
}

.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: inherit;
	padding-inline: 0.25em;
	text-transform: none;
	letter-spacing: 0;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--primary);
}

/* Button icons: add class has-icon-phone / has-icon-calendar / has-icon-arrow to the Button block. */
.wp-block-button[class*="has-icon-"] .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
}

.wp-block-button:is(.has-icon-phone, .has-icon-calendar, .has-icon-mail, .has-icon-pin) .wp-block-button__link::before,
.wp-block-button.has-icon-arrow .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.15em;
	height: 1.15em;
	background-color: currentColor;
	-webkit-mask: var(--ntx-btn-icon) center / contain no-repeat;
	mask: var(--ntx-btn-icon) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.wp-block-button.has-icon-phone { --ntx-btn-icon: url(../icons/phone.svg); }
.wp-block-button.has-icon-calendar { --ntx-btn-icon: url(../icons/calendar-check.svg); }
.wp-block-button.has-icon-mail { --ntx-btn-icon: url(../icons/envelope-simple.svg); }
.wp-block-button.has-icon-pin { --ntx-btn-icon: url(../icons/map-pin.svg); }
.wp-block-button.has-icon-arrow { --ntx-btn-icon: url(../icons/arrow-right.svg); }

.wp-block-button.has-icon-arrow .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

/* ---------- Icons ---------- */
.wp-block-icon {
	width: fit-content;
}

.wp-block-icon svg {
	width: 1.75rem;
	height: auto;
}

.wp-block-icon:is(.is-style-boxed, .is-style-circle) svg {
	width: 3.25rem;
	padding: 0.8rem;
	border-radius: var(--wp--custom--radius--icon);
	background-color: color-mix(in srgb, currentColor 11%, transparent);
	color: var(--wp--preset--color--primary);
}

.wp-block-icon.is-style-circle svg {
	border-radius: 50%;
}

:where(.has-dark-background-color, .is-style-card-dark, .has-primary-background-color) .wp-block-icon:is(.is-style-boxed, .is-style-circle) svg {
	color: inherit;
}

.wp-block-icon.aligncenter {
	margin-inline: auto;
}

/* Icon + text rows (contact info, trust items). Multi-line rows in footers align to the top. */
.ntx-info-item > * {
	margin-block: 0;
}

.ntx-info-item > .wp-block-group > * {
	margin-block: 0;
}

.ntx-info-item > .wp-block-icon {
	flex: none;
}

.ntx-footer .ntx-info-item {
	align-items: flex-start;
}

.ntx-footer .ntx-info-item .wp-block-icon svg {
	width: 1.25rem;
	margin-top: 0.15em;
}

/* Testimonial cards: keep the name block apart from long quotes. */
.is-layout-grid > .is-style-card > .wp-block-group:last-child {
	padding-top: var(--wp--preset--spacing--30);
}

/* ---------- Separator ---------- */
.wp-block-separator.is-style-short {
	width: 3rem;
	height: 3px;
	border: 0;
	background-color: var(--wp--preset--color--primary);
	opacity: 1;
}

/* ---------- Images ---------- */
.wp-block-image.is-style-shadow img {
	box-shadow: var(--wp--preset--shadow--lg);
}

.wp-block-image img {
	display: block;
}

/* Image with a floating stat badge (About sections). */
.ntx-media-badge {
	position: relative;
}

.ntx-media-badge > .wp-block-image {
	margin: 0;
}

.ntx-media-badge .ntx-badge {
	position: absolute;
	left: calc(-1 * var(--wp--preset--spacing--50));
	bottom: var(--wp--preset--spacing--50);
	margin: 0 !important;
	max-width: 14rem;
	box-shadow: var(--wp--preset--shadow--lg);
	border-radius: var(--wp--custom--radius--card);
}

.ntx-media-badge .ntx-badge.is-position-right {
	left: auto;
	right: calc(-1 * var(--wp--preset--spacing--50));
}

@media (max-width: 781px) {
	.ntx-media-badge .ntx-badge,
	.ntx-media-badge .ntx-badge.is-position-right {
		left: var(--wp--preset--spacing--40);
		right: auto;
		bottom: var(--wp--preset--spacing--40);
	}
}

/* ---------- Section helpers ---------- */
.ntx-section {
	position: relative;
}

/* Plain text pages: breathing room above/below the content when it doesn't start/end with a full-width section. */
.wp-block-post-content > :first-child:not(.alignfull) {
	margin-block-start: var(--wp--preset--spacing--70);
}

.wp-block-post-content > :last-child:not(.alignfull) {
	margin-block-end: var(--wp--preset--spacing--70);
}

/* Full-width sections sit flush against each other. */
:where(.wp-block-post-content, .entry-content) > .ntx-section {
	margin-block: 0;
}

/* Check icons on dark images / dark sections use the accent color for contrast. */
:where(.wp-block-cover:not(.is-light), .has-dark-background-color, .is-style-card-dark) .is-style-check li::before {
	background-color: var(--wp--preset--color--accent);
}

/* Big faded section numbers (Editorial, Industrial). Turned on by --wp--custom--decor--section-numbers. */
.wp-site-blocks {
	counter-reset: ntx-section;
}

.ntx-numbered {
	counter-increment: ntx-section;
	overflow: hidden;
}

.ntx-numbered::before {
	content: counter(ntx-section, decimal-leading-zero);
	display: var(--wp--custom--decor--section-numbers, none);
	position: absolute;
	top: 0.1em;
	right: max(var(--wp--style--root--padding-right), calc((100% - var(--wp--style--global--wide-size)) / 2));
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: clamp(6rem, 16vw, 13rem);
	line-height: 1;
	letter-spacing: -0.05em;
	color: color-mix(in srgb, currentColor 6%, transparent);
	pointer-events: none;
	z-index: 0;
}

.ntx-numbered > * {
	position: relative;
	z-index: 1;
}

/* Page title banner. */
.ntx-page-title {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ntx-page-title .wp-block-breadcrumbs ol {
	justify-content: center;
}

.wp-block-breadcrumbs a {
	display: inline-block;
	padding-block: 0.15rem;
	color: inherit;
}

.wp-block-breadcrumbs a:hover {
	color: var(--wp--preset--color--primary);
}

/* Step numbers (process). */
.ntx-step-number {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: var(--wp--custom--heading--weight);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1;
	letter-spacing: -0.03em;
}

.ntx-step-number:not(.has-text-color) {
	color: var(--wp--preset--color--primary);
}

/* Stats row with dividers. */
@media (min-width: 782px) {
	.ntx-stats > * + * {
		border-inline-start: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	}
}

.ntx-stats p {
	margin-block-start: 0;
}

/* ---------- Header ---------- */
header.is-sticky {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.ntx-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: box-shadow 0.25s ease;
}

header.is-scrolled .ntx-header {
	box-shadow: var(--wp--preset--shadow--md);
}

.ntx-header .wp-block-site-title a {
	text-decoration: none;
}

.ntx-header .wp-block-buttons .wp-block-button__link {
	white-space: nowrap;
}

.ntx-topbar {
	font-size: var(--wp--preset--font-size--x-small);
}

.ntx-topbar p {
	margin: 0;
}

.ntx-topbar .wp-block-icon svg {
	width: 1rem;
}

/* ---------- Menu (core Navigation) ---------- */
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Navigation style "Underline active": heading font, bar under the current / hovered item. */
.wp-block-navigation.is-style-underline {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .is-style-underline .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
.wp-block-navigation.is-style-underline .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0.55rem 1.1rem;
	border-bottom: 3px solid transparent;
	transition: border-color 0.2s ease;
}

.wp-block-navigation.is-style-underline .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.wp-block-navigation.is-style-underline .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: currentColor;
	color: inherit;
}

.ntx-header-topline {
	border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.ntx-header-topline .wp-block-button__link {
	font-size: var(--wp--preset--font-size--x-small);
	padding-block: 0.2em;
}

.ntx-header-topline p {
	margin: 0;
}

/* "Phone: … | Email: …" line: labels in the header text color, values in the brand color. */
.ntx-contact-line {
	align-items: center;
}

.ntx-contact-line .wp-block-button__link {
	color: var(--wp--preset--color--primary) !important;
	padding-inline: 0 !important;
}

/* Header search: icon-only button that expands the field. */
.ntx-header-search .wp-block-search__button {
	background: transparent;
	color: inherit;
	border: 0;
	padding: 0.4rem;
}

.ntx-header-search .wp-block-search__button svg {
	fill: currentColor;
	width: 1.4rem;
	height: 1.4rem;
}

.ntx-header-search .wp-block-search__input {
	border-radius: var(--wp--custom--radius--input);
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	background: transparent;
	color: inherit;
}

/* Dropdowns */
.wp-site-blocks .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	min-width: 15rem;
	padding: 0.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: min(var(--wp--custom--radius--card), 14px);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--preset--shadow--lg);
}

.wp-site-blocks .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.6rem 0.85rem;
	border-radius: min(var(--wp--custom--radius--button), 8px);
	text-transform: none;
	letter-spacing: 0;
}

.wp-site-blocks .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: var(--wp--preset--color--base-2);
}

/* Small gap between the parent item and its dropdown, bridged so hover isn't lost. */
.wp-block-navigation .has-child:not(.open-on-click) > .wp-block-navigation__submenu-container {
	margin-top: 0.5rem;
}

.wp-block-navigation .has-child > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	inset: -0.6rem 0 auto;
	height: 0.6rem;
}

/* Mobile overlay menu */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--70);
}

.wp-block-navigation__responsive-container.is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item) {
	align-items: flex-start !important;
	text-align: left;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%;
	padding-block: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: var(--wp--custom--heading--weight);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none !important;
	padding: var(--wp--preset--spacing--20) 0 0 var(--wp--preset--spacing--40) !important;
}

/* Footer menus list top-level links only. */
.ntx-footer .wp-block-navigation__submenu-container,
.ntx-footer .wp-block-navigation__submenu-icon {
	display: none !important;
}

@media (max-width: 781px) {
	.ntx-hide-mobile {
		display: none !important;
	}

	.ntx-header .wp-block-button__link {
		padding: 0.7em 1em;
		font-size: var(--wp--preset--font-size--x-small);
	}

	.ntx-header .wp-block-button.has-icon-arrow .wp-block-button__link::after {
		display: none;
	}

	/* Phone layout: logo · CTA · hamburger (far right). */
	.ntx-header .wp-block-navigation {
		order: 2;
	}

	.ntx-header .wp-block-site-title {
		font-size: var(--wp--preset--font-size--medium) !important;
		line-height: 1.2;
	}
}

@media (min-width: 782px) {
	.ntx-hide-desktop {
		display: none !important;
	}
}

/* ---------- Footer ---------- */
.ntx-footer a:not(.wp-element-button) {
	color: inherit;
}

.ntx-footer a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.ntx-footer .wp-block-navigation {
	--navigation-layout-direction: column;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.ntx-footer .wp-block-social-links .wp-social-link {
	background-color: color-mix(in srgb, currentColor 12%, transparent) !important;
	color: inherit !important;
}

.ntx-footer .wp-block-social-links .wp-social-link:hover {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--primary-contrast) !important;
}

.ntx-footer-bottom {
	border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.ntx-footer-bottom p {
	margin: 0;
}

/* ---------- Accordion (FAQ) ---------- */
.wp-block-accordion-item {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-accordion-heading {
	margin: 0;
}

.wp-block-accordion-heading__toggle {
	padding-block: var(--wp--preset--spacing--40) !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	color: var(--wp--preset--color--primary);
}

.wp-block-accordion-panel {
	color: var(--wp--preset--color--contrast-2);
	padding-bottom: var(--wp--preset--spacing--40);
}

.wp-block-accordion-panel > :first-child {
	margin-top: 0;
}

.wp-block-accordion.is-style-cards {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.wp-block-accordion.is-style-cards .wp-block-accordion-item {
	border: var(--wp--custom--card--border);
	border-radius: var(--wp--custom--radius--card);
	background-color: var(--wp--preset--color--surface);
	padding-inline: var(--wp--preset--spacing--50);
	margin: 0;
}

.wp-block-accordion.is-style-cards .wp-block-accordion-item.is-open,
.wp-block-accordion.is-style-cards .wp-block-accordion-item:has([aria-expanded="true"]) {
	box-shadow: var(--wp--preset--shadow--md);
}

/* ---------- Forms (Contact Form 7 + Fluent Forms) ---------- */
body :is(.wpcf7, .fluentform) :is(input:not([type="submit"], [type="checkbox"], [type="radio"], [type="hidden"]), textarea, select) {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0.8em 1em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--input);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body :is(.wpcf7, .fluentform) :is(input, textarea, select):focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent);
}

body :is(.wpcf7, .fluentform) label,
body .fluentform .ff-el-input--label label {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}

body .wpcf7 p {
	margin-block: 0 var(--wp--preset--spacing--40);
}

body :is(.wpcf7, .fluentform) textarea {
	height: 8.5rem;
	min-height: 6rem;
	resize: vertical;
}

body .wpcf7 label {
	display: block;
	line-height: 1.5;
}

body .wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.35rem;
}

body :is(.wpcf7-submit, .fluentform .ff-btn-submit) {
	width: 100%;
	padding: 0.95em 1.6em;
	border: 0;
	border-radius: var(--wp--custom--radius--button) !important;
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--primary-contrast) !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--button--weight);
	letter-spacing: var(--wp--custom--button--letter-spacing);
	text-transform: var(--wp--custom--button--transform);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

body :is(.wpcf7-submit, .fluentform .ff-btn-submit):hover {
	background-color: var(--wp--preset--color--secondary) !important;
}

/* Contact Form 7: validation, response messages, spinner, checkboxes, file input */
body .wpcf7 .wpcf7-not-valid {
	border-color: var(--wp--preset--color--danger, #b42318);
}

body .wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.3rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	color: var(--wp--preset--color--danger, #b42318);
}

body .wpcf7 form .wpcf7-response-output {
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0.8em 1em;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--input);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

body .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--wp--preset--color--success, #1a7f4b);
	background-color: color-mix(in srgb, var(--wp--preset--color--success, #1a7f4b) 10%, transparent);
}

body .wpcf7 form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output {
	border-color: var(--wp--preset--color--danger, #b42318);
	background-color: color-mix(in srgb, var(--wp--preset--color--danger, #b42318) 8%, transparent);
}

body .wpcf7 .wpcf7-spinner {
	display: block;
	margin: var(--wp--preset--spacing--30) auto 0;
}

body .wpcf7 :is(.wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) .wpcf7-list-item {
	display: block;
	margin: 0 0 0.4rem;
}

body .wpcf7 :is(.wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400;
}

body .wpcf7 :is(input[type="checkbox"], input[type="radio"]) {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.2rem;
	accent-color: var(--wp--preset--color--primary);
}

body .wpcf7 input[type="file"] {
	width: 100%;
	font-size: var(--wp--preset--font-size--x-small);
}

/* Spam trap: kept in the DOM for bots, invisible to people and screen readers (see inc/forms.php) */
body .wpcf7 .ntx-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Carousel (Group / Gallery style) + logo strip ---------- */
.ntx-carousel {
	position: relative;
}

.is-style-carousel,
.wp-block-gallery.is-style-carousel {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: var(--wp--preset--spacing--50);
	overflow-x: auto;
	align-items: stretch !important;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-block: 0.5rem 1rem;
}

.is-style-carousel::-webkit-scrollbar {
	display: none;
}

.is-style-carousel > * {
	flex: 0 0 min(24rem, 86%) !important;
	width: auto !important;
	margin: 0 !important;
	scroll-snap-align: start;
}

.wp-block-gallery.is-style-carousel > .wp-block-image {
	flex: 0 0 min(28rem, 86%) !important;
}

.wp-block-gallery.is-style-carousel img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--image);
}

.ntx-carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: var(--wp--custom--card--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--custom--card--shadow);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ntx-carousel-arrow:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-contrast);
}

.ntx-carousel-arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

.ntx-carousel-prev {
	left: -0.75rem;
}

.ntx-carousel-next {
	right: -0.75rem;
}

.wp-block-gallery.is-style-logos {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}

.wp-block-gallery.is-style-logos > .wp-block-image {
	flex: 0 1 auto !important;
	width: auto !important;
	margin: 0 !important;
}

.wp-block-gallery.is-style-logos img {
	width: auto !important;
	max-width: 9rem;
	height: 2.75rem !important;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.6;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.wp-block-gallery.is-style-logos img:hover {
	filter: none;
	opacity: 1;
}

@media (max-width: 781px) {
	.ntx-carousel-prev {
		left: 0.25rem;
	}

	.ntx-carousel-next {
		right: 0.25rem;
	}
}

/* ---------- Hero stats card overlap, framed photo, map ---------- */
body .ntx-hero-stats {
	position: relative;
	z-index: 2;
	margin-top: -4.5rem;
	border-radius: var(--wp--custom--radius--card);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.ntx-hero-stats p {
	margin: 0;
}

.ntx-frame {
	position: relative;
	isolation: isolate;
}

.ntx-frame::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -1.5rem 1.5rem 1.5rem -1.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--image);
}

.ntx-map {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--image);
	box-shadow: var(--wp--custom--card--shadow);
}

.ntx-map iframe {
	display: block;
	width: 100%;
	min-height: 320px;
}

.ntx-service-area .is-style-check {
	columns: 2;
}

@media (max-width: 781px) {
	body .ntx-hero-stats {
		margin-top: -2.5rem;
		padding: var(--wp--preset--spacing--50);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	}

	.ntx-hero-stats .is-style-stat {
		font-size: 2rem;
	}

	.ntx-frame::before {
		inset: -0.75rem 0.75rem 0.75rem -0.75rem;
	}
}

@media (max-width: 480px) {
	.ntx-service-area .is-style-check {
		columns: 1;
	}
}

/* ---------- Project cards, divided list, callout ---------- */
.ntx-project-card {
	overflow: hidden;
}

.ntx-project-card > .wp-block-image {
	margin: 0;
}

.ntx-project-card > .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 0;
}

.ntx-project-card .ntx-info-item .wp-block-icon svg {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--wp--preset--color--primary);
}

.ntx-divided-list {
	padding-left: 0;
}

.ntx-divided-list > li {
	margin-block: 0;
	padding-block: 0.85rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ntx-divided-list > li::before {
	top: calc(0.85rem + 0.2em);
}

.ntx-divided-list > li:last-child {
	border-bottom: 0;
}

.ntx-callout {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--wp--custom--radius--card);
	background-color: rgba(255, 255, 255, 0.06);
}

.ntx-callout p {
	margin: 0;
}

.ntx-custom-html iframe {
	max-width: 100%;
}

.ntx-embed-placeholder {
	padding: var(--wp--preset--spacing--60);
	border: 2px dashed var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
	color: var(--wp--preset--color--contrast-2);
	text-align: center;
}

/* ---------- Sticky sidebar, zigzag, filters, compare, CTA, mobile bar ---------- */
.ntx-sticky-col {
	align-self: flex-start;
	position: sticky;
	top: 6rem;
}

.ntx-zigzag .ntx-step-number {
	margin: 0;
}

.ntx-filter-bar .wp-block-button__link {
	cursor: pointer;
}

.ntx-filter-item[hidden] {
	display: none !important;
}

.ntx-compare {
	position: relative;
}

.ntx-compare > .wp-block-image {
	margin: 0;
}

.ntx-compare > .wp-block-image img {
	display: block;
	width: 100%;
}

.ntx-compare:not(.is-ready) {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ntx-compare.is-ready {
	display: grid;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--image);
	--pos: 50%;
}

.ntx-compare.is-ready > .wp-block-image {
	grid-area: 1 / 1;
	position: relative;
}

.ntx-compare.is-ready > .wp-block-image img {
	border-radius: 0;
	box-shadow: none;
}

.ntx-compare.is-ready > .wp-block-image:nth-of-type(2) {
	clip-path: inset(0 0 0 var(--pos));
}

.ntx-compare.is-ready > .wp-block-image::after {
	position: absolute;
	top: 0.75rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ntx-compare.is-ready > .wp-block-image:nth-of-type(1)::after {
	content: "Before";
	left: 0.75rem;
}

.ntx-compare.is-ready > .wp-block-image:nth-of-type(2)::after {
	content: "After";
	right: 0.75rem;
}

.ntx-compare.is-ready::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 3px;
	margin-left: -1.5px;
	background: #fff;
	pointer-events: none;
}

.ntx-compare.is-ready::before {
	content: "\2194";
	position: absolute;
	z-index: 2;
	top: 50%;
	left: var(--pos);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: -1.375rem 0 0 -1.375rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	color: var(--wp--preset--color--contrast);
	pointer-events: none;
}

.ntx-compare-range {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.ntx-cta-card {
	border-radius: var(--wp--custom--radius--card);
}

.ntx-cta-card > .wp-block-group {
	flex: 1 1 20rem;
}

.ntx-cta-card > .wp-block-buttons {
	flex: 0 0 auto;
}

body .ntx-mobile-bar {
	display: none;
}

.ntx-mobile-bar .wp-block-buttons {
	flex: 1;
	flex-wrap: nowrap;
}

.ntx-mobile-bar .wp-block-button {
	flex: 1;
}

.ntx-mobile-bar .wp-block-button__link {
	width: 100%;
	justify-content: center;
	text-align: center;
}

@media (max-width: 781px) {
	.ntx-sticky-col {
		position: static;
	}

	.ntx-zigzag .wp-block-column:has(.wp-block-image) {
		order: -1;
	}

	body .ntx-cta-card {
		padding: var(--wp--preset--spacing--50);
	}

	.ntx-cta-card .wp-block-buttons {
		flex-wrap: wrap;
	}

	.ntx-compare:not(.is-ready) {
		grid-template-columns: 1fr;
	}

	body .ntx-mobile-bar {
		position: fixed;
		z-index: 50;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		border-top: 1px solid var(--wp--preset--color--border);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
	}

	body:has(.ntx-mobile-bar) {
		padding-bottom: 4.5rem;
	}
}

.editor-styles-wrapper .ntx-mobile-bar {
	position: static;
	display: flex;
}

body .ntx-hero-stats .is-style-stat {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* ---------- Motion: fade-up reveal ---------- */
.ntx-will-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.ntx-will-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto !important;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Gallery: masonry (CSS columns) ---------- */
.wp-block-gallery.is-style-masonry {
	--ntx-cols: 3;
	--ntx-gap: var(--wp--preset--spacing--40);
	display: block !important;
	column-count: var(--ntx-cols);
	column-gap: var(--ntx-gap);
}

.wp-block-gallery.is-style-masonry.ntx-cols-2 {
	--ntx-cols: 2;
}

.wp-block-gallery.is-style-masonry.ntx-cols-4 {
	--ntx-cols: 4;
}

.wp-block-gallery.is-style-masonry > .wp-block-image {
	width: 100% !important;
	margin: 0 0 var(--ntx-gap) !important;
	break-inside: avoid;
}

.wp-block-gallery.is-style-masonry > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto !important;
	aspect-ratio: auto !important;
	/* Lazy uploads get sizes="auto", and Chrome then sizes them as 3000×1500 (size containment) until
	   told their ratio: take it from the width/height attributes. Browsers without typed attr() keep the line above. */
	aspect-ratio: attr(width type(<number>)) / attr(height type(<number>)) !important;
	object-fit: initial !important;
	border-radius: var(--wp--custom--radius--image);
}

.ntx-lightbox img,
.wp-block-gallery.is-style-masonry img {
	cursor: zoom-in;
	transition: opacity 0.25s ease;
}

.ntx-lightbox img:hover,
.wp-block-gallery.is-style-masonry img:hover {
	opacity: 0.88;
}

.ntx-lightbox img:focus-visible,
.wp-block-gallery.is-style-masonry img:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.wp-block-gallery.is-style-masonry,
	.wp-block-gallery.is-style-masonry.ntx-cols-4 {
		--ntx-cols: 2;
	}
}

@media (max-width: 600px) {
	.wp-block-gallery.is-style-masonry {
		--ntx-gap: var(--wp--preset--spacing--30);
	}
}

/* ---------- Lightbox (built by ntx.js) ---------- */
body.ntx-lb-open {
	overflow: hidden;
}

.ntx-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 4rem 1rem 3.5rem;
	background: rgba(10, 10, 10, 0.96);
	color: var(--wp--preset--color--on-dark);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ntx-lb[hidden] {
	display: none;
}

.ntx-lb.is-open {
	opacity: 1;
}

.ntx-lb-figure {
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	max-width: 100%;
	margin: 0;
}

.ntx-lb-img {
	display: block;
	width: auto;
	max-width: min(94vw, 1600px);
	height: auto;
	max-height: calc(100vh - 9rem);
	object-fit: contain;
	border-radius: 0;
}

.ntx-lb-caption {
	min-height: 1.4em;
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
	color: var(--wp--preset--color--on-dark-2);
}

.ntx-lb-count {
	position: absolute;
	top: 1.35rem;
	left: 1.25rem;
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--on-dark-2);
}

.ntx-lb-btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ntx-lb-btn:hover,
.ntx-lb-btn:focus-visible {
	background: rgba(255, 255, 255, 0.24);
}

.ntx-lb-btn[hidden] {
	display: none;
}

.ntx-lb-close {
	top: 1rem;
	right: 1rem;
}

.ntx-lb-prev,
.ntx-lb-next {
	top: 50%;
	transform: translateY(-50%);
}

.ntx-lb-prev {
	left: 1rem;
}

.ntx-lb-next {
	right: 1rem;
}

@media (max-width: 600px) {
	.ntx-lb {
		padding: 4rem 0.5rem 4.5rem;
	}

	.ntx-lb-prev,
	.ntx-lb-next {
		top: auto;
		bottom: 0.9rem;
		transform: none;
	}

	.ntx-lb-prev {
		left: calc(50% - 3.5rem);
	}

	.ntx-lb-next {
		right: calc(50% - 3.5rem);
	}

	.ntx-lb-caption {
		display: none;
	}
}

/* ---------- Photo hero + album template ---------- */
.wp-block-cover.ntx-hero-photo.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
	width: 100%;
	padding-inline: var(--wp--preset--spacing--50);
	text-align: left;
}

.ntx-hero-photo .wp-block-cover__inner-container > .alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
}

.ntx-hero-photo h1 {
	font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

.ntx-hero-photo .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--30);
}

.ntx-album-cover:not(:has(.wp-block-cover__image-background)) {
	background-color: var(--wp--preset--color--dark);
}

.ntx-album-meta {
	margin: 0;
	padding-top: var(--wp--preset--spacing--40);
}

.ntx-album-meta .is-style-eyebrow {
	margin: 0 0 0.35rem;
}

.ntx-album-meta p:not(.is-style-eyebrow) {
	margin: 0;
}

/* ---------- Team cards, notched divider, staggered offer, featured quote ---------- */
.ntx-team-cards h3 {
	font-weight: 500;
}

.ntx-team-cards .wp-block-separator {
	width: 100%;
	max-width: none;
	margin-block: var(--wp--preset--spacing--30);
}

/* Divider headline: thin rule with a small notch pointing down at the centre. */
.ntx-divider-head {
	position: relative;
	padding-bottom: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ntx-divider-head::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -0.4rem;
	width: 0.75rem;
	height: 0.75rem;
	background: var(--wp--preset--color--base-2);
	border-right: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	transform: translateX(-50%) rotate(45deg);
}

.ntx-divider-intro .wp-block-image img {
	max-height: 12rem;
	object-fit: contain;
	object-position: left center;
	border-radius: 0;
}

/* Offer: staggered cards and a soft gradient ring drawn from the brand colors. */
.ntx-offer {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.ntx-offer::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	top: 5rem;
	right: max(-9rem, calc(50% - 41rem));
	width: 29rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: linear-gradient(160deg, color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent), color-mix(in srgb, var(--wp--preset--color--accent) 26%, transparent));
	-webkit-mask: radial-gradient(circle, transparent 0 57%, #000 58%);
	mask: radial-gradient(circle, transparent 0 57%, #000 58%);
}

.ntx-offer-card {
	text-align: center;
}

.ntx-offer-card .wp-block-icon {
	margin-inline: auto;
}

.ntx-stagger {
	align-items: start;
}

@media (min-width: 640px) {
	.ntx-stagger > :nth-child(odd) {
		margin-top: 3.5rem;
	}
}

@media (max-width: 781px) {
	.ntx-offer::after {
		display: none;
	}
}

/* Featured quote slider (behavior in ntx.js): one slide per view, dots below. */
.ntx-slider {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ntx-slider::-webkit-scrollbar {
	display: none;
}

.ntx-slider > * {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	scroll-snap-align: center;
}

.ntx-slide {
	text-align: center;
	padding-inline: var(--wp--preset--spacing--40);
}

.ntx-avatar {
	width: fit-content;
	margin-inline: auto !important;
}

.ntx-avatar img {
	display: block;
	width: 5rem;
	height: 5rem;
	border-radius: 50%;
	border: 0.4rem solid color-mix(in srgb, var(--wp--preset--color--primary) 16%, transparent);
	object-fit: cover;
}

.ntx-quote-text {
	position: relative;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.55;
}

.ntx-slide .ntx-quote-text::before {
	content: "\201C";
	position: absolute;
	top: -1.2rem;
	left: -1.6rem;
	font-family: var(--wp--preset--font-family--accent);
	font-size: 5.5rem;
	line-height: 1;
	color: var(--wp--preset--color--border);
}

.ntx-slider-dots {
	display: flex;
	justify-content: center;
	gap: 0.1rem;
	margin-top: var(--wp--preset--spacing--50);
}

.ntx-slider-dots button {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ntx-slider-dots button::before {
	content: "";
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--wp--preset--color--border);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ntx-slider-dots button[aria-current="true"]::before {
	background: var(--wp--preset--color--primary);
	transform: scale(1.3);
}

@media (max-width: 600px) {
	.ntx-slide .ntx-quote-text::before {
		left: 0;
		top: -2.4rem;
	}
}

/* Presets that give buttons a gradient (Dark Blue): keep Secondary, Light and Ghost buttons flat. */
.wp-block-button:is(.is-style-secondary, .is-style-light, .is-style-ghost) .wp-block-button__link {
	background-image: none;
}

/* Photo hero: a soft shadow behind the text keeps it readable on bright photos, on top of the grey overlay. */
.ntx-hero-photo :is(h1, p, li) {
	text-shadow: 0 1px 22px rgba(0, 0, 0, 0.35);
}

.ntx-hero-photo .wp-block-button__link {
	text-shadow: none;
}

/* ---------- v0.2.4 element set: text/image, feature + number lists, price list, hover boxes, facts, countdown, contact, team, compare table, post cards ---------- */
.ntx-feature-grid .wp-block-icon svg,
.ntx-contact-col .wp-block-icon:not(.is-style-boxed):not(.is-style-circle) svg,
.ntx-hover-box .wp-block-icon svg {
	color: var(--wp--preset--color--primary);
}

.ntx-feature-grid .wp-block-icon svg {
	width: 1.5rem;
}

.ntx-feature-label {
	font-weight: 600;
	margin: 0;
}

.ntx-number-item > * {
	margin-block: 0;
}

.ntx-big-number {
	font-size: clamp(2.25rem, 4vw, 3rem);
}

/* Price / menu list */
.ntx-menu-cover {
	border-radius: var(--wp--custom--radius--image);
	overflow: hidden;
}

.ntx-menu-item {
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.ntx-menu-item:first-child {
	padding-top: 0;
}

.ntx-menu-item > * {
	margin-block: 0;
}

.ntx-menu-price {
	flex: none;
	margin: 0;
	font-weight: 700;
}

.ntx-menu-price:not(.has-text-color) {
	color: var(--wp--preset--color--primary);
}

@media (max-width: 781px) {
	.ntx-menu-cover {
		min-height: 14rem !important;
	}
}

/* Boxes with hover: shared outlines, fill with brand color on hover. */
.ntx-hover-grid {
	gap: 0 !important;
}

.ntx-hover-box {
	padding: var(--wp--preset--spacing--60);
	border: 1px solid var(--wp--preset--color--border);
	margin: 0 -1px -1px 0;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ntx-hover-box > * {
	margin-block: 0;
}

.ntx-hover-box:hover,
.ntx-hover-box:focus-within {
	background-color: var(--wp--preset--color--primary);
}

.ntx-hover-box:is(:hover, :focus-within) :is(h3, p) {
	color: var(--wp--preset--color--primary-contrast) !important;
}

.ntx-hover-box:is(:hover, :focus-within) .wp-block-icon svg {
	color: var(--wp--preset--color--primary-contrast);
}

/* Quick facts + countdown */
.ntx-fact-label {
	font-weight: 700;
	margin: 0;
}

.ntx-quick-facts .is-layout-grid > .wp-block-group > *,
.ntx-cd-unit > * {
	margin-block: 0;
}

.ntx-cd-num {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-variant-numeric: tabular-nums;
	min-width: 2ch;
}

.ntx-cd-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
}

/* Contact info columns */
.ntx-contact-col > * {
	margin-block: 0;
}

.ntx-contact-col .wp-block-icon svg {
	width: 2.25rem;
}

.ntx-contact-col p {
	line-height: 1.7;
}

/* Team with social icons */
.ntx-team-member > * {
	margin-block: 0;
}

.ntx-team-photo {
	width: 9rem;
	margin-inline: auto !important;
}

.ntx-team-photo img {
	width: 100%;
	border-radius: var(--wp--custom--radius--image);
}

.ntx-team-role {
	font-weight: 600;
}

.ntx-team-social {
	margin-top: var(--wp--preset--spacing--30) !important;
	justify-content: center;
}

.ntx-team-social .wp-social-link {
	font-size: 1.1rem;
}

.ntx-team-social.is-style-default .wp-social-link:not(.has-icon-background-color) {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-contrast);
}

/* Compare table */
.ntx-compare-table table {
	border-collapse: collapse;
	width: 100%;
	border: 0;
}

.ntx-compare-table :is(th, td) {
	padding: 0.85rem 1rem;
	text-align: center;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

.ntx-compare-table :is(th, td):first-child {
	text-align: left;
	font-weight: 600;
	width: 28%;
}

.ntx-compare-table thead th {
	border-bottom: 2px solid var(--wp--preset--color--border);
	vertical-align: bottom;
}

.ntx-compare-table .ntx-plan-name {
	display: block;
	font-weight: 600;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

.ntx-compare-table .ntx-plan-price {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: var(--wp--custom--heading--weight);
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--primary);
	line-height: 1.2;
}

.ntx-compare-table tbody td:not(:first-child) {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.ntx-compare-table tbody tr:last-child td {
	border-bottom: 0;
	padding-top: 1.25rem;
}

.ntx-compare-table td a {
	display: inline-block;
	padding: 0.55rem 1.4rem;
	border-radius: var(--wp--custom--radius--button);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-contrast);
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 600px) {
	.ntx-compare-table :is(th, td) {
		padding: 0.6rem 0.4rem;
	}

	.ntx-compare-table .ntx-plan-price {
		font-size: var(--wp--preset--font-size--large);
	}
}

/* Post / portfolio cards (horizontal) */
.ntx-post-card {
	display: grid !important;
	grid-template-columns: 1fr;
	padding: var(--wp--preset--spacing--30) !important;
	gap: var(--wp--preset--spacing--40) !important;
	align-items: center;
}

@media (min-width: 600px) {
	.ntx-post-card {
		grid-template-columns: 42% 1fr;
	}
}

.ntx-post-card > * {
	margin-block: 0;
}

.ntx-post-thumb img {
	width: 100%;
	border-radius: var(--wp--custom--radius--image);
}

.ntx-post-body > * {
	margin-block: 0;
}

.ntx-post-tag {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ntx-post-tag:not(.has-text-color) {
	color: var(--wp--preset--color--primary);
}

.ntx-post-avatar {
	width: 2.25rem;
	flex: none;
}

.ntx-post-avatar img {
	border-radius: 50%;
	width: 100%;
}

.ntx-post-meta > .wp-block-group > * {
	margin-block: 0;
	line-height: 1.4;
}

/* Stacked blocks inside these items use flex gap (the block-gap margins are reset above). */
:is(.ntx-number-item, .ntx-contact-col, .ntx-team-member, .ntx-cd-unit, .ntx-hover-box, .ntx-post-body, .ntx-quick-facts .is-layout-grid > .wp-block-group) {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
}

.ntx-cd-unit {
	gap: var(--wp--preset--spacing--20);
}

.ntx-team-member,
.ntx-number-item,
.ntx-contact-col {
	align-items: stretch;
}

.ntx-contact-col .wp-block-icon {
	margin-inline: auto;
}

@media (max-width: 600px) {
	.ntx-compare-table :is(th, td):first-child {
		width: 24%;
		font-size: var(--wp--preset--font-size--x-small);
	}

	.ntx-compare-table .ntx-plan-name,
	.ntx-compare-table td a {
		white-space: nowrap;
	}

	.ntx-compare-table td a {
		padding: 0.45rem 0.6rem;
		font-size: var(--wp--preset--font-size--x-small);
	}

	.ntx-cd-row {
		gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) !important;
	}

	.ntx-cd-num {
		font-size: 2.1rem;
	}

	.ntx-cd-label {
		font-size: 0.65rem;
		letter-spacing: 0.04em;
	}
}

@media (max-width: 600px) {
	.ntx-compare-table td a {
		display: block;
		white-space: normal;
		padding: 0.45rem 0.2rem;
		font-size: 0.7rem;
		line-height: 1.25;
	}
}

/* ---------- Travel post template: text stays narrow, photos go wide ---------- */
.ntx-travel-post .wp-block-post-content > :is(figure.wp-block-image, .wp-block-gallery, .wp-block-columns, .wp-block-cover, .wp-block-video, .wp-block-embed) {
	max-width: min(1280px, 94vw);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}
.ntx-travel-post .wp-block-post-content > .alignfull {
	max-width: none;
}
.ntx-travel-post .wp-block-post-content figure.wp-block-image {
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--50);
}
.ntx-travel-post .wp-block-post-content figure.wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}
.ntx-travel-post .wp-block-post-content .wp-block-gallery {
	gap: 0.75rem;
}
.ntx-travel-post .wp-block-post-content .wp-block-gallery figure.wp-block-image {
	margin: 0;
}
.ntx-travel-post .wp-block-post-content .wp-block-gallery figure.wp-block-image img {
	border-radius: 4px;
}
.ntx-travel-post .wp-block-post-content figcaption {
	text-align: center;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	opacity: 0.7;
	margin-top: 0.6rem;
}
.ntx-travel-cover {
	min-height: clamp(420px, 72vh, 780px);
}

/* Travel post: no featured image -> slim light header instead of a tall dark banner; with image -> shorter hero */
.ntx-travel-cover {
	min-height: clamp(360px, 62vh, 640px);
}
.ntx-travel-cover:not(:has(.wp-block-cover__image-background)) {
	min-height: 0;
	background-color: transparent;
	padding-top: var(--wp--preset--spacing--60) !important;
	padding-bottom: var(--wp--preset--spacing--40) !important;
}
.ntx-travel-cover:not(:has(.wp-block-cover__image-background)) .wp-block-cover__background {
	display: none;
}
.ntx-travel-cover:not(:has(.wp-block-cover__image-background)) :is(h1, .wp-block-post-date, .wp-block-post-date a) {
	color: var(--wp--preset--color--contrast, #2b2b2b);
}
.ntx-travel-cover:not(:has(.wp-block-cover__image-background)) :is(h1, .wp-block-post-title, .wp-block-post-date, .wp-block-post-date a, .has-on-dark-color) {
	color: var(--wp--preset--color--contrast, #2b2b2b) !important;
	text-shadow: none !important;
}
.ntx-travel-cover:not(:has(.wp-block-cover__image-background)) {
	min-height: 0 !important;
}


/* ---------- Effects (editor panel "NTX effects"): spotlight, border beam, zoom, text reveal, stagger, magnetic, underline ---------- */
@property --ntx-spot-o {
	syntax: "<number>";
	inherits: false;
	initial-value: 0;
}

@property --ntx-beam-a {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

.ntx-fx-spotlight,
.ntx-fx-beam {
	--ntx-glow: var(--wp--custom--fx--glow, var(--wp--preset--color--primary));
}

.has-dark-background-color .ntx-fx-spotlight,
.has-dark-background-color .ntx-fx-beam,
.ntx-fx-spotlight.has-dark-background-color,
.ntx-fx-beam.has-dark-background-color,
.ntx-fx-spotlight.is-style-card-dark,
.ntx-fx-beam.is-style-card-dark {
	--ntx-glow: var(--wp--preset--color--accent);
}

/* 1. Spotlight: a soft round glow follows the mouse inside the block (JS sets --ntx-mx / --ntx-my). */
.ntx-motion .ntx-fx-spotlight {
	background-image: radial-gradient(circle 340px at var(--ntx-mx, 50%) var(--ntx-my, 50%), color-mix(in srgb, var(--ntx-glow) calc(var(--ntx-spot-o) * 24%), transparent), transparent 72%);
	background-repeat: no-repeat;
	transition: transform 0.25s ease, box-shadow 0.25s ease, --ntx-spot-o 0.35s ease;
}

.ntx-motion .ntx-fx-spotlight.is-spot {
	--ntx-spot-o: 1;
}

/* 2. Border beam: a bright arc travels around the border. */
@keyframes ntx-beam {
	to {
		--ntx-beam-a: 360deg;
	}
}

.ntx-motion .ntx-fx-beam {
	position: relative;
}

.ntx-motion .ntx-fx-beam::after {
	content: "";
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: inherit;
	pointer-events: none;
	background: conic-gradient(from var(--ntx-beam-a), transparent 0 70%, var(--ntx-glow) 90%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: ntx-beam 5s linear infinite;
}

/* 3. Image zoom on hover (Image or Cover block). */
.ntx-fx-zoom {
	overflow: hidden;
}

.ntx-fx-zoom :is(img, .wp-block-cover__image-background) {
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ntx-motion .ntx-fx-zoom:hover :is(img, .wp-block-cover__image-background) {
	transform: scale(1.06);
}

/* 4. Text reveal: headline words rise out of a mask (words are wrapped by ntx.js). */
.ntx-fx-text .ntx-w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
}

.ntx-fx-text .ntx-w > span {
	display: inline-block;
	transform: translateY(115%);
	transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: calc(var(--ntx-i, 0) * 55ms);
}

.ntx-fx-text.is-in .ntx-w > span {
	transform: none;
}

/* Hide the headline until the script has split it, but never for more than 1.5 seconds if the script fails. */
@keyframes ntx-show {
	to {
		visibility: visible;
	}
}

html.ntx-js .ntx-motion .ntx-fx-text:not(.is-split) {
	visibility: hidden;
	animation: ntx-show 0s 1.5s forwards;
}

/* 5. Stagger: children of the block appear one after another (delay set by ntx.js via --ntx-i). */
.ntx-will-reveal.ntx-stag {
	transition-delay: calc(var(--ntx-i, 0) * 90ms);
}

/* 6. Magnetic button: the button leans toward the mouse (ntx.js sets the transform). */
.ntx-fx-magnetic .wp-block-button__link {
	transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease;
	will-change: transform;
}

/* 7. Underline draw: links get an underline that draws in from the left. */
.ntx-fx-underline a:not(.wp-element-button):hover,
.ntx-fx-underline a:not(.wp-element-button):focus-visible {
	text-decoration: underline;
}

.ntx-motion .ntx-fx-underline a:not(.wp-element-button) {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
	padding-bottom: 0.12em;
	transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ntx-motion .ntx-fx-underline a:not(.wp-element-button):is(:hover, :focus-visible) {
	background-size: 100% 1.5px;
}

@media (prefers-reduced-motion: reduce) {
	.ntx-fx-beam::after {
		content: none !important;
	}

	.ntx-fx-zoom :is(img, .wp-block-cover__image-background) {
		transform: none !important;
	}

	.ntx-fx-text .ntx-w > span {
		transform: none !important;
	}

	html.ntx-js .ntx-fx-text:not(.is-split) {
		visibility: visible !important;
		animation: none !important;
	}
}
