/* =========================================================================
   United IT Services — design tokens
   Charcoal-first, flat surfaces, hairline rules.
   Brand charcoal #3F464B · action teal #268289 · bright teal #2F9EA6
   (bright teal is reserved for large accents on charcoal — it fails
   contrast under white text, so it never carries white text).
   ========================================================================= */
:root {
	/* ---- Color ---- */
	--ink:          #3F464B; /* brand charcoal — base text & dark sections */
	--ink-strong:   #31373B; /* headings */
	--ink-muted:    #5B6369;
	--ink-subtle:   #838B91;

	--teal:         #268289; /* buttons, links, key numbers — safe under white text */
	--teal-deep:    #1E6A70; /* hover */
	--teal-bright:  #2F9EA6; /* large accents on charcoal only */
	--teal-wash:    #EAF4F5;

	--bg:           #FFFFFF;
	--bg-tint:      #F6F7F8;
	--bg-dark:      #3F464B; /* charcoal sections */
	--bg-footer:    #33393E;

	--hairline:       #E3E6E8;
	--hairline-mid:   #C8CDD1;
	--hairline-dark:  rgba(255, 255, 255, 0.16); /* rules on charcoal */

	--on-dark:        #FFFFFF;
	--on-dark-body:   #C6CCD0;
	--on-dark-muted:  #9AA2A8;

	--green-500:  #2e9e6b;
	--red-500:    #C03B3B;
	--red-50:     #FAE9E9;

	--focus-ring: rgba(38, 130, 137, 0.45);

	/* ---- Typography ---- */
	--font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
	--font-body:    'Inter', system-ui, -apple-system, sans-serif;
	--font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	--tracking-tight: -0.025em;
	--tracking-caps:   0.14em;

	/* ---- Layout ---- */
	--container-lg: 1140px;

	--radius-sm:  4px;
	--radius-md:  6px;
}

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

body {
	margin: 0;
	background: var(--bg);
	font-family: var(--font-body), system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }

img { max-width: 100%; height: auto; }

.uits-wrap {
	max-width: var(--container-lg);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

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

/* Small caps label */
.uits-eb {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--teal);
}
.uits-eb--light { color: var(--teal-bright); }

.uits-kicker {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--teal);
	margin-bottom: 16px;
}
.uits-kicker--light { color: var(--teal-bright); }

/* Buttons — dark teal so white text always passes contrast */
.uits-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	border-radius: var(--radius-sm);
	background: var(--teal);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 600;
	transition: background 140ms ease;
}
.uits-btn:hover { background: var(--teal-deep); color: #fff; }
.uits-btn--sm { height: 38px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.uits-btn--full { width: 100%; height: 50px; font-size: 15px; }

/* =========================================================================
   Header — solid, flat, hairline rule
   ========================================================================= */
.uits-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid var(--hairline);
}
.uits-header__inner {
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.uits-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.uits-logo { height: 30px; width: auto; display: block; }
.uits-logo--white { height: 28px; }
.custom-logo { height: 30px; width: auto; }

.uits-nav { display: flex; align-items: center; gap: 28px; }
.uits-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 28px;
}
.uits-nav-list a,
.uits-navlink {
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
}
.uits-nav-list a:hover,
.uits-navlink:hover { color: var(--teal); }

/* =========================================================================
   Footer
   ========================================================================= */
.uits-footer { background: var(--bg-footer); padding: 40px 0; }
.uits-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.uits-footer__meta {
	font-size: 13.5px;
	color: var(--on-dark-body);
	text-align: right;
	line-height: 1.6;
}
.uits-footer__sub { color: var(--on-dark-muted); }

/* =========================================================================
   Standard page (page.php) & entry content
   ========================================================================= */
.uits-page-hero {
	background: #fff;
	border-bottom: 1px solid var(--hairline);
	padding: 72px 0 48px;
}
.uits-page-hero__title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(34px, 5vw, 50px);
	line-height: 1.08;
	letter-spacing: var(--tracking-tight);
	color: var(--ink-strong);
	margin: 0;
	text-wrap: balance;
}
.uits-page-hero__meta {
	margin-top: 14px;
	font-size: 15px;
	color: var(--ink-muted);
}

.uits-content { padding: 56px 0 80px; }
.uits-wrap--narrow { max-width: 780px; }

.uits-entry {
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--ink);
}
.uits-entry h2,
.uits-entry h3,
.uits-entry h4 {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink-strong);
	letter-spacing: var(--tracking-tight);
	line-height: 1.15;
	margin: 1.8em 0 0.6em;
}
.uits-entry h2 { font-size: 28px; }
.uits-entry h3 { font-size: 22px; }
.uits-entry h4 { font-size: 18px; }
.uits-entry p { margin: 0 0 1.2em; }
.uits-entry ul, .uits-entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.uits-entry li { margin-bottom: 0.4em; }
.uits-entry blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--teal);
	color: var(--ink-muted);
	font-style: italic;
}
.uits-entry img { border-radius: var(--radius-sm); }
.uits-entry code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: var(--bg-tint);
	border-radius: 3px;
	padding: 2px 6px;
}
.uits-entry pre {
	background: var(--ink-strong);
	color: #E9ECEE;
	border-radius: var(--radius-md);
	padding: 18px 20px;
	overflow-x: auto;
}
.uits-entry pre code { background: none; padding: 0; color: inherit; }
.uits-entry a { text-decoration: underline; text-underline-offset: 2px; }
.uits-entry .wp-block-button__link,
.uits-entry .wp-element-button {
	background: var(--teal);
	color: #fff;
	border-radius: var(--radius-sm);
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: none;
}
.uits-entry .wp-block-button__link:hover,
.uits-entry .wp-element-button:hover { background: var(--teal-deep); }

/* =========================================================================
   Blog listing (home.php / index.php / archive.php)
   ========================================================================= */
.uits-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.uits-post-card {
	background: #fff;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 140ms ease;
}
.uits-post-card:hover { border-color: var(--hairline-mid); }
.uits-post-card__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.uits-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uits-post-card__body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.uits-post-card__meta {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--teal);
}
.uits-post-card__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.25;
	margin: 0;
}
.uits-post-card__title a { color: var(--ink-strong); }
.uits-post-card__title a:hover { color: var(--teal); }
.uits-post-card__excerpt {
	font-size: 14px;
	color: var(--ink-muted);
	line-height: 1.6;
	margin: 0;
}
.uits-post-card__more {
	margin-top: auto;
	padding-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--teal);
}

.uits-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: flex-start;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 14px;
}
.uits-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--ink);
}
.uits-pagination .page-numbers.current {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}
.uits-pagination .page-numbers:hover:not(.current) {
	border-color: var(--teal);
	color: var(--teal);
}

/* Single post */
.uits-single-meta {
	display: flex;
	gap: 14px;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink-muted);
}
.uits-single-thumb { margin: 0 0 32px; }
.uits-single-thumb img { width: 100%; border-radius: var(--radius-md); display: block; }
.uits-backlink {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
	font-size: 14px;
	font-weight: 600;
	color: var(--teal);
}

/* Empty state */
.uits-none {
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	padding: 48px 32px;
	color: var(--ink-muted);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
	.uits-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.uits-post-grid { grid-template-columns: 1fr; }
	/* One-page site: on phones the header is just logo + quote CTA */
	.uits-nav-list { display: none; }
	.uits-logo { height: 24px; }
	.custom-logo { height: 24px; }
	.uits-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
	.uits-header__inner { height: 58px; gap: 12px; }
	.uits-footer__inner { justify-content: flex-start; }
	.uits-footer__meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
