/* Credlawn Corporate Fintech Design System */

:root {
  /* Colors */
  --c-primary: #0047AB; /* Trust Blue */
  --c-primary-light: #3371CC;
  --c-primary-dark: #002D6B;
  
  --c-surface: #ffffff;
  --c-background: #ffffff;
  --c-text-main: #333333;
  --c-text-muted: #666666;

  --c-accent: #f59e0b;
  
  /* Layout */
  --container-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  
  /* Shadows - Elevation levels */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Inter', 'Roboto', -apple-system, sans-serif;
  color: var(--c-text-main);
  background-color: var(--c-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-primary-dark);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--c-text-main);
}

.text-muted { color: var(--c-text-muted); }
.text-center { text-align: center; }

/* Layout Helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 50px 0;
}

.section-light {
  background-color: var(--c-surface);
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

.btn-primary {
  background-color: var(--c-primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--c-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.btn-outline:hover {
  background-color: var(--c-primary);
  color: white;
}

/* Navbar */
.navbar {
  background-color: var(--c-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: var(--c-text-main);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--c-primary);
}
.navbar .btn {
  padding: 6px 14px;
  font-size: 0.85rem;
}
.brand-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.5px;
}

/* Footer */
.footer {
  background-color: var(--c-primary-dark); /* Pure Blue Dark */
  color: #ffffff;
  padding: 60px 0 20px 0;
}
.footer-logo {
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}
.footer-links h4 {
  color: white;
  margin-bottom: 20px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #94a3b8;
}
.footer-links a:hover {
  color: white;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: #d1e0f0;
  font-size: 0.9rem;
}

/* =========================================
   Homepage Specific Components
   ========================================= */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
  padding: 60px 0;
  border-bottom: 1px solid #cce0ff;
}
.hero-content {
  max-width: 750px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--c-primary-dark);
}
.hero p {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-bottom: 24px;
}

/* Stat Cards */
.stat-card {
  background: var(--c-surface);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #cce0ff;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 6px;
  line-height: 1;
}
.stat-label {
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

/* Feature Grid */
.feature-box {
  padding: 24px 20px;
  background: var(--c-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #cce0ff;
}
.feature-icon {
  font-size: 1.8rem;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-box p {
  font-size: 0.9rem;
}

/* =========================================
   About Us Specific Components
   ========================================= */

/* Split Layouts */
.split-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}
.split-content {
  flex: 1;
}
.split-content h2 {
  font-size: 2rem;
  color: var(--c-primary-dark);
  margin-bottom: 20px;
}
.split-content p {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-bottom: 15px;
}
.split-image {
  flex: 1;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
  border: 1px solid #cce0ff;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  position: relative;
  overflow: hidden;
}
.split-image::after {
  content: '💳'; /* Placeholder icon if real image missing */
  font-size: 8rem;
  opacity: 0.1;
  position: absolute;
}
@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
  }
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: #cce0ff;
}
.timeline-item {
  position: relative;
  padding-left: 60px;
}
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 4px solid var(--c-surface);
  box-shadow: 0 0 0 2px var(--c-primary-light);
}
.timeline-content {
  background: var(--c-surface);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid #cce0ff;
  box-shadow: var(--shadow-sm);
}
.timeline-content h4 {
  color: var(--c-primary-dark);
  margin-bottom: 5px;
}
.timeline-content p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}
