﻿/* =========================================
   1. BRAND TOKENS & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Cairo:wght@400;700&display=swap');

:root {
    --brand-navy: #0a1f44;
    --brand-orange: #f97316;
    --brand-orange-hover: #ea580c;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-lg: 24px;
    --shadow: 0 20px 25px -5px rgba(10, 31, 68, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(10, 31, 68, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 20px;
    width: 100%;
}

main {
    flex: 1;
}

/* =========================================
   2. HEADER
   ========================================= */
header {
    background: var(--brand-navy);
    padding-block: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .brand span {
        color: var(--brand-orange);
    }

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    nav a {
        color: #cbd5e1;
        font-weight: 600;
        text-decoration: none;
        transition: 0.3s;
    }

        nav a:hover {
            color: white;
        }

    nav select {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        padding: 5px;
        border-radius: 6px;
    }

.ltr-force {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-flex;
    align-items: center;
}

    .ltr-force span {
        margin-left: 2px;
    }

/* =========================================
   3. HERO & STATS
   ========================================= */
.hero {
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.9) 0%, rgba(30, 58, 138, 0.7) 100%), url('../images/hero-bg.png');
    padding-block: 6rem 8rem;
    color: white;
    text-align: center;
}

    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

.stats-grid {
    margin-top: -60px;
    background: white;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.stat-item h2 {
    color: var(--brand-orange);
    font-size: 2.5rem;
}

/* =========================================
   4. BENTO GRID (PRODUCTS)
   ========================================= */
.section-title {
    text-align: center;
    margin-block: 4rem 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 4rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
        border-color: var(--brand-orange);
    }

.card-wide {
    grid-column: span 2;
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-icon {
    font-size: 1.5rem;
    background: var(--bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* =========================================
   PROFESSIONAL CUSTOMER SECTION
   ========================================= */

.customers-section {
    padding-block: 80px;
    background-color: #ffffff;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 60px;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--brand-orange);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: var(--brand-orange);
    margin: 20px auto 0;
    border-radius: 2px;
}

.customer-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 rows of 3 */
    gap: 40px; /* Wider gap for a cleaner look */
    max-width: 1000px;
    margin: 0 auto;
}

.customer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 20px;
    transition: all 0.5s ease;
    border-radius: 12px;
    /* No border or background by default for a "clean" look */
    background: transparent;
}

    .customer-logo img {
        max-width: 100%;
        max-height: 70px; /* Uniform height for all logos */
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .customer-logo span {
        font-weight: 600;
        color: var(--brand-navy);
        font-size: 1.1rem;
    }

    /* Interaction: Subtle focus background */
    .customer-logo:hover {
        background: #f8fafc;
        transform: translateY(-5px);
    }

        .customer-logo:hover img {
            transform: scale(1.05);
        }

/* BIG SPACER BEFORE FOOTER */
.section-spacer {
    height: 150px; /* This provides that "big space" before the footer */
    background-color: transparent;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .customer-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-spacer {
        height: 80px;
    }
}

@media (max-width: 576px) {
    .customer-logos {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   6. FOOTER (FIXED)
   ========================================= */
footer {
    background: #030712;
    color: #94a3b8;
    padding-top: 5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

    .footer-links a:hover {
        color: var(--brand-orange);
        padding-left: 5px;
    }

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

    .contact-item i {
        color: var(--brand-orange);
    }

/* =========================================
   7. UTILS & BUTTONS
   ========================================= */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary {
    background: var(--brand-orange);
    color: white;
}

    .btn-primary:hover {
        background: var(--brand-orange-hover);
    }

.btn-outline {
    border: 1px solid white;
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid, .footer-content, .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-wide {
        grid-column: span 1;
    }

    .footer-content {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

/* =========================================
   CONTACT PAGE STYLING
   ========================================= */

.contact-hero {
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.9) 0%, rgba(30, 58, 138, 0.7) 100%), url('../images/hero-bg.png') center / cover no-repeat;
    padding-block: 6rem 10rem;
    color: white;
    text-align: center;
}
    .contact-hero h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Left Sidebar */
.contact-info-panel {
    background: var(--brand-navy);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.method-icon {
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
}

.contact-method h4 {
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--brand-orange);
}

.contact-method p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Right Form Panel */
.contact-form-panel {
    padding: 3rem;
    background: white;
}

.professional-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--brand-navy);
        text-transform: uppercase;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        border: 2px solid #f1f5f9;
        border-radius: 10px;
        font-family: inherit;
        transition: 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--brand-orange);
            background: #fffdfb;
        }

.btn-block {
    width: 100%;
    justify-content: center;
    padding-block: 1rem;
}

/* Alert Box */
.alert-success-modern {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.alert-icon {
    background: #22c55e;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PRODUCT PAGE STYLING
   ========================================= */

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-block: 4rem;
}

    .product-showcase.reverse {
        direction: rtl; /* This flips the layout */
    }

        .product-showcase.reverse .product-text {
            direction: ltr; /* Keeps text left-to-right inside the flipped box */
        }

[dir="rtl"] .product-showcase.reverse {
    direction: ltr; /* Handles Arabic flipping correctly */
}

.product-image-box {
    aspect-ratio: 4/3;
    background: #f8fafc;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-text h2 {
    font-size: 2.5rem;
    color: var(--brand-navy);
    margin-bottom: 1.5rem;
}

.product-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

    .feature-list li {
        display: flex;
        gap: 12px;
        margin-bottom: 10px;
        font-weight: 500;
        color: var(--text-main);
    }

        .feature-list li span {
            color: var(--brand-orange);
            font-weight: 800;
        }

.product-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin-block: 2rem;
}

/* Specific product icon backgrounds (Optional Gradients) */
.card-listen {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.card-queue {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.card-bill {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

/* Mobile View */
@media (max-width: 900px) {
    .product-showcase, .product-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
}
/* Ensure the wrapper respects page direction */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Fix for Arabic RTL */
[dir="rtl"] .contact-wrapper {
    /* This ensures the navy sidebar stays on the right in Arabic */
    grid-template-columns: 1.5fr 1fr;
}

/* Icon Spacing for RTL */
[dir="rtl"] .contact-method {
    display: flex;
    gap: 15px;
    text-align: right;
}

[dir="rtl"] .method-icon {
    margin-left: 0;
    margin-right: 0;
}

/* Force phone numbers to always be LTR even in Arabic mode */
[dir="rtl"] .contact-method p {
    direction: ltr;
    display: inline-block;
    width: 100%;
}

/* Form row responsiveness */
@media (max-width: 900px) {
    .contact-wrapper, [dir="rtl"] .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Styling for office sections in the sidebar */
.office-block {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.office-header {
    color: var(--brand-orange);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
    margin-bottom: 5px;
}

/* RTL Support for the split layout */
[dir="rtl"] .contact-wrapper {
    grid-template-columns: 1.5fr 1fr;
}

[dir="rtl"] .contact-method {
    text-align: right;
}

/* Ensure phone/fax stay readable in Arabic mode */
[dir="ltr"], [dir="rtl"] p[dir="ltr"] {
    unicode-bidi: plaintext;
    text-align: inherit;
}

.btn-arrow {
    margin-inline-start: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(lang == "en" ? 5px : -5px);
}

/* New Sidebar Design */
.product-sidebar-new {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.sidebar-info-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.highlighted-card {
    background: linear-gradient(to bottom right, #ffffff, #fff7ed);
    border-left: 4px solid var(--brand-orange);
}

[dir="rtl"] .highlighted-card {
    border-left: none;
    border-right: 4px solid var(--brand-orange);
}

.sidebar-heading {
    color: var(--brand-navy);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

/* Platform Tags Design */
.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tag {
    background: var(--bg-light);
    color: var(--brand-navy);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

/* Industry List Design */
.industry-list {
    list-style: none;
    padding: 0;
}

    .industry-list li {
        display: flex;
        gap: 10px;
        margin-bottom: 12px;
        color: var(--text-muted);
        font-weight: 500;
    }

        .industry-list li span {
            color: var(--brand-orange);
            font-weight: bold;
        }

.sidebar-cta-box {
    margin-top: 10px;
}

/* =========================================
   ENHANCED PRODUCT PAGE
========================================= */

.product-wrapper {
    margin-top: -90px;
    margin-bottom: 120px;
}

.product-card-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    background: white;
    padding: 3.5rem;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

[dir="rtl"] .product-card-layout {
    grid-template-columns: 360px 1fr;
}

.product-main-card {
    display: flex;
    flex-direction: column;
}

.product-section-title {
    font-size: 2.2rem;
    color: var(--brand-navy);
    margin-bottom: 1.5rem;
}

.product-section-subtitle {
    font-size: 1.6rem;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-description-small {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Sidebar */
.product-sidebar-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-block {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

    .sidebar-block h4 {
        margin-bottom: 1.2rem;
        color: var(--brand-navy);
        font-weight: 800;
        text-transform: uppercase;
        font-size: 0.9rem;
    }

    .sidebar-block.highlight {
        background: linear-gradient(to bottom right, #ffffff, #fff7ed);
        border-left: 4px solid var(--brand-orange);
    }

[dir="rtl"] .sidebar-block.highlight {
    border-left: none;
    border-right: 4px solid var(--brand-orange);
}

/* Mobile */
@media (max-width: 992px) {
    .product-card-layout,
    [dir="rtl"] .product-card-layout {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .product-wrapper {
        margin-top: -40px;
    }
}
/* =========================================
   RESPONSIVE HEADER
   ========================================= */
@media (max-width: 700px) {
    header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

        nav a {
            font-size: 0.9rem;
        }

        nav select {
            padding: 2px 4px;
            font-size: 0.9rem;
        }

    .brand {
        font-size: 1.3rem;
        margin-right: auto; /* keeps brand on left, helps with wrapping */
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    nav {
        gap: 0.8rem;
    }

        nav a, nav select {
            font-size: 0.8rem;
        }
}


