/*
Theme Name: NyumbaLedger Modern
Theme URI: https://nyumbaledger.com/
Author: NyumbaLedger
Author URI: https://nyumbaledger.com/
Description: A modern WordPress theme for the NyumbaLedger Kenyan rental-management platform, including its permanent Free plan.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: nyumbaledger-modern
*/

:root {
	--nlm-ink: #12251f;
	--nlm-muted: #617069;
	--nlm-green: #087f5b;
	--nlm-green-dark: #046b4b;
	--nlm-mint: #dcf6eb;
	--nlm-blue: #eaf3ff;
	--nlm-gold: #f4b942;
	--nlm-line: #dbe5df;
	--nlm-paper: #ffffff;
	--nlm-bg: #f3f6f2;
	--nlm-shadow: 0 22px 65px rgba(18, 49, 38, .10);
	--nlm-radius: 24px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(circle at 8% 4%, rgba(214, 242, 231, .72), transparent 31rem),
		radial-gradient(circle at 92% 18%, rgba(224, 237, 255, .76), transparent 28rem),
		var(--nlm-bg);
	color: var(--nlm-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

a { color: var(--nlm-green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nlm-green); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.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 { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: white; color: var(--nlm-ink); }

.nlm-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.nlm-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 249, 246, .91);
	border-bottom: 1px solid rgba(206, 220, 211, .85);
	backdrop-filter: blur(18px);
}

.admin-bar .nlm-site-header { top: 32px; }
.nlm-header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }

.nlm-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--nlm-ink); text-decoration: none; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 220px; max-height: 52px; }
.nlm-brand-mark {
	display: grid;
	place-items: center;
	width: 43px;
	height: 43px;
	border-radius: 14px;
	background: linear-gradient(145deg, #0b946a, #046b4b);
	box-shadow: 0 10px 24px rgba(8, 127, 91, .22);
	color: white;
	font-size: 22px;
	font-weight: 900;
}
.nlm-brand-copy { display: grid; line-height: 1.12; }
.nlm-brand-copy strong { font-size: 18px; letter-spacing: -.025em; }
.nlm-brand-copy small { margin-top: 4px; color: var(--nlm-muted); font-size: 11px; font-weight: 700; letter-spacing: .035em; }

.nlm-navigation { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.nlm-menu { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.nlm-menu li { margin: 0; }
.nlm-menu a { display: block; padding: 10px 12px; border-radius: 11px; color: #364940; font-size: 14px; font-weight: 750; text-decoration: none; }
.nlm-menu a:hover, .nlm-menu .current-menu-item > a { background: #e6eee9; color: var(--nlm-ink); }
.nlm-header-actions { display: flex; align-items: center; gap: 10px; }

.nlm-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 19px;
	border: 1px solid transparent;
	border-radius: 13px;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.1;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.nlm-button:hover { transform: translateY(-1px); }
.nlm-button-primary { background: var(--nlm-green); box-shadow: 0 12px 28px rgba(8, 127, 91, .18); color: white; }
.nlm-button-primary:hover { background: var(--nlm-green-dark); color: white; }
.nlm-button-quiet { border-color: var(--nlm-line); background: rgba(255,255,255,.72); color: var(--nlm-ink); }
.nlm-button-quiet:hover { background: white; color: var(--nlm-ink); }

.nlm-menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--nlm-line); border-radius: 12px; background: white; color: var(--nlm-ink); }
.nlm-menu-toggle span, .nlm-menu-toggle::before, .nlm-menu-toggle::after { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; content: ""; }

.nlm-main { min-height: calc(100vh - 150px); }
.nlm-content { padding: 56px 0 80px; }
.nlm-article { padding: clamp(24px, 4vw, 54px); border: 1px solid rgba(211, 223, 216, .9); border-radius: var(--nlm-radius); background: rgba(255,255,255,.92); box-shadow: var(--nlm-shadow); }
.nlm-article h1 { margin: 0 0 22px; font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -.045em; }
.nlm-article h2, .nlm-article h3 { line-height: 1.18; letter-spacing: -.025em; }
.nlm-article > *:first-child { margin-top: 0; }
.nlm-article > *:last-child { margin-bottom: 0; }

.nlm-hero { padding: clamp(76px, 10vw, 132px) 0 70px; }
.nlm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: clamp(40px, 7vw, 88px); align-items: center; }
.nlm-eyebrow { margin: 0 0 17px; color: var(--nlm-green); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.nlm-hero h1 { max-width: 780px; margin: 0; font-size: clamp(45px, 7.2vw, 84px); line-height: .99; letter-spacing: -.064em; }
.nlm-hero-copy { max-width: 690px; margin: 25px 0 0; color: #4f6258; font-size: clamp(18px, 2vw, 21px); }
.nlm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nlm-trust-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 27px 0 0; padding: 0; color: var(--nlm-muted); font-size: 13px; font-weight: 730; list-style: none; }
.nlm-trust-line li::before { margin-right: 7px; color: var(--nlm-green); content: "✓"; font-weight: 900; }

.nlm-proof-card { position: relative; overflow: hidden; padding: 28px; border: 1px solid rgba(190, 213, 201, .9); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--nlm-shadow); }
.nlm-proof-card::before { position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--nlm-green), #4fb98b, #6aa7ed); content: ""; }
.nlm-proof-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 23px; }
.nlm-proof-head strong { font-size: 18px; }
.nlm-live-pill { padding: 6px 10px; border-radius: 99px; background: var(--nlm-mint); color: var(--nlm-green-dark); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.nlm-proof-metric { padding: 19px 0; border-top: 1px solid var(--nlm-line); }
.nlm-proof-metric:first-of-type { border-top: 0; }
.nlm-proof-metric span { display: block; color: var(--nlm-muted); font-size: 12px; font-weight: 750; }
.nlm-proof-metric strong { display: block; margin-top: 5px; font-size: 30px; line-height: 1.1; letter-spacing: -.04em; }
.nlm-progress { overflow: hidden; height: 8px; margin-top: 12px; border-radius: 99px; background: #eaf0ec; }
.nlm-progress span { display: block; width: 84%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nlm-green), #46b887); }

.nlm-section { padding: clamp(64px, 8vw, 102px) 0; }
.nlm-section-soft { border-block: 1px solid rgba(210, 223, 215, .78); background: rgba(255,255,255,.54); }
.nlm-section-head { max-width: 760px; margin-bottom: 38px; }
.nlm-section-head h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -.048em; }
.nlm-section-head p:last-child { margin: 18px 0 0; color: var(--nlm-muted); font-size: 18px; }

.nlm-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nlm-feature-card { padding: 27px; border: 1px solid rgba(210, 223, 215, .95); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 15px 38px rgba(22, 53, 42, .055); }
.nlm-feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 14px; background: var(--nlm-mint); color: var(--nlm-green-dark); font-weight: 950; }
.nlm-feature-card:nth-child(3n+2) .nlm-feature-icon { background: var(--nlm-blue); color: #245f9d; }
.nlm-feature-card:nth-child(3n+3) .nlm-feature-icon { background: #fff3d5; color: #8a5c00; }
.nlm-feature-card h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.nlm-feature-card p { margin: 10px 0 0; color: var(--nlm-muted); font-size: 14px; }

.nlm-payment-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: steps; }
.nlm-payment-flow article { position: relative; padding: 25px 22px; border-radius: 18px; background: var(--nlm-ink); color: white; counter-increment: steps; }
.nlm-payment-flow article::before { display: block; margin-bottom: 20px; color: #78d4ae; content: "0" counter(steps); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.nlm-payment-flow h3 { margin: 0; font-size: 18px; }
.nlm-payment-flow p { margin: 8px 0 0; color: #bfd0c8; font-size: 13px; }

.nlm-compare-wrap { overflow: hidden; border: 1px solid var(--nlm-line); border-radius: 22px; background: white; box-shadow: var(--nlm-shadow); }
.nlm-compare { width: 100%; border-collapse: collapse; }
.nlm-compare th, .nlm-compare td { padding: 18px 20px; border-bottom: 1px solid var(--nlm-line); text-align: left; vertical-align: top; }
.nlm-compare th { background: #f7faf8; color: var(--nlm-muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nlm-compare tr:last-child td { border-bottom: 0; }
.nlm-compare td:first-child { font-weight: 850; }
.nlm-compare .nlm-best { background: #f0fbf6; color: #075d43; font-weight: 800; }

.nlm-cta { display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 30px; padding: clamp(32px, 5vw, 58px); border-radius: 28px; background: linear-gradient(135deg, #102820, #087f5b); box-shadow: 0 30px 70px rgba(9, 75, 55, .24); color: white; }
.nlm-cta h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.04; letter-spacing: -.045em; }
.nlm-cta p { margin: 14px 0 0; color: #c9e1d7; }
.nlm-cta .nlm-button-primary { background: white; color: var(--nlm-green-dark); box-shadow: none; }
.nlm-cta .nlm-button-primary:hover { background: #effbf6; color: var(--nlm-green-dark); }

.nlm-site-footer { padding: 52px 0 30px; border-top: 1px solid var(--nlm-line); background: rgba(239, 244, 240, .8); }
.nlm-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, .7fr); gap: 45px; }
.nlm-footer-copy { max-width: 450px; margin-top: 15px; color: var(--nlm-muted); font-size: 14px; }
.nlm-footer-title { margin: 3px 0 14px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.nlm-footer-links { margin: 0; padding: 0; list-style: none; }
.nlm-footer-links li + li { margin-top: 8px; }
.nlm-footer-links a { color: #465a50; font-size: 14px; font-weight: 700; text-decoration: none; }
.nlm-copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--nlm-line); color: #738078; font-size: 12px; }

.nlm-minimal-footer { padding: 18px 20px 28px; color: var(--nlm-muted); font-size: 12px; text-align: center; }
.nlm-system-page .nlm-main { min-height: 100vh; }
.nlm-system-page .nlm-content { padding: 0; }
.nlm-system-page .nlm-container { width: 100%; }

.nlm-post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nlm-post-card { padding: 26px; border: 1px solid var(--nlm-line); border-radius: 20px; background: white; }
.nlm-post-card h2 { margin: 0; font-size: 24px; line-height: 1.18; }
.nlm-post-card h2 a { color: var(--nlm-ink); text-decoration: none; }
.nlm-post-meta { margin: 10px 0; color: var(--nlm-muted); font-size: 12px; }

@media (max-width: 960px) {
	.nlm-menu-toggle { display: block; }
	.nlm-navigation { position: absolute; inset: 78px 20px auto; display: none; padding: 18px; border: 1px solid var(--nlm-line); border-radius: 18px; background: white; box-shadow: var(--nlm-shadow); }
	.nlm-navigation.is-open { display: grid; }
	.nlm-menu { display: grid; }
	.nlm-header-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.nlm-hero-grid { grid-template-columns: 1fr; }
	.nlm-proof-card { max-width: 640px; }
	.nlm-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nlm-payment-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

@media (max-width: 680px) {
	.nlm-container { width: min(100% - 26px, 1180px); }
	.nlm-header-inner { min-height: 70px; }
	.nlm-navigation { inset: 70px 13px auto; }
	.nlm-brand-copy small { display: none; }
	.nlm-hero { padding-top: 62px; }
	.nlm-hero h1 { font-size: clamp(42px, 13vw, 60px); }
	.nlm-feature-grid, .nlm-payment-flow, .nlm-post-list { grid-template-columns: 1fr; }
	.nlm-compare-wrap { overflow-x: auto; }
	.nlm-compare { min-width: 680px; }
	.nlm-cta { grid-template-columns: 1fr; }
	.nlm-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
