/*
Theme Name: Resolve Institutional
Theme URI: https://example.com/resolve
Author: Resolve Platform
Description: A standalone institutional theme for the Resolve restructuring and special-situations marketplace. Presentation only — every business rule, permission check and workflow lives in the resolve-platform-core plugin, so this theme can be replaced without touching the platform.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: resolve-institutional
Tags: business, custom-menu, translation-ready, rtl-language-support, full-width-template
*/

/* ============================================================
 * Theme chrome only.
 *
 * Platform surfaces are styled by the plugin's own stylesheet. This file
 * covers the shell: header, navigation, footer, editorial pages and the
 * typographic baseline everything sits on.
 * ============================================================ */

:root {
	--t-ink: #0e1621;
	--t-ink-2: #26313f;
	--t-ink-3: #5a6675;
	--t-ink-4: #8d97a4;
	--t-paper: #ffffff;
	--t-ground: #f6f5f2;
	--t-line: #dcdad5;
	--t-accent: #0f3d3e;
	--t-accent-soft: #e8efee;
	--t-maxw: 1240px;
	--t-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--t-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--t-paper);
	color: var(--t-ink);
	font-family: var(--t-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--t-accent);
}

.t-wrap {
	max-width: var(--t-maxw);
	margin-inline: auto;
	padding-inline: 24px;
}

.t-skip {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--t-ink);
	color: #fff;
}

.t-skip:focus {
	inset-inline-start: 0;
}

/* ------------------------------------------------------------
 * Header
 * ------------------------------------------------------------ */

.t-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--t-paper);
	border-bottom: 1px solid var(--t-line);
}

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

.t-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.t-brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
	color: var(--t-ink);
}

.t-brand__name {
	font-family: var(--t-serif);
	font-size: 22px;
	line-height: 1;
	letter-spacing: -0.01em;
}

.t-brand__descriptor {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--t-ink-4);
}

.t-brand__logo {
	max-height: 44px;
	width: auto;
}

.t-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.t-nav ul {
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-nav a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--t-ink-2);
	text-decoration: none;
	white-space: nowrap;
}

.t-nav a:hover,
.t-nav .current-menu-item > a {
	color: var(--t-accent);
}

.t-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.t-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid var(--t-accent);
	background: var(--t-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.t-btn--ghost {
	background: transparent;
	border-color: var(--t-line);
	color: var(--t-ink-2);
}

.t-btn--ghost:hover {
	border-color: var(--t-ink-3);
	color: var(--t-ink);
}

.t-menu-toggle {
	display: none;
	padding: 10px 14px;
	border: 1px solid var(--t-line);
	background: transparent;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

/* ------------------------------------------------------------
 * Home sections
 * ------------------------------------------------------------ */

.t-section {
	padding-block: 96px;
}

.t-section--ground {
	background: var(--t-ground);
}

.t-section--tight {
	padding-block: 64px;
}

.t-section__head {
	max-width: 72ch;
	margin-bottom: 48px;
}

.t-eyebrow {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--t-accent);
}

.t-section__title {
	margin: 0 0 16px;
	font-family: var(--t-serif);
	font-size: clamp(28px, 3.6vw, 44px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.t-section__intro {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--t-ink-3);
}

.t-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 48px;
}

.t-panel {
	padding: 40px;
	border: 1px solid var(--t-line);
	background: var(--t-paper);
}

.t-panel h3 {
	margin: 0 0 12px;
	font-family: var(--t-serif);
	font-size: 26px;
	font-weight: 400;
}

.t-panel p {
	color: var(--t-ink-3);
}

.t-panel ul {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.t-panel li {
	position: relative;
	padding: 8px 0 8px 22px;
	border-bottom: 1px solid var(--t-line);
	font-size: 15px;
	color: var(--t-ink-2);
}

.t-panel li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 18px;
	width: 10px;
	height: 1px;
	background: var(--t-accent);
}

.t-statement {
	padding-block: 88px;
	background: var(--t-ink);
	color: #fff;
}

.t-statement__title {
	max-width: 22ch;
	margin: 0 0 20px;
	font-family: var(--t-serif);
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 400;
	line-height: 1.1;
}

.t-statement__body {
	max-width: 66ch;
	margin: 0;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.76);
}

.t-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	margin-top: 48px;
	background: rgba(255, 255, 255, 0.16);
}

.t-figure {
	padding: 24px;
	background: var(--t-ink);
}

.t-figure__value {
	display: block;
	font-family: var(--t-serif);
	font-size: 30px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.t-figure__label {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.t-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
}

.t-card {
	padding-top: 20px;
	border-top: 1px solid var(--t-ink);
}

.t-card__num {
	display: block;
	margin-bottom: 12px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--t-accent);
}

.t-card h3 {
	margin: 0 0 8px;
	font-family: var(--t-serif);
	font-size: 21px;
	font-weight: 400;
}

.t-card p {
	margin: 0;
	font-size: 15px;
	color: var(--t-ink-3);
}

.t-final {
	padding-block: 96px;
	background: var(--t-ground);
	text-align: center;
}

.t-final h2 {
	margin: 0 0 16px;
	font-family: var(--t-serif);
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 400;
}

.t-final p {
	max-width: 60ch;
	margin: 0 auto 32px;
	font-size: 18px;
	color: var(--t-ink-3);
}

.t-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* ------------------------------------------------------------
 * Editorial content
 * ------------------------------------------------------------ */

.t-page {
	padding-block: 64px;
}

.t-page__title {
	margin: 0 0 24px;
	font-family: var(--t-serif);
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 400;
	line-height: 1.15;
}

.t-content {
	max-width: 72ch;
}

.t-content h2 {
	margin: 40px 0 12px;
	font-family: var(--t-serif);
	font-size: 26px;
	font-weight: 400;
}

.t-content h3 {
	margin: 32px 0 8px;
	font-size: 17px;
	font-weight: 600;
}

.t-content p,
.t-content li {
	color: var(--t-ink-2);
}

.t-content blockquote {
	margin: 32px 0;
	padding-inline-start: 24px;
	border-inline-start: 2px solid var(--t-accent);
	font-family: var(--t-serif);
	font-size: 20px;
	color: var(--t-ink-2);
}

.t-postlist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
}

.t-post {
	padding-top: 20px;
	border-top: 1px solid var(--t-line);
}

.t-post__date {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--t-ink-4);
}

.t-post__title {
	margin: 8px 0;
	font-family: var(--t-serif);
	font-size: 21px;
	font-weight: 400;
}

.t-post__title a {
	color: var(--t-ink);
	text-decoration: none;
}

.t-post__title a:hover {
	color: var(--t-accent);
}

.t-post__excerpt {
	margin: 0;
	font-size: 15px;
	color: var(--t-ink-3);
}

/* ------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------ */

.t-footer {
	padding-block: 64px 32px;
	background: var(--t-ink);
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.t-footer__grid {
	display: grid;
	grid-template-columns: 2fr repeat(auto-fit, minmax(160px, 1fr));
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.t-footer__brand {
	font-family: var(--t-serif);
	font-size: 22px;
	color: #fff;
}

.t-footer__descriptor {
	margin-top: 6px;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.t-footer__statement {
	max-width: 42ch;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.6;
}

.t-footer h4 {
	margin: 0 0 12px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.t-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-footer li {
	margin-bottom: 8px;
}

.t-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	font-size: 14px;
}

.t-footer a:hover {
	color: #fff;
}

.t-footer__legal {
	padding-top: 24px;
}

.t-footer__legal p {
	max-width: 100ch;
	margin: 0 0 10px;
	font-size: 11px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.45);
}

.t-footer__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------
 * Arabic / RTL
 *
 * Direction is handled by logical properties throughout. This block
 * adjusts the typography itself: Arabic needs more line height, a larger
 * optical size, and none of the uppercase or letter-spaced treatments that
 * suit Latin small caps.
 * ------------------------------------------------------------ */

body.rtl {
	--t-serif: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
	--t-sans: "Noto Sans Arabic", "Dubai", Tahoma, -apple-system, sans-serif;
	font-size: 17px;
	line-height: 1.85;
}

body.rtl .t-nav a,
body.rtl .t-btn,
body.rtl .t-eyebrow,
body.rtl .t-brand__descriptor,
body.rtl .t-figure__label,
body.rtl .t-footer h4,
body.rtl .t-post__date,
body.rtl .t-footer__descriptor {
	letter-spacing: 0;
	text-transform: none;
	font-size: 13px;
}

body.rtl .t-section__title,
body.rtl .t-statement__title,
body.rtl .t-page__title {
	line-height: 1.35;
	letter-spacing: 0;
}

body.rtl .t-figure__value {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: start;
}

/* ------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------ */

@media (max-width: 1024px) {
	.t-menu-toggle {
		display: inline-block;
	}

	.t-nav {
		display: none;
		position: absolute;
		inset-inline: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 16px 24px 24px;
		background: var(--t-paper);
		border-bottom: 1px solid var(--t-line);
	}

	.t-nav.is-open {
		display: flex;
	}

	.t-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.t-nav li {
		border-bottom: 1px solid var(--t-line);
	}

	.t-nav a {
		display: block;
		padding: 14px 0;
	}

	.t-header__inner {
		position: relative;
	}
}

@media (max-width: 782px) {
	.t-section {
		padding-block: 56px;
	}

	.t-panel {
		padding: 24px;
	}

	.t-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.admin-bar .t-header {
		top: 46px;
	}
}

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