/**
 * LOANOW Multi-Tenant Platform - Main Styles
 * Uses CSS custom properties for tenant theming
 */

/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
    --primary-color: #3B82F6;
    --secondary-color: #1E40AF;
    --accent-color: #F59E0B;
    --text-color: #1F2937;
    --bg-color: #FFFFFF;
    --hero-bg-color: #F8FAFC;
    --footer-bg-color: #1F2937;
    --font-family: 'Heebo', sans-serif;
    --border-radius: 0.5rem;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

* {
    font-family: var(--font-family);
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* ==========================================================================
   Bootstrap Overrides
   ========================================================================== */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.form-control,
.form-select {
    border-radius: var(--border-radius);
    border-color: var(--gray-300);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.form-control-lg,
.form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-name {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--gray-700);
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background-color: var(--hero-bg-color);
    padding: 4rem 0;
}

.hero-features li {
    padding: 0.375rem 0;
}

.hero-image img {
    max-height: 400px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.form-section {
    background-color: var(--gray-100);
}

.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
}

.use-case-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.accordion-button {
    font-weight: 600;
    color: var(--text-color);
    background-color: #fff;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(59, 130, 246, 0.25);
}

.accordion-body {
    line-height: 1.8;
}

/* ==========================================================================
   Lead Form
   ========================================================================== */

.lead-form .form-label {
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.lead-form .was-validated .form-control:invalid,
.lead-form .form-control.is-invalid {
    border-color: #DC2626;
    background-image: none;
}

.lead-form .was-validated .form-control:valid,
.lead-form .form-control.is-valid {
    border-color: #10B981;
    background-image: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--footer-bg-color);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: background 0.2s;
    margin-left: 0.5rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: 2rem;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   Blog
   ========================================================================== */

.blog-card .card {
    overflow: hidden;
}

.blog-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.blog-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Tracker UI (loanow.online)
   ========================================================================== */

.tracker-demo {
    background: #fff;
}

.tracker-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tracker-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
}

.tracker-step.completed {
    border-color: #10B981;
    background: #ECFDF5;
}

.tracker-step.completed .step-icon {
    background: #10B981;
    color: #fff;
}

.tracker-step.active {
    border-color: var(--primary-color);
    background: #EFF6FF;
}

.tracker-step.active .step-icon {
    background: var(--primary-color);
    color: #fff;
}

.tracker-step.pending .step-icon {
    background: var(--gray-300);
    color: var(--gray-600);
}

.tracker-step .step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.tracker-step .step-info h6 {
    margin: 0;
    font-weight: 600;
}

.tracker-step .step-info small {
    display: block;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .cookie-consent-banner,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
    }
}

