/* Pieces used by more than one block. Loaded as a dependency, never on its own. */

.ccb-overline {
	margin: 0;
	color: var(--wp--custom--color--text--link);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--label-sm);
	font-weight: 600;
	line-height: var(--wp--custom--leading--overline);
	letter-spacing: var(--wp--custom--tracking--overline);
	text-transform: uppercase;
}

/* Figma ChecklistItem (2019:71): 20px check + Body/Base. */
.ccb-checklist {
	display: grid;
	gap: var(--wp--preset--spacing--4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ccb-checklist li {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	color: var(--wp--custom--color--text--default);
	font-size: var(--wp--preset--font-size--body-base);
	line-height: var(--wp--custom--leading--body-base);
}

.ccb-checklist__icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--wp--custom--color--text--link);
}

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

html.ccb-lock {
	overflow: hidden;
}

/* Buttons on dark / brand surfaces (Figma "Surface/Brand" mode of Button). */
.wp-block-button.is-on-dark > .wp-block-button__link.wp-element-button {
	--cc-btn-fg: var(--wp--preset--color--primary-800);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-800);
}

.wp-block-button.is-on-dark > .wp-block-button__link.wp-element-button:hover {
	background-color: var(--wp--preset--color--primary-50);
}

.wp-block-button.is-on-dark > .wp-block-button__link.wp-element-button:active {
	background-color: var(--wp--preset--color--primary-100);
}

.wp-block-button.is-style-outline.is-on-dark > .wp-block-button__link.wp-element-button {
	--cc-btn-fg: var(--wp--preset--color--white);
	background-color: transparent;
	color: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--white);
}

.wp-block-button.is-style-outline.is-on-dark > .wp-block-button__link.wp-element-button:hover {
	background-color: rgb(255 255 255 / 0.1);
}

.wp-block-button.is-style-outline.is-on-dark > .wp-block-button__link.wp-element-button:active {
	background-color: rgb(255 255 255 / 0.18);
}

.wp-block-button.is-on-dark > .wp-block-button__link.wp-element-button:focus-visible {
	outline-color: var(--wp--preset--color--primary-300);
}

.ccb-btn-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.ccb-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--3);
}

.ccb-buttons .wp-block-button__link {
	text-decoration: none;
}

/* Section container: 1320px max, root side padding. */
.ccb-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size, 1320px) + var(--wp--style--root--padding-left, 20px) + var(--wp--style--root--padding-right, 20px));
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left, 20px) var(--wp--style--root--padding-right, 20px);
}

/* Sections are full-bleed inside constrained post content. */
.ccb-section {
	margin-block: 0 !important;
}

/* Section rhythm: Figma section-padding-y 64 / container 96 (=root padding at 1512). */
.ccb-pad {
	padding-block: var(--wp--preset--spacing--16);
}

@media (max-width: 767px) {
	.ccb-pad {
		padding-block: var(--wp--preset--spacing--12);
	}
}

.ccb-bg-surface {
	background: var(--wp--custom--color--bg--surface);
}

.ccb-bg-page {
	background: var(--wp--custom--color--bg--page);
}

.ccb-bg-strong {
	background: var(--wp--custom--color--bg--surface-strong);
}

/* Section header: eyebrow + H2 left (820px), outline button bottom-right. */
.ccb-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--6);
}

.ccb-head__text {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 820px;
}

.ccb-head__text > * {
	margin: 0;
}

.ccb-h2 {
	margin: 0;
	color: var(--wp--custom--color--text--default);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: 400;
	line-height: var(--wp--custom--leading--h-2);
	letter-spacing: var(--wp--custom--tracking--tight);
}

.ccb-head__intro {
	color: var(--wp--custom--color--text--secondary);
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: var(--wp--custom--leading--body-lg);
}

@media (max-width: 767px) {
	.ccb-h2 br {
		display: none;
	}
}

/* Figma LinkArrow: Label/Large green + 20px arrow. */
.ccb-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	color: var(--wp--custom--color--text--link);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	line-height: var(--wp--custom--leading--label-lg);
	text-decoration: none;
}

.ccb-link-arrow svg {
	width: 20px;
	height: 20px;
	transition: transform 150ms ease;
}

a.ccb-link-arrow:hover,
.ccb-card:hover .ccb-link-arrow {
	color: var(--wp--custom--color--text--link-hover);
}

a.ccb-link-arrow:hover svg,
.ccb-card:hover .ccb-link-arrow svg {
	transform: translateX(3px);
}

/* Card base: white, subtle border, radius 24, Shadow/sm. Whole card clickable via .ccb-stretch. */
.ccb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--wp--custom--color--border--subtle);
	border-radius: var(--wp--custom--radius--modal);
	background: var(--wp--custom--color--bg--page);
	box-shadow: var(--wp--preset--shadow--sm);
	transition: box-shadow 200ms ease;
}

.ccb-card:hover {
	box-shadow: var(--wp--preset--shadow--md);
}

.ccb-card p,
.ccb-card h3 {
	margin: 0;
}

.ccb-stretch {
	color: inherit;
	text-decoration: none;
}

.ccb-stretch::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ccb-stretch:focus-visible {
	outline: none;
}

.ccb-stretch:focus-visible::after {
	outline: 2px solid var(--wp--custom--color--border--focus);
	outline-offset: -2px;
	border-radius: var(--wp--custom--radius--modal);
}

.ccb-stretch:hover {
	text-decoration: none;
}

/* Icon pill (Figma icon-pill): 46px round, surface or accent tint. */
.ccb-pill {
	display: inline-flex;
	flex: none;
	align-self: flex-start;
	padding: var(--wp--preset--spacing--3);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--custom--color--bg--surface);
	color: var(--wp--custom--color--icon--default);
}

.ccb-pill--accent {
	background: var(--wp--preset--color--accent-50);
	color: var(--wp--preset--color--accent-600);
}

.ccb-pill svg {
	width: 22px;
	height: 22px;
}

/* Reveal on scroll (assets/js/reveal.js adds .ccb-reveal only when JS runs and motion is allowed). */
.ccb-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--ccb-reveal-delay, 0ms);
}

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

/* Elements that animate their own transform keep it after reveal. */
.ccb-reveal.is-revealed.ccb-step,
.ccb-reveal.is-revealed.ccb-qlink {
	transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1), flex-grow 450ms cubic-bezier(0.2, 0.7, 0.2, 1), flex-basis 450ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms ease;
}

.ccb-reveal.is-revealed.ccb-qlink:hover {
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.ccb-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Anchor jumps (#echipa, #locatie…) land below the sticky header. */
.ccb-section[id] {
	scroll-margin-top: calc(var(--ccb-header-h, 100px) + var(--wp-admin--admin-bar--height, 0px));
}

html {
	scroll-behavior: smooth;
}

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

/* Glass card (Figma "Glass · …") — used by showcase, photo CTA, hero split. */
.ccb-glass {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: var(--wp--preset--spacing--5);
	border: 1px solid rgb(255 255 255 / 0.6);
	border-radius: var(--wp--custom--radius--modal);
	background: rgb(255 255 255 / 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.ccb-glass p,
.ccb-glass ul {
	margin: 0;
}

/* Glass card link list (showcase, hero split). */
.ccb-glass__list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	padding: 0;
	list-style: none;
}

.ccb-glass__list li {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	color: var(--wp--custom--color--text--secondary);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: var(--wp--custom--leading--body-sm);
}

.ccb-glass__list a {
	color: inherit;
	text-decoration: none;
}

.ccb-glass__list a:hover {
	color: var(--wp--custom--color--text--link);
	text-decoration: underline;
}

.ccb-glass__icon {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--wp--custom--color--text--link);
}

/* Accordion caret turns back as soon as an item starts closing (assets/js/accordion.js). */
details.is-closing > summary svg {
	transform: none !important;
	color: inherit !important;
}

/* Glass progress steps (showcase, hero split badge) */
.ccb-glass__title {
	color: var(--wp--custom--color--text--default);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	line-height: var(--wp--custom--leading--label-lg);
}

.ccb-glass__step {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ccb-glass__label {
	flex: none;
	width: 70px;
	color: var(--wp--custom--color--text--secondary);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: var(--wp--custom--leading--body-sm);
}

.ccb-glass__track {
	position: relative;
	flex: 1;
	height: 6px;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--custom--color--bg--surface-strong);
}

.ccb-glass__track span {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: 3px;
	background: var(--wp--preset--color--secondary-600);
}

/* Filter tabs (Figma Pattern · Filtre 2127:14172) */
.ccb-filterbar {
	margin-bottom: var(--wp--preset--spacing--16);
}

.ccb-filter {
	display: inline-flex;
	max-width: 100%;
	gap: 4px;
	padding: 6px;
	overflow-x: auto;
	border: 1px solid var(--wp--custom--color--border--subtle);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white, #fff);
	box-shadow: var(--wp--preset--shadow--sm, 0 1px 2px rgb(15 23 42 / 0.06));
	scrollbar-width: none;
}

.ccb-filter::-webkit-scrollbar {
	display: none;
}

.ccb-filter__tab {
	flex: none;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--custom--color--text--secondary);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 600;
	line-height: 24px;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ccb-filter__tab:hover {
	color: var(--wp--custom--color--text--default);
}

.ccb-filter__tab.is-active {
	background: var(--wp--custom--color--fill--primary, var(--wp--preset--color--primary-900));
	color: #fff;
}

.ccb-filter__tab:focus-visible {
	outline: 2px solid var(--wp--custom--color--text--link);
	outline-offset: 2px;
}

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