/* ===== VARIABLES ===== */
:root {
    --navy: #0b1e3b;
    --gold: #caa76a;
    --white: #ffffff;
    --light-gray: #f3f5f7;
    --dark-gray: #4a5568;
    --text-dark: #1a202c;
    --border-color: #e2e8f0;
    
    --font-primary: 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --radius: 12px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style-position: inside;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.section-desc {
    text-align: center;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== GRID SYSTEM ===== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--navy);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.lang-toggle {
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--gold);
    color: var(--navy);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
    color: var(--white);
    padding: 100px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--radius);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* ===== STEPS ===== */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--gold);
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--navy);
    color: var(--white);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.category-card:hover h3,
.category-card:hover p {
    color: var(--white);
}

.card-arrow {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: var(--gold);
}

/* ===== SERVICES ===== */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.services-section {
    scroll-margin-top: 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.service-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-desc {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-meta {
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-gray);
    color: var(--navy);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-business {
    background: #e6f4ea;
    color: #1e7e34;
}

/* ===== FORMS ===== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.alert-info {
    background: #e7f3ff;
    color: #004085;
    border: 1px solid #b3d9ff;
}

.request-form,
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(202, 167, 106, 0.1);
}

/* ===== TESTIMONIALS ===== */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: none;
}

.testimonial-item.active {
    display: block;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.testimonial-author {
    text-align: center;
}

.testimonial-author strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--gold);
    width: 30px;
    border-radius: 6px;
}

/* ===== PARTNERS ===== */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    font-size: 3rem;
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
}

/* ===== CTA SECTION ===== */
.cta {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== ACCORDION (FAQ) ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p,
.faq-answer ul {
    padding: 0 1.5rem 1.5rem;
    color: var(--dark-gray);
}

.faq-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--light-gray);
    border-radius: var(--radius);
}

/* ===== CONTACT ===== */
.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.contact-value {
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-note {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.info-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-text {
    color: var(--dark-gray);
    line-height: 1.8;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== ABOUT PAGE ===== */
.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-content h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1rem;
}

.team-card h3 {
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.compliance-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.compliance-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.badge-item {
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    padding: 60px 0;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.legal-document h2 {
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-document h2:first-child {
    margin-top: 0;
}

.legal-document h3 {
    color: var(--navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-document p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-document ul {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.legal-document li {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.text-link {
    color: var(--gold);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* ===== RTL/LTR SUPPORT ===== */
[dir="ltr"] .nav-link.active::after {
    right: auto;
    left: 0;
}

[dir="ltr"] .card-arrow {
    left: auto;
    right: 20px;
}

[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 30px;
}

[dir="ltr"] .step-arrow {
    transform: scaleX(-1);
}

/* ===== 404 ERROR PAGE ===== */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-number {
    font-size: 10rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 rgba(11, 30, 59, 0.1);
}

.error-title {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.error-suggestions {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    text-align: right;
}

.error-suggestions h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    margin-bottom: 0.75rem;
}

.error-suggestions a {
    color: var(--gold);
    font-weight: 600;
    transition: var(--transition);
}

.error-suggestions a:hover {
    color: var(--navy);
}

.error-search {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    [dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
    }

    [dir="ltr"] .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    [dir="ltr"] .step-arrow {
        transform: rotate(90deg);
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }

    [dir="ltr"] .whatsapp-float {
        left: auto;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section {
        padding: 60px 0;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }
}
