/* Critical CSS - Above the fold content only */

:root {
    /* Essential brand colors - Lingwish Orange */
    --primary-color: #FF6B35;
    --secondary-color: #FF8C42;
    --tertiary-color: #FF4500;
    --accent-blue: #2E5266;
    --accent-light-blue: #87CEEB;
    --accent-cream: #FFF8E7;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF4500 100%);
    --gradient-hero: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #87CEEB 100%);
}

/* Essential body styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fafbfc;
    margin: 0;
    padding: 0;
}

/* Critical typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 1rem 0;
}

/* Navigation - critical for above-the-fold */
.navbar {
    background: var(--gradient-primary) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(255, 107, 53, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* Essential button styles */
.btn {
    border-radius: 12px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 99, 210, 0.3);
    color: white;
}

/* Essential layout */
.container, .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Critical responsive grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-12, .col-md-6, .col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Essential card styles for hero section */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(79, 99, 210, 0.08);
    background: white;
    margin-bottom: 1.5rem;
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    font-weight: 600;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Essential text utilities */
.text-center { text-align: center; }
.text-white { color: white !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Essential display utilities */
.d-flex { display: flex !important; }
.d-none { display: none !important; }

/* Critical responsive breakpoints */
@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

/* Critical mobile optimizations */
@media (max-width: 767.98px) {
    .navbar-brand { font-size: 1.25rem; }
    .btn { padding: 0.625rem 1.25rem; font-size: 0.9rem; }
    .card { margin-bottom: 1rem; }
    .container-fluid { padding-left: 1rem; padding-right: 1rem; }
}

/* Loading state for non-critical CSS */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Critical accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus indicators */
.btn:focus, .nav-link:focus {
    outline: 3px solid rgba(79, 99, 210, 0.5);
    outline-offset: 2px;
}
