/* ========================================================
   LevelLance Service Landing — Master Production Stylesheet
   Pure Vanilla CSS with High-End Design System Tokens
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

/* --- Reset & Global Baseline --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ll-font-family, 'Prompt', 'Inter', sans-serif);
    background-color: var(--ll-bg, #f8fafc);
    color: var(--ll-text, #0f172a);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Plus Jakarta Sans', var(--ll-font-family, 'Prompt', sans-serif);
    color: var(--ll-text, #0f172a);
    font-weight: 700;
    line-height: 1.25;
}

.h1 { font-size: 2.25rem; }
.h2 { font-size: 1.85rem; }
.h3 { font-size: 1.5rem; }
.h4 { font-size: 1.25rem; }
.h5 { font-size: 1.1rem; }
.h6 { font-size: 0.95rem; }

.display-4 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
.display-5 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.2; }
.display-6 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ll-muted, #475569); }
.small { font-size: 0.875rem; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }
.fst-italic { font-style: italic !important; }

a {
    color: var(--ll-primary, #2563eb);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover {
    color: var(--ll-primary-hover, #1d4ed8);
}
.text-decoration-none { text-decoration: none !important; }
.title-link {
    color: var(--ll-text, #0f172a) !important;
    transition: color 0.2s ease;
}
.title-link:hover {
    color: var(--ll-primary, #2563eb) !important;
}

/* --- Container & Layout Sections --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.layout-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.bg-surface {
    background-color: var(--ll-surface, #ffffff);
}
.bg-white { background-color: #ffffff !important; }
.bg-light { background-color: #f8fafc !important; }
[data-theme="dark"] .bg-white { background-color: #111827 !important; }
[data-theme="dark"] .bg-light { background-color: #1f2937 !important; }

.bg-gradient-hero {
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}
[data-theme="dark"] .bg-gradient-hero {
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
}

/* --- Top Navigation Header --- */
.navbar-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ll-border, #e2e8f0);
    transition: all 0.3s ease;
}
[data-theme="dark"] .navbar-top {
    background: rgba(11, 15, 25, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ll-text, #0f172a);
    text-decoration: none;
}
.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ll-primary, #2563eb), var(--ll-secondary, #4f46e5));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}
.nav-link {
    color: var(--ll-text, #0f172a);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--ll-primary, #2563eb);
    background: rgba(37, 99, 235, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--ll-primary, #2563eb) 0%, var(--ll-secondary, #4f46e5) 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    filter: brightness(1.05);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ll-text, #0f172a) !important;
    border-color: var(--ll-border, #e2e8f0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.btn-outline:hover {
    border-color: var(--ll-primary, #2563eb);
    color: var(--ll-primary, #2563eb) !important;
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}
.btn-outline-primary {
    background: rgba(37, 99, 235, 0.04);
    color: var(--ll-primary, #2563eb) !important;
    border-color: var(--ll-primary, #2563eb);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}
.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--ll-primary, #2563eb) 0%, var(--ll-secondary, #4f46e5) 100%);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}
.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ll-muted, #475569) !important;
    border-color: var(--ll-border, #e2e8f0);
}
.btn-outline-secondary:hover {
    color: var(--ll-text, #0f172a) !important;
    border-color: var(--ll-text, #0f172a);
    background: rgba(0, 0, 0, 0.04);
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 14px;
}
.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
    border-radius: 9px;
}

/* --- Badges & Pills --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(79, 70, 229, 0.08) 100%);
    color: var(--ll-primary, #2563eb);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.category-pill {
    display: inline-block;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ll-muted, #475569);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .category-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.08);
}
.badge-accent {
    display: inline-block;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

/* --- Cards & Shading System --- */
.card {
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: var(--ll-radius, 16px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 12px 28px -5px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    position: relative;
}

/* Solution Cards Showcase with Accent Glow */
.solution-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ll-primary, #2563eb), var(--ll-accent, #06b6d4), var(--ll-secondary, #4f46e5));
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px -10px rgba(37, 99, 235, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    border-color: rgba(37, 99, 235, 0.45);
}
.solution-card:hover::before {
    opacity: 1;
}
.solution-title {
    font-size: 1.2rem;
    line-height: 1.4;
}
.solution-desc {
    color: var(--ll-muted, #475569);
    line-height: 1.6;
}
.solution-highlights {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.solution-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--ll-muted, #475569);
}
.solution-pricing-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 1px solid rgba(37, 99, 235, 0.16);
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
[data-theme="dark"] .solution-pricing-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .solution-pricing-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Pricing Cards */
.pricing-card {
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
}
.pricing-card.featured-plan {
    border: 2px solid var(--ll-primary, #2563eb);
    position: relative;
    box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.2);
}
.price-tag {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.pricing-feature-list {
    list-style: none;
    padding: 0;
}
.pricing-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--ll-muted, #475569);
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}
.stars {
    font-size: 1.25rem;
    letter-spacing: 2px;
}
.testimonial-quote {
    line-height: 1.7;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: 12px;
    padding: 18px 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
    border-color: var(--ll-primary, #2563eb);
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.1);
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "＋";
    font-size: 1.2rem;
    color: var(--ll-primary, #2563eb);
    font-weight: bold;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    content: "−";
}

/* Form Controls */
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--ll-text, #0f172a);
}
.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ll-text, #0f172a);
    background-color: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ll-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

/* Range Slider */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin: 16px 0;
}
[data-theme="dark"] .form-range {
    background: #334155;
}
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ll-primary, #2563eb);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    transition: transform 0.1s;
}
.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}
.col-12 { width: 100%; padding: 0 12px; }
.col-9 { width: 75%; padding: 0 12px; }
.col-8 { width: 66.666667%; padding: 0 12px; }
.col-6 { width: 50%; padding: 0 12px; }
.col-4 { width: 33.333333%; padding: 0 12px; }
.col-3 { width: 25%; padding: 0 12px; }
.col-md-3 { width: 25%; padding: 0 12px; }
.col-md-4 { width: 33.333333%; padding: 0 12px; }
.col-md-5 { width: 41.666667%; padding: 0 12px; }
.col-md-6 { width: 50%; padding: 0 12px; }
.col-md-7 { width: 58.333333%; padding: 0 12px; }
.col-md-8 { width: 66.666667%; padding: 0 12px; }
.col-md-9 { width: 75%; padding: 0 12px; }
.col-md-12 { width: 100%; padding: 0 12px; }
.col-lg-3 { width: 25%; padding: 0 12px; }
.col-lg-4 { width: 33.333333%; padding: 0 12px; }
.col-lg-5 { width: 41.666667%; padding: 0 12px; }
.col-lg-6 { width: 50%; padding: 0 12px; }
.col-lg-8 { width: 66.666667%; padding: 0 12px; }
.col-lg-9 { width: 75%; padding: 0 12px; }
.col-lg-12 { width: 100%; padding: 0 12px; }

.overflow-y-auto { overflow-y: auto !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-hidden { overflow: hidden !important; }

.g-3 { margin-top: -8px; margin-bottom: -8px; }
.g-3 > [class*="col-"] { padding-top: 8px; padding-bottom: 8px; }
.g-4 { margin-top: -14px; margin-bottom: -14px; }
.g-4 > [class*="col-"] { padding-top: 14px; padding-bottom: 14px; }

/* Flex & Alignment Utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }

.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-self-start { align-self: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }

/* Spacing Utilities */
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 14px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-2 { margin-left: 8px !important; }
.me-2 { margin-right: 8px !important; }
.mt-auto { margin-top: auto !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 14px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 36px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 14px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 36px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.p-md-5 { padding: 36px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 14px !important; padding-bottom: 14px !important; }
.py-4 { padding-top: 28px !important; padding-bottom: 28px !important; }
.py-5 { padding-top: 48px !important; padding-bottom: 48px !important; }
.px-3 { padding-left: 14px !important; padding-right: 14px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.px-5 { padding-left: 36px !important; padding-right: 36px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-4 { padding-top: 24px !important; }

/* Text Utilities & Colors */
.text-center { text-align: center !important; }
.text-muted { color: var(--ll-muted, #475569) !important; }
.text-primary { color: var(--ll-primary, #2563eb) !important; }
.text-success { color: #10b981 !important; }
.text-warning { color: #f59e0b !important; }
.text-danger { color: #ef4444 !important; }
.text-secondary { color: var(--ll-secondary, #4f46e5) !important; }
.text-white { color: #ffffff !important; }
.text-dark { color: var(--ll-text, #0f172a) !important; }

/* Borders & Shadows */
.border { border: 1px solid var(--ll-border, #e2e8f0) !important; }
.border-0 { border: 0 !important; }
.border-2 { border-width: 2px !important; }
.rounded { border-radius: 12px !important; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important; }
.shadow { box-shadow: 0 10px 25px -4px rgba(0,0,0,0.08) !important; }
.shadow-lg { box-shadow: 0 20px 40px -8px rgba(0,0,0,0.15) !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.list-unstyled { list-style: none !important; padding-left: 0 !important; }
.cursor-pointer { cursor: pointer !important; }

/* Stats Row */
.stats-row .card {
    border-radius: 14px;
    background: var(--ll-surface, #ffffff);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.88rem;
    color: var(--ll-muted, #475569);
}

/* Floating Live Chat Widget */
.floating-chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.floating-chat-bubble, .chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--ll-primary, #2563eb), var(--ll-secondary, #4f46e5));
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.floating-chat-bubble:hover, .chat-toggle-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.55);
}
.unread-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 13px;
    height: 13px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
.chat-modal-window {
    width: 380px;
    height: 520px;
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 74px;
    right: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-header, .chat-modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--ll-primary, #2563eb), var(--ll-secondary, #4f46e5));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-messages-container {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--ll-bg, #f8fafc);
}
.chat-message {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    max-width: 82%;
    line-height: 1.45;
    word-break: break-word;
}
.chat-message.chat-msg-staff, .chat-message.agent {
    background: var(--ll-surface, #ffffff);
    border: 1px solid var(--ll-border, #e2e8f0);
    align-self: flex-start;
    color: var(--ll-text, #0f172a);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.chat-message.chat-msg-visitor, .chat-message.user {
    background: linear-gradient(135deg, var(--ll-primary, #2563eb), var(--ll-secondary, #4f46e5));
    color: #fff;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.chat-input-row {
    padding: 12px;
    border-top: 1px solid var(--ll-border, #e2e8f0);
    display: flex;
    gap: 8px;
    background: var(--ll-surface, #ffffff);
}

/* Footer */
.footer-main {
    background: var(--ll-surface, #ffffff);
    border-top: 1px solid var(--ll-border, #e2e8f0);
    padding: 70px 0 35px;
    color: var(--ll-muted, #475569);
}
.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ll-text, #0f172a);
}

/* Responsive Media Queries */
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-block { display: block !important; }
}

@media (max-width: 991px) {
    .nav-menu { display: none; }
    .nav-menu.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--ll-surface, #ffffff);
        border-bottom: 1px solid var(--ll-border, #e2e8f0);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }
    .col-md-3 { width: 50%; }
    .col-md-4, .col-lg-4, .col-lg-5 { width: 50%; }
}

@media (max-width: 767px) {
    .col-6, .col-md-3, .col-md-4, .col-md-6, .col-lg-4, .col-lg-5 { width: 100%; }
    .layout-section { padding: 50px 0; }
    .chat-modal-window { width: calc(100vw - 32px); right: -10px; }
}

/* Specific Home & Component Classes */
.hero-headline { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
.hero-subheadline { font-size: 1.15rem; line-height: 1.7; color: var(--ll-muted, #475569); }
.solutions-grid { margin-top: 10px; }
.btn-preview-modal { cursor: pointer; }
.preview-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fs-5 { font-size: 1.25rem !important; }
.testimonial-author { margin-top: 16px; }
.faq-answer { font-size: 0.95rem; line-height: 1.6; color: var(--ll-muted, #475569); }
.contact-form-card { border-radius: 18px; }
.ajax-contact-form { width: 100%; }
.form-response-msg {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
}

/* Page & Layout Extensions */
.my-5 { margin-top: 48px !important; margin-bottom: 48px !important; }
.pt-3 { padding-top: 14px !important; }
.border-top { border-top: 1px solid var(--ll-border, #e2e8f0) !important; }
.col-4 { width: 33.333333%; padding: 0 12px; }
.col-lg-8 { width: 66.666667%; padding: 0 12px; }
.g-5 { margin-top: -24px; margin-bottom: -24px; }
.g-5 > [class*="col-"] { padding-top: 24px; padding-bottom: 24px; }
.sticky-top { position: sticky; top: 90px; z-index: 10; }
.dynamic-page-wrapper { padding: 40px 0; }
.notice-card { border-radius: 16px; }
.fs-6 { font-size: 1rem !important; }
.text-start { text-align: left !important; }
.img-fluid { max-width: 100%; height: auto; display: block; }
.gallery-thumb { border-radius: 10px; overflow: hidden; }
.wysiwyg-content { line-height: 1.8; font-size: 1.05rem; color: var(--ll-text, #0f172a); }
.wysiwyg-content p { margin-bottom: 16px; }
.wysiwyg-content h2, .wysiwyg-content h3 { margin-top: 28px; margin-bottom: 14px; }
.wysiwyg-content ul, .wysiwyg-content ol { margin-left: 24px; margin-bottom: 18px; }

/* ==========================================================================
   Image Gallery & Lightbox Modal (Columns & Marquee with Full Zoom & Navigation)
   ========================================================================== */
.gallery-grid {
    display: grid;
    gap: 16px;
    width: 100%;
}
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 991px) {
    .gallery-grid.cols-4, .gallery-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .gallery-grid.cols-3, .gallery-grid.cols-4, .gallery-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr !important; }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item-aspect-1-1 { aspect-ratio: 1 / 1; }
.gallery-item-aspect-4-3 { aspect-ratio: 4 / 3; }
.gallery-item-aspect-16-9 { aspect-ratio: 16 / 9; }
.gallery-item-aspect-auto { height: auto; min-height: 200px; }

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}
.gallery-item:hover .gallery-item-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Infinite Horizontal Scroll */
.gallery-marquee-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.gallery-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeScroll var(--marquee-speed, 25s) linear infinite;
}
.gallery-marquee-track.reverse {
    animation-direction: reverse;
}
.gallery-marquee-wrap:hover .gallery-marquee-track {
    animation-play-state: paused;
}
.gallery-marquee-track .gallery-item {
    flex: 0 0 auto;
    width: 280px;
    height: 190px;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox .lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.gallery-lightbox .lightbox-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 30px;
}
.lightbox-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 10px 0;
}
.lightbox-counter {
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
}
.lightbox-tools {
    display: flex;
    gap: 10px;
}
.btn-lightbox-tool {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-lightbox-tool:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.08);
}
.lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.lightbox-image-wrapper {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 10px;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    user-select: none;
    cursor: zoom-in;
}
.lightbox-img.zoomed {
    max-width: none;
    max-height: none;
    transform: scale(1.8);
    cursor: zoom-out;
}
.lightbox-nav-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    flex-shrink: 0;
}
.lightbox-nav-btn:hover {
    background: rgba(255,255,255,0.35);
    transform: scale(1.1);
}
.lightbox-caption {
    color: #f1f5f9;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 48px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================================
   Page Builder Dynamic Pages & Sections Full Coverage
   ======================================================== */
.dynamic-page-wrapper {
    width: 100%;
    min-height: calc(100vh - 200px);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.layout-section {
    width: 100%;
    position: relative;
    background-color: #ffffff;
}

.layout-section.bg-default {
    background-color: #ffffff;
}

.layout-section.bg-surface {
    background-color: #f8fafc;
}



