/**
 * Bootstrap Boxes Theme CSS
 * Custom styles for the Bootstrap Boxes theme
 */

/* Custom spacing for Boxes */
.oc-boxes-spacing--before-small {
    margin-top: 1rem;
}

.oc-boxes-spacing--before-medium {
    margin-top: 2rem;
}

.oc-boxes-spacing--before-large {
    margin-top: 3rem;
}

.oc-boxes-spacing--after-small {
    margin-bottom: 1rem;
}

.oc-boxes-spacing--after-medium {
    margin-bottom: 2rem;
}

.oc-boxes-spacing--after-large {
    margin-bottom: 3rem;
}

/* Hero section styles */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: white;
}

.hero-section .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Card enhancements */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Image responsive improvements */
.image-box img {
    max-width: 100%;
    height: auto;
}

/* Text block improvements */
.text-box {
    line-height: 1.6;
}

.text-box h1, .text-box h2, .text-box h3, 
.text-box h4, .text-box h5, .text-box h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert .alert-heading {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Navigation improvements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Active navigation state */
.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--bs-primary);
    border-radius: 1px;
}

/* CTA button in navigation */
.navbar-nav .btn-outline-primary {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-nav .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white !important;
}

/* Navbar scroll effect enhancement */
.navbar.shadow {
    transition: box-shadow 0.3s ease;
}

/* Footer improvements */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
}

footer h5, footer h6 {
    color: white !important;
    font-weight: 600;
}

footer .text-muted {
    color: #bdc3c7 !important;
}

footer a.text-muted:hover {
    color: white !important;
    text-decoration: none;
}

/* Container improvements */
.container, .container-fluid, .container-sm, 
.container-md, .container-lg, .container-xl, .container-xxl {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-3.flex-wrap {
        flex-direction: column;
    }
}

/* Editor mode styles */
.oc-boxes-edit-mode .navbar {
    position: static !important;
}

.oc-boxes-edit-mode .hero-section {
    margin-top: 0;
}

/* Utility classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-xl {
    border-radius: 1rem !important;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Car Financing Specific Styles */
.loan-calculator {
    border: 1px solid #e9ecef;
}

.loan-calculator .result-box {
    background: linear-gradient(135deg, var(--bs-primary), #0056b3) !important;
}

.loan-calculator .result-box h4 {
    font-weight: 700;
    margin: 0;
}

.loan-calculator .result-box h6 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.benefits-grid .benefit-item {
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefits-grid .benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.benefits-grid .benefit-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-form {
    max-width: 800px;
    width: 100%;
}

.application-form .form-label {
    font-weight: 600;
    color: #495057;
}

.application-form .form-control:focus,
.application-form .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.application-form .btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), #0056b3);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Finance hero specific styling */
.hero-section.finance-hero {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    min-height: 70vh;
}

/* Responsive adjustments for finance forms */
@media (max-width: 768px) {
    .loan-calculator .result-box .row {
        text-align: center;
    }
    
    .loan-calculator .result-box .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .benefits-grid .benefit-item {
        margin-bottom: 2rem;
    }
    
    .application-form {
        padding: 1rem;
    }
}

/* Trust Signals Styling */
.trust-signals .trust-item {
    padding: 1rem;
}

.trust-signals .display-6 {
    font-size: 2.5rem;
    line-height: 1.2;
}

/* Process Steps Styling */
.process-steps .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0 auto;
}

.process-steps .step-item {
    padding: 2rem 1rem;
    transition: transform 0.2s ease;
}

.process-steps .step-item:hover {
    transform: translateY(-5px);
}

.process-steps .step-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Single Page Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section spacing for single page */
.container + .container {
    margin-top: 0;
}

/* Enhanced alternating backgrounds */
.container[style*="background-color: #f8f9fa"] {
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.container[style*="background-color: #ffffff"] {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* CTA button enhancements */
.btn-primary.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Trust signals animations */
.trust-signals .trust-item:hover .display-6 {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Mobile enhancements for single page */
@media (max-width: 768px) {
    .trust-signals .display-6 {
        font-size: 2rem;
    }
    
    .process-steps .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .process-steps .step-item {
        padding: 1.5rem 1rem;
    }
    
    .container[style*="background-color"] {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}