/* ========================================
   Bloom Lending Design System
   Fusion of DistrictLending + LHP 3.0
   ======================================== */

:root {
  /* Brand Colors */
  --bloom-green: #40b93c;
  --bloom-green-dark: #2E7D32;
  --bloom-dark: #1a1a1a;
  --bloom-light: #f8faf8;
  
  /* Text Colors */
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--text-primary); }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--bloom-dark); margin: 0 0 var(--space-md); }
p { margin: 0 0 var(--space-md); line-height: 1.6; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-md); }
.gradient-bloom { background: linear-gradient(135deg, var(--bloom-green) 0%, var(--bloom-green-dark) 100%); }
.text-bloom { color: var(--bloom-green); }
.bg-bloom-light { background-color: var(--bloom-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--bloom-green) 0%, var(--bloom-green-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(64, 185, 60, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(64, 185, 60, 0.4);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--bloom-green);
  color: var(--bloom-green);
}
.btn-outline:hover { background: var(--bloom-light); }

/* Card Lift Effect */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HEADER - 2-Row Design
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid #f0f0f0;
}
.topbar .logo { height: 40px; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.social-icons {
  display: flex;
  gap: var(--space-sm);
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bloom-light);
  color: var(--bloom-green);
  transition: all 0.2s;
}
.social-icons a:hover {
  background: var(--bloom-green);
  color: white;
}
.phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.phone-link svg { color: var(--bloom-green); }

/* Navigation Bar */
.navbar {
  background: var(--bloom-green);
  padding: 0 var(--space-md);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav-links a {
  display: block;
  padding: var(--space-md) var(--space-lg);
  color: white;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
.nav-links .active { background: rgba(255, 255, 255, 0.15); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle::after {
  content: '▼';
  font-size: 0.6em;
  margin-left: var(--space-sm);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bloom-green-dark);
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
  z-index: 100;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  padding: var(--space-sm) var(--space-lg);
  display: block;
  color: white;
}
.dropdown-menu a:hover { background: rgba(255, 255, 255, 0.1); }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}
@media (max-width: 768px) {
  .topbar-right .social-icons,
  .topbar-right .separator { display: none; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bloom-green);
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--bloom-green-dark);
  }
}

/* ========================================
   FOOTER - 4-Column Design
   ======================================== */
.site-footer {
  background: var(--bloom-dark);
  color: white;
  padding: var(--space-2xl) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}
.footer-col p,
.footer-col a {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.8;
}
.footer-col a:hover { color: var(--bloom-green); }
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: var(--space-xs); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.footer-bottom p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #2a2a2a;
  color: #9ca3af;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--bloom-green);
  color: white;
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: var(--space-2xl) 0; }
.section-light { background: var(--bloom-light); }
.section-dark { background: var(--bloom-dark); color: white; }
.section-title { text-align: center; margin-bottom: var(--space-xl); }
.section-title h2 { font-size: 2rem; }
.section-title p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Quick Quote Sidebar */
.quick-quote {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.quick-quote h3 {
  color: var(--bloom-green);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.quick-quote .form-group { margin-bottom: var(--space-md); }
.quick-quote label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}
.quick-quote input,
.quick-quote select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}
.quick-quote input:focus,
.quick-quote select:focus {
  outline: none;
  border-color: var(--bloom-green);
  box-shadow: 0 0 0 3px rgba(64, 185, 60, 0.1);
}
