/*
Theme Name: BridgeLoan Institutional
Theme URI: https://bridgeloan-financing.com/
Author: BridgeLoan Financing Desk
Author URI: https://bridgeloan-financing.com/about-us/
Description: Institutional fintech WordPress theme engineered for commercial and investment real estate bridge loan calculators, lender underwriting matrices, and state-by-state debt guides.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: bridgeloan-institutional
*/

:root {
	--blf-navy: #0b192c;
	--blf-navy-light: #112239;
	--blf-slate-900: #0f172a;
	--blf-slate-800: #1e293b;
	--blf-slate-700: #334155;
	--blf-slate-600: #475569;
	--blf-slate-500: #64748b;
	--blf-slate-200: #e2e8f0;
	--blf-slate-100: #f1f5f9;
	--blf-slate-50: #f8fafc;
	--blf-emerald: #059669;
	--blf-emerald-dark: #047857;
	--blf-emerald-light: #10b981;
	--blf-emerald-bg: #ecfdf5;
	--blf-radius: 10px;
	--blf-container: 1220px;
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--blf-slate-900);
	background-color: var(--blf-slate-50);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	font-variant-numeric: tabular-nums;
}

a {
	color: var(--blf-emerald-dark);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--blf-emerald);
}

.blf-container {
	max-width: var(--blf-container);
	margin: 0 auto;
	padding: 0 20px;
}

/* Institutional Benchmark Ticker Bar */
.blf-topbar {
	background: #06101e;
	color: #cbd5e1;
	font-size: 0.78rem;
	padding: 8px 0;
	border-bottom: 1px solid #1e293b;
}

.blf-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.blf-ticker-items {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.blf-ticker-item strong {
	color: #10b981;
	font-weight: 700;
}

.blf-topbar-note {
	color: #94a3b8;
}

/* Primary Header & Navigation */
.blf-header {
	background: var(--blf-navy);
	color: #ffffff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 12px rgba(11, 25, 44, 0.18);
}

.blf-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 70px;
	gap: 20px;
}

.blf-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #ffffff !important;
	text-decoration: none !important;
}

.blf-brand-mark {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: linear-gradient(135deg, #10b981 0%, #047857 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 1.05rem;
	color: #ffffff;
	letter-spacing: -0.03em;
	flex-shrink: 0;
}

.blf-brand-text {
	display: flex;
	flex-direction: column;
}

.blf-brand-name {
	font-size: 1.18rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #ffffff;
}

.blf-brand-sub {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
}

.blf-nav {
	display: flex;
	align-items: center;
	gap: 22px;
}

.blf-nav a {
	color: #e2e8f0;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.blf-nav a:hover {
	color: #10b981;
}

.blf-nav .blf-header-cta {
	background: var(--blf-emerald);
	color: #ffffff !important;
	padding: 9px 16px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.86rem;
}

.blf-nav .blf-header-cta:hover {
	background: var(--blf-emerald-dark);
}

.blf-mobile-toggle {
	display: none;
	background: #1e293b;
	color: #ffffff;
	border: 1px solid #334155;
	padding: 8px 12px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
}

@media (max-width: 960px) {
	.blf-mobile-toggle {
		display: inline-block;
	}
	.blf-nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 0;
		border-top: 1px solid #1e293b;
		gap: 12px;
	}
	.blf-nav.is-open {
		display: flex;
	}
	.blf-header-inner {
		flex-wrap: wrap;
		padding-top: 12px;
		padding-bottom: 12px;
	}
}

/* Homepage Hero */
.blf-hero {
	background: linear-gradient(180deg, #0b192c 0%, #132a46 100%);
	color: #ffffff;
	padding: 54px 0 46px 0;
	border-bottom: 1px solid #1e293b;
}

.blf-hero-kicker {
	display: inline-block;
	background: rgba(16, 185, 129, 0.16);
	color: #6ee7b7;
	border: 1px solid rgba(16, 185, 129, 0.35);
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 14px;
}

.blf-hero h1 {
	font-size: 2.55rem;
	line-height: 1.18;
	font-weight: 800;
	margin: 0 0 16px 0;
	letter-spacing: -0.025em;
	max-width: 880px;
	color: #ffffff;
}

.blf-hero-lead {
	font-size: 1.12rem;
	color: #cbd5e1;
	max-width: 820px;
	margin: 0 0 28px 0;
	line-height: 1.6;
}

.blf-hero-tools-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

@media (max-width: 960px) {
	.blf-hero h1 {
		font-size: 1.95rem;
	}
	.blf-hero-tools-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.blf-hero-tools-grid {
		grid-template-columns: 1fr;
	}
}

.blf-hero-tool-card {
	background: rgba(30, 41, 59, 0.85);
	border: 1px solid #334155;
	border-radius: 10px;
	padding: 16px;
	color: #ffffff !important;
	text-decoration: none !important;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.blf-hero-tool-card:hover {
	transform: translateY(-2px);
	border-color: #10b981;
}

.blf-hero-tool-num {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #34d399;
	font-weight: 700;
	margin-bottom: 6px;
}

.blf-hero-tool-card strong {
	font-size: 1rem;
	color: #ffffff;
	margin-bottom: 6px;
	display: block;
}

.blf-hero-tool-card span {
	font-size: 0.82rem;
	color: #cbd5e1;
	line-height: 1.45;
}

/* Homepage Sections */
.blf-section {
	padding: 46px 0;
}

.blf-section-alt {
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.blf-section-head {
	margin-bottom: 26px;
}

.blf-section-kicker {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--blf-emerald-dark);
	display: block;
	margin-bottom: 6px;
}

.blf-section-title {
	font-size: 1.85rem;
	color: var(--blf-navy);
	margin: 0 0 8px 0;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.blf-section-desc {
	font-size: 1rem;
	color: var(--blf-slate-600);
	margin: 0;
	max-width: 780px;
}

.blf-card-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.blf-card-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.blf-state-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}

@media (max-width: 960px) {
	.blf-card-grid-3,
	.blf-card-grid-4 {
		grid-template-columns: 1fr 1fr;
	}
	.blf-state-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.blf-card-grid-3,
	.blf-card-grid-4,
	.blf-state-grid {
		grid-template-columns: 1fr;
	}
}

.blf-info-card {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blf-info-card:hover {
	border-color: var(--blf-emerald);
	box-shadow: 0 8px 20px -4px rgba(11, 25, 44, 0.08);
}

.blf-info-card h3 {
	font-size: 1.15rem;
	color: var(--blf-navy);
	margin: 8px 0;
}

.blf-info-card h3 a {
	color: var(--blf-navy);
}

.blf-info-card h3 a:hover {
	color: var(--blf-emerald-dark);
}

.blf-info-card p {
	font-size: 0.9rem;
	color: var(--blf-slate-600);
	margin: 0 0 16px 0;
	line-height: 1.55;
}

.blf-card-link {
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--blf-emerald-dark);
}

.blf-state-card {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none !important;
	transition: all 0.15s ease;
}

.blf-state-card:hover {
	border-color: var(--blf-emerald);
	background: var(--blf-emerald-bg);
}

.blf-state-code {
	font-size: 0.74rem;
	font-weight: 800;
	color: var(--blf-emerald-dark);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.blf-state-name {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--blf-navy);
}

.blf-state-meta {
	font-size: 0.78rem;
	color: var(--blf-slate-600);
}

/* Article & Page Layout */
.blf-page-header {
	background: var(--blf-navy);
	color: #ffffff;
	padding: 36px 0 32px 0;
	border-bottom: 1px solid #1e293b;
}

.blf-breadcrumbs {
	font-size: 0.8rem;
	color: #94a3b8;
	margin-bottom: 10px;
}

.blf-breadcrumbs a {
	color: #cbd5e1;
}

.blf-breadcrumbs a:hover {
	color: #10b981;
}

.blf-page-header h1 {
	font-size: 2.15rem;
	line-height: 1.22;
	margin: 0 0 10px 0;
	color: #ffffff;
	font-weight: 800;
	max-width: 900px;
}

.blf-page-meta {
	font-size: 0.84rem;
	color: #cbd5e1;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.blf-main-wrap {
	padding: 36px 0 56px 0;
}

.blf-layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 32px;
	align-items: start;
}

@media (max-width: 980px) {
	.blf-layout-sidebar {
		grid-template-columns: 1fr;
	}
}

.blf-article-content {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 32px 36px;
}

@media (max-width: 680px) {
	.blf-article-content {
		padding: 20px 18px;
	}
	.blf-page-header h1 {
		font-size: 1.65rem;
	}
}

.blf-article-content h2 {
	font-size: 1.5rem;
	color: var(--blf-navy);
	margin: 30px 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #f1f5f9;
	font-weight: 800;
}

.blf-article-content h2:first-child {
	margin-top: 0;
}

.blf-article-content h3 {
	font-size: 1.2rem;
	color: var(--blf-slate-800);
	margin: 24px 0 10px 0;
	font-weight: 700;
}

.blf-article-content p,
.blf-article-content li {
	font-size: 1rem;
	color: var(--blf-slate-800);
	line-height: 1.7;
}

.blf-article-content ul,
.blf-article-content ol {
	padding-left: 22px;
	margin: 12px 0 18px 0;
}

.blf-article-content li {
	margin-bottom: 6px;
}

.blf-article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 0.92rem;
}

.blf-article-content table th {
	background: var(--blf-navy);
	color: #ffffff;
	padding: 10px 12px;
	text-align: left;
	font-size: 0.82rem;
	text-transform: uppercase;
}

.blf-article-content table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e2e8f0;
}

.blf-callout {
	background: #f8fafc;
	border-left: 4px solid var(--blf-emerald);
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	margin: 20px 0;
}

.blf-callout strong {
	color: var(--blf-navy);
}

/* Sidebar Widgets */
.blf-sidebar {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.blf-widget {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 20px;
}

.blf-widget-dark {
	background: var(--blf-navy);
	color: #ffffff;
	border-color: #1e293b;
}

.blf-widget h3 {
	font-size: 1.05rem;
	margin: 0 0 12px 0;
	color: var(--blf-navy);
}

.blf-widget-dark h3 {
	color: #ffffff;
}

.blf-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.blf-widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.9rem;
}

.blf-widget ul li:last-child {
	border-bottom: none;
}

.blf-widget ul li a {
	font-weight: 600;
	color: var(--blf-slate-800);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.blf-widget ul li a:hover {
	color: var(--blf-emerald-dark);
}

/* Footer */
.blf-footer {
	background: #06101e;
	color: #cbd5e1;
	padding: 54px 0 36px 0;
	border-top: 1px solid #1e293b;
	font-size: 0.88rem;
}

.blf-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 28px;
	margin-bottom: 36px;
}

@media (max-width: 900px) {
	.blf-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.blf-footer-grid {
		grid-template-columns: 1fr;
	}
}

.blf-footer h4 {
	color: #ffffff;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 14px 0;
}

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

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

.blf-footer a {
	color: #94a3b8;
	text-decoration: none;
}

.blf-footer a:hover {
	color: #10b981;
}

.blf-footer-disclaimer {
	border-top: 1px solid #1e293b;
	padding-top: 24px;
	font-size: 0.78rem;
	color: #64748b;
	line-height: 1.6;
}
