/* ============================================
   ELS FUNDING I, LLC — Professional Website
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary-dark: #0a1628;
  --primary: #0f2b4a;
  --primary-mid: #1a3f5c;
  --primary-light: #e8f0fe;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;

  --gold: #d97706;
  --gold-light: #fef3c7;

  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --border: #e2e8f0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  --max-width: 1200px;
  --header-height: 72px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.scrolled .logo-text { color: var(--primary-dark); }
.scrolled .logo-icon { background: linear-gradient(135deg, var(--accent), #7c3aed); }

.logo-sub {
  display: none;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }

.scrolled .nav-links a { color: var(--text-light); }
.scrolled .nav-links a:hover { color: var(--primary-dark); }

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.scrolled .nav-toggle span { background: var(--text); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0d2744 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -10%;
  right: -5%;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: #7c3aed;
  bottom: -10%;
  left: -5%;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  top: 50%;
  right: 30%;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

/* --- Section Common --- */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- About Section --- */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.about-detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.about-detail-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.about-detail-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-visual {
  position: relative;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(124,58,237,0.2));
}

.about-image-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 40px;
}

.about-image-content h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.about-image-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Services Section --- */
.services {
  background: var(--bg-alt);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-icon.blue { background: var(--accent-light); color: var(--accent); }
.service-icon.purple { background: #ede9fe; color: #7c3aed; }
.service-icon.gold { background: var(--gold-light); color: var(--gold); }

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.service-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Why Us Section --- */
.why-us {
  background: var(--bg);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-us-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.why-us-card:hover {
  background: var(--bg-alt);
}

.why-us-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 16px;
}

.why-us-card h3 {
  margin-bottom: 12px;
}

.why-us-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Industry Section --- */
.industry {
  background: var(--bg-alt);
}

.industry-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

.industry-tag {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all 0.2s;
  cursor: default;
}

.industry-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.industry-tag.highlight {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Contact Section --- */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}

.contact-item h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 1.3rem;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

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

/* ============================================
   POLICY PAGES (Privacy / Terms)
   ============================================ */

.policy-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: var(--bg-alt);
  min-height: 100vh;
}

.policy-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0 60px;
  margin-top: var(--header-height);
  text-align: center;
}

.policy-header h1 {
  color: #fff;
  margin-bottom: 12px;
}

.policy-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

.policy-content {
  max-width: 800px;
  margin: -40px auto 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px;
  position: relative;
  z-index: 2;
}

.policy-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

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

.policy-content h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--primary);
}

.policy-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content ul li {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 4px;
}

.policy-content .last-updated {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.policy-nav {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s ease;
    align-items: flex-start;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    color: var(--text-light) !important;
    font-size: 1.1rem;
  }

  .nav-toggle { display: flex; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .hero-stat-value { font-size: 1.5rem; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-details { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }
  .why-us-grid { grid-template-columns: 1fr; gap: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .policy-content { padding: 32px 24px; margin: -40px 16px 0; }
  .policy-header { padding: 60px 0 40px; }
  .policy-nav { flex-direction: column; align-items: flex-start; }
}
