/*
 * Reusable UI components.
 */

.btn {
	display: inline-block;
	padding: 18px;
	font-family: var(--font-body);
	font-size: 15px;
	text-decoration: none;
	background: var(--color-black);
	color: var(--color-white);
	border: none;
	cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
	background: var(--color-near-black);
}

/* Underline treatment: real marker graphic behind the highlighted phrase */
.highlight {
	position: relative;
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: 100% auto;
	padding: 0 2px;
}

/* Service cards: two-column (heading | description), sticky-stacking */
.service-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	background: var(--color-black);
	border: 1px solid var(--color-border);
	padding: var(--space-lg);
	position: sticky;
	top: 0;
	margin-bottom: var(--space-lg);
}

.service-card__title {
	flex: 1;
	font-size: 26px;
	font-weight: 700;
	color: var(--color-white);
	margin: 0;
}

.service-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.service-card__description {
	color: var(--color-text-service);
	margin: 0;
}

.service-card__price {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-white);
	margin: 0;
}

/* Skills ticker */
.skills-ticker__tag {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
	color: var(--color-near-black);
	white-space: nowrap;
}

/* Meta chips (project carousel) */
.meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--color-white);
	font-size: 14px;
}

/* Experience accordion toggle */
.experience-entry__toggle {
	background: none;
	border: none;
	color: var(--color-white);
	cursor: pointer;
	padding: var(--space-xs) 0;
	font-size: 18px;
	line-height: 1;
}

.experience-entry__toggle[aria-expanded="true"] .experience-entry__toggle-icon {
	transform: rotate(180deg);
	display: inline-block;
}

/* Contact section */
.contact__details {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.contact__email a,
.contact__linkedin a {
	color: var(--color-white);
	text-decoration: none;
}

.contact__location {
	color: var(--color-text-muted);
}

/* Content lightbox: click-to-enlarge for images inside case study /
 * project body content (see main.js's initContentLightbox()). A single
 * shared overlay reused for every image, built once in JS rather than
 * markup repeated per page. [hidden] needs its own override since the
 * unconditional display:flex below would otherwise beat the UA
 * stylesheet's [hidden]{display:none} on specificity/source order --
 * same fix already used by .background-overlay.
 */
.content-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(0, 0, 0, 0.92);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.content-lightbox[hidden] {
	display: none;
}

.content-lightbox.is-open {
	opacity: 1;
}

.content-lightbox__image {
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	transform: scale(0.96);
	transition: transform 0.3s ease;
}

.content-lightbox.is-open .content-lightbox__image {
	transform: scale(1);
}

.content-lightbox__close {
	position: absolute;
	top: 24px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--color-border-soft);
	border-radius: 50%;
	color: var(--color-white);
	cursor: pointer;
}

.content-lightbox__close:hover,
.content-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.16);
}

.case-study__content .wp-block-image.has-lightbox img,
.project__content .wp-block-image.has-lightbox img {
	cursor: zoom-in;
}

@media (prefers-reduced-motion: reduce) {
	.content-lightbox,
	.content-lightbox__image {
		transition: none;
	}
}
