/*
 * RRPS Components — shared primitives.
 *
 * Loaded only as a dependency of a component stylesheet (services,
 * industries, projects, testimonials), never globally. Buttons, chips and
 * icon wrappers exactly as specified in the Figma design system. All
 * colours come from the tokens in theme.css (:root --rrps-*).
 */

/* ---- Buttons ---- */

.rrps-btn.rrps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 8px 16px 8px 20px;
	border: 1px solid transparent;
	border-radius: var(--rrps-radius-btn, 12px);
	background: var(--rrps-navy);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rrps-btn.rrps-btn:hover,
.rrps-btn.rrps-btn:focus-visible {
	background: var(--rrps-blue);
	color: #fff;
	text-decoration: none;
}

.rrps-btn:focus-visible {
	outline: 2px solid var(--rrps-teal-light);
	outline-offset: 2px;
}

.rrps-btn .rrps-icon-svg {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.rrps-btn:hover .rrps-icon-svg {
	transform: translate(1px, -1px);
}

/* Dark teal — used on the light (expanded) service card. */
.rrps-btn.rrps-btn--teal {
	background: var(--rrps-teal-dark);
}

.rrps-btn.rrps-btn--teal:hover,
.rrps-btn.rrps-btn--teal:focus-visible {
	background: var(--rrps-blue);
}

/* Light blue "ice" — small, on imagery (View Project). */
.rrps-btn.rrps-btn--ice {
	min-height: 32px;
	padding: 4px 20px;
	border-color: rgba(186, 194, 202, 0.28);
	background: var(--rrps-ice);
	color: var(--rrps-navy);
	font-size: 14px;
	font-weight: 500;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.rrps-btn.rrps-btn--ice:hover,
.rrps-btn.rrps-btn--ice:focus-visible {
	border-color: var(--rrps-navy);
	background: var(--rrps-navy);
	color: #fff;
}

/* Translucent glass on imagery. */
.rrps-btn.rrps-btn--glass {
	min-height: 32px;
	padding: 4px 20px;
	border-color: rgba(186, 194, 202, 0.28);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.rrps-btn.rrps-btn--glass:hover,
.rrps-btn.rrps-btn--glass:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* ---- Chips (tags) ---- */

.rrps-chip {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 32px;
	padding: 4px 20px;
	border: 1px solid rgba(186, 194, 202, 0.28);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.rrps-chip--navy {
	border-color: rgba(14, 43, 71, 0.1);
	background: rgba(14, 43, 71, 0.4);
}

/* ---- Eyebrow pill + section heading (shortcode-rendered sections) ---- */

.rrps-section-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.rrps-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--rrps-gray-100);
	border-radius: 12px;
	background: #fff;
	color: var(--rrps-teal-dark);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.rrps-eyebrow__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rrps-blue);
}

.rrps-section-head .rrps-section-head__title {
	margin: 0;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--rrps-teal-dark);
}

.rrps-section-head .rrps-section-head__title em {
	font-style: normal;
	color: var(--rrps-navy);
}

/* On the gradient: teal-light heading, white accent. */
.rrps-section-head--dark .rrps-section-head__title {
	color: var(--rrps-teal-light);
}

.rrps-section-head--dark .rrps-section-head__title em {
	color: #fff;
}

.rrps-section-head--center {
	align-items: center;
	text-align: center;
}

@media (max-width: 1024px) {
	.rrps-section-head .rrps-section-head__title {
		font-size: 34px;
	}
}

@media (max-width: 767px) {
	.rrps-section-head .rrps-section-head__title {
		font-size: 28px;
	}
}

/* ---- Icons ---- */

.rrps-icon-svg {
	display: block;
	flex: 0 0 auto;
}

.rrps-icon-img {
	display: block;
	object-fit: contain;
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
	.rrps-btn,
	.rrps-btn .rrps-icon-svg {
		transition: none;
	}

	.rrps-btn:hover .rrps-icon-svg {
		transform: none;
	}
}
