/* ========================
   FRONT LENDER - PREMIUM DESIGN SYSTEM
   Sophisticated Financial Excellence
   ======================== */

/* ========================
   Design Variables
   ======================== */
:root {
	/* Premium Color Palette */
	--midnight-navy: #0A1628;
	--rich-navy: #152238;
	--slate-blue: #1E3A5F;
	--gold-primary: #D4AF37;
	--gold-light: #E8C870;
	--gold-dark: #B89B2F;
	--cream: #F8F6F2;
	--silver: #C5C5C5;
	--white-pure: #FFFFFF;
	--charcoal: #2D3436;

	/* Gradient Definitions */
	--gradient-navy: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
	--gradient-gold: linear-gradient(135deg, #D4AF37 0%, #E8C870 100%);
	--gradient-mesh: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
	                 radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.15) 0%, transparent 50%);

	/* Typography Scale */
	--font-display: 'Cormorant Garamond', serif;
	--font-body: 'DM Sans', sans-serif;

	/* Spacing System */
	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 24px;
	--space-lg: 32px;
	--space-xl: 48px;
	--space-2xl: 64px;
	--space-3xl: 96px;

	/* Shadows */
	--shadow-soft: 0 2px 20px rgba(10, 22, 40, 0.08);
	--shadow-medium: 0 8px 40px rgba(10, 22, 40, 0.12);
	--shadow-strong: 0 20px 60px rgba(10, 22, 40, 0.2);
	--shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.25);

	/* Transitions */
	--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-elegant: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   Reset & Base Styles
   ======================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	font-family: var(--font-body);
	color: var(--charcoal);
	background: var(--cream);
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Animated Grain Overlay */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.03"/></svg>');
	pointer-events: none;
	z-index: 9999;
	animation: grain 8s steps(10) infinite;
}

@keyframes grain {
	0%, 100% { transform: translate(0, 0); }
	10% { transform: translate(-5%, -10%); }
	20% { transform: translate(-15%, 5%); }
	30% { transform: translate(7%, -25%); }
	40% { transform: translate(-5%, 25%); }
	50% { transform: translate(-15%, 10%); }
	60% { transform: translate(15%, 0%); }
	70% { transform: translate(0%, 15%); }
	80% { transform: translate(3%, 35%); }
	90% { transform: translate(-10%, 10%); }
}

/* ========================
   Typography
   ======================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	color: var(--midnight-navy);
	letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(3rem, 8vw, 5.5rem);
	margin-bottom: var(--space-lg);
}

h2 {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	margin-bottom: var(--space-md);
}

h3 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin-bottom: var(--space-sm);
}

p {
	font-size: 1.0625rem;
	line-height: 1.8;
	margin-bottom: var(--space-md);
	color: var(--slate-blue);
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition-fast);
}

/* ========================
   Preloader - Premium
   ======================== */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--midnight-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader-status {
	width: 60px;
	height: 60px;
	border: 3px solid rgba(212, 175, 55, 0.2);
	border-top-color: var(--gold-primary);
	border-radius: 50%;
	animation: premium-spin 1s ease-in-out infinite;
}

@keyframes premium-spin {
	to { transform: rotate(360deg); }
}

/* ========================
   Header - Sophisticated
   ======================== */
.premium-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	transition: var(--transition-smooth);
}

.header-topbar {
	background: var(--midnight-navy);
	color: var(--cream);
	padding: 12px 0;
	font-size: 0.875rem;
	border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.topbar-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.topbar-left,
.topbar-right {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(248, 246, 242, 0.8);
	transition: var(--transition-fast);
}

.contact-item:hover {
	color: var(--gold-light);
}

.contact-item i {
	color: var(--gold-primary);
}

.social-links {
	display: flex;
	gap: 12px;
}

.social-links a {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(212, 175, 55, 0.1);
	border-radius: 50%;
	color: var(--gold-primary);
	transition: var(--transition-fast);
}

.social-links a:hover {
	background: var(--gold-primary);
	color: var(--midnight-navy);
	transform: translateY(-2px);
}

.phone-number {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: var(--gold-primary);
}

/* Main Navigation */
.main-navigation {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 20px 0;
	box-shadow: var(--shadow-soft);
}

.premium-header.scrolled .main-navigation {
	padding: 12px 0;
	box-shadow: var(--shadow-medium);
}

.nav-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.brand-logo img {
	height: 50px;
	transition: var(--transition-fast);
}

.premium-header.scrolled .brand-logo img {
	height: 42px;
}

.nav-menu-container {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: var(--space-lg);
	margin: 0;
}

.nav-item {
	position: relative;
}

.nav-link {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	color: var(--midnight-navy);
	padding: 8px 0;
	position: relative;
	letter-spacing: 0.02em;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--gold-primary);
	transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
	width: 100%;
}

.nav-link:hover {
	color: var(--gold-dark);
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: 10px;
}

.mobile-nav-toggle span {
	width: 28px;
	height: 3px;
	background: var(--midnight-navy);
	border-radius: 3px;
	transition: var(--transition-fast);
}

/* Header CTA Button */
.header-cta .btn-primary {
	padding: 12px 32px;
	background: var(--gradient-gold);
	color: var(--midnight-navy);
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.5px;
	box-shadow: var(--shadow-gold);
	transition: var(--transition-smooth);
	border: 2px solid transparent;
}

.header-cta .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(212, 175, 55, 0.35);
	background: var(--gold-light);
}

/* ========================
   Hero Section - Asymmetric Premium
   ======================== */
.premium-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: var(--gradient-navy);
	overflow: hidden;
	padding-top: 140px;
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hero-background::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--gradient-mesh);
}

.hero-diagonal-accent {
	position: absolute;
	top: -10%;
	right: -20%;
	width: 80%;
	height: 120%;
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
	transform: rotate(-15deg);
	animation: diagonal-float 20s ease-in-out infinite;
}

@keyframes diagonal-float {
	0%, 100% { transform: rotate(-15deg) translateY(0); }
	50% { transform: rotate(-15deg) translateY(-30px); }
}

.hero-content-wrapper {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3xl);
	align-items: center;
}

.hero-text-content {
	padding-right: var(--space-xl);
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	background: rgba(212, 175, 55, 0.1);
	border: 1px solid rgba(212, 175, 55, 0.3);
	border-radius: 50px;
	color: var(--gold-primary);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: var(--space-md);
	animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
	0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
	50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); }
}

.hero-badge i {
	font-size: 1.2em;
	animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.hero-title {
	font-size: clamp(3rem, 7vw, 5.5rem);
	color: var(--white-pure);
	line-height: 1.1;
	margin-bottom: var(--space-lg);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.hero-title .gold-accent {
	color: var(--gold-primary);
	font-style: italic;
	position: relative;
	display: inline-block;
}

.hero-description {
	font-size: 1.25rem;
	color: rgba(248, 246, 242, 0.9);
	line-height: 1.8;
	margin-bottom: var(--space-xl);
	max-width: 540px;
}

.hero-cta-group {
	display: flex;
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

.btn-premium-primary,
.btn-premium-secondary {
	padding: 18px 40px;
	font-size: 1.0625rem;
	font-weight: 600;
	border-radius: 50px;
	transition: var(--transition-smooth);
	cursor: pointer;
	border: 2px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	letter-spacing: 0.3px;
}

.btn-premium-primary {
	background: var(--gradient-gold);
	color: var(--midnight-navy);
	box-shadow: var(--shadow-gold);
}

.btn-premium-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
}

.btn-premium-secondary {
	background: transparent;
	color: var(--white-pure);
	border-color: rgba(255, 255, 255, 0.3);
}

.btn-premium-secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--gold-primary);
	color: var(--gold-primary);
	transform: translateY(-3px);
}

.hero-stats {
	display: flex;
	gap: var(--space-xl);
}

.hero-stat {
	text-align: left;
}

.hero-stat-number {
	font-size: 2.5rem;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--gold-primary);
	line-height: 1;
	margin-bottom: 8px;
}

.hero-stat-label {
	font-size: 0.9375rem;
	color: rgba(248, 246, 242, 0.7);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Hero Visual Content */
.hero-visual-content {
	position: relative;
}

.hero-card-stack {
	position: relative;
	height: 500px;
}

.floating-card {
	position: absolute;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 24px;
	padding: var(--space-lg);
	box-shadow: var(--shadow-strong);
	transition: var(--transition-elegant);
}

.floating-card:hover {
	transform: translateY(-10px) rotate(0deg) !important;
	box-shadow: 0 25px 70px rgba(10, 22, 40, 0.3);
}

.card-1 {
	top: 0;
	left: 0;
	width: 320px;
	z-index: 3;
	transform: rotate(-5deg);
	animation: float-card-1 6s ease-in-out infinite;
}

.card-2 {
	top: 120px;
	right: -40px;
	width: 280px;
	z-index: 2;
	transform: rotate(8deg);
	animation: float-card-2 7s ease-in-out infinite;
}

.card-3 {
	bottom: 0;
	left: 60px;
	width: 300px;
	z-index: 1;
	transform: rotate(3deg);
	animation: float-card-3 8s ease-in-out infinite;
}

@keyframes float-card-1 {
	0%, 100% { transform: rotate(-5deg) translateY(0); }
	50% { transform: rotate(-5deg) translateY(-20px); }
}

@keyframes float-card-2 {
	0%, 100% { transform: rotate(8deg) translateY(0); }
	50% { transform: rotate(8deg) translateY(15px); }
}

@keyframes float-card-3 {
	0%, 100% { transform: rotate(3deg) translateY(0); }
	50% { transform: rotate(3deg) translateY(-15px); }
}

.card-icon {
	width: 56px;
	height: 56px;
	background: var(--gradient-gold);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	color: var(--midnight-navy);
	margin-bottom: var(--space-md);
	box-shadow: var(--shadow-gold);
}

.card-title {
	font-size: 1.25rem;
	color: var(--midnight-navy);
	margin-bottom: 8px;
}

.card-description {
	font-size: 0.9375rem;
	color: var(--slate-blue);
	line-height: 1.6;
}

/* ========================
   Premium Feature Cards
   ======================== */
.premium-features {
	padding: var(--space-3xl) 0;
	background: var(--white-pure);
	position: relative;
}

.section-header-premium {
	text-align: center;
	max-width: 800px;
	margin: 0 auto var(--space-2xl);
}

.section-subtitle-premium {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--gold-primary);
	margin-bottom: var(--space-sm);
}

.section-title-premium {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	color: var(--midnight-navy);
	margin-bottom: var(--space-md);
}

.section-description-premium {
	font-size: 1.125rem;
	color: var(--slate-blue);
	line-height: 1.8;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}

.feature-card-premium {
	background: var(--cream);
	border-radius: 24px;
	padding: var(--space-xl);
	position: relative;
	overflow: hidden;
	transition: var(--transition-elegant);
	border: 1px solid rgba(10, 22, 40, 0.05);
}

.feature-card-premium::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--gradient-mesh);
	opacity: 0;
	transition: var(--transition-elegant);
}

.feature-card-premium:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-strong);
	border-color: var(--gold-primary);
}

.feature-card-premium:hover::before {
	opacity: 1;
}

.feature-card-content {
	position: relative;
	z-index: 2;
}

.feature-icon-premium {
	width: 72px;
	height: 72px;
	background: var(--gradient-gold);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: var(--midnight-navy);
	margin-bottom: var(--space-md);
	box-shadow: var(--shadow-gold);
	transition: var(--transition-smooth);
}

.feature-card-premium:hover .feature-icon-premium {
	transform: rotate(5deg) scale(1.1);
}

.feature-title-premium {
	font-size: 1.5rem;
	color: var(--midnight-navy);
	margin-bottom: var(--space-sm);
}

.feature-description-premium {
	font-size: 1rem;
	color: var(--slate-blue);
	line-height: 1.7;
	margin-bottom: var(--space-md);
}

.feature-list {
	list-style: none;
}

.feature-list li {
	padding: 8px 0;
	padding-left: 28px;
	position: relative;
	font-size: 0.9375rem;
	color: var(--charcoal);
}

.feature-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--gold-primary);
	font-weight: 700;
	font-size: 1.1em;
}

/* ========================
   Services Section - Premium
   ======================== */
.premium-services {
	padding: var(--space-3xl) 0;
	background: var(--midnight-navy);
	position: relative;
	overflow: hidden;
}

.premium-services::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--gradient-mesh);
	opacity: 0.5;
}

.services-grid-premium {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-xl);
	position: relative;
	z-index: 2;
}

.service-card-premium {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(212, 175, 55, 0.2);
	border-radius: 24px;
	padding: var(--space-xl);
	transition: var(--transition-elegant);
	position: relative;
	overflow: hidden;
}

.service-card-premium::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
	transform: translate(-100%, -100%);
	transition: var(--transition-elegant);
}

.service-card-premium:hover::before {
	transform: translate(0, 0);
}

.service-card-premium:hover {
	border-color: var(--gold-primary);
	transform: translateY(-10px);
	box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.service-icon-premium {
	width: 80px;
	height: 80px;
	background: var(--gradient-gold);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: var(--midnight-navy);
	margin-bottom: var(--space-md);
	box-shadow: var(--shadow-gold);
	transition: var(--transition-smooth);
	position: relative;
	z-index: 2;
}

.service-card-premium:hover .service-icon-premium {
	transform: rotate(-10deg) scale(1.1);
}

.service-title-premium {
	font-size: 1.5rem;
	color: var(--white-pure);
	margin-bottom: var(--space-sm);
	position: relative;
	z-index: 2;
}

.service-description-premium {
	font-size: 1rem;
	color: rgba(248, 246, 242, 0.8);
	line-height: 1.7;
	position: relative;
	z-index: 2;
}

/* ========================
   Premium Footer
   ======================== */
.premium-footer {
	background: var(--midnight-navy);
	color: var(--cream);
	position: relative;
	padding-top: var(--space-3xl);
}

.premium-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--gradient-gold);
}

.footer-main-premium {
	padding-bottom: var(--space-2xl);
}

.footer-grid-premium {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: var(--space-2xl);
}

.footer-brand {
	max-width: 400px;
}

.footer-logo-premium {
	display: block;
	margin-bottom: var(--space-md);
}

.footer-logo-premium img {
	height: 50px;
	filter: brightness(0) invert(1);
}

.footer-description-premium {
	font-size: 1rem;
	line-height: 1.8;
	color: rgba(248, 246, 242, 0.7);
	margin-bottom: var(--space-lg);
}

.footer-social-premium {
	display: flex;
	gap: 12px;
}

.footer-social-premium a {
	width: 44px;
	height: 44px;
	background: rgba(212, 175, 55, 0.1);
	border: 1px solid rgba(212, 175, 55, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold-primary);
	font-size: 1.125rem;
	transition: var(--transition-smooth);
}

.footer-social-premium a:hover {
	background: var(--gold-primary);
	color: var(--midnight-navy);
	transform: translateY(-3px);
	box-shadow: var(--shadow-gold);
}

.footer-title-premium {
	font-size: 1.25rem;
	font-family: var(--font-display);
	color: var(--white-pure);
	margin-bottom: var(--space-md);
	position: relative;
	padding-bottom: 12px;
}

.footer-title-premium::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--gold-primary);
}

.footer-links-premium {
	list-style: none;
}

.footer-links-premium li {
	margin-bottom: 12px;
}

.footer-links-premium a {
	color: rgba(248, 246, 242, 0.7);
	font-size: 0.9375rem;
	transition: var(--transition-fast);
	display: inline-block;
}

.footer-links-premium a:hover {
	color: var(--gold-primary);
	transform: translateX(5px);
}

.footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: var(--space-md);
}

.footer-contact-icon {
	width: 40px;
	height: 40px;
	background: rgba(212, 175, 55, 0.1);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold-primary);
	flex-shrink: 0;
}

.footer-contact-text {
	flex: 1;
	font-size: 0.9375rem;
	color: rgba(248, 246, 242, 0.7);
	line-height: 1.6;
}

.footer-contact-text a {
	color: var(--gold-primary);
}

.footer-contact-text a:hover {
	text-decoration: underline;
}

.footer-bottom-premium {
	border-top: 1px solid rgba(212, 175, 55, 0.1);
	padding: var(--space-lg) 0;
	text-align: center;
}

.footer-bottom-content {
	font-size: 0.9375rem;
	color: rgba(248, 246, 242, 0.6);
}

/* ========================
   Utility Classes
   ======================== */
.container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.text-gold {
	color: var(--gold-primary);
}

.bg-cream {
	background: var(--cream);
}

.section-spacing {
	padding: var(--space-3xl) 0;
}