/* ==========================================================================
   DIGITEREX DESIGN SYSTEM - LIGHT MODE
   High-Performance B2B Custom Dashboards & Tailored Enterprise Software
   Clean, Minimalist, Mobile-First Responsive Architecture
   ========================================================================== */

:root {
    /* Light Mode Color Palette */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    --bg-surface-alt: #e2e8f0;

    /*--primary: #2563eb;*/
    --primary: #003cff;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;

    --accent-emerald: #10b981;
    --accent-emerald-dark: #059669;
    --accent-emerald-soft: #ecfdf5;

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border: #e2e8f0;
    --border-hover: #93c5fd;
    --border-focus: #2563eb;

    /* Typography */
    --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-ar: 'Cairo', 'Readex Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 14px 30px -5px rgba(37, 99, 235, 0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-page);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-en);
    line-height: 1.55;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

[dir="rtl"] body,
html[dir="rtl"] {
    font-family: var(--font-ar);
    direction: rtl;
    text-align: right;
}

[dir="ltr"] body,
html[dir="ltr"] {
    font-family: var(--font-en);
    direction: ltr;
    text-align: left;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Fluid Layout & Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.section {
    padding: 45px 0;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .section {
        padding: 70px 0;
    }
}

.section-alt {
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 30px auto;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 45px;
    }
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(1.55rem, 4.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: 100%;
}

@media (min-width: 768px) {
    .header-container {
        height: 70px;
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-icon-box {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 6px 0;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language Switcher Pill */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 2px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-main);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 840px) {
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-nav-links {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 20px 16px 40px;
        gap: 10px;
        border-bottom: 1px solid var(--border);
        overflow-y: auto;
        z-index: 99;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links.open {
        display: flex;
        animation: slideDown 0.2s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links .nav-link {
        font-size: 1.05rem;
        padding: 12px 14px;
        width: 100%;
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-main);
    }

    .mobile-drawer-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 8px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    touch-action: manipulation;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
    border: 1px solid transparent;
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-emerald {
    background: var(--accent-emerald);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
    border: 1px solid transparent;
}

.btn-emerald:hover,
.btn-emerald:active {
    background: var(--accent-emerald-dark);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-secondary:active {
    background: var(--bg-surface);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 13px 24px;
    font-size: 0.98rem;
    border-radius: var(--radius-md);
}

@media (max-width: 600px) {
    .btn-lg {
        width: 100% !important;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 35px 0 40px;
    text-align: center;
    background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 0 65px;
    }
}

.hero-wrap {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--accent-emerald-soft);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    color: var(--accent-emerald-dark);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-tag-pulse {
    width: 7px;
    height: 7px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.12rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
}

.hero-pills-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.hero-pill i {
    color: var(--accent-emerald);
}

/* ==========================================================================
   Spotlight Live Demo Banner (Direct & Focused)
   ========================================================================== */
.spotlight-card {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .spotlight-card {
        padding: 32px 28px;
    }
}

.spotlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.spotlight-badge {
    background: var(--accent-emerald-soft);
    color: var(--accent-emerald-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spotlight-title {
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.spotlight-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.spotlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.spotlight-tag {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-main);
}

.spotlight-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .spotlight-actions {
        flex-direction: column;
        width: 100%;
    }

    .spotlight-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Key Solutions Grid (Concise 4 Core Cards)
   ========================================================================== */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 680px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.solution-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.solution-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 1.25rem;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.solution-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.solution-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 14px;
    flex-grow: 1;
}

.solution-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.solution-point-item {
    font-size: 0.82rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.solution-point-item i {
    color: var(--accent-emerald);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ==========================================================================
   3-Step Simple Process
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

.process-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.process-num {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.process-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.process-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Consultation & WhatsApp Quote Form (Light & Clean)
   ========================================================================== */
.quote-box-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    box-shadow: var(--shadow-md);
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .quote-box-wrap {
        padding: 36px 28px;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
    width: 100%;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    /* Prevents mobile browser auto-zoom */
    transition: var(--transition);
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.whatsapp-banner {
    margin-top: 16px;
    padding: 16px 14px;
    background: var(--accent-emerald-soft);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .whatsapp-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .whatsapp-banner .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 35px 0 20px;
    width: 100%;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .footer-wrap {
        flex-direction: column;
        text-align: center;
    }
}