/* Upper Biz, "Alb și albastru": only what theme.json can't say. Tokens: theme.json (palette, sizes,
   spacing, custom.radius / custom.header / custom.motion); the header's colours switch with the
   "Meniu albastru" style variation through --wp--custom--header--*. Motion only inside
   prefers-reduced-motion: no-preference, and never with html[data-ub-motion="off"]. */

:root {
	--ub-focus: var(--wp--preset--color--primary);
	--ub-header-h: 4.5rem; /* until kit.js measures it (anchors without JavaScript) */
	--ub-radius: var(--wp--custom--radius--card, 24px);
	--ub-lift: var(--wp--custom--motion--lift, 350ms);
}

/* ---- Base ------------------------------------------------------------------------------ */

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
::selection { background: var(--wp--preset--color--tint); color: var(--wp--preset--color--ink); }

/* Full-width sections touch each other */
.wp-site-blocks > main > .alignfull, .entry-content > .alignfull { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main .entry-content > .alignfull + .alignfull { margin-block-start: 0; }

/* Buttons never shrink under 48 px; secondary (outline) and text-link buttons */
.wp-element-button, .wp-block-button__link { min-block-size: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-ub-link > .wp-block-button__link { min-block-size: 44px; justify-content: flex-start; }
.wp-block-button.is-style-ub-link > .wp-block-button__link:hover { background: transparent; color: inherit; text-decoration: underline; }

/* Text colours by background. The site's text styles (eyebrow label, arrow link, leads, notes, row names,
   arrows, step numbers …) read these roles instead of a palette colour, so they stay readable wherever they
   sit: light by default; the light-on-navy set inside any navy band or card, whichever way the navy is set
   (Background "deep"/"deep-2", the "Card on navy" style); back to the light set in a light card inside navy.
   --ub-label: eyebrows, arrow links, arrows, numbers · --ub-soft: secondary text · --ub-strong: names, quotes
   · --ub-link: links and outline buttons (2026-11-03, batch 4 H1: a blue eyebrow on a navy card). */
:root, :is(.has-base-background-color, .has-surface-background-color, .has-tint-background-color, .is-style-ub-card, .is-style-ub-card-white) {
	--ub-label: var(--wp--preset--color--primary);
	--ub-soft: var(--wp--preset--color--muted);
	--ub-strong: var(--wp--preset--color--ink);
	--ub-link: var(--wp--preset--color--primary);
	--ub-focus: var(--wp--preset--color--primary);
}
:is(.has-deep-background-color, .has-deep-2-background-color, .is-style-ub-card-deep) {
	--ub-label: var(--wp--preset--color--highlight-on-deep);
	--ub-soft: var(--wp--preset--color--on-deep-muted);
	--ub-strong: var(--wp--preset--color--on-deep);
	--ub-link: var(--wp--preset--color--on-deep);
	--ub-focus: var(--wp--preset--color--accent);
}
/* The blue gradient card (/portofoliu/'s request card; the sliders' end card is gone, Tomi 2026-11-03) ends in primary, where
   highlight-on-deep reads 2.9:1 and on-deep-muted 3:1: its labels and secondary text are on-deep */
.ub-project--all { --ub-label: var(--wp--preset--color--on-deep); --ub-soft: var(--wp--preset--color--on-deep); }

/* p.: above the style variation's rule (the editor prints it after this file) */
p.is-style-ub-eyebrow { color: var(--ub-label); }
p.is-style-ub-more a { color: var(--ub-label); } /* p.: above a band's own link colour, which the editor prints after this file */
:where(.has-deep-background-color, .has-deep-2-background-color, .is-style-ub-card-deep) a:where(:not(.wp-element-button)) { color: var(--ub-link); }
:is(.has-deep-background-color, .has-deep-2-background-color, .is-style-ub-card-deep) .is-style-outline > .wp-block-button__link { color: var(--ub-link); }
:is(.has-deep-background-color, .has-deep-2-background-color, .is-style-ub-card-deep) .is-style-outline > .wp-block-button__link:hover { background: color-mix(in srgb, currentColor 14%, transparent); color: var(--ub-link); }
:is(.has-deep-background-color, .has-deep-2-background-color, .is-style-ub-card-deep) .has-muted-color { color: var(--ub-soft) !important; }

/* ---- Highlighted words (core Highlight format) ------------------------------------------------ */

/* Everywhere: the highlighted words in the band's accent colour (--ub-label: primary on white and pale bands,
   highlight-on-deep on navy bands and cards), no box. Tomi, 2026-11-03: "Banda asta albastră e faină să fie doar
   în prima secțiune de pe pagină, în rest să fie textul schimbat în albastru, ca la the Marketer". */
mark.has-inline-color.has-inline-color {
	--ub-hl-top: 0.84em;    /* the box (first section, below): its top above the baseline, capitals at 0.71em */
	--ub-hl-bottom: 0.13em; /* and its foot below the baseline: as far as the top above the capitals */
	color: var(--ub-label, var(--wp--preset--color--primary)) !important; /* above core's .has-primary-color (!important) */
	padding: 0;
}
/* The box's height follows the words (functions.php marks them): a glyph's part outside the box would be white on
   white, so g j p q y (bold: to 0.167em below the baseline) deepen it, a comma below (ș ț: 0.264em) more, and a
   capital with an accent (Î Ă Â: 0.931em) raises its top (measured: probes/mark-boxes.mjs). */
mark.has-inline-color.ub-hl--desc { --ub-hl-bottom: 0.19em; }
mark.has-inline-color.ub-hl--comma { --ub-hl-bottom: 0.285em; }
mark.has-inline-color.ub-hl--accent { --ub-hl-top: 0.95em; }

/* The page's first section only (the hero of every landing page, a page head, the 404's heading): white words on
   a blue box, as themarketer does in its hero (Tomi, 2026-11-03: "mai asemănător cu cel de la themarketer"; then
   "doar în prima secțiune"). The gradient runs between two blues of the palette (theme.json custom.highlight; white
   on either end ≥ 4.5:1), a brighter pair on navy so the box stands off the band. The box covers the glyphs, not
   the font's whole line box: Geist's content area is 1.3em (ascent 1.005, descent 0.295) and headings sit at
   line-height 1.08–1.1, so a full-height box would cover the line above's descenders. Centred on the words (User,
   2026-11-03: "it doesn't feel centered", the box then ran 0.095em above the capitals and 0.295em below the
   baseline): 0.13em above the capitals and below the baseline, deeper only as far as the words' descenders need
   (--ub-hl-top, --ub-hl-bottom above); the background is placed from the content area's top (1.005em above the
   baseline). Each line of a wrapped highlight gets its own box (clone). No sweep-in: the words are white, so a box that grows would hide them. */
:is(.wp-block-post-content > :first-child, .wp-block-ub-hero, .ub-page-head, .ub-404) mark.has-inline-color.has-inline-color {
	--ub-hl-from: var(--wp--custom--highlight--from);
	--ub-hl-to: var(--wp--custom--highlight--to);
	color: var(--wp--custom--highlight--text) !important;
	background: linear-gradient(100deg, var(--ub-hl-from), var(--ub-hl-to)) 0 calc(1.005em - var(--ub-hl-top)) / 100% calc(var(--ub-hl-top) + var(--ub-hl-bottom)) no-repeat;
	padding: 0 0.14em;
	border-radius: 0;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
/* The words over every line's box: a box is painted line by line, so a wrapped highlight's next box would cover this
   line's commas; the words' own span (functions.php), positioned, is painted after all of them. */
:is(.wp-block-post-content > :first-child, .wp-block-ub-hero, .ub-page-head, .ub-404) mark.has-inline-color > .ub-hl__text { position: relative; }
:is(.wp-block-post-content > :first-child, .wp-block-ub-hero, .ub-page-head, .ub-404) :is(.has-deep-background-color, .has-deep-2-background-color, .is-style-ub-card-deep) mark.has-inline-color,
:is(.has-deep-background-color, .has-deep-2-background-color, .is-style-ub-card-deep):is(.wp-block-post-content > :first-child, .wp-block-ub-hero, .ub-page-head) mark.has-inline-color {
	--ub-hl-from: var(--wp--custom--highlight--from-on-deep);
	--ub-hl-to: var(--wp--custom--highlight--to-on-deep);
}
:is(.wp-block-post-content > :first-child, .wp-block-ub-hero, .ub-page-head, .ub-404) mark.has-inline-color::selection { background: var(--wp--preset--color--ink); color: var(--wp--custom--highlight--text); }

/* ---- Labels, chips, offer slot, arrow links ---------------------------------------------- */

.is-style-ub-chip, .ub-offer { inline-size: fit-content; }
.ub-offer {
	margin: 0; padding: 0.25rem 0.75rem; border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small); font-weight: 600; white-space: nowrap;
}
.ub-offer:empty { display: none; }
.is-style-ub-more a { display: inline-flex; align-items: center; gap: 0.35em; min-block-size: 44px; }
@media (prefers-reduced-motion: no-preference) {
	html:not([data-ub-motion="off"]) .is-style-ub-more a { transition: gap 0.2s ease; }
	html:not([data-ub-motion="off"]) .is-style-ub-more a:hover { gap: 0.6em; }
}

/* Lists: plain and checklist (block styles registered in functions.php) */
.is-style-ub-plain, .is-style-ub-checks { list-style: none; padding-inline-start: 0; }
.is-style-ub-checks li { position: relative; padding-inline-start: 1.75em; }
.is-style-ub-checks li + li { margin-block-start: 0.5em; }
.is-style-ub-checks li::before {
	content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.3em;
	inline-size: 1.1em; block-size: 1.1em; border-radius: 50%;
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231E5BD7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* Icons (assets/icons.css: each a data URI, .ub-icon--<name>) as masks, in the text's colour */
.ub-icon--map { --ub-icon: var(--ub-i-pin); }
.ub-icon--clock { --ub-icon: var(--ub-i-clock-24); }
.ub-icon > .wp-block-button__link::before, p.ub-icon::before, .ub-icon > a::before {
	content: ""; flex: none; display: inline-block; inline-size: 1.25em; block-size: 1.25em;
	background: currentColor; -webkit-mask: var(--ub-icon) center / contain no-repeat; mask: var(--ub-icon) center / contain no-repeat;
}

/* ---- Cards ------------------------------------------------------------------------------ */

/* Not the cards of ub/stack: UB Kit makes those sticky (a relative position here shifted them by their
   sticky offset instead, and card 04 spilled into the next band) */
:is(.is-style-ub-card, .is-style-ub-card-white, .is-style-ub-card-deep):not(.wp-block-ub-stack > *) { position: relative; }
@media (prefers-reduced-motion: no-preference) {
	html:not([data-ub-motion="off"]) :is(.is-style-ub-card, .is-style-ub-card-white, .is-style-ub-card-deep):not(.wp-block-ub-stack > *) {
		transition: transform var(--ub-lift) cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow var(--ub-lift) ease;
	}
	html:not([data-ub-motion="off"]) :is(.is-style-ub-card, .is-style-ub-card-white, .is-style-ub-card-deep):not(.wp-block-ub-stack > *):hover {
		transform: translateY(-4px);
		box-shadow: var(--wp--preset--shadow--lifted);
	}
}

/* ---- Header: sticky, white (or navy), frosted after the first scroll ------------------------- */

header.wp-block-template-part {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
	--ub-focus: var(--wp--custom--header--focus);
}
/* The frosted layer is a pseudo-element: a backdrop-filter on the header itself would trap the phone
   menu's fixed overlay inside the header's box. */
header.wp-block-template-part::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--wp--custom--header--frosted);
	-webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
	border-block-end: 1px solid var(--wp--custom--header--border);
}
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		html:not([data-ub-motion="off"]) header.wp-block-template-part::before {
			animation: ub-frost linear both;
			animation-timeline: scroll(root);
			animation-range: 0 72px;
		}
	}
}
@keyframes ub-frost {
	from { background-color: var(--wp--custom--header--background); border-block-end-color: transparent; box-shadow: none; }
	to { background-color: var(--wp--custom--header--frosted); border-block-end-color: var(--wp--custom--header--border); box-shadow: 0 12px 32px -24px rgb(0 35 74 / 0.45); }
}

.ub-header { color: var(--wp--custom--header--text); }
.ub-header__bar { position: relative; min-block-size: 4.5rem; gap: 1rem; }
.ub-logo { flex: none; line-height: 0; }
.ub-logo .wp-block-image { margin: 0; }
.ub-logo img { display: block; block-size: 2.25rem; inline-size: auto; aspect-ratio: 463 / 114; }
.ub-header .ub-logo__navy { display: var(--wp--custom--header--logo-navy, block); }
.ub-header .ub-logo__light { display: var(--wp--custom--header--logo-light, none); }
.ub-footer .ub-logo__navy { display: none; }

.ub-header__actions { flex: none; gap: 0.5rem; }
/* One text line as tall as the 48 px button (the header check counts lines by height / line-height) */
.ub-header .wp-block-button__link { line-height: 2.125rem; padding-block: 0.3125rem; } /* 34 + 2 × 5 + 2 × 2 (border) = 48 px */
.ub-header__buttons { gap: 0.5rem; }
.ub-header__phone > .wp-block-button__link { color: var(--wp--custom--header--text); font-weight: 600; white-space: nowrap; padding-inline: 0.5rem; }
.ub-header__phone > .wp-block-button__link:hover { color: var(--wp--custom--header--link-hover); text-decoration: none; }
.ub-header__cta > .wp-block-button__link { background: var(--wp--custom--header--cta-background); color: var(--wp--custom--header--cta-text); white-space: nowrap; }
.ub-header__cta > .wp-block-button__link:hover, .ub-header__cta > .wp-block-button__link:focus { background: var(--wp--custom--header--cta-hover); color: var(--wp--custom--header--cta-text); }

/* Navigation: links in the header's colour, pill hover */
.ub-header .ub-nav { flex: 1 1 auto; color: var(--wp--custom--header--text); }
.ub-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem; border-radius: var(--wp--custom--radius--pill); color: inherit;
}
.ub-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.ub-nav .wp-block-navigation__container > .wp-block-navigation-item[aria-current],
.ub-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--custom--header--link-hover);
}
.ub-nav .wp-block-navigation__responsive-container-open {
	inline-size: 2.75rem; block-size: 2.75rem; align-items: center; justify-content: center; border-radius: 50%;
	color: var(--wp--custom--header--text);
}
.ub-nav .wp-block-navigation__responsive-container-open svg { inline-size: 1.75rem; block-size: 1.75rem; }

/* Desktop (1080 px and up): the menu in the bar, Servicii opens a three-column panel. Below 1080 the
   menu button shows (core's own breakpoint is 600 px, too narrow for this menu). */
@media (min-width: 600px) and (max-width: 1079.98px) {
	.ub-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ub-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1079.98px) {
	.ub-header__bar > .ub-nav { order: 3; flex: none; }
	.ub-header__bar > .ub-header__actions { order: 2; margin-inline-start: auto; }
}
@media (min-width: 1080px) {
	/* The panel is placed against the header bar, so it never runs off the screen */
	.ub-header .ub-nav,
	.ub-header .ub-nav .wp-block-navigation__responsive-container:not(.is-menu-open),
	.ub-header .ub-nav .wp-block-navigation__responsive-close,
	.ub-header .ub-nav .wp-block-navigation__responsive-dialog,
	.ub-header .ub-nav .wp-block-navigation__responsive-container-content,
	.ub-header .ub-nav .wp-block-navigation__container,
	.ub-header .ub-nav li.ub-mega { position: static; }

	/* The submenu's toggle: a 24 px target next to "Servicii" */
	.ub-header .ub-nav .ub-mega > .wp-block-navigation__submenu-icon {
		inline-size: 1.5rem; block-size: 1.5rem; margin-inline-start: 0; padding: 0;
		display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
	}
	.ub-header .ub-nav li.ub-mega > .wp-block-navigation-item__content { padding-inline-end: 0.25rem; }
	.ub-header .ub-nav .ub-mega > .wp-block-navigation__submenu-icon svg { inline-size: 0.75rem; block-size: 0.75rem; margin: 0; }

	.ub-header .ub-nav .ub-mega.has-child > .wp-block-navigation__submenu-container {
		inset-block-start: calc(100% - 0.25rem); inset-inline: 0; margin-inline: auto;
		display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem 1.5rem; align-items: start;
		padding: 1.5rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--ub-radius);
		background: var(--wp--preset--color--base); color: var(--wp--preset--color--ink);
		box-shadow: var(--wp--preset--shadow--lifted); font-weight: 400;
	}
	/* A bridge over the gap between "Servicii" and the panel: the pointer keeps it open */
	.ub-header .ub-nav .ub-mega.has-child > .wp-block-navigation__submenu-container::before {
		content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; block-size: 1.5rem;
	}
	@media (hover: hover) {
		.ub-header .ub-nav .ub-mega.has-child:hover > .wp-block-navigation__submenu-container { inline-size: min(56rem, 100%); }
	}
	.ub-header .ub-nav .ub-mega.has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container { inline-size: min(56rem, 100%); }

	/* The three groups: always open inside the panel, no toggles of their own */
	.ub-header .ub-nav .ub-mega .ub-mega__group.has-child > .wp-block-navigation__submenu-container {
		position: static; visibility: inherit; opacity: 1; inline-size: auto; block-size: auto; overflow: visible; min-inline-size: 0;
		display: flex; flex-direction: column; gap: 0.125rem; padding: 0; border: 0; background: none; box-shadow: none;
	}
	.ub-header .ub-nav .ub-mega .ub-mega__group > .wp-block-navigation__submenu-container::before { content: none; }
	.ub-header .ub-nav .ub-mega__group > .wp-block-navigation-submenu__toggle { display: none; }
	.ub-header .ub-nav li.ub-mega__group { flex-direction: column; align-items: stretch; }
	.ub-header .ub-nav .ub-mega__group > .wp-block-navigation-item__content {
		padding: 0 0.75rem 0.5rem; color: var(--wp--preset--color--muted); cursor: default;
		font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
	}
	.ub-header .ub-nav .ub-mega__group .wp-block-navigation-link > .wp-block-navigation-item__content {
		display: flex; flex-direction: column; align-items: flex-start; gap: 0.125rem;
		padding: 0.625rem 0.75rem; border-radius: var(--wp--custom--radius--small); color: var(--wp--preset--color--ink);
	}
	.ub-header .ub-nav .ub-mega__group .wp-block-navigation-link > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--surface); }
	.ub-header .ub-nav .ub-mega__group .wp-block-navigation-link > .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { color: var(--wp--preset--color--primary); }
	.ub-header .ub-nav .ub-mega .wp-block-navigation-item__label { font-weight: 600; }
	.ub-header .ub-nav .ub-mega .wp-block-navigation-item__description {
		display: block; font-size: var(--wp--preset--font-size--small); line-height: 1.4; color: var(--wp--preset--color--muted); font-weight: 400;
	}
	.ub-header .ub-nav .ub-mega__all { grid-column: 1 / -1; margin-block-start: 0.75rem; padding-block-start: 0.75rem; border-block-start: 1px solid var(--wp--preset--color--line); }
	.ub-header .ub-nav .ub-mega__all > .wp-block-navigation-item__content { padding: 0.5rem 0.75rem; color: var(--wp--preset--color--primary); font-weight: 600; }
	.ub-header .ub-nav .ub-mega__all > .wp-block-navigation-item__content::after { content: " →"; }
}

/* The phone and tablet menu (core's overlay): the three groups as labelled lists */
.ub-nav .wp-block-navigation__responsive-container.is-menu-open { padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right); padding-block-start: max(1rem, env(safe-area-inset-top, 0px)); }
.ub-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-block-start: 3.5rem; }
.ub-nav .is-menu-open .wp-block-navigation__container { gap: 0.5rem; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.ub-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { padding: 0.375rem 0; }
.ub-nav .is-menu-open .ub-mega > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container { padding: 0.75rem 0 0.5rem; gap: 1rem; }
.ub-nav .is-menu-open .ub-mega__group > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.ub-nav .is-menu-open .ub-mega__group > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	padding: 0.5rem 0 0 0.875rem; gap: 0.25rem; border-inline-start: 2px solid var(--wp--preset--color--line);
	font-size: 1.0625rem; font-weight: 500; letter-spacing: 0;
}
.ub-nav .is-menu-open .ub-mega__group .wp-block-navigation-item__content { padding: 0.375rem 0; }
.ub-nav .is-menu-open .wp-block-navigation-item__description { display: none; }
.ub-nav .is-menu-open .ub-mega__all > .wp-block-navigation-item__content { color: var(--wp--preset--color--primary); font-size: 1.0625rem; }
.ub-nav .is-menu-open .ub-mega__all > .wp-block-navigation-item__content::after { content: " →"; }

/* Narrow screens: the phone number as an icon; "Cere ofertă" moves to the phone bar */
@media (max-width: 1279.98px) {
	.ub-header__phone > .wp-block-button__link { font-size: 0; line-height: 2.75rem; inline-size: 2.75rem; block-size: 2.75rem; min-block-size: 2.75rem; padding: 0; justify-content: center; border-radius: 50%; }
	.ub-header__phone > .wp-block-button__link::before { inline-size: 1.375rem; block-size: 1.375rem; }
}
@media (max-width: 781.98px) {
	.ub-header__cta { display: none; }
	.ub-header__bar { min-block-size: 4rem; }
	.ub-logo img { block-size: 1.875rem; }
}

/* ---- Footer ----------------------------------------------------------------------------- */

.ub-footer { font-size: var(--wp--preset--font-size--small); }
.ub-footer__top { display: grid; gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); grid-template-columns: 1fr; }
@media (min-width: 600px) { .ub-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ub-footer__top { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); } }
.ub-footer__top > * { margin: 0; }
.ub-footer__brand .ub-logo img { block-size: 2.5rem; }
.ub-footer__tagline { max-inline-size: 22rem; color: var(--wp--preset--color--on-deep-muted); margin-block-start: 1rem; }
.ub-footer__title { font-size: var(--wp--preset--font-size--x-small); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--on-deep-muted); margin-block-end: 0.75rem; }
.ub-footer__links { margin: 0; }
.ub-footer__links li { margin: 0; }
.ub-footer__links a, .ub-footer .is-style-ub-link > .wp-block-button__link { display: inline-flex; align-items: center; min-block-size: 2.25rem; text-decoration: none; font-weight: 400; font-size: inherit; }
.ub-footer__links a:hover { text-decoration: underline; }
.ub-footer .wp-block-buttons { gap: 0; }
.ub-footer .is-style-ub-link > .wp-block-button__link:hover { text-decoration: underline; }
.ub-fact { margin-block-start: 0.5rem; }
.ub-fact > p { margin: 0; }
.ub-fact__label { color: var(--wp--preset--color--on-deep-muted); }
.ub-fact--inline { display: inline-flex; gap: 0.3em; margin: 0; }
.ub-footer .ub-consent-link { min-block-size: 2.25rem; font-size: inherit; }
.ub-footer__bottom { padding-block-start: var(--wp--preset--spacing--40); border-block-start: 1px solid rgb(242 243 243 / 0.14); }
.ub-footer__identity { gap: 0.375rem 1.25rem; color: var(--wp--preset--color--on-deep-muted); font-size: var(--wp--preset--font-size--x-small); }
.ub-footer__identity > * { margin: 0; }
.ub-footer__company { color: var(--wp--preset--color--on-deep); font-weight: 600; }
.ub-footer__legal { margin-block-start: var(--wp--preset--spacing--40); gap: 1rem 2rem; }
.ub-footer__anpc { margin: 0; }
.ub-footer__anpc img { display: block; }
.ub-footer__social { gap: 0.75rem; margin: 0; }
.ub-footer__meta { gap: 0.5rem 1.5rem; align-items: center; }
.ub-footer__meta > * { margin: 0; }
.ub-footer .ub-motion-toggle { color: inherit; }

/* ---- Phone bar (under 782 px): Sună · WhatsApp · Cere ofertă ------------------------------- */

.ub-phonebar { display: none; }
@media (max-width: 781.98px) {
	.ub-phonebar {
		display: block; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40; margin: 0;
		padding: 0.5rem var(--wp--style--root--padding-right) calc(0.5rem + env(safe-area-inset-bottom, 0px)) var(--wp--style--root--padding-left);
		background: rgb(255 255 255 / 0.94); border-block-start: 1px solid var(--wp--preset--color--line);
		box-shadow: 0 -10px 28px -20px rgb(0 35 74 / 0.4);
	}
	/* The three across the whole bar, "Cere ofertă" (the main action) the widest. The bar plus two classes: above
	   core's .wp-block-buttons.is-layout-flex, which made the row a left-aligned flex line (QA site m1). A label
	   never wraps, so a track narrower than its label keeps the label's width and the others share the rest. */
	.ub-phonebar > .wp-block-buttons.ub-phonebar__buttons { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 0.5rem; }
	.ub-phonebar .wp-block-button { inline-size: auto; }
	.ub-phonebar .wp-block-button > .wp-block-button__link { box-sizing: border-box; inline-size: 100%; min-block-size: 3rem; padding: 0.5rem 0.75rem; justify-content: center; font-size: 0.9375rem; white-space: nowrap; }
	.ub-phonebar .is-style-ub-link > .wp-block-button__link {
		color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--base);
	}
	.ub-phonebar .is-style-ub-link > .wp-block-button__link:hover { text-decoration: none; background: var(--wp--preset--color--surface); }
	/* Narrow phones (360 px): the labels stay on one line ("Sun|ă", "WhatsAp|p" wrapped) */
	@media (max-width: 399.98px) {
		.ub-phonebar > .wp-block-buttons.ub-phonebar__buttons { gap: 0.375rem; }
		.ub-phonebar .wp-block-button > .wp-block-button__link { padding-inline: 0.5rem; font-size: 0.875rem; gap: 0.3em; }
	}
	/* Steps aside while the footer or a form is on screen (assets/phonebar.js) */
	html.ub-bar-off .ub-phonebar { transform: translateY(110%); visibility: hidden; }
	/* Nothing ends up under the bar, with or without JavaScript */
	.ub-footer.ub-footer { padding-block-end: calc(var(--wp--preset--spacing--40) + 4.5rem + env(safe-area-inset-bottom, 0px)) !important; }
	/* WP Chat App's bubble: the bar's WhatsApp button does its job here */
	#wa { display: none !important; }
}
/* Transitions only once the script has set the first state (html.ub-bar-ready): nothing slides on load */
@media (max-width: 781.98px) and (prefers-reduced-motion: no-preference) {
	html.ub-bar-ready:not([data-ub-motion="off"]) .ub-phonebar { transition: transform 0.25s ease, visibility 0s linear 0s; }
	html.ub-bar-ready.ub-bar-off:not([data-ub-motion="off"]) .ub-phonebar { transition: transform 0.25s ease, visibility 0s linear 0.25s; }
}

/* ---- A heading's icon in a disc (decorative, in CSS) ---------------------------------------- */

.ub-has-icon { position: relative; padding-block-start: 4rem; }
.ub-has-icon::before, .ub-has-icon::after { content: ""; position: absolute; inset-inline-start: 0; }
.ub-has-icon::before { inset-block-start: 0; inline-size: 3rem; block-size: 3rem; border-radius: 50%; background: var(--ub-disc, var(--wp--preset--color--tint)); }
.ub-has-icon::after {
	inset-block-start: 0.75rem; inset-inline-start: 0.75rem; inline-size: 1.5rem; block-size: 1.5rem;
	background: var(--ub-disc-ink, var(--wp--preset--color--primary));
	-webkit-mask: var(--ub-icon) center / contain no-repeat; mask: var(--ub-icon) center / contain no-repeat;
}
:is(.has-deep-background-color, .has-deep-2-background-color, .is-style-ub-card-deep) .ub-has-icon { --ub-disc: rgb(143 180 255 / 0.14); --ub-disc-ink: var(--wp--preset--color--highlight-on-deep); }
.ub-stars::before, .ub-rating__detail::before {
	content: ""; display: block; inline-size: 6.5rem; block-size: 1.125rem; margin-block-end: 0.5rem;
	background: var(--wp--preset--color--accent);
	-webkit-mask: var(--ub-i-star-filled) 0 50% / 1.125rem 1.125rem space no-repeat; mask: var(--ub-i-star-filled) 0 50% / 1.125rem 1.125rem space no-repeat;
}

/* ---- Sections (patterns/) ---------------------------------------------------------------- */

.ub-section-head { max-inline-size: 46rem; margin-block-end: var(--wp--preset--spacing--50); }
.ub-section-head > * { margin-block: 0; }
.ub-section-head > * + * { margin-block-start: 0.75rem; }
.ub-section-head > .ub-lead { margin-block-start: 1rem; }
/* The line under an H1 or a section's heading: 17 px on desktop, 16 px on a 360 px phone (Tomi, 2026-11-03: "17px ar
   fi ok"; theme.json custom.lead.size). The paragraphs keep their "Lead" size in the editor's settings; this is above
   core's !important preset class. */
.ub-lead { color: var(--ub-soft); line-height: 1.6; max-inline-size: 38rem; }
.ub-lead.ub-lead { font-size: var(--wp--custom--lead--size) !important; }
/* In a constrained section the narrower lead was centred, so it started right of its heading (the 404 and the
   thank-you page): there it takes the content width, flush with the rest. */
:is(.ub-404, .ub-thanks) > .ub-lead { max-inline-size: var(--wp--style--global--content-size); }
.ub-note { color: var(--ub-soft); }
.ub-inline { gap: 0.3em; }
.ub-inline > *, .ub-proof > * { margin: 0; }

/* Hero: text left, a client site in a laptop and a phone on the right; the frames drift on scroll */
:is(.ub-home-hero, .ub-service-hero) { gap: clamp(2.5rem, 5vw, 4.5rem); }
:is(.ub-home-hero, .ub-service-hero) .ub-hero__content { gap: 1.25rem; align-items: flex-start; }
:is(.ub-home-hero, .ub-service-hero) .ub-hero__content > * { margin: 0; }
.ub-home-hero h1 { max-inline-size: 13ch; text-wrap: balance; }
.ub-home-hero .ub-lead { max-inline-size: 34rem; }
:is(.ub-home-hero, .ub-service-hero) .wp-block-buttons { margin-block-start: 0.5rem; }
.ub-proof { gap: 0.3em; font-size: var(--wp--preset--font-size--small); color: var(--ub-soft); }
.ub-proof__strong { color: var(--ub-strong); font-weight: 700; }
.ub-hero__visual { position: relative; padding-inline-start: 11%; padding-block-end: 7%; }
.ub-hero__visual > * { margin: 0; }
.ub-hero__laptop { inline-size: 100%; }
.ub-hero__phone { position: absolute; inset-inline-start: 0; inset-block-end: 0; inline-size: 25%; }
.ub-float-card {
	position: absolute; z-index: 2; padding: 0.625rem 0.875rem; border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--ink); box-shadow: var(--wp--preset--shadow--float);
	font-size: var(--wp--preset--font-size--small); font-weight: 600; white-space: nowrap;
}
.ub-float-card > p { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.ub-float-card .ub-icon::before { background: var(--wp--preset--color--primary); }
.ub-float-card--order { inset-block-start: 4%; inset-inline-end: 0; }
.ub-float-card--reply { inset-block-end: 2%; inset-inline-end: 8%; }
@media (max-width: 781.98px) {
	.ub-hero__visual { max-inline-size: 28rem; margin-inline: auto; inline-size: 100%; }
	.ub-float-card { font-size: 0.8125rem; padding: 0.5rem 0.625rem; }
}
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		html:not([data-ub-motion="off"]) .ub-hero__laptop { animation: ub-drift-slow linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
		html:not([data-ub-motion="off"]) :is(.ub-hero__phone, .ub-float-card--order) { animation: ub-drift-fast linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
	}
}
@keyframes ub-drift-slow { to { translate: 0 -1.5rem; } }
@keyframes ub-drift-fast { to { translate: 0 -4rem; } }

/* Reviews, logo band, numbers */
.ub-reviews__grid { display: grid; gap: var(--wp--preset--spacing--50); align-items: center; }
@media (min-width: 960px) { .ub-reviews__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ub-reviews__intro > * { margin-block: 0; }
.ub-reviews__intro > * + * { margin-block-start: 1.25rem; }
.ub-reviews__intro .ub-section-head { margin-block-end: 0; }
.ub-rating { gap: 1rem; }
.ub-rating > * { margin: 0; }
.ub-rating__score { font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.ub-rating__detail { font-size: var(--wp--preset--font-size--small); color: var(--ub-soft); }
.ub-review { padding: clamp(1.5rem, 4vw, 2.75rem); }
.ub-review > * { margin-block: 0; }
.ub-review > * + * { margin-block-start: 1rem; }
.ub-review .ub-stars { font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ub-soft); }
.ub-review .ub-stars::before { margin-inline: auto; }
.ub-review__quote { color: var(--ub-strong); font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.ub-review__name { font-weight: 700; }
.ub-logos__label { margin-block: var(--wp--preset--spacing--60) 1.25rem; text-align: center; color: var(--ub-soft); }
.ub-logos { --wp--style--block-gap: 1rem; }
.ub-logo-card {
	display: grid; place-items: center; inline-size: 10.5rem; block-size: 5.5rem; padding: 0.875rem 1.25rem; box-sizing: border-box;
	background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--small);
}
.ub-logo-card .wp-block-image { margin: 0; }
.ub-logo-card img { display: block; max-block-size: 3.25rem; max-inline-size: 100%; inline-size: auto; block-size: auto; object-fit: contain; }
.ub-numbers { display: grid; gap: var(--wp--preset--spacing--40); margin-block-start: var(--wp--preset--spacing--50); padding-block-start: var(--wp--preset--spacing--50); border-block-start: 1px solid var(--wp--preset--color--line); }
@media (min-width: 600px) { .ub-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ub-numbers > * { margin: 0; }
.ub-numbers .ub-counter__label { color: var(--ub-soft); font-size: var(--wp--preset--font-size--medium); }
.ub-stat__number { margin: 0; font-size: var(--wp--preset--font-size--xx-large); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }

/* Service groups: text and its service list beside the illustration (left or right) */
.ub-split { gap: var(--wp--preset--spacing--60); }
@media (min-width: 782px) { .ub-split--art-left { flex-direction: row-reverse; } }
.ub-split__text > * { margin-block: 0; }
.ub-split__text > * + * { margin-block-start: 1rem; }
.ub-split__text > h2 { margin-block-start: 0.75rem; }
.ub-art { margin: 0; }
.ub-art img { inline-size: 100% !important; block-size: auto; }
.ub-service-list { margin-block: 1.75rem 1.25rem !important; border-block-start: 1px solid var(--wp--preset--color--line); }
.ub-service-list > * { margin: 0; }
.ub-service { position: relative; gap: 1rem; padding: 1rem 2.25rem 1rem 0; border-block-end: 1px solid var(--wp--preset--color--line); }
.ub-service::after {
	content: ""; position: absolute; inset-inline-end: 0.25rem; inset-block-start: 50%; translate: 0 -50%;
	inline-size: 1.25rem; block-size: 1.25rem; background: var(--ub-label);
	-webkit-mask: var(--ub-i-arrow-right) center / contain no-repeat; mask: var(--ub-i-arrow-right) center / contain no-repeat;
}
.ub-service__text > * { margin: 0; }
.ub-service__name { font-size: 1.1875rem; letter-spacing: -0.015em; }
.ub-service__name a { color: var(--ub-strong); text-decoration: none; }
.ub-service__name a::after { content: ""; position: absolute; inset: 0; } /* the whole row is the link */
.ub-service:hover .ub-service__name a { color: var(--ub-label); }
.ub-service__line { margin-block-start: 0.25rem !important; color: var(--ub-soft); font-size: var(--wp--preset--font-size--small); }
@media (prefers-reduced-motion: no-preference) {
	html:not([data-ub-motion="off"]) .ub-service::after { transition: translate 0.2s ease; }
	html:not([data-ub-motion="off"]) .ub-service:hover::after { translate: 0.25rem -50%; }
}

/* Portfolio slides (navy band) */
.ub-project { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem 1.25rem 1.5rem; }
.ub-project > * { margin: 0 !important; }
.ub-project__device { inline-size: min(100%, 14rem); margin-inline: auto !important; margin-block-end: 0.75rem !important; }
.ub-project__name { font-size: var(--wp--preset--font-size--x-large); }
.ub-project__line { color: var(--ub-soft); font-size: var(--wp--preset--font-size--small); flex: 1 0 auto; }
.ub-project__type { font-size: var(--wp--preset--font-size--x-small); }
.ub-project--all { justify-content: flex-end; min-block-size: 24rem; background: linear-gradient(160deg, var(--wp--preset--color--deep-2), var(--wp--preset--color--primary)); }
.ub-project__all-link { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ub-project__all-link a { text-decoration: none; }
.ub-project__all-link a::after { content: ""; position: absolute; inset: 0; }
.ub-portfolio .ub-slider__track { --ub-slider-pad-block: 0.75rem; }
/* The slider's cards (Tomi, 2026-11-03: "în partea de jos sub «Vezi site-ul» să fie puțin mai mic spațiu"): the
   cards share the tallest one's height (a two-line name), so the spare room goes above the chip, and the link
   keeps only a little padding under its 44 px target. The arrow link to /portofoliu/ under the section's line
   took the end card's place. */
.ub-portfolio__slider .ub-project { padding-block-end: 0.75rem; }
.ub-portfolio__slider .ub-project > .ub-project__type.ub-project__type { margin-block-start: auto !important; }
.ub-section-head > .ub-portfolio__all { margin-block-start: 1rem; }

/* Grids of cards: integrations, bento of promises */
.ub-grid { display: grid; gap: var(--wp--preset--spacing--30); }
.ub-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.ub-grid > * { margin: 0 !important; }
.ub-integration > *, .ub-bento__item > *, .ub-bento__wide > * { margin-block: 0; }
.ub-integration > * + *, .ub-bento__item > * + *, .ub-bento__wide > * + * { margin-block-start: 0.5rem; }
.ub-integration p, .ub-bento__item p { color: var(--ub-soft); }
.ub-integration h3, .ub-bento__item h3 { font-size: 1.25rem; }
.ub-integrations .ub-note { margin-block-start: var(--wp--preset--spacing--40); }
.ub-bento { display: grid; gap: var(--wp--preset--spacing--30); }
.ub-bento > * { margin: 0 !important; }
@media (min-width: 700px) {
	.ub-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ub-bento__wide { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
	.ub-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ub-bento__wide { grid-column: 1 / span 2; grid-row: 1 / span 2; padding: clamp(1.75rem, 3vw, 2.75rem); }
}
.ub-bento__wide p { color: var(--ub-soft); }
.ub-bento__wide .is-style-ub-checks { margin-block-start: 1.25rem; font-weight: 600; }

/* Process: the heading stays beside the stacking cards. Its column holds the label, the H2, a line, "Cere ofertă"
   and the proof line, all held together while the cards stack (Tomi, 2026-11-03: "aici în stânga mai poate fi
   băgat ceva să nu fie așa gol"). On phones the button and the proof line give way to the phone bar. */
.ub-process__grid { display: grid; gap: var(--wp--preset--spacing--50); }
.ub-process__grid > * { margin: 0; }
.ub-process__head > * { margin-block: 0; }
.ub-process__head > .ub-section-head { margin-block-end: 0; }
.ub-process__head > .ub-process__actions { margin-block-start: 1.75rem; }
.ub-process__head > .ub-proof { margin-block-start: 1.25rem; }
@media (max-width: 781.98px) {
	.ub-process__head > :is(.ub-process__actions, .ub-proof) { display: none !important; }
}
@media (min-width: 960px) {
	.ub-process__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
	.ub-process__head { position: sticky; inset-block-start: calc(var(--ub-header-h) + 2rem); padding-inline-end: var(--wp--preset--spacing--40); }
}
.ub-step { padding: clamp(1.5rem, 3vw, 2.25rem); }
.ub-step > * { margin-block: 0; }
.ub-step > * + * { margin-block-start: 0.5rem; }
.ub-step__num { font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: 0.12em; color: var(--ub-label); }
.ub-step .ub-has-icon { margin-block-start: 1rem; }
.ub-step p:last-child { color: var(--ub-soft); }

/* FAQ: the heading centred above the list, the list centred under it at a reading width (Tomi, 2026-11-03:
   "Întrebări frecvente ca text poate să fie deasupra de listă și centrat"; it used to sit in a left column) */
.ub-faq__grid { display: grid; gap: var(--wp--preset--spacing--40); max-inline-size: 52rem; margin-inline: auto; }
.ub-faq__grid > * { margin: 0; }
.ub-faq__head { text-align: center; }
.ub-faq__head .ub-section-head { margin: 0 auto; }
.ub-faq__head .ub-lead { margin-inline: auto; }
.ub-faq__list { border-block-start: 1px solid var(--wp--preset--color--line); }
.ub-faq__list > * { margin: 0 !important; }
.wp-block-details summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 44px;
	list-style: none; cursor: pointer; font-weight: 600; font-size: var(--wp--preset--font-size--large); letter-spacing: -0.015em;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; flex: none; inline-size: 1rem; block-size: 1rem; color: var(--ub-label);
	background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.wp-block-details[open] summary::after { rotate: 45deg; }
.wp-block-details > :not(summary) { color: var(--ub-soft); margin-block: 0.75rem 0.25rem; max-inline-size: 44rem; }
@media (prefers-reduced-motion: no-preference) {
	html:not([data-ub-motion="off"]) .wp-block-details summary::after { transition: rotate 0.2s ease; }
}

/* Closing form band (navy, #formular) */
.ub-form-band__cols { gap: var(--wp--preset--spacing--60); }
.ub-form-band__text > * { margin-block: 0; }
.ub-form-band__text > * + * { margin-block-start: 1.25rem; }
/* The proof line at the text column's foot, level with the form's end (beside a tall form the column was half
   empty: Tomi, 2026-11-03, item 7); on phones, where the form follows the facts, it gives way. */
.ub-form-band__text > .ub-form-band__proof { padding-block-start: 1.25rem; border-block-start: 1px solid rgb(242 243 243 / 0.14); }
@media (min-width: 782px) {
	.ub-form-band__text { display: flex; flex-direction: column; }
	.ub-form-band__text > .ub-form-band__proof { margin-block-start: auto; }
}
@media (max-width: 781.98px) {
	.ub-form-band__text > .ub-form-band__proof { display: none !important; }
}
.ub-contact-facts { display: grid; gap: 2.5rem; margin-block-start: var(--wp--preset--spacing--50) !important; }
.ub-contact-facts.ub-contact-facts > * { margin-block: 0; } /* the grid's gap only: WordPress's flow margin pushed every fact but the first down (in two columns WhatsApp sat 20 px under "Sună") */
.ub-contact-fact > * { margin: 0; }
.ub-contact-fact__label { font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--on-deep-muted); }
.ub-contact-fact .wp-block-buttons { gap: 0; }
.ub-contact-fact .is-style-ub-link > .wp-block-button__link { color: var(--wp--preset--color--on-deep); font-size: var(--wp--preset--font-size--large); }
.ub-contact-fact .ub-icon--map > .wp-block-button__link { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--highlight-on-deep); }
.ub-contact-fact__value { font-size: var(--wp--preset--font-size--large); }
.ub-form-card { --ub-focus: var(--wp--preset--color--primary); padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: var(--ub-radius); box-shadow: var(--wp--preset--shadow--lifted); }
/* The marketing checkbox sits after the field grid, outside it: give it the grid's row gap (User, 2026-11-03: "the
   checkmark is too close to the email field"). */
.ub-form-card .wpcf7-form-control-wrap:has(> .wpcf7-acceptance) { display: block; margin-block-start: 1rem; }
.ub-form-card > * { margin-block: 0; }

/* ---- Small fixes after the first screenshots (2026-11-02) ------------------------------------ */

/* Inline runs of bound facts ("5,0 ★ din 22 de recenzii …") flow as one sentence */
.ub-proof.ub-proof, .ub-inline.ub-inline { display: block; }
.ub-proof > p, .ub-inline > p { display: inline; }
/* Text-link buttons that wrap stay left-aligned */
.wp-block-button.is-style-ub-link > .wp-block-button__link { text-align: start; }
/* An outside link with an arrow ("Vezi toate recenziile pe Google") */
.ub-arrow > .wp-block-button__link { color: var(--ub-label); }
.ub-arrow > .wp-block-button__link::after {
	content: ""; flex: none; inline-size: 1.125em; block-size: 1.125em; background: currentColor;
	-webkit-mask: var(--ub-i-arrow-up-right) center / contain no-repeat; mask: var(--ub-i-arrow-up-right) center / contain no-repeat;
}
.ub-footer { border-block-start: 1px solid rgb(242 243 243 / 0.1); }
@media (max-width: 781.98px) {
	.ub-header .ub-header__cta { display: none; }
	.ub-art { max-inline-size: 26rem; margin-inline: auto; }
}
/* The phone menu reads left-aligned (the bar centres the desktop menu) */
.ub-nav .wp-block-navigation__responsive-container.is-menu-open, .ub-nav .is-menu-open * { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: flex-start; }
.ub-nav .is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) { align-items: flex-start; text-align: start; }
.ub-nav .is-menu-open .ub-mega__group > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container { align-self: stretch; }

/* ---- Fix round 2026-11-02 (the manager's list) ---------------------------------------------- */

/* Logo band (ub/marquee in the reviews pattern): while it moves, both edges fade into the band's
   background. No pause button (Tomi, 2026-11-03; functions.php removes it): it stops while the pointer is
   over it or it has keyboard focus, and it is still (one wrapped row, no fades) under reduced motion and
   with the footer's motion switch (UB Kit's CSS). Under the same prefix as UB Kit's running rule, or its
   animation shorthand wins (grun-ro H67). */
.ub-logos { --ub-fade: var(--wp--preset--color--base); }
.has-surface-background-color .ub-logos { --ub-fade: var(--wp--preset--color--surface); }
.wp-block-ub-marquee:focus-visible { outline: 2px solid var(--ub-focus); outline-offset: 4px; border-radius: var(--wp--custom--radius--small); }
@media (prefers-reduced-motion: no-preference) {
	html.ub-js:not([data-ub-motion="off"]) .ub-logos.is-live::before,
	html.ub-js:not([data-ub-motion="off"]) .ub-logos.is-live::after {
		content: ""; position: absolute; z-index: 1; inset-block: 0; inline-size: clamp(2.5rem, 8vw, 7rem); pointer-events: none;
	}
	html.ub-js:not([data-ub-motion="off"]) .ub-logos.is-live::before { inset-inline-start: 0; background: linear-gradient(to right, var(--ub-fade), transparent); }
	html.ub-js:not([data-ub-motion="off"]) .ub-logos.is-live::after { inset-inline-end: 0; background: linear-gradient(to left, var(--ub-fade), transparent); }
	html:not([data-ub-motion="off"]) .wp-block-ub-marquee.is-live:is(:hover, :focus-within) .ub-marquee__track { animation-play-state: paused; }
}

/* Portfolio slider at full width, endless (loop): the first card on the wide layout's edge, the others
   run to both screen edges (navarro's peek); arrows and pills centred under it. On navy the current
   pill is highlight-on-deep (ub-site's slider uses primary elsewhere). */
.ub-portfolio .wp-block-ub-slider.alignfull { margin-block-start: 0; }
.ub-portfolio .wp-block-ub-slider { --ub-slider-pill: var(--wp--preset--color--highlight-on-deep); }

/* ---- QA round 1 fixes (2026-11-02, exports/qa/review-2026-11-02-round1/) ------------------------ */

/* Headings break between words, evenly (hyphenated words are kept whole in functions.php); running text
   avoids a lone word on its last line (QA 2-3 p1). The longhand, so a nowrap set elsewhere stays nowrap. */
h1, h2, h3 { text-wrap: balance; }
:where(p, li, dd, figcaption, blockquote, summary, .ub-inline) { text-wrap-style: pretty; }

/* Process: the cards stack (sticky, UB Kit) and each has a big number and a big icon */
.ub-step { min-block-size: 14rem; }
.ub-step > * { max-inline-size: 36rem; margin-inline: 0 !important; }
.ub-step__num { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em; color: var(--ub-label); }
.ub-step .ub-has-icon { position: static; padding-block-start: 0; margin-block-start: 1.5rem !important; font-size: var(--wp--preset--font-size--x-large); }
.ub-step .ub-has-icon::before { inset-block-start: clamp(1.5rem, 3vw, 2.25rem); inset-inline: auto clamp(1.5rem, 3vw, 2.25rem); inline-size: 4.5rem; block-size: 4.5rem; }
.ub-step .ub-has-icon::after { inset-block-start: calc(clamp(1.5rem, 3vw, 2.25rem) + 1.125rem); inset-inline: auto calc(clamp(1.5rem, 3vw, 2.25rem) + 1.125rem); inline-size: 2.25rem; block-size: 2.25rem; }
.ub-step p:last-child { font-size: var(--wp--preset--font-size--medium); max-inline-size: 34rem; }
@media (max-width: 781.98px) {
	.ub-step { position: relative; min-block-size: 0; }
	.ub-step .ub-has-icon::before { inline-size: 3.5rem; block-size: 3.5rem; }
	.ub-step .ub-has-icon::after { inset-block-start: calc(clamp(1.5rem, 3vw, 2.25rem) + 0.875rem); inset-inline-end: calc(clamp(1.5rem, 3vw, 2.25rem) + 0.875rem); inline-size: 1.75rem; block-size: 1.75rem; }
}

/* The closing form band (ub-site's ub/form-band, anchor #formular): a navy card in a soft band, so the
   navy footer stands apart. The block's editor settings arrive as variables: Background → --ub-band-bg
   (the band around the card), Padding → --ub-band-out-top / -bottom (the band's room around the card). */
.ub-form-band {
	--ub-band-out: var(--wp--preset--spacing--50);
	--ub-band-in: clamp(2rem, 5vw, 4rem);
	--ub-band-x: clamp(1.25rem, 4vw, 3.5rem);
	position: relative; isolation: isolate;
	padding-block: calc(var(--ub-band-out-top, var(--ub-band-out)) + var(--ub-band-in)) calc(var(--ub-band-out-bottom, var(--ub-band-out)) + var(--ub-band-in)) !important;
}
.ub-form-band.has-deep-background-color { background-color: var(--ub-band-bg, var(--wp--preset--color--surface)) !important; }
.ub-form-band::before {
	content: ""; position: absolute; z-index: -1; border-radius: var(--ub-radius);
	inset-block: var(--ub-band-out-top, var(--ub-band-out)) var(--ub-band-out-bottom, var(--ub-band-out));
	inset-inline: max(var(--wp--style--root--padding-left, 1rem), calc((100% - var(--wp--style--global--wide-size)) / 2));
	background: var(--wp--preset--color--deep);
}
.ub-form-band > .ub-form-band__cols { box-sizing: border-box; padding-inline: var(--ub-band-x); }
/* The editor shows ub-site's server-rendered blocks (the form band, the offer levels) as HTML: WordPress
   prints a block style variation's CSS only for blocks it renders on the page itself, so the "Text link"
   and "Outline" buttons inside them get their look here too (the same values as styles/blocks/button-link.json). */
:where(.wp-block-ub-form-band, .wp-block-ub-offer-levels) .is-style-ub-link > .wp-block-button__link {
	background: transparent; color: currentColor; border: 0; border-radius: 0; padding: 0; font-weight: 600;
}
:where(.wp-block-ub-offer-levels, .wp-block-ub-integrations) .is-style-outline > .wp-block-button__link { background: transparent; color: var(--ub-link); border: 2px solid currentColor; }
/* … and their heads' "Eyebrow label" (styles/blocks/eyebrow.json) */
:where(.wp-block-ub-offer-levels, .wp-block-ub-integrations) .is-style-ub-eyebrow {
	color: var(--ub-label); font-size: var(--wp--preset--font-size--x-small); font-weight: 600;
	letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
}
.ub-form-card { box-shadow: none; }

/* Hero: the device group takes more room (it may run into the page's side margin, up to 12rem), so
   the client's site is readable; main clips the page sideways so nothing scrolls */
main.wp-block-group { overflow-x: clip; }
@media (min-width: 782px) {
	.wp-block-ub-hero:is(.ub-home-hero, .ub-service-hero) { overflow: visible; }
	:is(.ub-home-hero, .ub-service-hero) .ub-hero__visual {
		padding-inline-start: 7%;
		margin-inline-end: max(-12rem, min(0px, calc((var(--wp--style--global--wide-size) - 100vw) / 2 + 1rem)));
	}
}

/* Mega panel: the first column wider (its label on one line), the arrow's space back */
@media (min-width: 1080px) {
	.ub-header .ub-nav li.ub-mega.has-child > .wp-block-navigation__submenu-container { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
	@media (hover: hover) {
		.ub-header .ub-nav li.ub-mega.has-child:hover > .wp-block-navigation__submenu-container { inline-size: min(60rem, 100%); }
	}
	.ub-header .ub-nav li.ub-mega.has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container { inline-size: min(60rem, 100%); }
	.ub-header .ub-nav li.ub-mega__group > .wp-block-navigation-item__content { white-space: nowrap; }
	.ub-header .ub-nav li.ub-nav__call { display: none; }
}
.ub-header .ub-nav .ub-mega__all > .wp-block-navigation-item__content::after { content: "→"; margin-inline-start: 0.35em; }

/* Phone menu: the services compact (two columns, no descriptions), so the four pages and the call
   button fit on the first screen; the close button stays on screen. (A folding "Servicii" isn't
   possible with core's script: it keeps every submenu open while its overlay is open; reordering
   would make the visual order differ from the Tab order.) */
.ub-nav .wp-block-navigation__responsive-container.is-menu-open li.ub-mega__group > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; padding: 0.25rem 0 0; border: 0;
	font-size: 1rem; line-height: 1.3;
}
.ub-nav .is-menu-open li.ub-mega__group .wp-block-navigation-item__content { padding: 0.375rem 0; }
.ub-nav .is-menu-open .ub-mega > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container { gap: 0.625rem; padding-block: 0.5rem 0.25rem; }
.ub-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	position: fixed; z-index: 3; inset-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + 0.75rem + env(safe-area-inset-top, 0px)); inset-inline-end: var(--wp--style--root--padding-right);
	display: flex; align-items: center; justify-content: center; inline-size: 2.75rem; block-size: 2.75rem; border-radius: 50%; background: var(--wp--preset--color--surface);
}
.ub-nav .is-menu-open li.ub-nav__call { margin-block-start: 1rem; }
.ub-nav .is-menu-open li.ub-nav__call > .wp-block-navigation-item__content {
	display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 3rem; padding: 0.5rem 1.5rem !important;
	border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary) !important; font-size: 1.0625rem;
}
.ub-nav .is-menu-open li.ub-nav__call > .wp-block-navigation-item__content::before {
	content: ""; inline-size: 1.25rem; block-size: 1.25rem; background: currentColor;
	-webkit-mask: var(--ub-i-phone) center / contain no-repeat; mask: var(--ub-i-phone) center / contain no-repeat;
}

/* Footer polish: the two footer buttons look like the links; facts flow as text; lists in two columns on phones */
.ub-footer .ub-consent-link, .ub-footer .ub-motion-toggle { text-decoration: none; }
.ub-footer .ub-consent-link:hover, .ub-footer .ub-motion-toggle:hover { text-decoration: underline; }
.ub-fact--inline { display: block; }
.ub-fact--inline > p { display: inline; }
@media (max-width: 599.98px) {
	.ub-footer__links { columns: 2; column-gap: 1.5rem; }
	.ub-footer__links li { break-inside: avoid; }
}

/* Phones: integrations as a compact two-column grid; the service illustrations stay off (decorative) */
@media (max-width: 599.98px) {
	.ub-integrations .ub-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
	.ub-integration { padding: 1rem; }
	.ub-integration h3 { font-size: 1rem; padding-block-start: 3rem; }
	.ub-integration .ub-has-icon::before { inline-size: 2.25rem; block-size: 2.25rem; }
	.ub-integration .ub-has-icon::after { inset-block-start: 0.5rem; inset-inline-start: 0.5rem; inline-size: 1.25rem; block-size: 1.25rem; }
	.ub-integration p { font-size: 0.875rem; line-height: 1.45; }
	.ub-split__art { display: none; }
}

/* Service illustrations: inline SVG (functions.php), its parts grouped by scripts/art-parts.py. Tomi, 2026-11-03:
   "dacă poți imaginile astea să le faci cu puțin motion, să se miste". assets/motion.js marks them; nothing moves
   with reduced motion or the footer's switch, and only a picture below the first screen at load hides its parts
   until it comes in (is-armed). Coming in, the cards appear one after another (transform and opacity) while the
   dotted path draws itself (its mask's stroke); in view, the cards and dots float a few pixels, each at its own
   pace (decorative; stopped by the switch: the deviation from motion rule 4 is noted with the logo band's). */
.ub-art svg { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 560 / 460; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
	/* the transitions only on the way in (on .is-shown): arming hides at once, below the first screen */
	html:not([data-ub-motion="off"]) .ub-art.is-armed .ub-art__draw { stroke-dasharray: 1 1; }
	html:not([data-ub-motion="off"]) .ub-art.is-armed.is-shown .ub-art__part {
		transition: opacity 0.6s ease calc(var(--i) * 0.2s), translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i) * 0.2s);
	}
	html:not([data-ub-motion="off"]) .ub-art.is-armed.is-shown .ub-art__draw {
		transition: stroke-dashoffset 1.4s ease-in-out calc(var(--i) * 0.2s + 0.1s);
	}
	html:not([data-ub-motion="off"]) .ub-art.is-armed:not(.is-shown) .ub-art__part { opacity: 0; translate: 0 18px; }
	html:not([data-ub-motion="off"]) .ub-art.is-armed:not(.is-shown) .ub-art__path { translate: 0 0; }
	html:not([data-ub-motion="off"]) .ub-art.is-armed:not(.is-shown) .ub-art__draw { stroke-dashoffset: 1; }
	html:not([data-ub-motion="off"]) .ub-art.is-in-view .ub-art__part:not(.ub-art__path) {
		animation: ub-art-float 6.5s ease-in-out calc(var(--i) * -1.7s) infinite alternate;
	}
	html:not([data-ub-motion="off"]) .ub-art.is-in-view .ub-art__part.ub-art__dot { animation-duration: 4.5s; }
}
@keyframes ub-art-float { from { transform: translateY(-3px); } to { transform: translateY(4px); } }

/* The portfolio sliders' phones scroll their page by themselves while the card is in view (assets/motion.js marks
   it), slowly, down and back with a pause at each end, each card a little after the one on its left; the pointer
   over a card or focus inside it holds it (and the page stays where it is). object-position only, inside the
   screen: nothing else moves, nothing shifts. */
@media (prefers-reduced-motion: no-preference) {
	html:not([data-ub-motion="off"]) .ub-portfolio__slider .ub-device-host.is-in-view .wp-block-ub-device[data-scroll="true"] img {
		animation: ub-phone-scroll 40s var(--ub-phone-delay, 0s) infinite;
	}
	html:not([data-ub-motion="off"]) .ub-portfolio__slider .ub-device-host.is-in-view:is(:hover, :focus-within) .wp-block-ub-device img { animation-play-state: paused; }
}
@keyframes ub-phone-scroll {
	0%, 8% { object-position: 50% 0; animation-timing-function: ease-in-out; }
	46%, 54% { object-position: 50% 100%; animation-timing-function: ease-in-out; }
	92%, 100% { object-position: 50% 0; }
}
/* A [TODO: …] chip standing in for a link whose fact is missing (plugins/ub-site/inc/contact-links.php) */
.ub-todo { display: inline-block; font-size: var(--wp--preset--font-size--small); color: var(--ub-soft); }
/* The phone menu's service columns line up from group to group */
.ub-nav .is-menu-open :is(li.ub-mega, li.ub-mega__group, li.ub-mega > .wp-block-navigation__submenu-container, li.ub-mega__group > .wp-block-navigation__submenu-container) { align-self: stretch; inline-size: 100%; box-sizing: border-box; }

/* Phones: a shorter home (QA: 17.7 screens at 390 px). Nothing cut, only laid out tighter. */
@media (max-width: 599.98px) {
	/* Promises and steps: the icon beside the title instead of above it */
	.ub-bento__item .ub-has-icon, .ub-bento__wide .ub-has-icon { padding-block-start: 0; padding-inline-start: 3.25rem; min-block-size: 2.5rem; display: flex; align-items: center; }
	.ub-bento__item .ub-has-icon::before, .ub-bento__wide .ub-has-icon::before { inset-block-start: 50%; translate: 0 -50%; inline-size: 2.5rem; block-size: 2.5rem; }
	.ub-bento__item .ub-has-icon::after, .ub-bento__wide .ub-has-icon::after { inset-block-start: 50%; translate: 0 -50%; inset-inline-start: 0.5rem; inline-size: 1.5rem; block-size: 1.5rem; }
	.ub-step__num { font-size: 2.5rem; }
	.ub-step .ub-has-icon { margin-block-start: 0.75rem !important; }
	/* Numbers: two columns, the date across both */
	.ub-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ub-numbers > .ub-stat { grid-column: 1 / -1; }
	/* Form band: a little less air, the contact facts in two columns */
	.ub-form-band { --ub-band-out: 1rem; --ub-band-in: 2rem; }
	.ub-contact-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.75rem; }
	.ub-contact-fact .is-style-ub-link > .wp-block-button__link, .ub-contact-fact__value { font-size: var(--wp--preset--font-size--medium); }
	/* Footer: Companie and Legal side by side */
	.ub-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--40) 1.25rem; }
	.ub-footer__top > .ub-footer__brand, .ub-footer__top > .ub-footer__col:nth-child(2), .ub-footer__top > .ub-footer__col:nth-child(4) { grid-column: 1 / -1; }
	.ub-footer__top > .ub-footer__col:nth-child(3) { grid-row: 3; grid-column: 1; }
	.ub-footer__top > .ub-footer__col:nth-child(5) { grid-row: 3; grid-column: 2; }
	.ub-footer__top > .ub-footer__col:nth-child(5) .ub-footer__links { columns: auto; }
	.ub-footer__top > .ub-footer__col:nth-child(3) .ub-footer__links { columns: auto; }
}
.ub-footer__col > .ub-footer__consent { margin-block-start: 0; }
/* Long domains wrap at their break points (the ending: functions.php; between words: the patterns), inside a
   word only as a last resort */
.ub-project__name { overflow-wrap: anywhere; }
/* Project cards two a row on phones (the portfolio's grid, core grid layout): less padding and a smaller name,
   so a name keeps about 15 characters a line (batch 4 H2: 8rem left "arhitectinstal.r|o") */
@media (max-width: 599.98px) {
	.is-layout-grid > .ub-project { padding: 0.875rem 0.75rem 1rem; gap: 0.5rem; }
	.is-layout-grid > .ub-project .ub-project__name { font-size: 1rem !important; letter-spacing: -0.01em; }
	.is-layout-grid > .ub-project .ub-project__type { padding: 0.25rem 0.625rem; font-size: 0.8125rem; }
	.is-layout-grid > .ub-project .ub-project__device { margin-block-end: 0.25rem !important; }
}

/* ---- Service pages (round 2, 2026-11-03): patterns service-*, portfolio-shops ------------------ */

/* First screen: breadcrumbs, the price line (hidden with its box while the service has no price:
   ub-site/inc/offers.php), the promise; the layout is the home hero's (above) */
.ub-service-hero h1 { max-inline-size: 14ch; text-wrap: balance; }
.ub-service-hero .ub-lead { max-inline-size: 34rem; }
.ub-crumbs { font-size: var(--wp--preset--font-size--x-small); color: var(--ub-soft); }
.ub-crumbs a { display: inline-flex; align-items: center; min-block-size: 1.5rem; color: inherit; text-decoration: none; }
.ub-crumbs a:hover { color: var(--ub-label); text-decoration: underline; }
.ub-crumbs [aria-current] { color: var(--ub-strong); font-weight: 600; }
.ub-price-line { gap: 0.5rem 0.75rem; }
.ub-price-line > * { margin: 0; }
.ub-price-line__vat { font-size: var(--wp--preset--font-size--small); color: var(--ub-soft); }
p.ub-promise { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--wp--preset--font-size--small); color: var(--ub-soft); }
p.ub-promise::before { margin-block-start: 0.1em; color: var(--ub-label); background: var(--ub-label); }
.ub-service-hero .ub-hero__content > .wp-block-buttons { margin-block-start: 0.25rem; }

/* Grids: four short cards (signs): four a row from 1024 px, two by two below that, one a row on phones (never
   three and a lone one, QA 2-3 m1); two (what it can include) */
.ub-grid--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ub-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ub-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ub-grid--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 782px) { .ub-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ub-sign > p { margin: 0; font-size: var(--wp--preset--font-size--large); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.ub-include > * { margin-block: 0; }
.ub-include > * + * { margin-block-start: 1rem; }
.ub-include h3 { font-size: 1.25rem; }
/* (.ub-sign and .ub-include above: the pages' markup until their generators take the patterns of 2026-11-03) */

/* Signs, after Gomag's (Tomi, 2026-11-03; patterns/service-signs.php): a two-line H2 (its first line highlighted)
   beside a short paragraph, then three tall white cards: label, title, text, and a round arrow at the top right
   that is the card's link (its words are for screen readers: the link covers the card, its text indented away). */
.ub-signs__head { display: grid; gap: 1rem clamp(2rem, 6vw, 5rem); margin-block-end: var(--wp--preset--spacing--50); }
.ub-signs__head > * { margin: 0 !important; }
.ub-signs__head h2 { text-wrap: wrap; }
@media (min-width: 960px) { .ub-signs__head { grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem); align-items: end; } }
.ub-signs__cards.ub-grid { grid-template-columns: minmax(0, 1fr); gap: var(--wp--preset--spacing--30); }
@media (min-width: 782px) { .ub-signs__cards.ub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ub-sign-card { display: flex; flex-direction: column; gap: 0.75rem; min-block-size: 17rem; box-sizing: border-box; padding: clamp(1.5rem, 2.5vw, 2.25rem) !important; }
.ub-sign-card > * { margin: 0 !important; }
.ub-sign-card > .is-style-ub-eyebrow { padding-inline-end: 3.5rem; min-block-size: 2.75rem; display: flex; align-items: center; }
.ub-sign-card > h3 { font-size: var(--wp--preset--font-size--x-large); text-wrap: balance; }
.ub-sign-card > p:not(.is-style-ub-eyebrow) { color: var(--ub-soft); }
.ub-sign-card__go a {
	position: absolute; inset: 0; z-index: 1; border-radius: inherit;
	overflow: hidden; white-space: nowrap; text-indent: 200%; color: transparent;
}
.ub-sign-card__go a::before, .ub-sign-card__go a::after {
	content: ""; position: absolute; inset-block-start: clamp(1.5rem, 2.5vw, 2.25rem); inset-inline-end: clamp(1.5rem, 2.5vw, 2.25rem);
	inline-size: 2.75rem; block-size: 2.75rem; border-radius: 50%;
}
.ub-sign-card__go a::before { background: var(--wp--preset--color--tint); }
.ub-sign-card__go a::after {
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--ub-i-arrow-right) center / 1.25rem no-repeat; mask: var(--ub-i-arrow-right) center / 1.25rem no-repeat;
}
.ub-sign-card:hover .ub-sign-card__go a::before { background: var(--wp--preset--color--primary); }
.ub-sign-card:hover .ub-sign-card__go a::after { background: var(--wp--preset--color--on-primary); }
.ub-sign-card__go a:focus-visible { outline: 2px solid var(--ub-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
	html:not([data-ub-motion="off"]) .ub-sign-card__go a::after { transition: translate 0.2s ease, background-color 0.2s ease; }
	html:not([data-ub-motion="off"]) .ub-sign-card__go a::before { transition: background-color 0.2s ease; }
	html:not([data-ub-motion="off"]) .ub-sign-card:hover .ub-sign-card__go a::after { translate: 0.2rem 0; }
}
@media (max-width: 781.98px) {
	.ub-sign-card { min-block-size: 0; gap: 0.5rem; padding: 1.25rem !important; }
	.ub-sign-card__go a::before, .ub-sign-card__go a::after { inset-block-start: 1.25rem; inset-inline-end: 1.25rem; }
	.ub-sign-card > h3 { font-size: var(--wp--preset--font-size--large); }
}

/* What it can include, after themarketer's (Tomi, 2026-11-03; patterns/service-includes.php): no boxes, three a
   row; each an icon in the primary blue above a title and a short paragraph. Four sit two by two. */
.ub-features { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
.ub-features > * { margin: 0 !important; }
@media (min-width: 600px) { .ub-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ub-features:not(:has(> :nth-child(4):last-child)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ub-feature > * { margin-block: 0; }
.ub-feature > * + * { margin-block-start: 0.625rem; }
.ub-feature > h3 { font-size: var(--wp--preset--font-size--x-large); text-wrap: balance; }
.ub-feature > h3.ub-has-icon { padding-block-start: 3.25rem; }
.ub-feature > h3.ub-has-icon::before { display: none; }
.ub-feature > h3.ub-has-icon::after { inset-block-start: 0; inset-inline-start: 0; inline-size: 2.25rem; block-size: 2.25rem; background: var(--ub-label); }
.ub-feature > p { color: var(--ub-soft); max-inline-size: 30rem; }
.ub-includes .ub-features { margin-block-end: var(--wp--preset--spacing--50); }
@media (max-width: 599.98px) {
	.ub-features { gap: 1.5rem; }
	.ub-feature > h3 { font-size: var(--wp--preset--font-size--large); }
	.ub-feature > h3.ub-has-icon { padding-block-start: 0; padding-inline-start: 2.75rem; min-block-size: 2rem; display: flex; align-items: center; }
	.ub-feature > h3.ub-has-icon::after { inset-block-start: 50%; translate: 0 -50%; inline-size: 1.875rem; block-size: 1.875rem; }
}

/* What isn't included, the levels, the request button (inside the "what it can include" band) */
.ub-includes .wp-block-ub-offer-levels { margin-block-start: var(--wp--preset--spacing--60); }
.ub-excludes {
	display: grid; gap: 0.25rem 2rem; margin-block-start: var(--wp--preset--spacing--40);
	padding: 1.25rem 1.5rem; border: 1.5px dashed color-mix(in srgb, var(--wp--preset--color--muted) 40%, transparent); border-radius: var(--ub-radius);
}
.ub-excludes > * { margin: 0; }
.ub-excludes__title { font-size: var(--wp--preset--font-size--medium); }
.ub-excludes p { color: var(--ub-soft); }
@media (min-width: 782px) { .ub-excludes { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; } }
.ub-includes__actions { margin-block-start: var(--wp--preset--spacing--40); }

/* Who it's for, and who it isn't */
.ub-fit__grid { display: grid; gap: var(--wp--preset--spacing--30); }
@media (min-width: 782px) { .ub-fit__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ub-fit__grid > * { margin: 0 !important; }
.ub-fit__yes > *, .ub-fit__no > * { margin-block: 0; }
.ub-fit__yes > * + *, .ub-fit__no > * + * { margin-block-start: 1rem; }
.ub-fit__no .ub-has-icon { --ub-disc: var(--wp--preset--color--surface); --ub-disc-ink: var(--wp--preset--color--muted); }

/* It's yours: one wide soft card, the heading with its key beside the promises */
.ub-own__card { display: grid; gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); padding: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .ub-own__card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.ub-own__card > * { margin: 0 !important; }
.ub-own__head > *, .ub-own__body > * { margin-block: 0; }
.ub-own__body > * + * { margin-block-start: 1.25rem; }
.ub-own__head .ub-has-icon { padding-block-start: 5rem; }
.ub-own__head .ub-has-icon::before { inline-size: 4rem; block-size: 4rem; }
.ub-own__head .ub-has-icon::after { inset-block-start: 1rem; inset-inline-start: 1rem; inline-size: 2rem; block-size: 2rem; }
.ub-own__body .is-style-ub-checks { font-weight: 600; }

/* Related services: whole-card links with their "de la" price (hidden while there is none) */
.ub-related__card { display: flex; flex-direction: column; gap: 0.5rem; padding-block-end: 4rem !important; }
.ub-related__card > * { margin: 0; }
.ub-related__name { font-size: 1.25rem; }
.ub-related__name a { color: var(--ub-strong); text-decoration: none; }
.ub-related__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link */
.ub-related__card:hover .ub-related__name a { color: var(--ub-label); }
.ub-related__line { color: var(--ub-soft); }
.ub-related__card::after {
	content: ""; position: absolute; inset-inline-start: clamp(1rem, 3vw, 2rem); inset-block-end: 1.5rem;
	inline-size: 1.5rem; block-size: 1.5rem; background: var(--ub-label);
	-webkit-mask: var(--ub-i-arrow-right) center / contain no-repeat; mask: var(--ub-i-arrow-right) center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
	html:not([data-ub-motion="off"]) .ub-related__card::after { transition: translate 0.2s ease; }
	html:not([data-ub-motion="off"]) .ub-related__card:hover::after { translate: 0.25rem 0; }
}

/* An honest answer: text beside a summary card */
.ub-explainer__cols { gap: var(--wp--preset--spacing--60); }
.ub-explainer__text > *, .ub-explainer__card > * { margin-block: 0; }
.ub-explainer__text > * + * { margin-block-start: 1.25rem; }
.ub-explainer__text > h2 { margin-block-start: 0.75rem; }
.ub-explainer__card > * + * { margin-block-start: 1rem; }

/* Phones: shorter cards, the icon beside the title or sentence instead of above it; the four signs as a
   compact list; related services with the arrow on the right */
@media (max-width: 599.98px) {
	.ub-grid--4 { gap: 0.5rem; }
	.ub-sign { padding: 1rem 1.25rem !important; }
	.ub-sign .ub-has-icon { font-size: var(--wp--preset--font-size--medium); }
	:is(.ub-sign, .ub-include, .ub-fit__grid, .ub-related__card) .ub-has-icon { padding-block-start: 0; padding-inline-start: 3.25rem; min-block-size: 2.5rem; display: flex; align-items: center; }
	:is(.ub-sign, .ub-include, .ub-fit__grid, .ub-related__card) .ub-has-icon::before { inset-block-start: 50%; translate: 0 -50%; inline-size: 2.5rem; block-size: 2.5rem; }
	:is(.ub-sign, .ub-include, .ub-fit__grid, .ub-related__card) .ub-has-icon::after { inset-block-start: 50%; translate: 0 -50%; inset-inline-start: 0.5rem; inline-size: 1.5rem; block-size: 1.5rem; }
	.ub-related__card { padding-block-end: var(--wp--preset--spacing--40) !important; padding-inline-end: 3.5rem !important; }
	.ub-related__card::after { inset-inline: auto 1.25rem; inset-block: 50% auto; translate: 0 -50%; }
}
@media (max-width: 599.98px) and (prefers-reduced-motion: no-preference) {
	html:not([data-ub-motion="off"]) .ub-related__card:hover::after { translate: 0.25rem -50%; }
}

/* ---- QA fixes, round 2 batch 1 (2026-11-03, log/agents/2026-11-03-qa-reviewer-batch1/) ------------- */

/* #formular is the navy card's content (ub/form-band): its scroll margin is the card's inner padding, so a
   jump shows the card's top right under the header (html's scroll-padding: the header + 1rem) */
.ub-form-band__cols { scroll-margin-top: var(--ub-band-in); }

/* First screens: the two buttons share a line, or each takes the whole line (never one long, one short):
   the row is as wide as its buttons while they fit, the content's width once they wrap */
:is(.ub-home-hero, .ub-service-hero) .ub-hero__content > .wp-block-buttons > .wp-block-button { flex: 1 1 auto; }
:is(.ub-home-hero, .ub-service-hero) .ub-hero__content > .wp-block-buttons > .wp-block-button > .wp-block-button__link { inline-size: 100%; box-sizing: border-box; }

/* The proof line ("5,0 ★ din 22 de recenzii Google · noiembrie 2026 · 80+ proiecte din 2021"): each item
   whole on its line; the dot shows only between two items on the same line (an item that starts a line has
   its dot outside the box, clipped) */
.ub-proof:has(> .ub-proof__item) { display: flex; flex-wrap: wrap; gap: 0.2em 1.1em; overflow: clip; }
.ub-proof > .ub-proof__item { position: relative; display: block; white-space: nowrap; }
.ub-proof > .ub-proof__item + .ub-proof__item::before { content: "·"; position: absolute; inset-inline-start: -0.75em; }
.ub-proof > .ub-proof__strong { font-weight: 600; }

/* Related services: the VAT-inclusive total under the "de la" price (both hidden while there is none);
   three cards side by side, or one under the other (never two and a lone one) */
.ub-related__vat { font-size: var(--wp--preset--font-size--small); color: var(--ub-soft); }
.ub-related .ub-grid--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .ub-related .ub-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Form band on the narrowest phones (360 px): the phone and WhatsApp numbers stay on one line in their column */
@media (max-width: 379.98px) {
	.ub-contact-fact .is-style-ub-link > .wp-block-button__link { font-size: 1rem; }
}

/* ---- /integrari/ (2026-11-03, log/agents/2026-11-03-theme-developer-integrations/) ------------------------- */

/* "Nu găsești ce folosești?" closes the list: its text on the left, the button and the arrow link on the right
   while they fit beside it, under it otherwise */
.ub-int-ask { margin-block-start: var(--wp--preset--spacing--30); gap: 1rem 2.5rem; }
.ub-int-ask > .ub-int-ask__text { flex: 1 1 28rem; max-inline-size: 46rem; }
.ub-int-ask__text > * { margin-block: 0; }
.ub-int-ask__text > * + * { margin-block-start: 0.5rem; }
.ub-int-ask__text p { color: var(--ub-soft); }
.ub-int-ask__actions { gap: 0.5rem 1.5rem; }

/* ---- Whole-site QA fixes (2026-11-03, log/agents/2026-11-03-qa-reviewer-site/) ------------------------------ */

/* The open phone and tablet menu ends with the phone bar's three buttons (patterns/nav-actions.php, added by
   functions.php), held at the bottom of the screen while the list scrolls under them: the overlay covers the
   header's "Cere ofertă" and the phone bar (QA site m2). Hidden while the menu sits in the bar (desktop). The
   menu's own "Sună" item (content/menus/main-menu.html) gives way to them. */
.ub-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .ub-nav__actions { display: none; }
.ub-nav .wp-block-navigation__responsive-container.is-menu-open li.ub-nav__call.wp-block-navigation-item { display: none; } /* above core's .is-menu-open … .wp-block-navigation-item { display: flex } */
.ub-nav .is-menu-open .wp-block-buttons.ub-nav__actions {
	position: sticky; inset-block-end: 0; z-index: 2;
	display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 0.5rem;
	align-self: stretch; box-sizing: border-box; inline-size: auto;
	margin: 1.5rem calc(-1 * var(--wp--style--root--padding-right)) 0 calc(-1 * var(--wp--style--root--padding-left));
	padding: 0.75rem var(--wp--style--root--padding-right) calc(0.75rem + env(safe-area-inset-bottom, 0px)) var(--wp--style--root--padding-left);
	background: var(--wp--preset--color--base); border-block-start: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 -10px 28px -20px rgb(0 35 74 / 0.4);
}
.ub-nav__actions .wp-block-button { inline-size: auto; margin: 0; }
.ub-nav__actions .wp-block-button > .wp-block-button__link {
	box-sizing: border-box; inline-size: 100%; min-block-size: 3rem; padding: 0.5rem 0.75rem; justify-content: center;
	font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; white-space: nowrap;
}
.ub-nav__actions .is-style-ub-link > .wp-block-button__link {
	color: var(--wp--preset--color--ink); border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--base);
}
.ub-nav__actions .is-style-ub-link > .wp-block-button__link:hover { text-decoration: none; background: var(--wp--preset--color--surface); }
@media (max-width: 399.98px) {
	.ub-nav .is-menu-open .wp-block-buttons.ub-nav__actions { gap: 0.375rem; }
	.ub-nav__actions .wp-block-button > .wp-block-button__link { padding-inline: 0.5rem; font-size: 0.875rem; gap: 0.3em; }
}
/* Tablets: the three keep the phone bar's sizes, on the left like the menu */
@media (min-width: 600px) {
	.ub-nav .is-menu-open .wp-block-buttons.ub-nav__actions { grid-template-columns: 9.5rem 9.5rem 13rem; }
}
/* Phones under 430 px: one service a line, so no name wraps ("Site de / prezentare" at 360, "Software la /
   comandă" at 390 and 414); the action row stays on screen while the longer list scrolls under it */
@media (max-width: 429.98px) {
	.ub-nav .wp-block-navigation__responsive-container.is-menu-open li.ub-mega__group > .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container { grid-template-columns: minmax(0, 1fr); }
}

/* /portofoliu/'s project grids (core grid, four a row with a 9.5rem minimum): two a row on phones and up to 700 px, three on
   tablets and small laptops, four from 1024 px, so a card never drops to ~165 px with its chip and name wrapping
   (QA site m3). The "Vezi site-ul" links line up at the card's foot. */
.ub-work-grid.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .ub-work-grid.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ub-work-grid.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ub-work-grid .ub-project > .ub-project__link { margin-block-start: auto !important; }

/* Pages on the default template (the legal pages): the breadcrumb above the title, as on every other page */
.ub-page-crumbs + .wp-block-post-title { margin-block-start: 1rem; }

/* The legal pages' table of contents (a card: "Cuprins" and a numbered list of links to the headings): each link a
   24 px target or taller, with room between them (QA site p: 22 px, stacked) */
.is-style-ub-card:has(> .is-style-ub-eyebrow + ol) > ol > li + li { margin-block-start: 0.25rem; }
.is-style-ub-card:has(> .is-style-ub-eyebrow + ol) > ol > li > a { display: inline-block; padding-block: 0.25rem; }

/* 404: the search, then the main ways on (services, portfolio, contact) as a list of arrow links, then the
   request button (to /contact/#formular: ub-site/inc/forms.php) */
.ub-404 > .ub-lead { margin-block-start: 1rem; }
.ub-404 .wp-block-search { max-inline-size: 34rem; margin-block-start: var(--wp--preset--spacing--40); }
.ub-404__title { margin-block-start: var(--wp--preset--spacing--50) !important; }
.ub-404__links {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0 2rem;
	margin-block-start: 1rem; border-block-start: 1px solid var(--wp--preset--color--line);
}
.ub-404__links > li { margin: 0; border-block-end: 1px solid var(--wp--preset--color--line); }
.ub-404__links a {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 3.25rem;
	color: var(--ub-strong); font-weight: 600; text-decoration: none;
}
.ub-404__links a::after {
	content: ""; flex: none; inline-size: 1.25rem; block-size: 1.25rem; background: var(--ub-label);
	-webkit-mask: var(--ub-i-arrow-right) center / contain no-repeat; mask: var(--ub-i-arrow-right) center / contain no-repeat;
}
.ub-404__links a:hover { color: var(--ub-label); }
.ub-404__actions { margin-block-start: var(--wp--preset--spacing--50) !important; }
/* The lead and the search are narrower than the column: on its left edge, under the H1 (the constrained layout
   would centre them) */
.ub-404 > :is(.ub-lead, .wp-block-search) { margin-inline: max(0px, (100% - var(--wp--style--global--content-size)) / 2) auto !important; }

/* ---- Safe areas (User, 2026-11-03: on iPhones the phone bar's buttons stood on the home indicator) ------------
   The page runs to the screen's edges (viewport-fit=cover, functions.php), so what touches an edge keeps clear of
   the notch, the rounded corners and the home indicator itself: env(safe-area-inset-*) is 0 everywhere else. The
   root padding (every constrained section's sides, the header's, the open menu's) grows to the side insets in
   landscape; the phone bar, the menu's pinned buttons and the footer add the bottom inset under their content,
   their background reaching the edge. The header keeps clear of a status bar the page runs under (a home-screen
   app). Third-party fixed boxes move in by margins (added to their own offsets): WP Chat App's bubble and its
   chat box. UB Kit's cookie banner keeps clear by itself (its consent.css, 1.21.0). */
html body {
	--wp--style--root--padding-right: max(var(--wp--preset--spacing--40), env(safe-area-inset-right, 0px));
	--wp--style--root--padding-left: max(var(--wp--preset--spacing--40), env(safe-area-inset-left, 0px));
}
header.wp-block-template-part { padding-block-start: env(safe-area-inset-top, 0px); }
@media (min-width: 782px) { /* under 782 px the phone bar's room has it (above) */
	.ub-footer.ub-footer { padding-block-end: calc(var(--wp--preset--spacing--40) + env(safe-area-inset-bottom, 0px)) !important; }
}
#wa .wa__btn_popup, #wa .wa__popup_chat_box { margin: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
