/* Orchesvia Custom Styles - Bootstrap Compatible with Enhanced Text Contrast */

/* Root variables for consistent theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-radius: 0.75rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* Custom gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Navbar enhancements */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* Hero section enhancements */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Text color utilities for better contrast */
.text-white {
    color: #ffffff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

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

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

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

/* Animation classes */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Card enhancements */
.hover-lift {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

/* Button enhancements */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

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

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

/* Enhanced location link spacing in accordions */
.accordion-body .text-decoration-none {
    padding: 0.75rem 0;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e7eb;
}

.accordion-body .text-decoration-none:last-child {
    border-bottom: none;
}

.accordion-body .text-decoration-none:hover {
    background-color: rgba(37, 99, 235, 0.05);
    padding-left: 0.5rem;
    color: var(--primary-color) !important;
    border-bottom-color: transparent;
}

.btn-light {
    background: #ffffff;
    color: var(--dark-color);
    border-color: #e5e7eb;
}

.btn-light:hover {
    background: #f9fafb;
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Icon enhancements */
.bi {
    transition: all 0.3s ease;
}

/* Custom spacing utilities */
.min-vh-100 {
    min-height: 100vh !important;
}

/* Background utilities */
.bg-light {
    background-color: #f3f4f6 !important;
}

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

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

/* Responsive improvements */
@media (max-width: 768px) {
    .display-3 {
        font-size: calc(1.425rem + 2.1vw);
    }
    
    .display-5 {
        font-size: calc(1.375rem + 1.5vw);
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
        text-align: center;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.navbar-toggler:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Print styles */
@media print {
    .navbar,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    * {
        color: black !important;
    }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --text-color: #f8fafc;
        --card-bg: #1e293b;
    }
}

/* Animation delays for staggered effects */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Custom component styles */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Stats counter animation (for future use) */
.stats-counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* Testimonial styling (for future use) */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

/* Feature comparison table (for future use) */
.comparison-table th {
    background: var(--light-color);
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

/* Custom alert styles */
.alert-custom {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
}

.alert-custom.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.alert-custom.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

/* Progress bars (for future use) */
.progress-custom {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

.progress-custom .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* Custom badges */
.badge-custom {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Social media icons */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Cookie banner (for future use) */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
    z-index: 1050;
    box-shadow: var(--box-shadow-lg);
}

/* Back to top button (for future use) */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Enhanced text utilities for better contrast */
.fw-bold {
    font-weight: 700 !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Ensure all headings have proper contrast */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 600;
}

/* Card text contrast */
.card-title {
    color: var(--dark-color);
    font-weight: 600;
}

.card-text {
    color: var(--secondary-color);
}

/* Link hover effects with proper contrast */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navbar link contrast */
.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Footer text contrast */
footer {
    color: #ffffff;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #ffffff;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Ensure all sections have proper background contrast */
section {
    position: relative;
}

section.bg-light {
    background-color: #f3f4f6 !important;
}

section.bg-dark {
    background-color: var(--dark-color) !important;
    color: #ffffff;
}

/* Enhanced hover effects for better UX */
.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Make sure all text in cards is readable */
.card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    color: var(--dark-color);
}

/* Ensure proper contrast for all Bootstrap utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

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

.text-info {
    color: #0ea5e9 !important;
}

.text-light {
    color: #6b7280 !important;
}

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

/* Background color utilities */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

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

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

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

.bg-info {
    background-color: #0ea5e9 !important;
}

.bg-light {
    background-color: #f3f4f6 !important;
}

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

/* Card benefits styling */
.card-benefits {
    margin-top: 1rem;
}

.card-benefits li {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
    line-height: 1.4;
}

.card-benefits li i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Product icons styling for Product suite section */
.card-hover-effect .card-body img[alt*="Logo"] {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-hover-effect:hover .card-body img[alt*="Logo"] {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2));
}
