/*
Theme Name: UPRS Corporate
Theme URI: https://uprs-iraqoil.com/
Author: UPRS
Description: Bilingual, accessible corporate theme for UPRS.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: uprs-corporate
*/

:root {
	--uprs-navy: #071a24;
	--uprs-navy-raised: #0b2531;
	--uprs-orange: #f36b21;
	--uprs-orange-strong: #d95612;
	--uprs-cream: #f3f0e9;
	--uprs-canvas: #f7f5ef;
	--uprs-surface: #ffffff;
	--uprs-surface-soft: #eeeae1;
	--uprs-ink: #10232d;
	--uprs-muted: #5d6f78;
	--uprs-line: #d5dad6;
	--uprs-header: rgba(255, 255, 255, 0.95);
	--uprs-on-dark: #f8faf9;
	--uprs-on-dark-muted: #b4c0c5;
	--uprs-focus: #ff8a47;
	--uprs-shadow: 0 24px 65px rgba(7, 26, 36, 0.12);
	--uprs-content: 760px;
	--uprs-wide: 1180px;
	--uprs-header-height: 5.5rem;
	--uprs-radius: 0.3rem;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--uprs-canvas: #06151d;
	--uprs-surface: #0b202a;
	--uprs-surface-soft: #102b36;
	--uprs-ink: #eef3f1;
	--uprs-muted: #a8b5ba;
	--uprs-line: #29404a;
	--uprs-header: rgba(6, 21, 29, 0.95);
	--uprs-shadow: 0 24px 65px rgba(0, 0, 0, 0.34);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--uprs-canvas: #06151d;
		--uprs-surface: #0b202a;
		--uprs-surface-soft: #102b36;
		--uprs-ink: #eef3f1;
		--uprs-muted: #a8b5ba;
		--uprs-line: #29404a;
		--uprs-header: rgba(6, 21, 29, 0.95);
		--uprs-shadow: 0 24px 65px rgba(0, 0, 0, 0.34);
		color-scheme: dark;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	min-width: 20rem;
	margin: 0;
	background: var(--uprs-canvas);
	color: var(--uprs-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body.uprs-lang-ar {
	font-family: Tahoma, Arial, sans-serif;
}

body.nav-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: var(--uprs-orange-strong);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--uprs-orange);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--uprs-focus);
	outline-offset: 3px;
}

::selection {
	background: var(--uprs-orange);
	color: #ffffff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	z-index: 100000;
	top: 1rem;
	inset-inline-start: 1rem;
	width: auto;
	height: auto;
	padding: 0.8rem 1rem;
	clip: auto;
	background: var(--uprs-surface);
	color: var(--uprs-ink);
	font-weight: 800;
	box-shadow: var(--uprs-shadow);
}

.skip-link {
	position: fixed;
	top: -10rem;
}

.site-header {
	z-index: 1000;
	position: sticky;
	top: 0;
	border-bottom: 1px solid var(--uprs-line);
	background: var(--uprs-header);
	backdrop-filter: blur(18px);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	min-height: var(--uprs-header-height);
	max-width: 90rem;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 4.5rem);
	align-items: center;
	gap: 2rem;
}

.site-branding {
	z-index: 2;
	flex: 0 1 19rem;
	min-width: 9rem;
}

.custom-logo-link,
.site-wordmark {
	display: inline-flex;
	align-items: center;
	color: var(--uprs-ink);
	text-decoration: none;
}

.custom-logo-link {
	padding: 0.35rem 0.6rem;
	border: 1px solid rgba(16, 35, 45, 0.12);
	border-radius: 0.2rem;
	background: #ffffff;
}

.custom-logo {
	width: auto;
	max-width: min(19rem, 35vw);
	max-height: 3.7rem;
	object-fit: contain;
}

.site-wordmark {
	gap: 0.75rem;
	font-size: 1.15rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-wordmark::before {
	content: "";
	display: block;
	width: 0.45rem;
	height: 2.35rem;
	background: var(--uprs-orange);
	box-shadow: 0.65rem -0.35rem 0 var(--uprs-orange), 1.3rem 0.25rem 0 var(--uprs-orange);
	transform: skew(-10deg);
	margin-inline-end: 1.4rem;
}

.site-header__panel {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(1rem, 2.5vw, 2.6rem);
}

.admin-bar .site-header__panel {
	inset-block-start: calc(var(--uprs-header-height) + 32px);
}

.primary-navigation ul,
.footer-navigation ul {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 2.1rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a {
	position: relative;
	display: block;
	padding-block: 1.8rem;
	color: var(--uprs-ink);
	font-size: 0.82rem;
	font-weight: 750;
	text-decoration: none;
}

.primary-navigation a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 1.05rem;
	height: 2px;
	background: var(--uprs-orange);
	transform: scaleX(0);
	transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
	transform: scaleX(1);
}

.header-utilities {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.theme-switcher {
	display: inline-flex;
	padding: 0.2rem;
	border: 1px solid var(--uprs-line);
	border-radius: 999px;
	background: var(--uprs-surface-soft);
}

.theme-choice {
	display: inline-grid;
	width: 2rem;
	height: 2rem;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--uprs-muted);
	cursor: pointer;
}

.theme-choice[aria-pressed="true"] {
	background: var(--uprs-surface);
	color: var(--uprs-orange-strong);
	box-shadow: 0 2px 10px rgba(7, 26, 36, 0.12);
}

.language-switch {
	display: inline-flex;
	min-height: 2.65rem;
	padding-inline: 0.9rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--uprs-line);
	border-radius: var(--uprs-radius);
	color: var(--uprs-ink);
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
}

.language-switch:hover {
	border-color: var(--uprs-orange);
}

.language-switch.is-disabled {
	opacity: 0.48;
	cursor: not-allowed;
}

.nav-toggle {
	display: none;
	width: 2.8rem;
	height: 2.8rem;
	margin-inline-start: auto;
	padding: 0.7rem;
	border: 1px solid var(--uprs-line);
	border-radius: var(--uprs-radius);
	background: var(--uprs-surface);
	color: var(--uprs-ink);
	cursor: pointer;
}

.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__lines {
	position: relative;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
}

.nav-toggle__lines::before {
	top: -0.45rem;
}

.nav-toggle__lines::after {
	top: 0.45rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before {
	transform: translateY(0.45rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after {
	transform: translateY(-0.45rem) rotate(-45deg);
}

.site-main {
	display: block;
}

.page-hero,
.listing-hero,
.error-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--uprs-navy);
	color: var(--uprs-on-dark);
}

.page-hero {
	min-height: clamp(32rem, 68vh, 48rem);
}

.page-hero::before,
.listing-hero::before,
.error-hero::before {
	z-index: -2;
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 4rem 4rem;
	mask-image: linear-gradient(90deg, #000 0%, transparent 90%);
}

[dir="rtl"] .page-hero::before,
[dir="rtl"] .listing-hero::before,
[dir="rtl"] .error-hero::before {
	mask-image: linear-gradient(-90deg, #000 0%, transparent 90%);
}

.page-hero::after,
.listing-hero::after,
.error-hero::after {
	z-index: -1;
	content: "";
	position: absolute;
	width: min(62rem, 78vw);
	aspect-ratio: 1;
	inset-block-start: -36%;
	inset-inline-end: -24%;
	border: 1px solid rgba(243, 107, 33, 0.55);
	border-radius: 50%;
	box-shadow: 0 0 0 7rem rgba(243, 107, 33, 0.04), 0 0 0 14rem rgba(243, 107, 33, 0.025);
}

.page-hero__inner,
.listing-hero__inner,
.error-hero__inner {
	position: relative;
	display: grid;
	max-width: var(--uprs-wide);
	min-height: inherit;
	margin-inline: auto;
	padding: clamp(5rem, 11vw, 9.5rem) clamp(1.25rem, 4vw, 3rem);
	align-items: center;
}

.page-hero__copy {
	z-index: 2;
	max-width: 57rem;
}

.page-hero__eyebrow,
.section-eyebrow {
	display: flex;
	margin: 0 0 1.5rem;
	align-items: center;
	gap: 0.75rem;
	color: var(--uprs-orange);
	font-size: 0.73rem;
	font-weight: 850;
	letter-spacing: 0.15em;
	line-height: 1.4;
	text-transform: uppercase;
}

.page-hero__eyebrow::before,
.section-eyebrow::before {
	content: "";
	width: 2.5rem;
	height: 2px;
	background: currentColor;
}

.page-hero h1,
.listing-hero h1,
.error-hero h1 {
	max-width: 16ch;
	margin: 0;
	font-size: clamp(3rem, 7.5vw, 7rem);
	font-weight: 850;
	letter-spacing: -0.055em;
	line-height: 0.98;
	text-wrap: balance;
}

[dir="rtl"] .page-hero h1,
[dir="rtl"] .listing-hero h1,
[dir="rtl"] .error-hero h1 {
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.page-hero__intro {
	max-width: 45rem;
	margin: 2rem 0 0;
	color: var(--uprs-on-dark-muted);
	font-size: clamp(1.05rem, 1.8vw, 1.35rem);
	line-height: 1.65;
	text-wrap: pretty;
}

.page-hero__actions {
	display: flex;
	margin-top: 2.2rem;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.page-hero__monogram {
	z-index: 0;
	position: absolute;
	inset-inline-end: 1.5%;
	inset-block-end: -5%;
	color: rgba(255, 255, 255, 0.035);
	font-size: clamp(9rem, 23vw, 22rem);
	font-weight: 950;
	letter-spacing: -0.13em;
	line-height: 0.7;
	user-select: none;
}

.page-hero__media {
	z-index: -1;
	position: absolute;
	inset: 0;
}

.page-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(7, 26, 36, 0.99) 5%, rgba(7, 26, 36, 0.82) 58%, rgba(7, 26, 36, 0.35));
}

[dir="rtl"] .page-hero__media::after {
	background: linear-gradient(-90deg, rgba(7, 26, 36, 0.99) 5%, rgba(7, 26, 36, 0.82) 58%, rgba(7, 26, 36, 0.35));
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.button,
.wp-element-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	min-height: 3.35rem;
	padding: 0.75rem 1.4rem;
	align-items: center;
	justify-content: center;
	gap: 1.2rem;
	border: 1px solid var(--uprs-orange);
	border-radius: var(--uprs-radius);
	background: var(--uprs-orange);
	color: #ffffff;
	font-size: 0.86rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	border-color: var(--uprs-orange-strong);
	background: var(--uprs-orange-strong);
	color: #ffffff;
	transform: translateY(-2px);
}

.button--ghost {
	border-color: rgba(255, 255, 255, 0.42);
	background: transparent;
	color: #ffffff;
}

.button--ghost:hover {
	border-color: #ffffff;
	background: #ffffff;
	color: var(--uprs-navy);
}

.content-shell,
.services-shell,
.contact-shell,
.listing-shell,
.article-shell,
.error-shell {
	max-width: var(--uprs-wide);
	margin-inline: auto;
	padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.entry-content > * {
	max-width: var(--uprs-content);
	margin-inline: auto;
}

.entry-content > .alignwide {
	max-width: var(--uprs-wide);
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.entry-content > .uprs-section {
	max-width: var(--uprs-wide);
}

.entry-content > * + * {
	margin-top: 1.5rem;
}

.entry-content > :where(h2, h3, h4) {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.card-title,
.post-card__title {
	color: var(--uprs-ink);
	font-weight: 820;
	letter-spacing: -0.035em;
	line-height: 1.15;
	text-wrap: balance;
}

[dir="rtl"] .entry-content h2,
[dir="rtl"] .entry-content h3,
[dir="rtl"] .entry-content h4,
[dir="rtl"] .card-title,
[dir="rtl"] .post-card__title {
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.entry-content h2 {
	font-size: clamp(2.1rem, 4.6vw, 4.2rem);
}

.entry-content h3 {
	font-size: clamp(1.55rem, 2.8vw, 2.4rem);
}

.entry-content p,
.entry-content li {
	color: var(--uprs-muted);
}

.entry-content p {
	font-size: 1.08rem;
}

.entry-content strong {
	color: var(--uprs-ink);
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.4rem;
}

.entry-content li + li {
	margin-top: 0.55rem;
}

.entry-content blockquote,
.wp-block-quote {
	padding: 1.5rem 0 1.5rem 1.6rem;
	border-inline-start: 4px solid var(--uprs-orange);
	font-size: clamp(1.2rem, 2.3vw, 1.75rem);
}

[dir="rtl"] .entry-content blockquote,
[dir="rtl"] .wp-block-quote {
	padding: 1.5rem 1.6rem 1.5rem 0;
}

.wp-block-group.has-background,
.wp-block-columns.has-background,
.wp-block-cover {
	padding: clamp(1.5rem, 4vw, 3.5rem);
	border-radius: var(--uprs-radius);
}

.wp-block-image img,
.wp-block-gallery img,
.entry-content figure img {
	border-radius: var(--uprs-radius);
}

.wp-caption-text,
.wp-element-caption,
.gallery-caption {
	margin-top: 0.65rem;
	color: var(--uprs-muted);
	font-size: 0.82rem;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--uprs-line);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	background: var(--uprs-surface);
}

.entry-content th,
.entry-content td {
	padding: 0.85rem 1rem;
	border: 1px solid var(--uprs-line);
	text-align: start;
}

.entry-content th {
	background: var(--uprs-navy);
	color: #ffffff;
}

.uprs-section {
	padding: clamp(2rem, 5vw, 4.5rem);
	border: 1px solid var(--uprs-line);
	background: var(--uprs-surface);
}

.uprs-section__inner {
	max-width: var(--uprs-wide);
	margin-inline: auto;
}

.uprs-section--cream {
	background: var(--uprs-surface-soft);
}

.uprs-section__intro {
	max-width: 52rem;
	margin-bottom: clamp(2rem, 5vw, 4rem);
	color: var(--uprs-muted);
	font-size: clamp(1.08rem, 2vw, 1.35rem);
	line-height: 1.7;
	text-wrap: pretty;
}

.uprs-section__number {
	display: block;
	margin-bottom: 1rem;
	color: var(--uprs-orange);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.14em;
}

.uprs-section__intro > :first-child {
	margin-top: 0;
}

.uprs-section__intro > :last-child {
	margin-bottom: 0;
}

.uprs-richtext > :first-child {
	margin-top: 0;
}

.uprs-richtext > :last-child {
	margin-bottom: 0;
}

.uprs-richtext > * + * {
	margin-top: 1.2rem;
}

.uprs-grid,
.uprs-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	border: 1px solid var(--uprs-line);
	background: var(--uprs-line);
}

.uprs-grid--2,
.uprs-contact-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.uprs-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.uprs-card,
.uprs-contact-grid > * {
	min-width: 0;
	padding: clamp(1.5rem, 3.5vw, 2.6rem);
	background: var(--uprs-surface);
}

.uprs-card {
	position: relative;
	transition: background-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.uprs-card:hover {
	z-index: 1;
	background: var(--uprs-navy);
	color: #ffffff;
	transform: translateY(-0.35rem);
	box-shadow: var(--uprs-shadow);
}

.uprs-card:hover :where(h2, h3, h4, strong) {
	color: #ffffff;
}

.uprs-card :where(h2, h3, h4) a {
	color: inherit;
	text-decoration: none;
}

.uprs-card:hover a:not(.button):not(.wp-block-button__link) {
	color: #ffffff;
}

.uprs-card:hover :where(p, li) {
	color: var(--uprs-on-dark-muted);
}

.uprs-card__number {
	display: block;
	margin-bottom: clamp(2rem, 5vw, 4rem);
	color: var(--uprs-orange);
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.14em;
}

.uprs-list {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.uprs-list li {
	position: relative;
	margin: 0;
	padding: 0.8rem 1.35rem 0.8rem 0;
	border-top: 1px solid var(--uprs-line);
}

[dir="rtl"] .uprs-list li {
	padding: 0.8rem 0 0.8rem 1.35rem;
}

.uprs-list li::before {
	content: "↗";
	position: absolute;
	inset-inline-end: 0;
	color: var(--uprs-orange);
	font-weight: 900;
}

.uprs-callout {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2rem, 6vw, 5rem);
	background: var(--uprs-navy);
	color: var(--uprs-on-dark);
}

.uprs-callout::after {
	z-index: -1;
	content: "";
	position: absolute;
	width: 28rem;
	aspect-ratio: 1;
	inset-block-start: -14rem;
	inset-inline-end: -10rem;
	border: 1px solid rgba(243, 107, 33, 0.5);
	border-radius: 50%;
	box-shadow: 0 0 0 5rem rgba(243, 107, 33, 0.035), 0 0 0 10rem rgba(243, 107, 33, 0.02);
}

.uprs-callout :where(h2, h3, h4, strong, a) {
	color: var(--uprs-on-dark);
}

.uprs-callout :where(p, li) {
	color: var(--uprs-on-dark-muted);
}

.uprs-callout .button,
.uprs-callout .wp-block-button__link {
	color: #ffffff;
}

#contact-form {
	scroll-margin-top: calc(var(--uprs-header-height) + 2rem);
}

.uprs-contact-form {
	display: grid;
	gap: 1.25rem;
	max-width: 56rem;
}

.uprs-contact-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.uprs-contact-form__field,
.uprs-contact-form__row {
	min-width: 0;
}

.uprs-contact-form__field--full,
.uprs-contact-form__row--full,
.uprs-contact-form__notice,
.uprs-contact-form__status,
.uprs-contact-form__consent,
.uprs-contact-form__actions {
	grid-column: 1 / -1;
}

.uprs-contact-form label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--uprs-ink);
	font-size: 0.86rem;
	font-weight: 800;
}

.uprs-contact-form :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	width: 100%;
}

.uprs-contact-form :where(input, select, textarea)[aria-invalid="true"],
.uprs-contact-form .has-error :where(input, select, textarea),
.uprs-contact-form .is-error :where(input, select, textarea) {
	border-color: #b42318;
	box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.18);
}

.uprs-contact-form__notice,
.uprs-contact-form__status {
	padding: 1rem 1.15rem;
	border-inline-start: 4px solid var(--uprs-orange);
	background: var(--uprs-surface-soft);
	color: var(--uprs-ink);
}

.uprs-contact-form__notice--success,
.uprs-contact-form__status--success,
.uprs-contact-form .is-success {
	border-inline-start-color: #18794e;
	background: #e8f5ee;
	color: #0f5132;
}

.uprs-contact-form__notice--error,
.uprs-contact-form__status--error,
.uprs-contact-form .is-error-message,
.uprs-contact-form__field-error,
.uprs-contact-form .field-error {
	color: #8a1c13;
}

.uprs-contact-form__notice--error,
.uprs-contact-form__status--error,
.uprs-contact-form .is-error-message {
	border-inline-start-color: #b42318;
	background: #fcebea;
}

:root[data-theme="dark"] .uprs-contact-form__notice--success,
:root[data-theme="dark"] .uprs-contact-form__status--success,
:root[data-theme="dark"] .uprs-contact-form .is-success {
	background: #123b2b;
	color: #c7f0d8;
}

:root[data-theme="dark"] .uprs-contact-form__notice--error,
:root[data-theme="dark"] .uprs-contact-form__status--error,
:root[data-theme="dark"] .uprs-contact-form .is-error-message {
	background: #401c19;
	color: #ffd2ce;
}

.uprs-contact-form__field-error,
.uprs-contact-form .field-error {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
}

:root[data-theme="dark"] .uprs-contact-form__field-error,
:root[data-theme="dark"] .uprs-contact-form .field-error {
	color: #ffaaa3;
}

.uprs-contact-form__consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
}

.uprs-contact-form__consent input[type="checkbox"] {
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.2rem;
	accent-color: var(--uprs-orange);
}

.uprs-contact-form__consent label {
	margin: 0;
	font-weight: 600;
}

.uprs-contact-form__honeypot,
.uprs-contact-form .uprs-honeypot,
.uprs-contact-form [data-honeypot] {
	position: absolute !important;
	inset-inline-start: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.uprs-contact-form[aria-busy="true"] {
	opacity: 0.72;
	cursor: progress;
}

.uprs-contact-form[aria-busy="true"] button[type="submit"] {
	pointer-events: none;
}

.uprs-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.uprs-form-grid label,
.uprs-contact-form > label {
	min-width: 0;
}

.uprs-form-help {
	margin: 0;
	color: var(--uprs-muted);
	font-size: 0.82rem;
}

.uprs-form-consent {
	display: grid !important;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
}

.uprs-form-consent input[type="checkbox"] {
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.2rem;
	accent-color: var(--uprs-orange);
}

.uprs-form-consent > span {
	font-weight: 600;
}

.uprs-form-notice {
	margin-bottom: 1.25rem;
	padding: 1rem 1.15rem;
	border-inline-start: 4px solid var(--uprs-orange);
	background: var(--uprs-surface-soft);
	color: var(--uprs-ink);
}

.uprs-form-notice--success {
	border-inline-start-color: #18794e;
	background: #e8f5ee;
	color: #0f5132;
}

.uprs-form-notice--error {
	border-inline-start-color: #b42318;
	background: #fcebea;
	color: #8a1c13;
}

:root[data-theme="dark"] .uprs-form-notice--success {
	background: #123b2b;
	color: #c7f0d8;
}

:root[data-theme="dark"] .uprs-form-notice--error {
	background: #401c19;
	color: #ffd2ce;
}

.uprs-button {
	display: inline-flex;
	min-height: 3.35rem;
	padding: 0.75rem 1.4rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--uprs-orange);
	border-radius: var(--uprs-radius);
	font-size: 0.86rem;
	font-weight: 800;
	cursor: pointer;
}

.uprs-button--primary {
	background: var(--uprs-orange);
	color: #ffffff;
}

.uprs-button--primary:hover {
	border-color: var(--uprs-orange-strong);
	background: var(--uprs-orange-strong);
	color: #ffffff;
}

.service-directory,
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 3rem;
	background: var(--uprs-line);
	border: 1px solid var(--uprs-line);
}

.service-card,
.post-card {
	position: relative;
	display: flex;
	min-height: 28rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	flex-direction: column;
	background: var(--uprs-surface);
	transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.service-card:hover,
.post-card:hover {
	z-index: 1;
	background: var(--uprs-navy);
	color: #ffffff;
	transform: translateY(-0.4rem);
	box-shadow: var(--uprs-shadow);
}

.service-card__number,
.post-card__meta,
.article-meta {
	color: var(--uprs-orange);
	font-size: 0.73rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.service-card__image,
.post-card__image {
	margin: -2.5rem -2.5rem 2rem;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.service-card__image img,
.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.service-card:hover img,
.post-card:hover img {
	transform: scale(1.035);
}

.card-title,
.post-card__title {
	margin: clamp(2rem, 5vw, 4.5rem) 0 1.2rem;
	font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.service-card.has-image .card-title,
.post-card.has-image .post-card__title {
	margin-top: 0;
}

.service-card:hover .card-title,
.post-card:hover .post-card__title,
.service-card:hover .card-title a,
.post-card:hover .post-card__title a {
	color: #ffffff;
}

.card-title a,
.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.service-card__excerpt,
.post-card__excerpt {
	color: var(--uprs-muted);
}

.service-card:hover .service-card__excerpt,
.post-card:hover .post-card__excerpt {
	color: var(--uprs-on-dark-muted);
}

.service-card__link,
.post-card__link {
	display: flex;
	margin-top: auto;
	padding-top: 1.4rem;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--uprs-line);
	color: var(--uprs-orange);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.55fr);
	gap: clamp(2rem, 7vw, 7rem);
}

.contact-layout--single {
	grid-template-columns: 1fr;
}

.contact-details {
	align-self: start;
	background: var(--uprs-navy);
	color: #ffffff;
	box-shadow: var(--uprs-shadow);
}

.contact-detail {
	padding: 1.6rem;
	border-bottom: 1px solid #29404a;
}

.contact-detail:last-child {
	border-bottom: 0;
}

.contact-detail__label {
	display: block;
	margin-bottom: 0.45rem;
	color: var(--uprs-orange);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.contact-detail a,
.contact-detail span {
	color: var(--uprs-on-dark);
	text-decoration: none;
}

.entry-content form,
.contact-form {
	display: grid;
	gap: 1.15rem;
}

.entry-content label,
.contact-form label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--uprs-ink);
	font-size: 0.86rem;
	font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--uprs-line);
	border-radius: var(--uprs-radius);
	background: var(--uprs-surface);
	color: var(--uprs-ink);
}

textarea {
	min-height: 10rem;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--uprs-orange);
	outline: 3px solid color-mix(in srgb, var(--uprs-orange) 30%, transparent);
	outline-offset: 1px;
}

.listing-hero,
.error-hero {
	min-height: 25rem;
}

.listing-hero h1,
.error-hero h1 {
	font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.article-meta {
	margin-bottom: 1rem;
}

.article-navigation,
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	max-width: var(--uprs-content);
	margin: 4rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--uprs-line);
}

.article-navigation a,
.post-navigation a {
	display: block;
	padding: 1.25rem;
	background: var(--uprs-surface);
	color: var(--uprs-ink);
	font-weight: 750;
	text-decoration: none;
}

.article-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
}

.pagination .nav-links {
	display: flex;
	margin-top: 3rem;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.pagination .page-numbers {
	display: grid;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: 0.7rem;
	place-items: center;
	border: 1px solid var(--uprs-line);
	background: var(--uprs-surface);
	color: var(--uprs-ink);
	font-weight: 750;
	text-decoration: none;
}

.pagination .current,
.pagination a:hover {
	border-color: var(--uprs-orange);
	background: var(--uprs-orange);
	color: #ffffff;
}

.error-shell {
	max-width: 48rem;
	text-align: center;
}

.error-shell p {
	color: var(--uprs-muted);
	font-size: 1.15rem;
}

.search-form {
	display: flex;
	max-width: 38rem;
	margin: 2rem auto;
	gap: 0.5rem;
}

.search-form label {
	flex: 1;
}

.site-footer {
	background: #04131a;
	color: #9aabb2;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(10rem, 1fr) auto;
	max-width: 90rem;
	margin-inline: auto;
	padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4.5rem);
	align-items: center;
	gap: 2rem;
}

.site-footer .custom-logo-link,
.site-footer .site-wordmark {
	color: #ffffff;
}

.site-footer .custom-logo {
	max-height: 3.25rem;
}

.site-footer .custom-logo-link {
	padding: 0.35rem 0.55rem;
	background: #ffffff;
}

.site-footer__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2rem;
}

.footer-navigation a {
	color: #c6d0d4;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.site-footer__legal {
	grid-column: 1 / -1;
	display: flex;
	padding-top: 1.5rem;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid #223841;
	font-size: 0.78rem;
}

.site-footer__legal p {
	margin: 0;
}

.no-results {
	padding: 3rem;
	background: var(--uprs-surface);
	text-align: center;
}

@media (max-width: 64rem) {
	:root {
		--uprs-header-height: 4.75rem;
	}

	.admin-bar .site-header {
		top: 32px;
	}

	.site-header__inner {
		position: relative;
		padding-inline: 1.25rem;
	}

	.site-branding {
		flex-basis: auto;
	}

	.custom-logo {
		max-width: min(13rem, 52vw);
		max-height: 3rem;
	}

	.nav-toggle {
		display: block;
	}

	.site-header__panel {
		position: fixed;
		inset: var(--uprs-header-height) 0 auto;
		display: block;
		max-height: calc(100vh - var(--uprs-header-height));
		padding: 1rem 1.25rem 2rem;
		overflow-y: auto;
		border-bottom: 1px solid var(--uprs-line);
		background: var(--uprs-surface);
		box-shadow: var(--uprs-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-0.75rem);
		transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	}

	.nav-open .site-header__panel {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.primary-navigation ul {
		display: block;
	}

	.primary-navigation li + li {
		border-top: 1px solid var(--uprs-line);
	}

	.primary-navigation a {
		padding: 1rem 0;
		font-size: 1rem;
	}

	.primary-navigation a::after {
		display: none;
	}

	.header-utilities {
		margin-top: 1rem;
		padding-top: 1.2rem;
		justify-content: space-between;
		border-top: 1px solid var(--uprs-line);
	}

	.service-directory,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-layout {
		grid-template-columns: 1fr;
	}

	.uprs-grid--3,
	.uprs-grid,
	.uprs-contact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-details {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-detail:nth-last-child(2):nth-child(odd) {
		border-bottom: 0;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-footer__nav {
		justify-content: flex-start;
	}
}

@media (max-width: 48.875rem) {
	.admin-bar .site-header {
		top: 46px;
	}

	.admin-bar .site-header__panel {
		inset-block-start: calc(var(--uprs-header-height) + 46px);
	}

	.page-hero {
		min-height: 34rem;
	}

	.page-hero__inner,
	.listing-hero__inner,
	.error-hero__inner {
		padding-inline: 1.25rem;
	}

	.page-hero h1,
	.listing-hero h1,
	.error-hero h1 {
		font-size: clamp(2.7rem, 14vw, 4.6rem);
	}

	.page-hero__monogram {
		opacity: 0.65;
	}

	.service-directory,
	.post-grid,
	.contact-details,
	.article-navigation,
	.post-navigation .nav-links,
	.uprs-grid,
	.uprs-grid--2,
	.uprs-grid--3,
	.uprs-contact-grid,
	.uprs-contact-form__grid,
	.uprs-form-grid {
		grid-template-columns: 1fr;
	}

	.service-card,
	.post-card {
		min-height: 24rem;
	}

	.article-navigation .nav-next,
	.post-navigation .nav-next {
		text-align: start;
	}

	.search-form {
		flex-direction: column;
	}

	.site-footer__nav,
	.site-footer__legal,
	.footer-navigation ul {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 30rem) {
	.theme-choice {
		width: 1.85rem;
		height: 1.85rem;
	}

	.language-switch {
		padding-inline: 0.7rem;
	}

	.page-hero__actions .button {
		width: 100%;
	}
}

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

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

@media print {
	:root,
	:root[data-theme="dark"] {
		--uprs-canvas: #ffffff;
		--uprs-surface: #ffffff;
		--uprs-ink: #000000;
		--uprs-muted: #333333;
		--uprs-line: #bbbbbb;
		color-scheme: light;
	}

	body {
		font-size: 11pt;
		background: #ffffff;
		color: #000000;
	}

	.site-header,
	.site-footer,
	.page-hero__actions,
	.article-navigation,
	.pagination,
	.search-form {
		display: none !important;
	}

	.page-hero,
	.listing-hero,
	.error-hero {
		min-height: 0;
		background: #ffffff;
		color: #000000;
	}

	.page-hero::before,
	.page-hero::after,
	.listing-hero::before,
	.listing-hero::after,
	.error-hero::before,
	.error-hero::after,
	.page-hero__media,
	.page-hero__monogram {
		display: none;
	}

	.page-hero__inner,
	.listing-hero__inner,
	.error-hero__inner,
	.content-shell,
	.services-shell,
	.contact-shell,
	.listing-shell,
	.article-shell,
	.error-shell {
		max-width: none;
		padding: 1.5rem 0;
	}

	.page-hero h1,
	.listing-hero h1,
	.error-hero h1,
	.page-hero__intro {
		color: #000000;
	}

	a {
		color: #000000;
		text-decoration: underline;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
	}

	.service-directory,
	.post-grid {
		display: block;
		border: 0;
	}

	.service-card,
	.post-card {
		min-height: 0;
		margin-bottom: 1rem;
		border: 1px solid #bbbbbb;
		break-inside: avoid;
	}
}
